From Jie Zhang <jie.zhang@analog.com>
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
b4e70030 3# Generated by GNU Autoconf 2.59.
c906108c 4#
b4e70030 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
bec39cab
AC
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 33$as_unset ENV MAIL MAILPATH
bec39cab
AC
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
b4e70030 47 $as_unset $as_var
bec39cab
AC
48 fi
49done
50
51# Required to use basename.
b4e70030 52if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
53 as_expr=expr
54else
55 as_expr=false
56fi
57
b4e70030 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
b4e70030 66as_me=`$as_basename "$0" ||
bec39cab
AC
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
bec39cab 71echo X/"$0" |
b4e70030
JB
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
bec39cab 76
4e8d927d 77
b4e70030
JB
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
4e8d927d 85
b4e70030
JB
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
4e8d927d
DJ
97fi
98
4e8d927d 99
b4e70030
JB
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
4e8d927d 116
b4e70030
JB
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
bec39cab 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4e70030 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab
AC
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
b4e70030
JB
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
bec39cab 137 /*)
b4e70030 138 if ("$as_dir/$as_base" -c '
4e8d927d
DJ
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
b4e70030 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4e8d927d 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
bec39cab
AC
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
bec39cab 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
bec39cab
AC
165 sed '
166 N
b4e70030
JB
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 170 t loop
b4e70030
JB
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
bec39cab 173 ' >$as_me.lineno &&
b4e70030 174 chmod +x $as_me.lineno ||
bec39cab
AC
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
bec39cab
AC
182 # Exit status is that of the last command.
183 exit
184}
185
186
b4e70030
JB
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
192esac
193
b4e70030 194if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
bec39cab 207 as_ln_s='cp -p'
b4e70030
JB
208 else
209 as_ln_s='ln -s'
210 fi
bec39cab
AC
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
b4e70030 216rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
b4e70030 225as_executable_p="test -f"
bec39cab
AC
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
b4e70030
JB
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
bec39cab 242
c906108c 243
bec39cab
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
b4e70030
JB
249exec 6>&1
250
bec39cab
AC
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
b4e70030
JB
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
bec39cab
AC
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
20e95c23 275ac_subdirs_all="$ac_subdirs_all doc testsuite"
bec39cab
AC
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
b4e70030
JB
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
bec39cab
AC
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
b4e70030
JB
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
a4ce5b0d
UW
316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs TARGET_OBS AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS'
317ac_subst_files='host_makefile_frag'
c906108c
SS
318
319# Initialize some variables set by options.
bec39cab
AC
320ac_init_help=
321ac_init_version=false
c906108c
SS
322# The variables have the same names as the options, with
323# dashes changed to underlines.
bec39cab 324cache_file=/dev/null
c906108c 325exec_prefix=NONE
c906108c 326no_create=
c906108c
SS
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
c906108c
SS
335verbose=
336x_includes=NONE
337x_libraries=NONE
bec39cab
AC
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
b4e70030 347datadir='${prefix}/share'
c906108c
SS
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
b4e70030 351libdir='${exec_prefix}/lib'
c906108c
SS
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
b4e70030
JB
354infodir='${prefix}/info'
355mandir='${prefix}/man'
c906108c 356
c906108c
SS
357ac_prev=
358for ac_option
359do
c906108c
SS
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
b4e70030 362 eval "$ac_prev=\$ac_option"
c906108c
SS
363 ac_prev=
364 continue
365 fi
366
b4e70030 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
b4e70030 371 case $ac_option in
c906108c
SS
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 376 bindir=$ac_optarg ;;
c906108c
SS
377
378 -build | --build | --buil | --bui | --bu)
bec39cab 379 ac_prev=build_alias ;;
c906108c 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 381 build_alias=$ac_optarg ;;
c906108c
SS
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
c906108c 392
b4e70030 393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 394 ac_prev=datadir ;;
b4e70030
JB
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
bec39cab 397 datadir=$ac_optarg ;;
c906108c
SS
398
399 -disable-* | --disable-*)
bec39cab 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 401 # Reject names that are not valid shell variable names.
bec39cab
AC
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 406 eval "enable_$ac_feature=no" ;;
c906108c
SS
407
408 -enable-* | --enable-*)
bec39cab 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 410 # Reject names that are not valid shell variable names.
bec39cab
AC
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
bec39cab 428 exec_prefix=$ac_optarg ;;
c906108c
SS
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
bec39cab
AC
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
c906108c
SS
440
441 -host | --host | --hos | --ho)
bec39cab 442 ac_prev=host_alias ;;
c906108c 443 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 444 host_alias=$ac_optarg ;;
c906108c
SS
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 451 includedir=$ac_optarg ;;
c906108c
SS
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 456 infodir=$ac_optarg ;;
c906108c
SS
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 461 libdir=$ac_optarg ;;
c906108c
SS
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
bec39cab 468 libexecdir=$ac_optarg ;;
c906108c
SS
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 477 localstatedir=$ac_optarg ;;
c906108c
SS
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 482 mandir=$ac_optarg ;;
c906108c
SS
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 489 | --no-cr | --no-c | -n)
c906108c
SS
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 503 oldincludedir=$ac_optarg ;;
c906108c
SS
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 508 prefix=$ac_optarg ;;
c906108c
SS
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 515 program_prefix=$ac_optarg ;;
c906108c
SS
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 522 program_suffix=$ac_optarg ;;
c906108c
SS
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 539 program_transform_name=$ac_optarg ;;
c906108c
SS
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
bec39cab 549 sbindir=$ac_optarg ;;
c906108c
SS
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
bec39cab 560 sharedstatedir=$ac_optarg ;;
c906108c
SS
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
bec39cab 565 site=$ac_optarg ;;
3ace7edb 566
c906108c
SS
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 570 srcdir=$ac_optarg ;;
c906108c
SS
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 577 sysconfdir=$ac_optarg ;;
c906108c
SS
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 580 ac_prev=target_alias ;;
c906108c 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 582 target_alias=$ac_optarg ;;
c906108c
SS
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
bec39cab
AC
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
c906108c
SS
589
590 -with-* | --with-*)
bec39cab 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 592 # Reject names that are not valid shell variable names.
bec39cab
AC
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
c906108c 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
602
603 -without-* | --without-*)
bec39cab 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 605 # Reject names that are not valid shell variable names.
bec39cab
AC
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 610 eval "with_$ac_package=no" ;;
c906108c
SS
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 621 x_includes=$ac_optarg ;;
c906108c
SS
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 628 x_libraries=$ac_optarg ;;
c906108c 629
bec39cab
AC
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
c906108c
SS
633 ;;
634
bec39cab
AC
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
b4e70030
JB
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
643 export $ac_envvar ;;
644
c906108c 645 *)
bec39cab
AC
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
bec39cab
AC
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
c906108c 660fi
c906108c 661
b4e70030
JB
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
c906108c 664do
b4e70030 665 eval ac_val=$`echo $ac_var`
bec39cab 666 case $ac_val in
b4e70030
JB
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
c906108c
SS
682 esac
683done
684
bec39cab
AC
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
c906108c 702
bec39cab
AC
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
c906108c 707
c906108c
SS
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
b4e70030
JB
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
bec39cab 719echo X"$0" |
b4e70030
JB
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
c906108c 725 srcdir=$ac_confdir
b4e70030 726 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
b4e70030
JB
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 738 { (exit 1); exit 1; }; }
b4e70030 739 fi
c906108c 740fi
b4e70030
JB
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 743 { (exit 1); exit 1; }; }
b4e70030
JB
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
c906108c 777
bec39cab
AC
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
b4e70030
JB
805_ACEOF
806
807 cat <<_ACEOF
bec39cab
AC
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
d0c678e6 863 --enable-targets alternative target configurations
c0993dbe 864 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
bec39cab
AC
865 --disable-gdbcli disable command-line interface (CLI)
866 --disable-gdbmi disable machine-interface (MI)
867 --enable-tui enable full-screen terminal user interface (TUI)
868 --enable-gdbtk enable gdbtk graphical user interface (GUI)
869 --enable-profiling enable profiling of GDB
3841debe 870 --disable-rpath do not hardcode runtime library paths
094a342e 871 --enable-werror treat compile warnings as errors
bec39cab
AC
872 --enable-build-warnings Enable build-time compiler warnings if gcc is used
873 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
874 --enable-sim Link gdb with simulator
875 --enable-multi-ice build the multi-ice-gdb-server
876
877Optional Packages:
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
880 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
881 --with-libunwind Use libunwind frame unwinding support
6a30b0a5 882 --with-system-readline use installed readline library
5c39566f 883 --with-expat include expat support (auto/yes/no)
3841debe
DJ
884 --with-gnu-ld assume the C compiler uses GNU ld default=no
885 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
886 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
887 --without-included-regex don't use included regex; this is the default
888 on systems with version 2 of the GNU C library
889 (use with caution on other system)
890 --with-sysroot=DIR Search for usr/lib et al within DIR.
891 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
892 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
893 --with-tclinclude=DIR Directory where tcl private headers are
894 --with-tkinclude=DIR Directory where tk private headers are
895 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
896 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
897 --with-x use the X Window System
898 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
899
900Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
b4e70030
JB
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
bec39cab
AC
907 CPP C preprocessor
908
909Use these variables to override the choices made by `configure' or to help
910it to find libraries and programs with nonstandard names/locations.
911
912_ACEOF
913fi
914
915if test "$ac_init_help" = "recursive"; then
916 # If there are subdirs, report their specific --help.
b4e70030 917 ac_popdir=`pwd`
bec39cab
AC
918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
919 test -d $ac_dir || continue
920 ac_builddir=.
921
b4e70030 922if test "$ac_dir" != .; then
bec39cab 923 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
924 # A "../" for each directory in $ac_dir_suffix.
925 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926else
927 ac_dir_suffix= ac_top_builddir=
928fi
bec39cab
AC
929
930case $srcdir in
b4e70030 931 .) # No --srcdir option. We are building in place.
bec39cab 932 ac_srcdir=.
b4e70030
JB
933 if test -z "$ac_top_builddir"; then
934 ac_top_srcdir=.
935 else
936 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937 fi ;;
938 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 939 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
940 ac_top_srcdir=$srcdir ;;
941 *) # Relative path.
942 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943 ac_top_srcdir=$ac_top_builddir$srcdir ;;
944esac
945
946# Do not use `cd foo && pwd` to compute absolute paths, because
947# the directories may not exist.
948case `pwd` in
949.) ac_abs_builddir="$ac_dir";;
950*)
951 case "$ac_dir" in
952 .) ac_abs_builddir=`pwd`;;
953 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
954 *) ac_abs_builddir=`pwd`/"$ac_dir";;
955 esac;;
956esac
957case $ac_abs_builddir in
958.) ac_abs_top_builddir=${ac_top_builddir}.;;
959*)
960 case ${ac_top_builddir}. in
961 .) ac_abs_top_builddir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
963 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
964 esac;;
965esac
966case $ac_abs_builddir in
967.) ac_abs_srcdir=$ac_srcdir;;
968*)
969 case $ac_srcdir in
970 .) ac_abs_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
972 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973 esac;;
974esac
975case $ac_abs_builddir in
976.) ac_abs_top_srcdir=$ac_top_srcdir;;
977*)
978 case $ac_top_srcdir in
979 .) ac_abs_top_srcdir=$ac_abs_builddir;;
980 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
981 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982 esac;;
bec39cab
AC
983esac
984
b4e70030
JB
985 cd $ac_dir
986 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 987 if test -f $ac_srcdir/configure.gnu; then
b4e70030 988 echo
bec39cab
AC
989 $SHELL $ac_srcdir/configure.gnu --help=recursive
990 elif test -f $ac_srcdir/configure; then
b4e70030 991 echo
bec39cab 992 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
993 elif test -f $ac_srcdir/configure.ac ||
994 test -f $ac_srcdir/configure.in; then
995 echo
996 $ac_configure --help
3ace7edb 997 else
bec39cab 998 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
999 fi
1000 cd $ac_popdir
bec39cab
AC
1001 done
1002fi
1003
b4e70030 1004test -n "$ac_init_help" && exit 0
bec39cab
AC
1005if $ac_init_version; then
1006 cat <<\_ACEOF
1007
b4e70030 1008Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1009This configure script is free software; the Free Software Foundation
1010gives unlimited permission to copy, distribute and modify it.
1011_ACEOF
b4e70030 1012 exit 0
bec39cab 1013fi
b4e70030
JB
1014exec 5>config.log
1015cat >&5 <<_ACEOF
bec39cab
AC
1016This file contains any messages produced by compilers while
1017running configure, to aid debugging if configure makes a mistake.
1018
1019It was created by $as_me, which was
b4e70030 1020generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1021
1022 $ $0 $@
1023
1024_ACEOF
1025{
1026cat <<_ASUNAME
1027## --------- ##
1028## Platform. ##
1029## --------- ##
1030
1031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1032uname -m = `(uname -m) 2>/dev/null || echo unknown`
1033uname -r = `(uname -r) 2>/dev/null || echo unknown`
1034uname -s = `(uname -s) 2>/dev/null || echo unknown`
1035uname -v = `(uname -v) 2>/dev/null || echo unknown`
1036
1037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1038/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1039
1040/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1041/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1043hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1044/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1045/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1046/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1047
1048_ASUNAME
1049
1050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1051for as_dir in $PATH
1052do
1053 IFS=$as_save_IFS
1054 test -z "$as_dir" && as_dir=.
1055 echo "PATH: $as_dir"
1056done
1057
1058} >&5
1059
1060cat >&5 <<_ACEOF
1061
1062
1063## ----------- ##
1064## Core tests. ##
1065## ----------- ##
1066
1067_ACEOF
1068
1069
1070# Keep a trace of the command line.
1071# Strip out --no-create and --no-recursion so they do not pile up.
1072# Strip out --silent because we don't want to record it for future runs.
1073# Also quote any args containing shell meta-characters.
1074# Make two passes to allow for proper duplicate-argument suppression.
1075ac_configure_args=
1076ac_configure_args0=
1077ac_configure_args1=
1078ac_sep=
1079ac_must_keep_next=false
1080for ac_pass in 1 2
1081do
1082 for ac_arg
1083 do
1084 case $ac_arg in
1085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 continue ;;
b4e70030 1089 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1090 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1091 esac
1092 case $ac_pass in
1093 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1094 2)
1095 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1096 if test $ac_must_keep_next = true; then
1097 ac_must_keep_next=false # Got value, back to normal.
1098 else
1099 case $ac_arg in
1100 *=* | --config-cache | -C | -disable-* | --disable-* \
1101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1103 | -with-* | --with-* | -without-* | --without-* | --x)
1104 case "$ac_configure_args0 " in
1105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1106 esac
1107 ;;
1108 -* ) ac_must_keep_next=true ;;
1109 esac
1110 fi
1111 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1112 # Get rid of the leading space.
1113 ac_sep=" "
1114 ;;
1115 esac
1116 done
1117done
1118$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1119$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1120
1121# When interrupted or exit'd, cleanup temporary files, and complete
1122# config.log. We remove comments because anyway the quotes in there
1123# would cause problems or look ugly.
b4e70030
JB
1124# WARNING: Be sure not to use single quotes in there, as some shells,
1125# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1126trap 'exit_status=$?
1127 # Save into config.log some information that might help in debugging.
1128 {
1129 echo
1130
1131 cat <<\_ASBOX
1132## ---------------- ##
1133## Cache variables. ##
1134## ---------------- ##
1135_ASBOX
1136 echo
1137 # The following way of writing the cache mishandles newlines in values,
b4e70030 1138{
bec39cab 1139 (set) 2>&1 |
b4e70030
JB
1140 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1141 *ac_space=\ *)
bec39cab 1142 sed -n \
b4e70030
JB
1143 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1145 ;;
bec39cab 1146 *)
b4e70030
JB
1147 sed -n \
1148 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1149 ;;
b4e70030
JB
1150 esac;
1151}
bec39cab
AC
1152 echo
1153
1154 cat <<\_ASBOX
1155## ----------------- ##
1156## Output variables. ##
1157## ----------------- ##
1158_ASBOX
1159 echo
1160 for ac_var in $ac_subst_vars
1161 do
b4e70030
JB
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1164 done | sort
1165 echo
1166
1167 if test -n "$ac_subst_files"; then
1168 cat <<\_ASBOX
b4e70030
JB
1169## ------------- ##
1170## Output files. ##
1171## ------------- ##
bec39cab
AC
1172_ASBOX
1173 echo
1174 for ac_var in $ac_subst_files
1175 do
b4e70030
JB
1176 eval ac_val=$`echo $ac_var`
1177 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1178 done | sort
1179 echo
1180 fi
1181
1182 if test -s confdefs.h; then
1183 cat <<\_ASBOX
1184## ----------- ##
1185## confdefs.h. ##
1186## ----------- ##
1187_ASBOX
1188 echo
b4e70030 1189 sed "/^$/d" confdefs.h | sort
bec39cab 1190 echo
3ace7edb 1191 fi
bec39cab
AC
1192 test "$ac_signal" != 0 &&
1193 echo "$as_me: caught signal $ac_signal"
1194 echo "$as_me: exit $exit_status"
1195 } >&5
b4e70030
JB
1196 rm -f core *.core &&
1197 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1198 exit $exit_status
b4e70030 1199 ' 0
bec39cab
AC
1200for ac_signal in 1 2 13 15; do
1201 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1202done
1203ac_signal=0
1204
1205# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1206rm -rf conftest* confdefs.h
1207# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1208echo >confdefs.h
bec39cab
AC
1209
1210# Predefined preprocessor variables.
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_NAME "$PACKAGE_NAME"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_VERSION "$PACKAGE_VERSION"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_STRING "$PACKAGE_STRING"
1229_ACEOF
1230
1231
1232cat >>confdefs.h <<_ACEOF
1233#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1234_ACEOF
1235
1236
1237# Let the site file select an alternate cache file if it wants to.
1238# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1239if test -z "$CONFIG_SITE"; then
1240 if test "x$prefix" != xNONE; then
1241 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1242 else
1243 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1244 fi
c906108c 1245fi
b4e70030 1246for ac_site_file in $CONFIG_SITE; do
c906108c 1247 if test -r "$ac_site_file"; then
bec39cab
AC
1248 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1249echo "$as_me: loading site script $ac_site_file" >&6;}
1250 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1251 . "$ac_site_file"
1252 fi
1253done
1254
1255if test -r "$cache_file"; then
bec39cab
AC
1256 # Some versions of bash will fail to source /dev/null (special
1257 # files actually), so we avoid doing that.
1258 if test -f "$cache_file"; then
1259 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1260echo "$as_me: loading cache $cache_file" >&6;}
1261 case $cache_file in
1262 [\\/]* | ?:[\\/]* ) . $cache_file;;
1263 *) . ./$cache_file;;
1264 esac
1265 fi
c906108c 1266else
bec39cab
AC
1267 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1268echo "$as_me: creating cache $cache_file" >&6;}
1269 >$cache_file
1270fi
1271
1272# Check that the precious variables saved in the cache have kept the same
1273# value.
1274ac_cache_corrupted=false
b4e70030
JB
1275for ac_var in `(set) 2>&1 |
1276 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1277 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1278 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1279 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1280 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1281 case $ac_old_set,$ac_new_set in
1282 set,)
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1284echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1286 ,set)
1287 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1288echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1289 ac_cache_corrupted=: ;;
1290 ,);;
1291 *)
1292 if test "x$ac_old_val" != "x$ac_new_val"; then
1293 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1294echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1295 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1296echo "$as_me: former value: $ac_old_val" >&2;}
1297 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1298echo "$as_me: current value: $ac_new_val" >&2;}
1299 ac_cache_corrupted=:
1300 fi;;
1301 esac
1302 # Pass precious variables to config.status.
1303 if test "$ac_new_set" = set; then
1304 case $ac_new_val in
b4e70030
JB
1305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1307 *) ac_arg=$ac_var=$ac_new_val ;;
1308 esac
1309 case " $ac_configure_args " in
1310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1311 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1312 esac
1313 fi
1314done
1315if $ac_cache_corrupted; then
1316 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1317echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1318 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1319echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1320 { (exit 1); exit 1; }; }
c906108c
SS
1321fi
1322
b4e70030
JB
1323ac_ext=c
1324ac_cpp='$CPP $CPPFLAGS'
1325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1328
1329
bec39cab
AC
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
bec39cab 1346
b4e70030
JB
1347 ac_config_headers="$ac_config_headers config.h:config.in"
1348
1349echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1350echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1351 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1352if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1353 enableval="$enable_maintainer_mode"
1354 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1355else
1356 USE_MAINTAINER_MODE=no
b4e70030
JB
1357fi;
1358 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1359echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1360
413ccac7
AC
1361
1362if test $USE_MAINTAINER_MODE = yes; then
1363 MAINTAINER_MODE_TRUE=
1364 MAINTAINER_MODE_FALSE='#'
1365else
1366 MAINTAINER_MODE_TRUE='#'
1367 MAINTAINER_MODE_FALSE=
1368fi
85981d60 1369
413ccac7 1370 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1371
c906108c 1372
bec39cab
AC
1373
1374ac_ext=c
1375ac_cpp='$CPP $CPPFLAGS'
1376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1378ac_compiler_gnu=$ac_cv_c_compiler_gnu
1379if test -n "$ac_tool_prefix"; then
1380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1381set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1382echo "$as_me:$LINENO: checking for $ac_word" >&5
1383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1384if test "${ac_cv_prog_CC+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386else
1387 if test -n "$CC"; then
1388 ac_cv_prog_CC="$CC" # Let the user override the test.
1389else
1390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1391for as_dir in $PATH
1392do
1393 IFS=$as_save_IFS
1394 test -z "$as_dir" && as_dir=.
1395 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1399 break 2
1400 fi
1401done
1402done
1403
1404fi
1405fi
1406CC=$ac_cv_prog_CC
1407if test -n "$CC"; then
b4e70030
JB
1408 echo "$as_me:$LINENO: result: $CC" >&5
1409echo "${ECHO_T}$CC" >&6
bec39cab 1410else
b4e70030
JB
1411 echo "$as_me:$LINENO: result: no" >&5
1412echo "${ECHO_T}no" >&6
bec39cab
AC
1413fi
1414
1415fi
1416if test -z "$ac_cv_prog_CC"; then
1417 ac_ct_CC=$CC
1418 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1419set dummy gcc; ac_word=$2
b4e70030
JB
1420echo "$as_me:$LINENO: checking for $ac_word" >&5
1421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1422if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1424else
1425 if test -n "$ac_ct_CC"; then
1426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1427else
1428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429for as_dir in $PATH
1430do
1431 IFS=$as_save_IFS
1432 test -z "$as_dir" && as_dir=.
1433 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1435 ac_cv_prog_ac_ct_CC="gcc"
1436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437 break 2
1438 fi
1439done
1440done
1441
1442fi
1443fi
1444ac_ct_CC=$ac_cv_prog_ac_ct_CC
1445if test -n "$ac_ct_CC"; then
b4e70030
JB
1446 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1447echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1448else
b4e70030
JB
1449 echo "$as_me:$LINENO: result: no" >&5
1450echo "${ECHO_T}no" >&6
bec39cab
AC
1451fi
1452
b4e70030 1453 CC=$ac_ct_CC
bec39cab
AC
1454else
1455 CC="$ac_cv_prog_CC"
1456fi
1457
1458if test -z "$CC"; then
b4e70030
JB
1459 if test -n "$ac_tool_prefix"; then
1460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1461set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1462echo "$as_me:$LINENO: checking for $ac_word" >&5
1463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1464if test "${ac_cv_prog_CC+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1466else
1467 if test -n "$CC"; then
1468 ac_cv_prog_CC="$CC" # Let the user override the test.
1469else
bec39cab
AC
1470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471for as_dir in $PATH
1472do
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1477 ac_cv_prog_CC="${ac_tool_prefix}cc"
1478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1479 break 2
1480 fi
1481done
1482done
1483
c906108c
SS
1484fi
1485fi
bec39cab 1486CC=$ac_cv_prog_CC
c906108c 1487if test -n "$CC"; then
b4e70030
JB
1488 echo "$as_me:$LINENO: result: $CC" >&5
1489echo "${ECHO_T}$CC" >&6
c906108c 1490else
b4e70030
JB
1491 echo "$as_me:$LINENO: result: no" >&5
1492echo "${ECHO_T}no" >&6
c906108c
SS
1493fi
1494
b4e70030
JB
1495fi
1496if test -z "$ac_cv_prog_CC"; then
1497 ac_ct_CC=$CC
1498 # Extract the first word of "cc", so it can be a program name with args.
1499set dummy cc; ac_word=$2
1500echo "$as_me:$LINENO: checking for $ac_word" >&5
1501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1504else
1505 if test -n "$ac_ct_CC"; then
1506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1507else
1508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509for as_dir in $PATH
1510do
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_ac_ct_CC="cc"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 break 2
4e8d927d 1518 fi
b4e70030
JB
1519done
1520done
1521
1522fi
1523fi
1524ac_ct_CC=$ac_cv_prog_ac_ct_CC
1525if test -n "$ac_ct_CC"; then
1526 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1527echo "${ECHO_T}$ac_ct_CC" >&6
1528else
1529 echo "$as_me:$LINENO: result: no" >&5
1530echo "${ECHO_T}no" >&6
1531fi
1532
1533 CC=$ac_ct_CC
1534else
1535 CC="$ac_cv_prog_CC"
1536fi
1537
bec39cab 1538fi
c906108c
SS
1539if test -z "$CC"; then
1540 # Extract the first word of "cc", so it can be a program name with args.
1541set dummy cc; ac_word=$2
b4e70030
JB
1542echo "$as_me:$LINENO: checking for $ac_word" >&5
1543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1544if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1546else
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1549else
c906108c 1550 ac_prog_rejected=no
bec39cab
AC
1551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552for as_dir in $PATH
1553do
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1559 ac_prog_rejected=yes
1560 continue
1561 fi
1562 ac_cv_prog_CC="cc"
1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 break 2
1565 fi
1566done
1567done
1568
c906108c
SS
1569if test $ac_prog_rejected = yes; then
1570 # We found a bogon in the path, so make sure we never use it.
1571 set dummy $ac_cv_prog_CC
1572 shift
bec39cab 1573 if test $# != 0; then
c906108c
SS
1574 # We chose a different compiler from the bogus one.
1575 # However, it has the same basename, so the bogon will be chosen
1576 # first if we set CC to just the basename; use the full file name.
1577 shift
bec39cab 1578 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1579 fi
1580fi
1581fi
1582fi
bec39cab 1583CC=$ac_cv_prog_CC
c906108c 1584if test -n "$CC"; then
b4e70030
JB
1585 echo "$as_me:$LINENO: result: $CC" >&5
1586echo "${ECHO_T}$CC" >&6
c906108c 1587else
b4e70030
JB
1588 echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
c906108c
SS
1590fi
1591
bec39cab
AC
1592fi
1593if test -z "$CC"; then
1594 if test -n "$ac_tool_prefix"; then
b4e70030 1595 for ac_prog in cl
bec39cab
AC
1596 do
1597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1598set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1601if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1603else
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1606else
bec39cab
AC
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616 break 2
1617 fi
1618done
1619done
1620
c906108c
SS
1621fi
1622fi
bec39cab 1623CC=$ac_cv_prog_CC
c906108c 1624if test -n "$CC"; then
b4e70030
JB
1625 echo "$as_me:$LINENO: result: $CC" >&5
1626echo "${ECHO_T}$CC" >&6
c906108c 1627else
b4e70030
JB
1628 echo "$as_me:$LINENO: result: no" >&5
1629echo "${ECHO_T}no" >&6
c906108c 1630fi
bec39cab
AC
1631
1632 test -n "$CC" && break
1633 done
1634fi
1635if test -z "$CC"; then
1636 ac_ct_CC=$CC
b4e70030 1637 for ac_prog in cl
bec39cab
AC
1638do
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640set dummy $ac_prog; ac_word=$2
b4e70030
JB
1641echo "$as_me:$LINENO: checking for $ac_word" >&5
1642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1643if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645else
1646 if test -n "$ac_ct_CC"; then
1647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648else
1649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650for as_dir in $PATH
1651do
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1656 ac_cv_prog_ac_ct_CC="$ac_prog"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
c906108c 1659 fi
bec39cab
AC
1660done
1661done
1662
1663fi
1664fi
1665ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666if test -n "$ac_ct_CC"; then
b4e70030
JB
1667 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1669else
b4e70030
JB
1670 echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
c906108c
SS
1672fi
1673
bec39cab
AC
1674 test -n "$ac_ct_CC" && break
1675done
c906108c 1676
b4e70030 1677 CC=$ac_ct_CC
bec39cab
AC
1678fi
1679
1680fi
1681
1682
1683test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1684See \`config.log' for more details." >&5
1685echo "$as_me: error: no acceptable C compiler found in \$PATH
1686See \`config.log' for more details." >&2;}
1687 { (exit 1); exit 1; }; }
1688
1689# Provide some information about the compiler.
b4e70030
JB
1690echo "$as_me:$LINENO:" \
1691 "checking for C compiler version" >&5
bec39cab 1692ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1693{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1694 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1695 ac_status=$?
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
b4e70030
JB
1698{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1699 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1700 ac_status=$?
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
b4e70030
JB
1703{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1704 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1705 ac_status=$?
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }
1708
1709cat >conftest.$ac_ext <<_ACEOF
1710/* confdefs.h. */
1711_ACEOF
1712cat confdefs.h >>conftest.$ac_ext
1713cat >>conftest.$ac_ext <<_ACEOF
1714/* end confdefs.h. */
1715
1716int
1717main ()
1718{
1719
1720 ;
1721 return 0;
1722}
1723_ACEOF
1724ac_clean_files_save=$ac_clean_files
b4e70030 1725ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1726# Try to create an executable without -o first, disregard a.out.
1727# It will help us diagnose broken compilers, and finding out an intuition
1728# of exeext.
b4e70030
JB
1729echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1730echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1731ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1732if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1733 (eval $ac_link_default) 2>&5
1734 ac_status=$?
1735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1736 (exit $ac_status); }; then
b4e70030
JB
1737 # Find the output, starting from the most likely. This scheme is
1738# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1739# resort.
1740
1741# Be careful to initialize this variable, since it used to be cached.
1742# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1743ac_cv_exeext=
1744# b.out is created by i960 compilers.
1745for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1746do
1747 test -f "$ac_file" || continue
1748 case $ac_file in
b4e70030
JB
1749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1750 ;;
1751 conftest.$ac_ext )
1752 # This is the source file.
1753 ;;
1754 [ab].out )
1755 # We found the default executable, but exeext='' is most
1756 # certainly right.
1757 break;;
1758 *.* )
1759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1760 # FIXME: I believe we export ac_cv_exeext for Libtool,
1761 # but it would be cool to find out if it's true. Does anybody
1762 # maintain Libtool? --akim.
1763 export ac_cv_exeext
1764 break;;
1765 * )
1766 break;;
bec39cab
AC
1767 esac
1768done
1769else
1770 echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1774See \`config.log' for more details." >&5
1775echo "$as_me: error: C compiler cannot create executables
1776See \`config.log' for more details." >&2;}
1777 { (exit 77); exit 77; }; }
1778fi
1779
b4e70030
JB
1780ac_exeext=$ac_cv_exeext
1781echo "$as_me:$LINENO: result: $ac_file" >&5
1782echo "${ECHO_T}$ac_file" >&6
1783
1784# Check the compiler produces executables we can run. If not, either
bec39cab 1785# the compiler is broken, or we cross compile.
b4e70030
JB
1786echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1787echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1788# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1789# If not cross compiling, check that we can run a simple program.
1790if test "$cross_compiling" != yes; then
1791 if { ac_try='./$ac_file'
1792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1793 (eval $ac_try) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; }; then
1797 cross_compiling=no
c906108c 1798 else
bec39cab
AC
1799 if test "$cross_compiling" = maybe; then
1800 cross_compiling=yes
1801 else
1802 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1803If you meant to cross compile, use \`--host'.
1804See \`config.log' for more details." >&5
1805echo "$as_me: error: cannot run C compiled programs.
1806If you meant to cross compile, use \`--host'.
1807See \`config.log' for more details." >&2;}
1808 { (exit 1); exit 1; }; }
1809 fi
c906108c 1810 fi
bec39cab 1811fi
b4e70030
JB
1812echo "$as_me:$LINENO: result: yes" >&5
1813echo "${ECHO_T}yes" >&6
bec39cab 1814
b4e70030
JB
1815rm -f a.out a.exe conftest$ac_cv_exeext b.out
1816ac_clean_files=$ac_clean_files_save
1817# Check the compiler produces executables we can run. If not, either
1818# the compiler is broken, or we cross compile.
1819echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1820echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1821echo "$as_me:$LINENO: result: $cross_compiling" >&5
1822echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1823
b4e70030
JB
1824echo "$as_me:$LINENO: checking for suffix of executables" >&5
1825echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1827 (eval $ac_link) 2>&5
1828 ac_status=$?
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; then
b4e70030
JB
1831 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1832# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1833# work properly (i.e., refer to `conftest.exe'), while it won't with
1834# `rm'.
1835for ac_file in conftest.exe conftest conftest.*; do
1836 test -f "$ac_file" || continue
1837 case $ac_file in
1838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1839 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1840 export ac_cv_exeext
1841 break;;
1842 * ) break;;
1843 esac
1844done
c906108c 1845else
bec39cab
AC
1846 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1847See \`config.log' for more details." >&5
1848echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1849See \`config.log' for more details." >&2;}
1850 { (exit 1); exit 1; }; }
c906108c 1851fi
c906108c 1852
b4e70030
JB
1853rm -f conftest$ac_cv_exeext
1854echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1855echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1856
b4e70030 1857rm -f conftest.$ac_ext
bec39cab
AC
1858EXEEXT=$ac_cv_exeext
1859ac_exeext=$EXEEXT
b4e70030
JB
1860echo "$as_me:$LINENO: checking for suffix of object files" >&5
1861echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1862if test "${ac_cv_objext+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
b4e70030
JB
1865 cat >conftest.$ac_ext <<_ACEOF
1866/* confdefs.h. */
1867_ACEOF
1868cat confdefs.h >>conftest.$ac_ext
1869cat >>conftest.$ac_ext <<_ACEOF
1870/* end confdefs.h. */
1871
1872int
1873main ()
1874{
1875
1876 ;
1877 return 0;
1878}
1879_ACEOF
1880rm -f conftest.o conftest.obj
bec39cab
AC
1881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1882 (eval $ac_compile) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
b4e70030 1886 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1887 case $ac_file in
b4e70030 1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1889 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1890 break;;
1891 esac
1892done
c906108c 1893else
bec39cab
AC
1894 echo "$as_me: failed program was:" >&5
1895sed 's/^/| /' conftest.$ac_ext >&5
1896
1897{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1898See \`config.log' for more details." >&5
1899echo "$as_me: error: cannot compute suffix of object files: cannot compile
1900See \`config.log' for more details." >&2;}
1901 { (exit 1); exit 1; }; }
c906108c
SS
1902fi
1903
b4e70030 1904rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1905fi
b4e70030
JB
1906echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1907echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1908OBJEXT=$ac_cv_objext
1909ac_objext=$OBJEXT
b4e70030
JB
1910echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1911echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1912if test "${ac_cv_c_compiler_gnu+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1914else
bec39cab
AC
1915 cat >conftest.$ac_ext <<_ACEOF
1916/* confdefs.h. */
1917_ACEOF
1918cat confdefs.h >>conftest.$ac_ext
1919cat >>conftest.$ac_ext <<_ACEOF
1920/* end confdefs.h. */
1921
1922int
1923main ()
1924{
1925#ifndef __GNUC__
1926 choke me
1927#endif
1928
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933rm -f conftest.$ac_objext
1934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>conftest.er1
1936 ac_status=$?
1937 grep -v '^ *+' conftest.er1 >conftest.err
1938 rm -f conftest.er1
1939 cat conftest.err >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); } &&
b4e70030
JB
1942 { ac_try='test -z "$ac_c_werror_flag"
1943 || test ! -s conftest.err'
bec39cab
AC
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; } &&
1949 { ac_try='test -s conftest.$ac_objext'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 (eval $ac_try) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1955 ac_compiler_gnu=yes
1956else
1957 echo "$as_me: failed program was:" >&5
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
b4e70030 1960ac_compiler_gnu=no
bec39cab
AC
1961fi
1962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1963ac_cv_c_compiler_gnu=$ac_compiler_gnu
1964
1965fi
b4e70030
JB
1966echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1967echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1968GCC=`test $ac_compiler_gnu = yes && echo yes`
1969ac_test_CFLAGS=${CFLAGS+set}
1970ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1971CFLAGS="-g"
1972echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1973echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1974if test "${ac_cv_prog_cc_g+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
b4e70030 1977 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1978/* confdefs.h. */
1979_ACEOF
1980cat confdefs.h >>conftest.$ac_ext
1981cat >>conftest.$ac_ext <<_ACEOF
1982/* end confdefs.h. */
1983
1984int
1985main ()
1986{
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992rm -f conftest.$ac_objext
1993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1995 ac_status=$?
1996 grep -v '^ *+' conftest.er1 >conftest.err
1997 rm -f conftest.er1
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
b4e70030
JB
2001 { ac_try='test -z "$ac_c_werror_flag"
2002 || test ! -s conftest.err'
bec39cab
AC
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
c906108c
SS
2014 ac_cv_prog_cc_g=yes
2015else
bec39cab
AC
2016 echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2018
b4e70030 2019ac_cv_prog_cc_g=no
4e8d927d 2020fi
bec39cab
AC
2021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022fi
b4e70030
JB
2023echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2024echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2025if test "$ac_test_CFLAGS" = set; then
bec39cab 2026 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2027elif test $ac_cv_prog_cc_g = yes; then
2028 if test "$GCC" = yes; then
2029 CFLAGS="-g -O2"
2030 else
2031 CFLAGS="-g"
2032 fi
2033else
2034 if test "$GCC" = yes; then
2035 CFLAGS="-O2"
2036 else
2037 CFLAGS=
2038 fi
2039fi
b4e70030
JB
2040echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2041echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2042if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2044else
b4e70030 2045 ac_cv_prog_cc_stdc=no
bec39cab
AC
2046ac_save_CC=$CC
2047cat >conftest.$ac_ext <<_ACEOF
2048/* confdefs.h. */
2049_ACEOF
2050cat confdefs.h >>conftest.$ac_ext
2051cat >>conftest.$ac_ext <<_ACEOF
2052/* end confdefs.h. */
c906108c
SS
2053#include <stdarg.h>
2054#include <stdio.h>
2055#include <sys/types.h>
2056#include <sys/stat.h>
2057/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2058struct buf { int x; };
2059FILE * (*rcsopen) (struct buf *, struct stat *, int);
2060static char *e (p, i)
2061 char **p;
2062 int i;
2063{
2064 return p[i];
2065}
2066static char *f (char * (*g) (char **, int), char **p, ...)
2067{
2068 char *s;
2069 va_list v;
2070 va_start (v,p);
2071 s = g (p, va_arg (v,int));
2072 va_end (v);
2073 return s;
2074}
bec39cab
AC
2075
2076/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2077 function prototypes and stuff, but not '\xHH' hex character constants.
2078 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2079 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2080 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2081 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2082 that's true only with -std1. */
bec39cab
AC
2083int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2084
c906108c
SS
2085int test (int i, double x);
2086struct s1 {int (*f) (int a);};
2087struct s2 {int (*f) (double a);};
2088int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2089int argc;
2090char **argv;
bec39cab
AC
2091int
2092main ()
2093{
c906108c 2094return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2095 ;
2096 return 0;
2097}
2098_ACEOF
b4e70030
JB
2099# Don't try gcc -ansi; that turns off useful extensions and
2100# breaks some systems' header files.
2101# AIX -qlanglvl=ansi
2102# Ultrix and OSF/1 -std1
2103# HP-UX 10.20 and later -Ae
2104# HP-UX older versions -Aa -D_HPUX_SOURCE
2105# SVR4 -Xc -D__EXTENSIONS__
2106for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2107do
2108 CC="$ac_save_CC $ac_arg"
2109 rm -f conftest.$ac_objext
2110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>conftest.er1
2112 ac_status=$?
2113 grep -v '^ *+' conftest.er1 >conftest.err
2114 rm -f conftest.er1
2115 cat conftest.err >&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); } &&
b4e70030
JB
2118 { ac_try='test -z "$ac_c_werror_flag"
2119 || test ! -s conftest.err'
bec39cab
AC
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; } &&
2125 { ac_try='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
b4e70030
JB
2131 ac_cv_prog_cc_stdc=$ac_arg
2132break
c906108c 2133else
bec39cab
AC
2134 echo "$as_me: failed program was:" >&5
2135sed 's/^/| /' conftest.$ac_ext >&5
2136
c906108c 2137fi
bec39cab 2138rm -f conftest.err conftest.$ac_objext
c906108c 2139done
b4e70030 2140rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2141CC=$ac_save_CC
c906108c
SS
2142
2143fi
b4e70030
JB
2144
2145case "x$ac_cv_prog_cc_stdc" in
2146 x|xno)
2147 echo "$as_me:$LINENO: result: none needed" >&5
2148echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2149 *)
b4e70030
JB
2150 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2151echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2152 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2153esac
2154
b4e70030
JB
2155# Some people use a C++ compiler to compile C. Since we use `exit',
2156# in C++ we need to declare it. In case someone uses the same compiler
2157# for both compiling C and C++ we need to have the C++ compiler decide
2158# the declaration of exit, since it's the most demanding environment.
2159cat >conftest.$ac_ext <<_ACEOF
2160#ifndef __cplusplus
2161 choke me
2162#endif
2163_ACEOF
2164rm -f conftest.$ac_objext
2165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 for ac_declaration in \
2187 '' \
2188 'extern "C" void std::exit (int) throw (); using std::exit;' \
2189 'extern "C" void std::exit (int); using std::exit;' \
2190 'extern "C" void exit (int) throw ();' \
2191 'extern "C" void exit (int);' \
2192 'void exit (int);'
2193do
2194 cat >conftest.$ac_ext <<_ACEOF
2195/* confdefs.h. */
2196_ACEOF
2197cat confdefs.h >>conftest.$ac_ext
2198cat >>conftest.$ac_ext <<_ACEOF
2199/* end confdefs.h. */
2200$ac_declaration
2201#include <stdlib.h>
2202int
2203main ()
2204{
2205exit (42);
2206 ;
2207 return 0;
2208}
2209_ACEOF
2210rm -f conftest.$ac_objext
2211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212 (eval $ac_compile) 2>conftest.er1
2213 ac_status=$?
2214 grep -v '^ *+' conftest.er1 >conftest.err
2215 rm -f conftest.er1
2216 cat conftest.err >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); } &&
2219 { ac_try='test -z "$ac_c_werror_flag"
2220 || test ! -s conftest.err'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; } &&
2226 { ac_try='test -s conftest.$ac_objext'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 :
2233else
2234 echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237continue
2238fi
2239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240 cat >conftest.$ac_ext <<_ACEOF
2241/* confdefs.h. */
2242_ACEOF
2243cat confdefs.h >>conftest.$ac_ext
2244cat >>conftest.$ac_ext <<_ACEOF
2245/* end confdefs.h. */
2246$ac_declaration
2247int
2248main ()
2249{
2250exit (42);
2251 ;
2252 return 0;
2253}
2254_ACEOF
2255rm -f conftest.$ac_objext
2256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2258 ac_status=$?
2259 grep -v '^ *+' conftest.er1 >conftest.err
2260 rm -f conftest.er1
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 break
2278else
2279 echo "$as_me: failed program was:" >&5
2280sed 's/^/| /' conftest.$ac_ext >&5
2281
2282fi
2283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284done
2285rm -f conftest*
2286if test -n "$ac_declaration"; then
2287 echo '#ifdef __cplusplus' >>confdefs.h
2288 echo $ac_declaration >>confdefs.h
2289 echo '#endif' >>confdefs.h
2290fi
2291
2292else
2293 echo "$as_me: failed program was:" >&5
2294sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2295
b4e70030
JB
2296fi
2297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2298ac_ext=c
2299ac_cpp='$CPP $CPPFLAGS'
2300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2303
60ca704f 2304
bec39cab
AC
2305cat >>confdefs.h <<\_ACEOF
2306#define _GNU_SOURCE 1
2307_ACEOF
c906108c
SS
2308
2309
8bb2c122 2310
bec39cab
AC
2311ac_ext=c
2312ac_cpp='$CPP $CPPFLAGS'
2313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2316echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2317echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2318# On Suns, sometimes $CPP names a directory.
2319if test -n "$CPP" && test -d "$CPP"; then
2320 CPP=
8bb2c122 2321fi
bec39cab
AC
2322if test -z "$CPP"; then
2323 if test "${ac_cv_prog_CPP+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326 # Double quotes because CPP needs to be expanded
2327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2328 do
2329 ac_preproc_ok=false
2330for ac_c_preproc_warn_flag in '' yes
2331do
2332 # Use a header file that comes with gcc, so configuring glibc
2333 # with a fresh cross-compiler works.
2334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335 # <limits.h> exists even on freestanding compilers.
2336 # On the NeXT, cc -E runs the code through the compiler's parser,
2337 # not just through cpp. "Syntax error" is here to catch this case.
2338 cat >conftest.$ac_ext <<_ACEOF
2339/* confdefs.h. */
2340_ACEOF
2341cat confdefs.h >>conftest.$ac_ext
2342cat >>conftest.$ac_ext <<_ACEOF
2343/* end confdefs.h. */
2344#ifdef __STDC__
2345# include <limits.h>
2346#else
2347# include <assert.h>
2348#endif
2349 Syntax error
2350_ACEOF
2351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2353 ac_status=$?
2354 grep -v '^ *+' conftest.er1 >conftest.err
2355 rm -f conftest.er1
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } >/dev/null; then
2359 if test -s conftest.err; then
2360 ac_cpp_err=$ac_c_preproc_warn_flag
2361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2362 else
2363 ac_cpp_err=
2364 fi
8bb2c122 2365else
bec39cab 2366 ac_cpp_err=yes
8bb2c122 2367fi
bec39cab
AC
2368if test -z "$ac_cpp_err"; then
2369 :
8bb2c122 2370else
bec39cab
AC
2371 echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 # Broken: fails on valid input.
2375continue
2376fi
2377rm -f conftest.err conftest.$ac_ext
2378
b4e70030 2379 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2380 # can be detected and how.
2381 cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h. */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h. */
2387#include <ac_nonexistent.h>
2388_ACEOF
2389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } >/dev/null; then
2397 if test -s conftest.err; then
2398 ac_cpp_err=$ac_c_preproc_warn_flag
2399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2400 else
2401 ac_cpp_err=
2402 fi
8bb2c122 2403else
bec39cab 2404 ac_cpp_err=yes
8bb2c122 2405fi
bec39cab
AC
2406if test -z "$ac_cpp_err"; then
2407 # Broken: success on invalid input.
2408continue
8bb2c122 2409else
bec39cab
AC
2410 echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2412
bec39cab
AC
2413 # Passes both tests.
2414ac_preproc_ok=:
2415break
8bb2c122 2416fi
bec39cab 2417rm -f conftest.err conftest.$ac_ext
8bb2c122 2418
bec39cab
AC
2419done
2420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2421rm -f conftest.err conftest.$ac_ext
2422if $ac_preproc_ok; then
2423 break
2424fi
8bb2c122 2425
bec39cab
AC
2426 done
2427 ac_cv_prog_CPP=$CPP
ddc9cd0f 2428
c906108c 2429fi
bec39cab
AC
2430 CPP=$ac_cv_prog_CPP
2431else
2432 ac_cv_prog_CPP=$CPP
c906108c 2433fi
b4e70030
JB
2434echo "$as_me:$LINENO: result: $CPP" >&5
2435echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2436ac_preproc_ok=false
2437for ac_c_preproc_warn_flag in '' yes
2438do
2439 # Use a header file that comes with gcc, so configuring glibc
2440 # with a fresh cross-compiler works.
2441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2442 # <limits.h> exists even on freestanding compilers.
2443 # On the NeXT, cc -E runs the code through the compiler's parser,
2444 # not just through cpp. "Syntax error" is here to catch this case.
2445 cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h. */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h. */
2451#ifdef __STDC__
2452# include <limits.h>
2453#else
2454# include <assert.h>
2455#endif
2456 Syntax error
2457_ACEOF
2458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } >/dev/null; then
2466 if test -s conftest.err; then
2467 ac_cpp_err=$ac_c_preproc_warn_flag
2468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2469 else
2470 ac_cpp_err=
2471 fi
c906108c 2472else
bec39cab 2473 ac_cpp_err=yes
c906108c 2474fi
bec39cab
AC
2475if test -z "$ac_cpp_err"; then
2476 :
c906108c 2477else
bec39cab
AC
2478 echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 # Broken: fails on valid input.
2482continue
2483fi
2484rm -f conftest.err conftest.$ac_ext
2485
b4e70030 2486 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2487 # can be detected and how.
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494#include <ac_nonexistent.h>
2495_ACEOF
2496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2507 else
2508 ac_cpp_err=
2509 fi
c906108c 2510else
bec39cab 2511 ac_cpp_err=yes
c906108c 2512fi
bec39cab
AC
2513if test -z "$ac_cpp_err"; then
2514 # Broken: success on invalid input.
2515continue
c906108c 2516else
bec39cab
AC
2517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2519
bec39cab
AC
2520 # Passes both tests.
2521ac_preproc_ok=:
2522break
c906108c 2523fi
bec39cab 2524rm -f conftest.err conftest.$ac_ext
c906108c 2525
bec39cab
AC
2526done
2527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2528rm -f conftest.err conftest.$ac_ext
2529if $ac_preproc_ok; then
c906108c
SS
2530 :
2531else
bec39cab
AC
2532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2533See \`config.log' for more details." >&5
2534echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2535See \`config.log' for more details." >&2;}
2536 { (exit 1); exit 1; }; }
c906108c 2537fi
c906108c 2538
bec39cab
AC
2539ac_ext=c
2540ac_cpp='$CPP $CPPFLAGS'
2541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544
2545
b4e70030
JB
2546echo "$as_me:$LINENO: checking for egrep" >&5
2547echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2548if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2550else
b4e70030
JB
2551 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2552 then ac_cv_prog_egrep='grep -E'
2553 else ac_cv_prog_egrep='egrep'
bec39cab 2554 fi
4e8d927d 2555fi
b4e70030
JB
2556echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2557echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2558 EGREP=$ac_cv_prog_egrep
c906108c 2559
bec39cab
AC
2560
2561
b4e70030
JB
2562echo "$as_me:$LINENO: checking for AIX" >&5
2563echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2564cat >conftest.$ac_ext <<_ACEOF
2565/* confdefs.h. */
2566_ACEOF
2567cat confdefs.h >>conftest.$ac_ext
2568cat >>conftest.$ac_ext <<_ACEOF
2569/* end confdefs.h. */
2570#ifdef _AIX
2571 yes
2572#endif
2573
2574_ACEOF
c906108c 2575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2576 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2577 echo "$as_me:$LINENO: result: yes" >&5
2578echo "${ECHO_T}yes" >&6
bec39cab
AC
2579cat >>confdefs.h <<\_ACEOF
2580#define _ALL_SOURCE 1
2581_ACEOF
2582
c906108c 2583else
b4e70030
JB
2584 echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6
c906108c
SS
2586fi
2587rm -f conftest*
2588
c906108c 2589
b4e70030
JB
2590echo "$as_me:$LINENO: checking for library containing strerror" >&5
2591echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2592if test "${ac_cv_search_strerror+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2594else
bec39cab 2595 ac_func_search_save_LIBS=$LIBS
b4e70030 2596ac_cv_search_strerror=no
bec39cab
AC
2597cat >conftest.$ac_ext <<_ACEOF
2598/* confdefs.h. */
2599_ACEOF
2600cat confdefs.h >>conftest.$ac_ext
2601cat >>conftest.$ac_ext <<_ACEOF
2602/* end confdefs.h. */
c906108c 2603
b4e70030 2604/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2605#ifdef __cplusplus
2606extern "C"
2607#endif
b4e70030
JB
2608/* We use char because int might match the return type of a gcc2
2609 builtin and then its argument prototype would still apply. */
bec39cab
AC
2610char strerror ();
2611int
2612main ()
2613{
b4e70030 2614strerror ();
bec39cab
AC
2615 ;
2616 return 0;
2617}
2618_ACEOF
b4e70030 2619rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2621 (eval $ac_link) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
b4e70030
JB
2628 { ac_try='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
bec39cab
AC
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest$ac_exeext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
b4e70030 2641 ac_cv_search_strerror="none required"
c906108c 2642else
bec39cab
AC
2643 echo "$as_me: failed program was:" >&5
2644sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2645
2646fi
bec39cab 2647rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2648 conftest$ac_exeext conftest.$ac_ext
2649if test "$ac_cv_search_strerror" = no; then
2650 for ac_lib in cposix; do
2651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2652 cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h. */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h. */
2658
2659/* Override any gcc2 internal prototype to avoid an error. */
2660#ifdef __cplusplus
2661extern "C"
2662#endif
2663/* We use char because int might match the return type of a gcc2
2664 builtin and then its argument prototype would still apply. */
2665char strerror ();
2666int
2667main ()
2668{
2669strerror ();
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674rm -f conftest.$ac_objext conftest$ac_exeext
2675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2676 (eval $ac_link) 2>conftest.er1
2677 ac_status=$?
2678 grep -v '^ *+' conftest.er1 >conftest.err
2679 rm -f conftest.er1
2680 cat conftest.err >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } &&
2683 { ac_try='test -z "$ac_c_werror_flag"
2684 || test ! -s conftest.err'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; } &&
2690 { ac_try='test -s conftest$ac_exeext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 ac_cv_search_strerror="-l$ac_lib"
2697break
4e8d927d 2698else
b4e70030
JB
2699 echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702fi
2703rm -f conftest.err conftest.$ac_objext \
2704 conftest$ac_exeext conftest.$ac_ext
2705 done
c906108c 2706fi
bec39cab 2707LIBS=$ac_func_search_save_LIBS
c906108c 2708fi
b4e70030
JB
2709echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2710echo "${ECHO_T}$ac_cv_search_strerror" >&6
2711if test "$ac_cv_search_strerror" != no; then
2712 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2713
c906108c
SS
2714fi
2715
c906108c 2716
c906108c 2717
bec39cab 2718
b4e70030
JB
2719echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2720echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2721if test "${am_cv_prog_cc_stdc+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2723else
bec39cab
AC
2724 am_cv_prog_cc_stdc=no
2725ac_save_CC="$CC"
2726# Don't try gcc -ansi; that turns off useful extensions and
2727# breaks some systems' header files.
2728# AIX -qlanglvl=ansi
2729# Ultrix and OSF/1 -std1
2730# HP-UX 10.20 and later -Ae
2731# HP-UX older versions -Aa -D_HPUX_SOURCE
2732# SVR4 -Xc -D__EXTENSIONS__
2733for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734do
2735 CC="$ac_save_CC $ac_arg"
2736 cat >conftest.$ac_ext <<_ACEOF
2737/* confdefs.h. */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h. */
2742#include <stdarg.h>
2743#include <stdio.h>
2744#include <sys/types.h>
2745#include <sys/stat.h>
2746/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2747struct buf { int x; };
2748FILE * (*rcsopen) (struct buf *, struct stat *, int);
2749static char *e (p, i)
2750 char **p;
2751 int i;
2752{
2753 return p[i];
2754}
2755static char *f (char * (*g) (char **, int), char **p, ...)
2756{
2757 char *s;
2758 va_list v;
2759 va_start (v,p);
2760 s = g (p, va_arg (v,int));
2761 va_end (v);
2762 return s;
2763}
2764int test (int i, double x);
2765struct s1 {int (*f) (int a);};
2766struct s2 {int (*f) (double a);};
2767int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2768int argc;
2769char **argv;
c906108c 2770
bec39cab
AC
2771int
2772main ()
2773{
c906108c 2774
bec39cab 2775return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2776
bec39cab
AC
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781rm -f conftest.$ac_objext
2782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
b4e70030
JB
2790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
bec39cab
AC
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2804else
bec39cab
AC
2805 echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2807
2808fi
bec39cab
AC
2809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810done
2811CC="$ac_save_CC"
c906108c
SS
2812
2813fi
2814
bec39cab 2815if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2816 echo "$as_me:$LINENO: result: none needed" >&5
2817echo "${ECHO_T}none needed" >&6
c906108c 2818else
b4e70030
JB
2819 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2820echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2821fi
bec39cab
AC
2822case "x$am_cv_prog_cc_stdc" in
2823 x|xno) ;;
2824 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2825esac
c906108c 2826
c906108c 2827
bec39cab
AC
2828ac_aux_dir=
2829for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2830 if 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/install.sh; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/install.sh -c"
2837 break
2838 elif test -f $ac_dir/shtool; then
2839 ac_aux_dir=$ac_dir
2840 ac_install_sh="$ac_aux_dir/shtool install -c"
2841 break
2842 fi
2843done
2844if test -z "$ac_aux_dir"; then
2845 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2846echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2847 { (exit 1); exit 1; }; }
c906108c 2848fi
bec39cab
AC
2849ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2850ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2851ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2852
bec39cab
AC
2853# Make sure we can run config.sub.
2854$ac_config_sub sun4 >/dev/null 2>&1 ||
2855 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2856echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2857 { (exit 1); exit 1; }; }
2858
b4e70030
JB
2859echo "$as_me:$LINENO: checking build system type" >&5
2860echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2861if test "${ac_cv_build+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863else
b4e70030
JB
2864 ac_cv_build_alias=$build_alias
2865test -z "$ac_cv_build_alias" &&
2866 ac_cv_build_alias=`$ac_config_guess`
2867test -z "$ac_cv_build_alias" &&
bec39cab
AC
2868 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2869echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2870 { (exit 1); exit 1; }; }
b4e70030
JB
2871ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2872 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2873echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2874 { (exit 1); exit 1; }; }
2875
2876fi
b4e70030
JB
2877echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2878echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2879build=$ac_cv_build
b4e70030
JB
2880build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2881build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2882build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2883
2884
b4e70030
JB
2885echo "$as_me:$LINENO: checking host system type" >&5
2886echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2887if test "${ac_cv_host+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
b4e70030
JB
2890 ac_cv_host_alias=$host_alias
2891test -z "$ac_cv_host_alias" &&
2892 ac_cv_host_alias=$ac_cv_build_alias
2893ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2894 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2895echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2896 { (exit 1); exit 1; }; }
2897
2898fi
b4e70030
JB
2899echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2900echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2901host=$ac_cv_host
b4e70030
JB
2902host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2903host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2904host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2905
2906
b4e70030
JB
2907echo "$as_me:$LINENO: checking target system type" >&5
2908echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2909if test "${ac_cv_target+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
b4e70030
JB
2912 ac_cv_target_alias=$target_alias
2913test "x$ac_cv_target_alias" = "x" &&
2914 ac_cv_target_alias=$ac_cv_host_alias
2915ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2916 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2917echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2918 { (exit 1); exit 1; }; }
2919
2920fi
b4e70030
JB
2921echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2922echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2923target=$ac_cv_target
b4e70030
JB
2924target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2925target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2926target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2927
c906108c 2928
bec39cab
AC
2929# The aliases save the names the user supplied, while $host etc.
2930# will get canonicalized.
2931test -n "$target_alias" &&
2932 test "$program_prefix$program_suffix$program_transform_name" = \
2933 NONENONEs,x,x, &&
2934 program_prefix=${target_alias}-
c906108c 2935
c906108c 2936
bec39cab
AC
2937CONFIG_OBS=
2938CONFIG_DEPS=
2939CONFIG_SRCS=
2940ENABLE_CFLAGS=
c906108c 2941
bec39cab
AC
2942CONFIG_ALL=
2943CONFIG_CLEAN=
2944CONFIG_INSTALL=
2945CONFIG_UNINSTALL=
2946
20e95c23
DJ
2947# If we haven't got the data from the intl directory,
2948# assume NLS is disabled.
2949USE_NLS=no
2950LIBINTL=
2951LIBINTL_DEP=
2952INCINTL=
2953XGETTEXT=
2954GMSGFMT=
2955POSUB=
3841debe
DJ
2956
2957if test -f ../intl/config.intl; then
2958 . ../intl/config.intl
20e95c23
DJ
2959fi
2960echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2961echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2962if test x"$USE_NLS" != xyes; then
b4e70030
JB
2963 echo "$as_me:$LINENO: result: no" >&5
2964echo "${ECHO_T}no" >&6
c906108c 2965else
20e95c23
DJ
2966 echo "$as_me:$LINENO: result: yes" >&5
2967echo "${ECHO_T}yes" >&6
c906108c 2968
20e95c23
DJ
2969cat >>confdefs.h <<\_ACEOF
2970#define ENABLE_NLS 1
bec39cab 2971_ACEOF
c906108c 2972
c906108c 2973
20e95c23
DJ
2974 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2975echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2976 # Look for .po and .gmo files in the source directory.
2977 CATALOGS=
2978 XLINGUAS=
2979 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2980 # If there aren't any .gmo files the shell will give us the
2981 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2982 # weeded out.
2983 case "$cat" in *\**)
2984 continue;;
2985 esac
2986 # The quadruple backslash is collapsed to a double backslash
2987 # by the backticks, then collapsed again by the double quotes,
2988 # leaving us with one backslash in the sed expression (right
2989 # before the dot that mustn't act as a wildcard).
2990 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2991 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2992 # The user is allowed to set LINGUAS to a list of languages to
2993 # install catalogs for. If it's empty that means "all of them."
2994 if test "x$LINGUAS" = x; then
2995 CATALOGS="$CATALOGS $cat"
2996 XLINGUAS="$XLINGUAS $lang"
2997 else
2998 case "$LINGUAS" in *$lang*)
2999 CATALOGS="$CATALOGS $cat"
3000 XLINGUAS="$XLINGUAS $lang"
3001 ;;
3002 esac
3003 fi
3004 done
3005 LINGUAS="$XLINGUAS"
3006 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3007echo "${ECHO_T}$LINGUAS" >&6
c906108c 3008
c906108c 3009
20e95c23 3010 DATADIRNAME=share
c906108c 3011
20e95c23 3012 INSTOBJEXT=.mo
c906108c 3013
20e95c23
DJ
3014 GENCAT=gencat
3015
3016 CATOBJEXT=.gmo
3017
3018fi
3019
3020localedir='${datadir}/locale'
c906108c 3021
bec39cab 3022
20e95c23 3023if test x"$USE_NLS" = xyes; then
bec39cab
AC
3024 CONFIG_ALL="$CONFIG_ALL all-po"
3025 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3026 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3027 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3028fi
3029
3030PACKAGE=gdb
3031
3032cat >>confdefs.h <<_ACEOF
3033#define PACKAGE "$PACKAGE"
3034_ACEOF
3035
3036
3037
3038debugdir=${libdir}/debug
3039
3040
b4e70030 3041# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 3042if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
3043 withval="$with_separate_debug_dir"
3044 debugdir="${withval}"
3045fi;
bec39cab
AC
3046
3047
3048 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3050 ac_define_dir=`eval echo $debugdir`
3051 ac_define_dir=`eval echo $ac_define_dir`
3052
3053cat >>confdefs.h <<_ACEOF
3054#define DEBUGDIR "$ac_define_dir"
3055_ACEOF
3056
3057
3058#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3059
aa28a74e
DJ
3060if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3061 if test "x$prefix" = xNONE; then
3062 test_prefix=/usr/local
3063 else
3064 test_prefix=$prefix
3065 fi
3066else
3067 test_prefix=$exec_prefix
3068fi
3069case ${debugdir} in
3070"${test_prefix}"|"${test_prefix}/"*|\
3071'${exec_prefix}'|'${exec_prefix}/'*)
3072
3073cat >>confdefs.h <<\_ACEOF
3074#define DEBUGDIR_RELOCATABLE 1
3075_ACEOF
3076
3077 ;;
3078esac
3079
b4e70030
JB
3080
3081
bec39cab
AC
3082subdirs="$subdirs doc testsuite"
3083
3084
d0c678e6
UW
3085# Check whether to support alternative target configurations
3086# Check whether --enable-targets or --disable-targets was given.
3087if test "${enable_targets+set}" = set; then
3088 enableval="$enable_targets"
3089 case "${enableval}" in
3090 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3091echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3092 { (exit 1); exit 1; }; }
3093 ;;
3094 no) enable_targets= ;;
3095 *) enable_targets=$enableval ;;
3096esac
3097fi;
3098
c0993dbe
UW
3099# Check whether to enable 64-bit support on 32-bit hosts
3100# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3101if test "${enable_64_bit_bfd+set}" = set; then
3102 enableval="$enable_64_bit_bfd"
3103 case "${enableval}" in
3104 yes) want64=true ;;
3105 no) want64=false ;;
3106 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3107echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3108 { (exit 1); exit 1; }; } ;;
3109esac
3110else
3111 want64=false
3112fi;
121ce6e5
DJ
3113# Provide defaults for some variables set by the per-host and per-target
3114# configuration.
3115gdb_host_obs=posix-hdep.o
3116
771b4502
UW
3117if test "${target}" = "${host}"; then
3118 gdb_native=yes
3119else
3120 gdb_native=no
3121fi
3122
bec39cab
AC
3123. $srcdir/configure.host
3124
d0c678e6
UW
3125# Accumulate some settings from configure.tgt over all enabled targets
3126
3127TARGET_OBS=
3128all_targets=
3129
3130for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
3131do
3132 if test "$targ_alias" = "all"; then
3133 all_targets=true
3134 else
3135 # Canonicalize the secondary target names.
3136 result=`$ac_config_sub $targ_alias 2>/dev/null`
3137 if test -n "$result"; then
3138 targ=$result
3139 else
3140 targ=$targ_alias
3141 fi
3142
3143 . ${srcdir}/configure.tgt
3144
3145 # Target-specific object files
3146 for i in ${gdb_target_obs}; do
3147 case " $TARGET_OBS " in
3148 *" ${i} "*) ;;
3149 *)
3150 TARGET_OBS="$TARGET_OBS ${i}"
3151 ;;
3152 esac
3153 done
c0993dbe
UW
3154
3155 # Check whether this target needs 64-bit CORE_ADDR
3156 if test x${want64} = xfalse; then
3157 . ${srcdir}/../bfd/config.bfd
3158 fi
d0c678e6
UW
3159 fi
3160done
3161
3162if test x${all_targets} = xtrue; then
bec39cab 3163
c0993dbe
UW
3164 # We want all 64-bit targets if we either:
3165 # - run on a 64-bit host or
3166 # - already require 64-bit support for some other target or
3167 # - the --enable-64-bit-bfd option was supplied
3168 # Otherwise we only support all 32-bit targets.
3169 #
3170 # NOTE: This test must be in sync with the corresponding
3171 # tests in BFD!
3172
3173 if test x${want64} = xfalse; then
3174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20e95c23
DJ
3175echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3176if test "${ac_cv_header_stdc+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178else
3179 cat >conftest.$ac_ext <<_ACEOF
3180/* confdefs.h. */
3181_ACEOF
3182cat confdefs.h >>conftest.$ac_ext
3183cat >>conftest.$ac_ext <<_ACEOF
3184/* end confdefs.h. */
3185#include <stdlib.h>
3186#include <stdarg.h>
3187#include <string.h>
3188#include <float.h>
3189
3190int
3191main ()
3192{
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
3199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_header_stdc=yes
3221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225ac_cv_header_stdc=no
3226fi
3227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228
3229if test $ac_cv_header_stdc = yes; then
3230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3231 cat >conftest.$ac_ext <<_ACEOF
3232/* confdefs.h. */
3233_ACEOF
3234cat confdefs.h >>conftest.$ac_ext
3235cat >>conftest.$ac_ext <<_ACEOF
3236/* end confdefs.h. */
3237#include <string.h>
3238
3239_ACEOF
3240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3241 $EGREP "memchr" >/dev/null 2>&1; then
3242 :
3243else
3244 ac_cv_header_stdc=no
3245fi
3246rm -f conftest*
3247
3248fi
3249
3250if test $ac_cv_header_stdc = yes; then
3251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3252 cat >conftest.$ac_ext <<_ACEOF
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258#include <stdlib.h>
3259
3260_ACEOF
3261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 $EGREP "free" >/dev/null 2>&1; then
3263 :
3264else
3265 ac_cv_header_stdc=no
3266fi
3267rm -f conftest*
3268
3269fi
3270
3271if test $ac_cv_header_stdc = yes; then
3272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3273 if test "$cross_compiling" = yes; then
3274 :
3275else
3276 cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <ctype.h>
3283#if ((' ' & 0x0FF) == 0x020)
3284# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3285# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3286#else
3287# define ISLOWER(c) \
3288 (('a' <= (c) && (c) <= 'i') \
3289 || ('j' <= (c) && (c) <= 'r') \
3290 || ('s' <= (c) && (c) <= 'z'))
3291# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3292#endif
3293
3294#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3295int
3296main ()
3297{
3298 int i;
3299 for (i = 0; i < 256; i++)
3300 if (XOR (islower (i), ISLOWER (i))
3301 || toupper (i) != TOUPPER (i))
3302 exit(2);
3303 exit (0);
3304}
3305_ACEOF
3306rm -f conftest$ac_exeext
3307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3308 (eval $ac_link) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 (eval $ac_try) 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 :
3318else
3319 echo "$as_me: program exited with status $ac_status" >&5
3320echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323( exit $ac_status )
3324ac_cv_header_stdc=no
3325fi
3326rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3327fi
3328fi
3329fi
3330echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3331echo "${ECHO_T}$ac_cv_header_stdc" >&6
3332if test $ac_cv_header_stdc = yes; then
3333
3334cat >>confdefs.h <<\_ACEOF
3335#define STDC_HEADERS 1
3336_ACEOF
3337
3338fi
3339
3340# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3351 inttypes.h stdint.h unistd.h
3352do
3353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3354echo "$as_me:$LINENO: checking for $ac_header" >&5
3355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3356if eval "test \"\${$as_ac_Header+set}\" = set"; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359 cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h. */
3365$ac_includes_default
3366
3367#include <$ac_header>
3368_ACEOF
3369rm -f conftest.$ac_objext
3370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371 (eval $ac_compile) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag"
3379 || test ! -s conftest.err'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 eval "$as_ac_Header=yes"
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396eval "$as_ac_Header=no"
3397fi
3398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399fi
3400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3402if test `eval echo '${'$as_ac_Header'}'` = yes; then
3403 cat >>confdefs.h <<_ACEOF
3404#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3405_ACEOF
3406
3407fi
3408
3409done
3410
3411
c0993dbe
UW
3412echo "$as_me:$LINENO: checking for long" >&5
3413echo $ECHO_N "checking for long... $ECHO_C" >&6
3414if test "${ac_cv_type_long+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417 cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423$ac_includes_default
3424int
3425main ()
3426{
3427if ((long *) 0)
3428 return 0;
3429if (sizeof (long))
3430 return 0;
3431 ;
3432 return 0;
3433}
3434_ACEOF
3435rm -f conftest.$ac_objext
3436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -z "$ac_c_werror_flag"
3445 || test ! -s conftest.err'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 ac_cv_type_long=yes
3458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462ac_cv_type_long=no
3463fi
3464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3465fi
3466echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3467echo "${ECHO_T}$ac_cv_type_long" >&6
3468
3469echo "$as_me:$LINENO: checking size of long" >&5
3470echo $ECHO_N "checking size of long... $ECHO_C" >&6
3471if test "${ac_cv_sizeof_long+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473else
3474 if test "$ac_cv_type_long" = yes; then
3475 # The cast to unsigned long works around a bug in the HP C Compiler
3476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3478 # This bug is HP SR number 8606223364.
3479 if test "$cross_compiling" = yes; then
3480 # Depending upon the size, compute the lo and hi bounds.
3481cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h. */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h. */
3487$ac_includes_default
3488int
3489main ()
3490{
3491static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3492test_array [0] = 0
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext
3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_lo=0 ac_mid=0
3521 while :; do
3522 cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h. */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h. */
3528$ac_includes_default
3529int
3530main ()
3531{
3532static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3533test_array [0] = 0
3534
3535 ;
3536 return 0;
3537}
3538_ACEOF
3539rm -f conftest.$ac_objext
3540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_hi=$ac_mid; break
3562else
3563 echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566ac_lo=`expr $ac_mid + 1`
3567 if test $ac_lo -le $ac_mid; then
3568 ac_lo= ac_hi=
3569 break
3570 fi
3571 ac_mid=`expr 2 '*' $ac_mid + 1`
3572fi
3573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574 done
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585$ac_includes_default
3586int
3587main ()
3588{
3589static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3590test_array [0] = 0
3591
3592 ;
3593 return 0;
3594}
3595_ACEOF
3596rm -f conftest.$ac_objext
3597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_hi=-1 ac_mid=-1
3619 while :; do
3620 cat >conftest.$ac_ext <<_ACEOF
3621/* confdefs.h. */
3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h. */
3626$ac_includes_default
3627int
3628main ()
3629{
3630static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3631test_array [0] = 0
3632
3633 ;
3634 return 0;
3635}
3636_ACEOF
3637rm -f conftest.$ac_objext
3638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -z "$ac_c_werror_flag"
3647 || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 ac_lo=$ac_mid; break
3660else
3661 echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664ac_hi=`expr '(' $ac_mid ')' - 1`
3665 if test $ac_mid -le $ac_hi; then
3666 ac_lo= ac_hi=
3667 break
3668 fi
3669 ac_mid=`expr 2 '*' $ac_mid`
3670fi
3671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3672 done
3673else
3674 echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677ac_lo= ac_hi=
3678fi
3679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680fi
3681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682# Binary search between lo and hi bounds.
3683while test "x$ac_lo" != "x$ac_hi"; do
3684 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3685 cat >conftest.$ac_ext <<_ACEOF
3686/* confdefs.h. */
3687_ACEOF
3688cat confdefs.h >>conftest.$ac_ext
3689cat >>conftest.$ac_ext <<_ACEOF
3690/* end confdefs.h. */
3691$ac_includes_default
3692int
3693main ()
3694{
3695static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3696test_array [0] = 0
3697
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702rm -f conftest.$ac_objext
3703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -z "$ac_c_werror_flag"
3712 || test ! -s conftest.err'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_hi=$ac_mid
3725else
3726 echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729ac_lo=`expr '(' $ac_mid ')' + 1`
3730fi
3731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3732done
3733case $ac_lo in
3734?*) ac_cv_sizeof_long=$ac_lo;;
3735'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3736See \`config.log' for more details." >&5
3737echo "$as_me: error: cannot compute sizeof (long), 77
3738See \`config.log' for more details." >&2;}
3739 { (exit 1); exit 1; }; } ;;
3740esac
3741else
3742 if test "$cross_compiling" = yes; then
3743 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3744See \`config.log' for more details." >&5
3745echo "$as_me: error: cannot run test program while cross compiling
3746See \`config.log' for more details." >&2;}
3747 { (exit 1); exit 1; }; }
3748else
3749 cat >conftest.$ac_ext <<_ACEOF
3750/* confdefs.h. */
3751_ACEOF
3752cat confdefs.h >>conftest.$ac_ext
3753cat >>conftest.$ac_ext <<_ACEOF
3754/* end confdefs.h. */
3755$ac_includes_default
3756long longval () { return (long) (sizeof (long)); }
3757unsigned long ulongval () { return (long) (sizeof (long)); }
3758#include <stdio.h>
3759#include <stdlib.h>
3760int
3761main ()
3762{
3763
3764 FILE *f = fopen ("conftest.val", "w");
3765 if (! f)
3766 exit (1);
3767 if (((long) (sizeof (long))) < 0)
3768 {
3769 long i = longval ();
3770 if (i != ((long) (sizeof (long))))
3771 exit (1);
3772 fprintf (f, "%ld\n", i);
3773 }
3774 else
3775 {
3776 unsigned long i = ulongval ();
3777 if (i != ((long) (sizeof (long))))
3778 exit (1);
3779 fprintf (f, "%lu\n", i);
3780 }
3781 exit (ferror (f) || fclose (f) != 0);
3782
3783 ;
3784 return 0;
3785}
3786_ACEOF
3787rm -f conftest$ac_exeext
3788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 ac_cv_sizeof_long=`cat conftest.val`
3799else
3800 echo "$as_me: program exited with status $ac_status" >&5
3801echo "$as_me: failed program was:" >&5
3802sed 's/^/| /' conftest.$ac_ext >&5
3803
3804( exit $ac_status )
3805{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3806See \`config.log' for more details." >&5
3807echo "$as_me: error: cannot compute sizeof (long), 77
3808See \`config.log' for more details." >&2;}
3809 { (exit 1); exit 1; }; }
3810fi
3811rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3812fi
3813fi
3814rm -f conftest.val
3815else
3816 ac_cv_sizeof_long=0
3817fi
3818fi
3819echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3820echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3821cat >>confdefs.h <<_ACEOF
3822#define SIZEOF_LONG $ac_cv_sizeof_long
3823_ACEOF
3824
3825
3826 if test "x${ac_cv_sizeof_long}" = "x8"; then
3827 want64=true
3828 fi
3829 fi
3830 if test x${want64} = xtrue; then
3831 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
3832 else
3833 TARGET_OBS='$(ALL_TARGET_OBS)'
3834 fi
3835fi
3836
3837
3838
3839# For other settings, only the main target counts.
3840gdb_sim=
3841gdb_osabi=
3842build_gdbserver=
3843targ=$target; . ${srcdir}/configure.tgt
3844
3845# Fetch the default architecture and default target vector from BFD.
3846targ=$target; . $srcdir/../bfd/config.bfd
3847
3848# We only want the first architecture, so strip off the others if
3849# there is more than one.
3850targ_archs=`echo $targ_archs | sed 's/ .*//'`
3851
3852if test "x$targ_archs" != x; then
3853
3854cat >>confdefs.h <<_ACEOF
3855#define DEFAULT_BFD_ARCH $targ_archs
3856_ACEOF
3857
3858fi
3859if test "x$targ_defvec" != x; then
3860
3861cat >>confdefs.h <<_ACEOF
3862#define DEFAULT_BFD_VEC $targ_defvec
3863_ACEOF
3864
3865fi
3866
3867test "$program_prefix" != NONE &&
3868 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3869# Use a double $ so make ignores it.
3870test "$program_suffix" != NONE &&
3871 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3872# Double any \ or $. echo might interpret backslashes.
3873# By default was `s,x,x', remove it if useless.
3874cat <<\_ACEOF >conftest.sed
3875s/[\\$]/&&/g;s/;s,x,x,$//
3876_ACEOF
3877program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3878rm conftest.sed
3879
3880
3881# The CLI cannot be disabled yet, but may be in the future.
3882
3883# Enable CLI.
3884# Check whether --enable-gdbcli or --disable-gdbcli was given.
3885if test "${enable_gdbcli+set}" = set; then
3886 enableval="$enable_gdbcli"
3887 case $enableval in
3888 yes)
3889 ;;
3890 no)
3891 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3892echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3893 { (exit 1); exit 1; }; } ;;
3894 *)
3895 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3896echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3897 { (exit 1); exit 1; }; } ;;
3898 esac
3899else
3900 enable_gdbcli=yes
3901fi;
3902if test x"$enable_gdbcli" = xyes; then
3903 if test -d $srcdir/cli; then
3904 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3905 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3906 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3907 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3908 fi
3909fi
3910
3911# Enable MI.
3912# Check whether --enable-gdbmi or --disable-gdbmi was given.
3913if test "${enable_gdbmi+set}" = set; then
3914 enableval="$enable_gdbmi"
3915 case $enableval in
3916 yes | no)
3917 ;;
3918 *)
3919 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3920echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3921 { (exit 1); exit 1; }; } ;;
3922 esac
3923else
3924 enable_gdbmi=yes
3925fi;
3926if test x"$enable_gdbmi" = xyes; then
3927 if test -d $srcdir/mi; then
3928 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3929 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3930 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3931 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3932 fi
3933fi
3934
3935# Enable TUI.
3936# Check whether --enable-tui or --disable-tui was given.
3937if test "${enable_tui+set}" = set; then
3938 enableval="$enable_tui"
3939 case $enableval in
3940 yes | no)
3941 ;;
3942 *)
3943 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3944echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3945 { (exit 1); exit 1; }; } ;;
3946 esac
3947else
3948 enable_tui=yes
3949fi;
3950
3951# Enable gdbtk.
3952# Check whether --enable-gdbtk or --disable-gdbtk was given.
3953if test "${enable_gdbtk+set}" = set; then
3954 enableval="$enable_gdbtk"
3955 case $enableval in
3956 yes | no)
3957 ;;
3958 *)
3959 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3960echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3961 { (exit 1); exit 1; }; } ;;
3962 esac
3963else
3964 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3965 enable_gdbtk=yes
3966 else
3967 enable_gdbtk=no
3968 fi
3969fi;
3970# We unconditionally disable gdbtk tests on selected platforms.
3971case $host_os in
3972 go32* | windows*)
3973 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3974echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3975 enable_gdbtk=no ;;
3976esac
3977
3978# Libunwind support.
bec39cab 3979
b4e70030 3980# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3981if test "${with_libunwind+set}" = set; then
b4e70030
JB
3982 withval="$with_libunwind"
3983 case "${withval}" in
bec39cab
AC
3984 yes) enable_libunwind=yes ;;
3985 no) enable_libunwind=no ;;
3986 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3987echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3988 { (exit 1); exit 1; }; } ;;
3989esac
3990else
3991
3992
3993for ac_header in libunwind.h
3994do
3995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3996if eval "test \"\${$as_ac_Header+set}\" = set"; then
3997 echo "$as_me:$LINENO: checking for $ac_header" >&5
3998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3999if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001fi
b4e70030
JB
4002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4004else
4005 # Is the header compilable?
b4e70030
JB
4006echo "$as_me:$LINENO: checking $ac_header usability" >&5
4007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
4008cat >conftest.$ac_ext <<_ACEOF
4009/* confdefs.h. */
4010_ACEOF
4011cat confdefs.h >>conftest.$ac_ext
4012cat >>conftest.$ac_ext <<_ACEOF
4013/* end confdefs.h. */
4014$ac_includes_default
4015#include <$ac_header>
4016_ACEOF
4017rm -f conftest.$ac_objext
4018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
b4e70030
JB
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
bec39cab
AC
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 ac_header_compiler=yes
4040else
4041 echo "$as_me: failed program was:" >&5
4042sed 's/^/| /' conftest.$ac_ext >&5
4043
b4e70030 4044ac_header_compiler=no
bec39cab
AC
4045fi
4046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4048echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4049
4050# Is the header present?
b4e70030
JB
4051echo "$as_me:$LINENO: checking $ac_header presence" >&5
4052echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4053cat >conftest.$ac_ext <<_ACEOF
4054/* confdefs.h. */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h. */
4059#include <$ac_header>
4060_ACEOF
4061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } >/dev/null; then
4069 if test -s conftest.err; then
4070 ac_cpp_err=$ac_c_preproc_warn_flag
4071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4072 else
4073 ac_cpp_err=
4074 fi
4075else
4076 ac_cpp_err=yes
4077fi
4078if test -z "$ac_cpp_err"; then
4079 ac_header_preproc=yes
4080else
4081 echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 ac_header_preproc=no
4085fi
4086rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4087echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4088echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4089
4090# So? What about this header?
4091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4092 yes:no: )
4093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4097 ac_header_preproc=yes
4098 ;;
4099 no:yes:* )
4100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4103echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4107echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4112 (
4113 cat <<\_ASBOX
4114## ------------------------------------------ ##
4115## Report this to the AC_PACKAGE_NAME lists. ##
4116## ------------------------------------------ ##
4117_ASBOX
4118 ) |
4119 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4120 ;;
4121esac
b4e70030
JB
4122echo "$as_me:$LINENO: checking for $ac_header" >&5
4123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4124if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127 eval "$as_ac_Header=\$ac_header_preproc"
4128fi
b4e70030
JB
4129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4131
4132fi
4133if test `eval echo '${'$as_ac_Header'}'` = yes; then
4134 cat >>confdefs.h <<_ACEOF
4135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4136_ACEOF
4137
4138fi
4139
4140done
4141
4142
4143for ac_header in libunwind-ia64.h
4144do
4145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
4146if eval "test \"\${$as_ac_Header+set}\" = set"; then
4147 echo "$as_me:$LINENO: checking for $ac_header" >&5
4148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4149if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151fi
b4e70030
JB
4152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4154else
4155 # Is the header compilable?
b4e70030
JB
4156echo "$as_me:$LINENO: checking $ac_header usability" >&5
4157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
4158cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164$ac_includes_default
4165#include <$ac_header>
4166_ACEOF
4167rm -f conftest.$ac_objext
4168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
b4e70030
JB
4176 { ac_try='test -z "$ac_c_werror_flag"
4177 || test ! -s conftest.err'
bec39cab
AC
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 ac_header_compiler=yes
4190else
4191 echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
b4e70030 4194ac_header_compiler=no
bec39cab
AC
4195fi
4196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4198echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4199
4200# Is the header present?
b4e70030
JB
4201echo "$as_me:$LINENO: checking $ac_header presence" >&5
4202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4203cat >conftest.$ac_ext <<_ACEOF
4204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
4209#include <$ac_header>
4210_ACEOF
4211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null; then
4219 if test -s conftest.err; then
4220 ac_cpp_err=$ac_c_preproc_warn_flag
4221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4222 else
4223 ac_cpp_err=
4224 fi
4225else
4226 ac_cpp_err=yes
4227fi
4228if test -z "$ac_cpp_err"; then
4229 ac_header_preproc=yes
4230else
4231 echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 ac_header_preproc=no
4235fi
4236rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4238echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4239
4240# So? What about this header?
4241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4242 yes:no: )
4243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4247 ac_header_preproc=yes
4248 ;;
4249 no:yes:* )
4250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4262 (
4263 cat <<\_ASBOX
4264## ------------------------------------------ ##
4265## Report this to the AC_PACKAGE_NAME lists. ##
4266## ------------------------------------------ ##
4267_ASBOX
4268 ) |
4269 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4270 ;;
4271esac
b4e70030
JB
4272echo "$as_me:$LINENO: checking for $ac_header" >&5
4273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4274if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277 eval "$as_ac_Header=\$ac_header_preproc"
4278fi
b4e70030
JB
4279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4281
4282fi
4283if test `eval echo '${'$as_ac_Header'}'` = yes; then
4284 cat >>confdefs.h <<_ACEOF
4285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4286_ACEOF
4287
4288fi
4289
4290done
4291
4292 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
4293 enable_libunwind=yes;
4294 fi
4295
b4e70030 4296fi;
bec39cab
AC
4297
4298if test x"$enable_libunwind" = xyes; then
4299
4300for ac_header in libunwind.h
4301do
4302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
4303if eval "test \"\${$as_ac_Header+set}\" = set"; then
4304 echo "$as_me:$LINENO: checking for $ac_header" >&5
4305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4306if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308fi
b4e70030
JB
4309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4311else
4312 # Is the header compilable?
b4e70030
JB
4313echo "$as_me:$LINENO: checking $ac_header usability" >&5
4314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
4315cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h. */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h. */
4321$ac_includes_default
4322#include <$ac_header>
4323_ACEOF
4324rm -f conftest.$ac_objext
4325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
b4e70030
JB
4333 { ac_try='test -z "$ac_c_werror_flag"
4334 || test ! -s conftest.err'
bec39cab
AC
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_header_compiler=yes
4347else
4348 echo "$as_me: failed program was:" >&5
4349sed 's/^/| /' conftest.$ac_ext >&5
4350
b4e70030 4351ac_header_compiler=no
bec39cab
AC
4352fi
4353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4355echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4356
4357# Is the header present?
b4e70030
JB
4358echo "$as_me:$LINENO: checking $ac_header presence" >&5
4359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4360cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h. */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h. */
4366#include <$ac_header>
4367_ACEOF
4368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4370 ac_status=$?
4371 grep -v '^ *+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } >/dev/null; then
4376 if test -s conftest.err; then
4377 ac_cpp_err=$ac_c_preproc_warn_flag
4378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4379 else
4380 ac_cpp_err=
4381 fi
4382else
4383 ac_cpp_err=yes
4384fi
4385if test -z "$ac_cpp_err"; then
4386 ac_header_preproc=yes
4387else
4388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 ac_header_preproc=no
4392fi
4393rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4394echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4395echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4396
4397# So? What about this header?
4398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4399 yes:no: )
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4404 ac_header_preproc=yes
4405 ;;
4406 no:yes:* )
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4410echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4414echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4419 (
4420 cat <<\_ASBOX
4421## ------------------------------------------ ##
4422## Report this to the AC_PACKAGE_NAME lists. ##
4423## ------------------------------------------ ##
4424_ASBOX
4425 ) |
4426 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4427 ;;
4428esac
b4e70030
JB
4429echo "$as_me:$LINENO: checking for $ac_header" >&5
4430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4431if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 eval "$as_ac_Header=\$ac_header_preproc"
4435fi
b4e70030
JB
4436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4438
4439fi
4440if test `eval echo '${'$as_ac_Header'}'` = yes; then
4441 cat >>confdefs.h <<_ACEOF
4442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443_ACEOF
4444
4445fi
4446
4447done
4448
4449
4450for ac_header in libunwind-ia64.h
4451do
4452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
4453if eval "test \"\${$as_ac_Header+set}\" = set"; then
4454 echo "$as_me:$LINENO: checking for $ac_header" >&5
4455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4456if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458fi
b4e70030
JB
4459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4461else
4462 # Is the header compilable?
b4e70030
JB
4463echo "$as_me:$LINENO: checking $ac_header usability" >&5
4464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
4465cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
4471$ac_includes_default
4472#include <$ac_header>
4473_ACEOF
4474rm -f conftest.$ac_objext
4475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476 (eval $ac_compile) 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
b4e70030
JB
4483 { ac_try='test -z "$ac_c_werror_flag"
4484 || test ! -s conftest.err'
bec39cab
AC
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 ac_header_compiler=yes
4497else
4498 echo "$as_me: failed program was:" >&5
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
b4e70030 4501ac_header_compiler=no
bec39cab
AC
4502fi
4503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4504echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4505echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4506
4507# Is the header present?
b4e70030
JB
4508echo "$as_me:$LINENO: checking $ac_header presence" >&5
4509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4510cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516#include <$ac_header>
4517_ACEOF
4518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4520 ac_status=$?
4521 grep -v '^ *+' conftest.er1 >conftest.err
4522 rm -f conftest.er1
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } >/dev/null; then
4526 if test -s conftest.err; then
4527 ac_cpp_err=$ac_c_preproc_warn_flag
4528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4529 else
4530 ac_cpp_err=
4531 fi
4532else
4533 ac_cpp_err=yes
4534fi
4535if test -z "$ac_cpp_err"; then
4536 ac_header_preproc=yes
4537else
4538 echo "$as_me: failed program was:" >&5
4539sed 's/^/| /' conftest.$ac_ext >&5
4540
4541 ac_header_preproc=no
4542fi
4543rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4544echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4545echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4546
4547# So? What about this header?
4548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4549 yes:no: )
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4551echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4553echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4554 ac_header_preproc=yes
4555 ;;
4556 no:yes:* )
4557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4562echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4564echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4568echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4569 (
4570 cat <<\_ASBOX
4571## ------------------------------------------ ##
4572## Report this to the AC_PACKAGE_NAME lists. ##
4573## ------------------------------------------ ##
4574_ASBOX
4575 ) |
4576 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4577 ;;
4578esac
b4e70030
JB
4579echo "$as_me:$LINENO: checking for $ac_header" >&5
4580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 eval "$as_ac_Header=\$ac_header_preproc"
4585fi
b4e70030
JB
4586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4588
4589fi
4590if test `eval echo '${'$as_ac_Header'}'` = yes; then
4591 cat >>confdefs.h <<_ACEOF
4592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4593_ACEOF
4594
4595fi
4596
4597done
4598
60ca704f
SE
4599
4600cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4601#define HAVE_LIBUNWIND 1
4602_ACEOF
4603
4604 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4605 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4606 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4607fi
4608
4609# Profiling support.
b4e70030 4610# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4611if test "${enable_profiling+set}" = set; then
b4e70030
JB
4612 enableval="$enable_profiling"
4613 case $enableval in
bec39cab
AC
4614 yes | no)
4615 ;;
4616 *)
4617 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4618echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4619 { (exit 1); exit 1; }; } ;;
4620 esac
4621else
4622 enable_profiling=no
b4e70030 4623fi;
bec39cab
AC
4624
4625
4626
4627for ac_func in monstartup _mcleanup
4628do
4629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4630echo "$as_me:$LINENO: checking for $ac_func" >&5
4631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4632if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635 cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h. */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h. */
4641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4643#define $ac_func innocuous_$ac_func
4644
4645/* System header to define __stub macros and hopefully few prototypes,
4646 which can conflict with char $ac_func (); below.
4647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648 <limits.h> exists even on freestanding compilers. */
4649
4650#ifdef __STDC__
4651# include <limits.h>
4652#else
4653# include <assert.h>
4654#endif
4655
4656#undef $ac_func
4657
b4e70030 4658/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4659#ifdef __cplusplus
4660extern "C"
b4e70030 4661{
bec39cab 4662#endif
b4e70030
JB
4663/* We use char because int might match the return type of a gcc2
4664 builtin and then its argument prototype would still apply. */
bec39cab
AC
4665char $ac_func ();
4666/* The GNU C library defines this for functions which it implements
4667 to always fail with ENOSYS. Some functions are actually named
4668 something starting with __ and the normal name is an alias. */
b4e70030 4669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4670choke me
b4e70030
JB
4671#else
4672char (*f) () = $ac_func;
4673#endif
4674#ifdef __cplusplus
4675}
bec39cab
AC
4676#endif
4677
4678int
4679main ()
4680{
b4e70030 4681return f != $ac_func;
bec39cab
AC
4682 ;
4683 return 0;
4684}
4685_ACEOF
4686rm -f conftest.$ac_objext conftest$ac_exeext
4687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688 (eval $ac_link) 2>conftest.er1
4689 ac_status=$?
4690 grep -v '^ *+' conftest.er1 >conftest.err
4691 rm -f conftest.er1
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
b4e70030
JB
4695 { ac_try='test -z "$ac_c_werror_flag"
4696 || test ! -s conftest.err'
bec39cab
AC
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest$ac_exeext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 eval "$as_ac_var=yes"
4709else
4710 echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
b4e70030 4713eval "$as_ac_var=no"
bec39cab
AC
4714fi
4715rm -f conftest.err conftest.$ac_objext \
4716 conftest$ac_exeext conftest.$ac_ext
4717fi
b4e70030
JB
4718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4719echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4720if test `eval echo '${'$as_ac_var'}'` = yes; then
4721 cat >>confdefs.h <<_ACEOF
4722#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4723_ACEOF
4724
4725fi
4726done
4727
b4e70030
JB
4728echo "$as_me:$LINENO: checking for _etext" >&5
4729echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4730if test "${ac_cv_var__etext+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 cat >conftest.$ac_ext <<_ACEOF
4734/* confdefs.h. */
4735_ACEOF
4736cat confdefs.h >>conftest.$ac_ext
4737cat >>conftest.$ac_ext <<_ACEOF
4738/* end confdefs.h. */
4739#include <stdlib.h>
4740extern char _etext;
4741
4742int
4743main ()
4744{
4745free (&_etext);
4746 ;
4747 return 0;
4748}
4749_ACEOF
4750rm -f conftest.$ac_objext conftest$ac_exeext
4751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4752 (eval $ac_link) 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
b4e70030
JB
4759 { ac_try='test -z "$ac_c_werror_flag"
4760 || test ! -s conftest.err'
bec39cab
AC
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest$ac_exeext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_var__etext=yes
4773else
4774 echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
b4e70030 4777ac_cv_var__etext=no
bec39cab
AC
4778fi
4779rm -f conftest.err conftest.$ac_objext \
4780 conftest$ac_exeext conftest.$ac_ext
4781fi
b4e70030
JB
4782echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4783echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4784if test $ac_cv_var__etext = yes; then
4785
4786cat >>confdefs.h <<\_ACEOF
4787#define HAVE__ETEXT 1
4788_ACEOF
4789
01fe12f6
JB
4790fi
4791echo "$as_me:$LINENO: checking for etext" >&5
4792echo $ECHO_N "checking for etext... $ECHO_C" >&6
4793if test "${ac_cv_var_etext+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796 cat >conftest.$ac_ext <<_ACEOF
4797/* confdefs.h. */
4798_ACEOF
4799cat confdefs.h >>conftest.$ac_ext
4800cat >>conftest.$ac_ext <<_ACEOF
4801/* end confdefs.h. */
4802#include <stdlib.h>
4803extern char etext;
4804
4805int
4806main ()
4807{
4808free (&etext);
4809 ;
4810 return 0;
4811}
4812_ACEOF
4813rm -f conftest.$ac_objext conftest$ac_exeext
4814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4815 (eval $ac_link) 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -z "$ac_c_werror_flag"
4823 || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try='test -s conftest$ac_exeext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4835 ac_cv_var_etext=yes
4836else
4837 echo "$as_me: failed program was:" >&5
4838sed 's/^/| /' conftest.$ac_ext >&5
4839
4840ac_cv_var_etext=no
4841fi
4842rm -f conftest.err conftest.$ac_objext \
4843 conftest$ac_exeext conftest.$ac_ext
4844fi
4845echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4846echo "${ECHO_T}$ac_cv_var_etext" >&6
4847if test $ac_cv_var_etext = yes; then
4848
4849cat >>confdefs.h <<\_ACEOF
4850#define HAVE_ETEXT 1
4851_ACEOF
4852
bec39cab
AC
4853fi
4854if test "$enable_profiling" = yes ; then
4855 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4856 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4857echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4858 { (exit 1); exit 1; }; }
4859 fi
4860 PROFILE_CFLAGS=-pg
4861 OLD_CFLAGS="$CFLAGS"
4862 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4863
b4e70030
JB
4864 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4865echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4866if test "${ac_cv_cc_supports_pg+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4868else
bec39cab
AC
4869 cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875
4876int
4877main ()
4878{
4879int x;
4880 ;
4881 return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext
4885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
b4e70030
JB
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
bec39cab
AC
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest.$ac_objext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 ac_cv_cc_supports_pg=yes
4907else
4908 echo "$as_me: failed program was:" >&5
4909sed 's/^/| /' conftest.$ac_ext >&5
4910
b4e70030 4911ac_cv_cc_supports_pg=no
bec39cab
AC
4912fi
4913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914fi
b4e70030
JB
4915echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4916echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4917
4918 if test $ac_cv_cc_supports_pg = no; then
4919 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4920echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4921 { (exit 1); exit 1; }; }
4922 fi
4923
4924 CFLAGS="$OLD_CFLAGS"
4925fi
4926
4927# --------------------- #
4928# Checks for programs. #
4929# --------------------- #
4930
4931for ac_prog in gawk mawk nawk awk
4932do
4933 # Extract the first word of "$ac_prog", so it can be a program name with args.
4934set dummy $ac_prog; ac_word=$2
b4e70030
JB
4935echo "$as_me:$LINENO: checking for $ac_word" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4937if test "${ac_cv_prog_AWK+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940 if test -n "$AWK"; then
4941 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4942else
4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH
4945do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4950 ac_cv_prog_AWK="$ac_prog"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954done
4955done
4956
4957fi
4958fi
4959AWK=$ac_cv_prog_AWK
4960if test -n "$AWK"; then
b4e70030
JB
4961 echo "$as_me:$LINENO: result: $AWK" >&5
4962echo "${ECHO_T}$AWK" >&6
bec39cab 4963else
b4e70030
JB
4964 echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
bec39cab
AC
4966fi
4967
4968 test -n "$AWK" && break
4969done
4970
4971# Find a good install program. We prefer a C program (faster),
4972# so one script is as good as another. But avoid the broken or
4973# incompatible versions:
4974# SysV /etc/install, /usr/sbin/install
4975# SunOS /usr/etc/install
4976# IRIX /sbin/install
4977# AIX /bin/install
4978# AmigaOS /C/install, which installs bootblocks on floppy discs
4979# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4980# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4981# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4982# OS/2's system install, which has a completely different semantic
4983# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4984echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4985echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4986if test -z "$INSTALL"; then
4987if test "${ac_cv_path_install+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 # Account for people who put trailing slashes in PATH elements.
4996case $as_dir/ in
4997 ./ | .// | /cC/* | \
4998 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4999 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5000 /usr/ucb/* ) ;;
c906108c 5001 *)
bec39cab
AC
5002 # OSF1 and SCO ODT 3.0 have their own names for install.
5003 # Don't use installbsd from OSF since it installs stuff as root
5004 # by default.
5005 for ac_prog in ginstall scoinst install; do
5006 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5007 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
5008 if test $ac_prog = install &&
5009 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5010 # AIX install. It has an incompatible calling convention.
5011 :
5012 elif test $ac_prog = install &&
5013 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5014 # program-specific install script used by HP pwplus--don't use.
5015 :
5016 else
5017 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5018 break 3
5019 fi
5020 fi
5021 done
5022 done
5023 ;;
c906108c 5024esac
bec39cab
AC
5025done
5026
5027
5028fi
5029 if test "${ac_cv_path_install+set}" = set; then
5030 INSTALL=$ac_cv_path_install
5031 else
b4e70030
JB
5032 # As a last resort, use the slow shell script. We don't cache a
5033 # path for INSTALL within a source directory, because that will
bec39cab 5034 # break other packages using the cache if that directory is
b4e70030 5035 # removed, or if the path is relative.
bec39cab
AC
5036 INSTALL=$ac_install_sh
5037 fi
5038fi
b4e70030
JB
5039echo "$as_me:$LINENO: result: $INSTALL" >&5
5040echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
5041
5042# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5043# It thinks the first close brace ends the variable substitution.
5044test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5045
5046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5047
5048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5049
b4e70030
JB
5050echo "$as_me:$LINENO: checking whether ln -s works" >&5
5051echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
5052LN_S=$as_ln_s
5053if test "$LN_S" = "ln -s"; then
b4e70030
JB
5054 echo "$as_me:$LINENO: result: yes" >&5
5055echo "${ECHO_T}yes" >&6
bec39cab 5056else
b4e70030
JB
5057 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5058echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
5059fi
5060
5061if test -n "$ac_tool_prefix"; then
5062 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5063set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
5064echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5066if test "${ac_cv_prog_RANLIB+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 if test -n "$RANLIB"; then
5070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083done
5084done
5085
5086fi
5087fi
5088RANLIB=$ac_cv_prog_RANLIB
5089if test -n "$RANLIB"; then
b4e70030
JB
5090 echo "$as_me:$LINENO: result: $RANLIB" >&5
5091echo "${ECHO_T}$RANLIB" >&6
bec39cab 5092else
b4e70030
JB
5093 echo "$as_me:$LINENO: result: no" >&5
5094echo "${ECHO_T}no" >&6
bec39cab
AC
5095fi
5096
5097fi
5098if test -z "$ac_cv_prog_RANLIB"; then
5099 ac_ct_RANLIB=$RANLIB
5100 # Extract the first word of "ranlib", so it can be a program name with args.
5101set dummy ranlib; ac_word=$2
b4e70030
JB
5102echo "$as_me:$LINENO: checking for $ac_word" >&5
5103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5104if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
5107 if test -n "$ac_ct_RANLIB"; then
5108 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5109else
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5117 ac_cv_prog_ac_ct_RANLIB="ranlib"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121done
5122done
5123
b4e70030 5124 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
5125fi
5126fi
5127ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5128if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
5129 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5130echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 5131else
b4e70030
JB
5132 echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6
bec39cab
AC
5134fi
5135
b4e70030 5136 RANLIB=$ac_ct_RANLIB
bec39cab
AC
5137else
5138 RANLIB="$ac_cv_prog_RANLIB"
5139fi
5140
5141for ac_prog in 'bison -y' byacc
5142do
5143 # Extract the first word of "$ac_prog", so it can be a program name with args.
5144set dummy $ac_prog; ac_word=$2
b4e70030
JB
5145echo "$as_me:$LINENO: checking for $ac_word" >&5
5146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5147if test "${ac_cv_prog_YACC+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149else
5150 if test -n "$YACC"; then
5151 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5152else
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5160 ac_cv_prog_YACC="$ac_prog"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164done
5165done
5166
5167fi
5168fi
5169YACC=$ac_cv_prog_YACC
5170if test -n "$YACC"; then
b4e70030
JB
5171 echo "$as_me:$LINENO: result: $YACC" >&5
5172echo "${ECHO_T}$YACC" >&6
bec39cab 5173else
b4e70030
JB
5174 echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
bec39cab
AC
5176fi
5177
5178 test -n "$YACC" && break
5179done
5180test -n "$YACC" || YACC="yacc"
5181
5182
5183if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5185set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
5186echo "$as_me:$LINENO: checking for $ac_word" >&5
5187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5188if test "${ac_cv_prog_AR+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191 if test -n "$AR"; then
5192 ac_cv_prog_AR="$AR" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5201 ac_cv_prog_AR="${ac_tool_prefix}ar"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205done
5206done
5207
5208fi
5209fi
5210AR=$ac_cv_prog_AR
5211if test -n "$AR"; then
b4e70030
JB
5212 echo "$as_me:$LINENO: result: $AR" >&5
5213echo "${ECHO_T}$AR" >&6
bec39cab 5214else
b4e70030
JB
5215 echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6
bec39cab
AC
5217fi
5218
5219fi
5220if test -z "$ac_cv_prog_AR"; then
5221 ac_ct_AR=$AR
5222 # Extract the first word of "ar", so it can be a program name with args.
5223set dummy ar; ac_word=$2
b4e70030
JB
5224echo "$as_me:$LINENO: checking for $ac_word" >&5
5225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5226if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229 if test -n "$ac_ct_AR"; then
5230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5239 ac_cv_prog_ac_ct_AR="ar"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243done
5244done
5245
5246fi
5247fi
5248ac_ct_AR=$ac_cv_prog_ac_ct_AR
5249if test -n "$ac_ct_AR"; then
b4e70030
JB
5250 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5251echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 5252else
b4e70030
JB
5253 echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6
bec39cab
AC
5255fi
5256
b4e70030 5257 AR=$ac_ct_AR
bec39cab
AC
5258else
5259 AR="$ac_cv_prog_AR"
5260fi
5261
5262if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5264set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
5265echo "$as_me:$LINENO: checking for $ac_word" >&5
5266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5267if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270 if test -n "$DLLTOOL"; then
5271 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5280 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284done
5285done
5286
5287fi
5288fi
5289DLLTOOL=$ac_cv_prog_DLLTOOL
5290if test -n "$DLLTOOL"; then
b4e70030
JB
5291 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5292echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 5293else
b4e70030
JB
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
bec39cab
AC
5296fi
5297
5298fi
5299if test -z "$ac_cv_prog_DLLTOOL"; then
5300 ac_ct_DLLTOOL=$DLLTOOL
5301 # Extract the first word of "dlltool", so it can be a program name with args.
5302set dummy dlltool; ac_word=$2
b4e70030
JB
5303echo "$as_me:$LINENO: checking for $ac_word" >&5
5304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5305if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308 if test -n "$ac_ct_DLLTOOL"; then
5309 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5310else
5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5318 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322done
5323done
5324
5325fi
5326fi
5327ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5328if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
5329 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5330echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 5331else
b4e70030
JB
5332 echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
bec39cab
AC
5334fi
5335
b4e70030 5336 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
5337else
5338 DLLTOOL="$ac_cv_prog_DLLTOOL"
5339fi
5340
5341if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5343set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
5344echo "$as_me:$LINENO: checking for $ac_word" >&5
5345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5346if test "${ac_cv_prog_WINDRES+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349 if test -n "$WINDRES"; then
5350 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5359 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363done
5364done
5365
5366fi
5367fi
5368WINDRES=$ac_cv_prog_WINDRES
5369if test -n "$WINDRES"; then
b4e70030
JB
5370 echo "$as_me:$LINENO: result: $WINDRES" >&5
5371echo "${ECHO_T}$WINDRES" >&6
bec39cab 5372else
b4e70030
JB
5373 echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6
bec39cab
AC
5375fi
5376
5377fi
5378if test -z "$ac_cv_prog_WINDRES"; then
5379 ac_ct_WINDRES=$WINDRES
5380 # Extract the first word of "windres", so it can be a program name with args.
5381set dummy windres; ac_word=$2
b4e70030
JB
5382echo "$as_me:$LINENO: checking for $ac_word" >&5
5383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5384if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 if test -n "$ac_ct_WINDRES"; then
5388 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5397 ac_cv_prog_ac_ct_WINDRES="windres"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402done
5403
5404fi
5405fi
5406ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5407if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
5408 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5409echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 5410else
b4e70030
JB
5411 echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
c906108c 5413fi
bec39cab 5414
b4e70030 5415 WINDRES=$ac_ct_WINDRES
c906108c 5416else
bec39cab 5417 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
5418fi
5419
bec39cab
AC
5420
5421# Needed for GNU/Hurd.
5422if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
5424set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
5425echo "$as_me:$LINENO: checking for $ac_word" >&5
5426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5427if test "${ac_cv_prog_MIG+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5429else
bec39cab
AC
5430 if test -n "$MIG"; then
5431 ac_cv_prog_MIG="$MIG" # Let the user override the test.
5432else
5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5440 ac_cv_prog_MIG="${ac_tool_prefix}mig"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444done
5445done
5446
c906108c 5447fi
bec39cab
AC
5448fi
5449MIG=$ac_cv_prog_MIG
5450if test -n "$MIG"; then
b4e70030
JB
5451 echo "$as_me:$LINENO: result: $MIG" >&5
5452echo "${ECHO_T}$MIG" >&6
c906108c 5453else
b4e70030
JB
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
c906108c
SS
5456fi
5457
bec39cab
AC
5458fi
5459if test -z "$ac_cv_prog_MIG"; then
5460 ac_ct_MIG=$MIG
5461 # Extract the first word of "mig", so it can be a program name with args.
5462set dummy mig; ac_word=$2
b4e70030
JB
5463echo "$as_me:$LINENO: checking for $ac_word" >&5
5464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5465if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 if test -n "$ac_ct_MIG"; then
5469 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
5470else
5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5478 ac_cv_prog_ac_ct_MIG="mig"
5479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482done
5483done
c906108c 5484
bec39cab
AC
5485fi
5486fi
5487ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
5488if test -n "$ac_ct_MIG"; then
b4e70030
JB
5489 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
5490echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 5491else
b4e70030
JB
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
bec39cab 5494fi
c906108c 5495
b4e70030 5496 MIG=$ac_ct_MIG
bec39cab
AC
5497else
5498 MIG="$ac_cv_prog_MIG"
5499fi
c906108c 5500
c906108c 5501
bec39cab
AC
5502# ---------------------- #
5503# Checks for libraries. #
5504# ---------------------- #
c906108c 5505
bec39cab 5506# We might need to link with -lm; most simulators need it.
c906108c 5507
b4e70030
JB
5508echo "$as_me:$LINENO: checking for main in -lm" >&5
5509echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
5510if test "${ac_cv_lib_m_main+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513 ac_check_lib_save_LIBS=$LIBS
5514LIBS="-lm $LIBS"
5515cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h. */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h. */
c906108c 5521
c906108c 5522
bec39cab
AC
5523int
5524main ()
5525{
b4e70030 5526main ();
bec39cab
AC
5527 ;
5528 return 0;
5529}
5530_ACEOF
5531rm -f conftest.$ac_objext conftest$ac_exeext
5532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5533 (eval $ac_link) 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
b4e70030
JB
5540 { ac_try='test -z "$ac_c_werror_flag"
5541 || test ! -s conftest.err'
bec39cab
AC
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try='test -s conftest$ac_exeext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_lib_m_main=yes
5554else
5555 echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
b4e70030 5558ac_cv_lib_m_main=no
bec39cab
AC
5559fi
5560rm -f conftest.err conftest.$ac_objext \
5561 conftest$ac_exeext conftest.$ac_ext
5562LIBS=$ac_check_lib_save_LIBS
5563fi
b4e70030
JB
5564echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5565echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
5566if test $ac_cv_lib_m_main = yes; then
5567 cat >>confdefs.h <<_ACEOF
5568#define HAVE_LIBM 1
5569_ACEOF
5570
5571 LIBS="-lm $LIBS"
c906108c 5572
c906108c 5573fi
bec39cab
AC
5574
5575
5576# We need to link with -lw to get `wctype' on Solaris before Solaris
5577# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5578# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5579# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
5580echo "$as_me:$LINENO: checking for wctype" >&5
5581echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
5582if test "${ac_cv_func_wctype+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585 cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h. */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h. */
5591/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5593#define wctype innocuous_wctype
5594
5595/* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char wctype (); below.
5597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 <limits.h> exists even on freestanding compilers. */
5599
5600#ifdef __STDC__
5601# include <limits.h>
5602#else
5603# include <assert.h>
5604#endif
5605
5606#undef wctype
5607
b4e70030 5608/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5609#ifdef __cplusplus
5610extern "C"
b4e70030 5611{
bec39cab 5612#endif
b4e70030
JB
5613/* We use char because int might match the return type of a gcc2
5614 builtin and then its argument prototype would still apply. */
bec39cab
AC
5615char wctype ();
5616/* The GNU C library defines this for functions which it implements
5617 to always fail with ENOSYS. Some functions are actually named
5618 something starting with __ and the normal name is an alias. */
b4e70030 5619#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5620choke me
b4e70030
JB
5621#else
5622char (*f) () = wctype;
5623#endif
5624#ifdef __cplusplus
5625}
bec39cab
AC
5626#endif
5627
5628int
5629main ()
5630{
b4e70030 5631return f != wctype;
bec39cab
AC
5632 ;
5633 return 0;
5634}
5635_ACEOF
5636rm -f conftest.$ac_objext conftest$ac_exeext
5637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638 (eval $ac_link) 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
b4e70030
JB
5645 { ac_try='test -z "$ac_c_werror_flag"
5646 || test ! -s conftest.err'
bec39cab
AC
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_cv_func_wctype=yes
5659else
5660 echo "$as_me: failed program was:" >&5
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
b4e70030 5663ac_cv_func_wctype=no
bec39cab
AC
5664fi
5665rm -f conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5667fi
b4e70030
JB
5668echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5669echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5670if test $ac_cv_func_wctype = yes; then
5671 :
c906108c 5672else
c906108c 5673
b4e70030
JB
5674echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5675echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5676if test "${ac_cv_lib_w_wctype+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679 ac_check_lib_save_LIBS=$LIBS
5680LIBS="-lw $LIBS"
5681cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h. */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h. */
c906108c 5687
b4e70030 5688/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5689#ifdef __cplusplus
5690extern "C"
5691#endif
b4e70030
JB
5692/* We use char because int might match the return type of a gcc2
5693 builtin and then its argument prototype would still apply. */
bec39cab
AC
5694char wctype ();
5695int
5696main ()
5697{
b4e70030 5698wctype ();
bec39cab
AC
5699 ;
5700 return 0;
5701}
5702_ACEOF
5703rm -f conftest.$ac_objext conftest$ac_exeext
5704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5705 (eval $ac_link) 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
b4e70030
JB
5712 { ac_try='test -z "$ac_c_werror_flag"
5713 || test ! -s conftest.err'
bec39cab
AC
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; } &&
5719 { ac_try='test -s conftest$ac_exeext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 ac_cv_lib_w_wctype=yes
5726else
5727 echo "$as_me: failed program was:" >&5
5728sed 's/^/| /' conftest.$ac_ext >&5
5729
b4e70030 5730ac_cv_lib_w_wctype=no
bec39cab
AC
5731fi
5732rm -f conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5734LIBS=$ac_check_lib_save_LIBS
5735fi
b4e70030
JB
5736echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5737echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5738if test $ac_cv_lib_w_wctype = yes; then
5739 cat >>confdefs.h <<_ACEOF
5740#define HAVE_LIBW 1
5741_ACEOF
c906108c 5742
bec39cab 5743 LIBS="-lw $LIBS"
c906108c 5744
bec39cab 5745fi
c906108c 5746
bec39cab 5747fi
c906108c 5748
ddc9cd0f 5749
bec39cab 5750# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5751echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5752echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5753if test "${ac_cv_search_gethostbyname+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756 ac_func_search_save_LIBS=$LIBS
b4e70030 5757ac_cv_search_gethostbyname=no
bec39cab
AC
5758cat >conftest.$ac_ext <<_ACEOF
5759/* confdefs.h. */
5760_ACEOF
5761cat confdefs.h >>conftest.$ac_ext
5762cat >>conftest.$ac_ext <<_ACEOF
5763/* end confdefs.h. */
ddc9cd0f 5764
b4e70030 5765/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5766#ifdef __cplusplus
5767extern "C"
5768#endif
b4e70030
JB
5769/* We use char because int might match the return type of a gcc2
5770 builtin and then its argument prototype would still apply. */
bec39cab
AC
5771char gethostbyname ();
5772int
5773main ()
5774{
b4e70030 5775gethostbyname ();
bec39cab
AC
5776 ;
5777 return 0;
5778}
5779_ACEOF
b4e70030 5780rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782 (eval $ac_link) 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
b4e70030
JB
5789 { ac_try='test -z "$ac_c_werror_flag"
5790 || test ! -s conftest.err'
bec39cab
AC
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try='test -s conftest$ac_exeext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
b4e70030 5802 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5803else
5804 echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5806
bec39cab
AC
5807fi
5808rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5809 conftest$ac_exeext conftest.$ac_ext
5810if test "$ac_cv_search_gethostbyname" = no; then
5811 for ac_lib in nsl; do
5812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5813 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5814/* confdefs.h. */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h. */
ddc9cd0f 5819
b4e70030 5820/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5821#ifdef __cplusplus
5822extern "C"
5823#endif
b4e70030
JB
5824/* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5826char gethostbyname ();
bec39cab
AC
5827int
5828main ()
5829{
b4e70030 5830gethostbyname ();
bec39cab
AC
5831 ;
5832 return 0;
5833}
5834_ACEOF
b4e70030 5835rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
b4e70030
JB
5844 { ac_try='test -z "$ac_c_werror_flag"
5845 || test ! -s conftest.err'
bec39cab
AC
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; } &&
5851 { ac_try='test -s conftest$ac_exeext'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
b4e70030
JB
5857 ac_cv_search_gethostbyname="-l$ac_lib"
5858break
bec39cab
AC
5859else
5860 echo "$as_me: failed program was:" >&5
5861sed 's/^/| /' conftest.$ac_ext >&5
5862
5863fi
5864rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5865 conftest$ac_exeext conftest.$ac_ext
5866 done
bec39cab
AC
5867fi
5868LIBS=$ac_func_search_save_LIBS
5869fi
b4e70030
JB
5870echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5871echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5872if test "$ac_cv_search_gethostbyname" != no; then
5873 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5874
bec39cab 5875fi
96baa820 5876
c906108c 5877
b4e70030
JB
5878# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5879echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5880echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5881if test "${ac_cv_search_socketpair+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884 ac_func_search_save_LIBS=$LIBS
5885ac_cv_search_socketpair=no
5886cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h. */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h. */
5892
5893/* Override any gcc2 internal prototype to avoid an error. */
5894#ifdef __cplusplus
5895extern "C"
5896#endif
5897/* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5899char socketpair ();
5900int
5901main ()
5902{
5903socketpair ();
5904 ;
5905 return 0;
5906}
5907_ACEOF
5908rm -f conftest.$ac_objext conftest$ac_exeext
5909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_search_socketpair="none required"
5931else
5932 echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935fi
5936rm -f conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext conftest.$ac_ext
5938if test "$ac_cv_search_socketpair" = no; then
5939 for ac_lib in socket; do
5940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5941 cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h. */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h. */
5947
5948/* Override any gcc2 internal prototype to avoid an error. */
5949#ifdef __cplusplus
5950extern "C"
5951#endif
5952/* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5954char socketpair ();
5955int
5956main ()
5957{
5958socketpair ();
5959 ;
5960 return 0;
5961}
5962_ACEOF
5963rm -f conftest.$ac_objext conftest$ac_exeext
5964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5965 (eval $ac_link) 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -z "$ac_c_werror_flag"
5973 || test ! -s conftest.err'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 (eval $ac_try) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; } &&
5979 { ac_try='test -s conftest$ac_exeext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 (eval $ac_try) 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 ac_cv_search_socketpair="-l$ac_lib"
5986break
5987else
5988 echo "$as_me: failed program was:" >&5
5989sed 's/^/| /' conftest.$ac_ext >&5
5990
5991fi
5992rm -f conftest.err conftest.$ac_objext \
5993 conftest$ac_exeext conftest.$ac_ext
5994 done
5995fi
5996LIBS=$ac_func_search_save_LIBS
5997fi
5998echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5999echo "${ECHO_T}$ac_cv_search_socketpair" >&6
6000if test "$ac_cv_search_socketpair" != no; then
6001 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
6002
6003fi
6004
6005
6006# For the TUI, we need enhanced curses functionality.
bec39cab
AC
6007#
6008# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6009# curses library because the latter might not provide all the
6010# functionality we need. However, this leads to problems on systems
6011# where the linker searches /usr/local/lib, but the compiler doesn't
6012# search /usr/local/include, if ncurses is installed in /usr/local. A
6013# default installation of ncurses on alpha*-dec-osf* will lead to such
6014# a situation.
b4e70030
JB
6015echo "$as_me:$LINENO: checking for library containing waddstr" >&5
6016echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
6017if test "${ac_cv_search_waddstr+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019else
6020 ac_func_search_save_LIBS=$LIBS
b4e70030 6021ac_cv_search_waddstr=no
bec39cab
AC
6022cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h. */
c906108c 6028
b4e70030 6029/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6030#ifdef __cplusplus
6031extern "C"
6032#endif
b4e70030
JB
6033/* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
bec39cab
AC
6035char waddstr ();
6036int
6037main ()
6038{
b4e70030 6039waddstr ();
bec39cab
AC
6040 ;
6041 return 0;
6042}
6043_ACEOF
b4e70030 6044rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6046 (eval $ac_link) 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
b4e70030
JB
6053 { ac_try='test -z "$ac_c_werror_flag"
6054 || test ! -s conftest.err'
bec39cab
AC
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest$ac_exeext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
b4e70030 6066 ac_cv_search_waddstr="none required"
bec39cab
AC
6067else
6068 echo "$as_me: failed program was:" >&5
6069sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
6070
6071fi
bec39cab 6072rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6073 conftest$ac_exeext conftest.$ac_ext
6074if test "$ac_cv_search_waddstr" = no; then
6075 for ac_lib in ncurses cursesX curses; do
6076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6077 cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h. */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h. */
6083
6084/* Override any gcc2 internal prototype to avoid an error. */
6085#ifdef __cplusplus
6086extern "C"
6087#endif
6088/* We use char because int might match the return type of a gcc2
6089 builtin and then its argument prototype would still apply. */
6090char waddstr ();
6091int
6092main ()
6093{
6094waddstr ();
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext conftest$ac_exeext
6100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -z "$ac_c_werror_flag"
6109 || test ! -s conftest.err'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest$ac_exeext'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 ac_cv_search_waddstr="-l$ac_lib"
6122break
4e8d927d 6123else
b4e70030
JB
6124 echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127fi
6128rm -f conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130 done
1ba607ad 6131fi
bec39cab
AC
6132LIBS=$ac_func_search_save_LIBS
6133fi
b4e70030
JB
6134echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
6135echo "${ECHO_T}$ac_cv_search_waddstr" >&6
6136if test "$ac_cv_search_waddstr" != no; then
6137 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 6138
8bb2c122 6139fi
8bb2c122 6140
8bb2c122 6141
d542061a
UW
6142# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6143echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
6144echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
6145if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148 ac_func_search_save_LIBS=$LIBS
6149ac_cv_search_dlgetmodinfo=no
6150cat >conftest.$ac_ext <<_ACEOF
6151/* confdefs.h. */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h. */
6156
6157/* Override any gcc2 internal prototype to avoid an error. */
6158#ifdef __cplusplus
6159extern "C"
6160#endif
6161/* We use char because int might match the return type of a gcc2
6162 builtin and then its argument prototype would still apply. */
6163char dlgetmodinfo ();
6164int
6165main ()
6166{
6167dlgetmodinfo ();
6168 ;
6169 return 0;
6170}
6171_ACEOF
6172rm -f conftest.$ac_objext conftest$ac_exeext
6173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174 (eval $ac_link) 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag"
6182 || test ! -s conftest.err'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try='test -s conftest$ac_exeext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 ac_cv_search_dlgetmodinfo="none required"
6195else
6196 echo "$as_me: failed program was:" >&5
6197sed 's/^/| /' conftest.$ac_ext >&5
6198
6199fi
6200rm -f conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6202if test "$ac_cv_search_dlgetmodinfo" = no; then
6203 for ac_lib in dl xpdl; do
6204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6205 cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h. */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h. */
6211
6212/* Override any gcc2 internal prototype to avoid an error. */
6213#ifdef __cplusplus
6214extern "C"
6215#endif
6216/* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6218char dlgetmodinfo ();
6219int
6220main ()
6221{
6222dlgetmodinfo ();
6223 ;
6224 return 0;
6225}
6226_ACEOF
6227rm -f conftest.$ac_objext conftest$ac_exeext
6228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6229 (eval $ac_link) 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -z "$ac_c_werror_flag"
6237 || test ! -s conftest.err'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
6243 { ac_try='test -s conftest$ac_exeext'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_search_dlgetmodinfo="-l$ac_lib"
6250break
6251else
6252 echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255fi
6256rm -f conftest.err conftest.$ac_objext \
6257 conftest$ac_exeext conftest.$ac_ext
6258 done
6259fi
6260LIBS=$ac_func_search_save_LIBS
6261fi
6262echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
6263echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
6264if test "$ac_cv_search_dlgetmodinfo" != no; then
6265 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
6266
6267fi
6268
6269
bec39cab
AC
6270# Since GDB uses Readline, we need termcap functionality. In many
6271# cases this will be provided by the curses library, but some systems
6272# have a seperate termcap library, or no curses library at all.
8bb2c122 6273
bec39cab
AC
6274case $host_os in
6275 cygwin*)
6276 if test -d $srcdir/libtermcap; then
6277 LIBS="../libtermcap/libtermcap.a $LIBS"
6278 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6279 fi ;;
6280 go32* | *djgpp*)
6281 ac_cv_search_tgetent="none required"
6282 ;;
7ef34f2c
MM
6283 *mingw32*)
6284 ac_cv_search_tgetent="none required"
6285 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
6286 ;;
bec39cab 6287esac
627af7ea 6288
bec39cab 6289# These are the libraries checked by Readline.
b4e70030
JB
6290echo "$as_me:$LINENO: checking for library containing tgetent" >&5
6291echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
6292if test "${ac_cv_search_tgetent+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295 ac_func_search_save_LIBS=$LIBS
b4e70030 6296ac_cv_search_tgetent=no
bec39cab
AC
6297cat >conftest.$ac_ext <<_ACEOF
6298/* confdefs.h. */
6299_ACEOF
6300cat confdefs.h >>conftest.$ac_ext
6301cat >>conftest.$ac_ext <<_ACEOF
6302/* end confdefs.h. */
6303
b4e70030 6304/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6305#ifdef __cplusplus
6306extern "C"
6307#endif
b4e70030
JB
6308/* We use char because int might match the return type of a gcc2
6309 builtin and then its argument prototype would still apply. */
bec39cab
AC
6310char tgetent ();
6311int
6312main ()
6313{
b4e70030 6314tgetent ();
bec39cab
AC
6315 ;
6316 return 0;
6317}
6318_ACEOF
b4e70030 6319rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321 (eval $ac_link) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
b4e70030
JB
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
6335 { ac_try='test -s conftest$ac_exeext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
b4e70030 6341 ac_cv_search_tgetent="none required"
627af7ea 6342else
bec39cab
AC
6343 echo "$as_me: failed program was:" >&5
6344sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 6345
627af7ea 6346fi
bec39cab 6347rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6348 conftest$ac_exeext conftest.$ac_ext
6349if test "$ac_cv_search_tgetent" = no; then
6350 for ac_lib in termcap tinfo curses ncurses; do
6351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6352 cat >conftest.$ac_ext <<_ACEOF
6353/* confdefs.h. */
6354_ACEOF
6355cat confdefs.h >>conftest.$ac_ext
6356cat >>conftest.$ac_ext <<_ACEOF
6357/* end confdefs.h. */
6358
6359/* Override any gcc2 internal prototype to avoid an error. */
6360#ifdef __cplusplus
6361extern "C"
6362#endif
6363/* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6365char tgetent ();
6366int
6367main ()
6368{
6369tgetent ();
6370 ;
6371 return 0;
6372}
6373_ACEOF
6374rm -f conftest.$ac_objext conftest$ac_exeext
6375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>conftest.er1
6377 ac_status=$?
6378 grep -v '^ *+' conftest.er1 >conftest.err
6379 rm -f conftest.er1
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } &&
6383 { ac_try='test -z "$ac_c_werror_flag"
6384 || test ! -s conftest.err'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest$ac_exeext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6396 ac_cv_search_tgetent="-l$ac_lib"
6397break
4e8d927d 6398else
b4e70030
JB
6399 echo "$as_me: failed program was:" >&5
6400sed 's/^/| /' conftest.$ac_ext >&5
6401
6402fi
6403rm -f conftest.err conftest.$ac_objext \
6404 conftest$ac_exeext conftest.$ac_ext
6405 done
bec39cab
AC
6406fi
6407LIBS=$ac_func_search_save_LIBS
6408fi
b4e70030
JB
6409echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
6410echo "${ECHO_T}$ac_cv_search_tgetent" >&6
6411if test "$ac_cv_search_tgetent" != no; then
6412 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 6413
06825bd1
MK
6414fi
6415
06825bd1 6416
bec39cab
AC
6417if test "$ac_cv_search_tgetent" = no; then
6418 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
6419echo "$as_me: error: no termcap library found" >&2;}
6420 { (exit 1); exit 1; }; }
8ee53726
MK
6421fi
6422
3841debe 6423
6a30b0a5
AS
6424# Check whether --with-system-readline or --without-system-readline was given.
6425if test "${with_system_readline+set}" = set; then
6426 withval="$with_system_readline"
6427
6428fi;
6429
6430if test "$with_system_readline" = yes; then
6431 READLINE=-lreadline
6432 READLINE_DEPS=
6433 READLINE_CFLAGS=
6434else
6435 READLINE='$(READLINE_DIR)/libreadline.a'
6436 READLINE_DEPS='$(READLINE)'
6437 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
6438fi
6439
6440
6441
6442
6443
5c39566f
DJ
6444# Check whether --with-expat or --without-expat was given.
6445if test "${with_expat+set}" = set; then
6446 withval="$with_expat"
6447
6448else
6449 with_expat=auto
6450fi;
6451echo "$as_me:$LINENO: checking whether to use expat" >&5
6452echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
6453echo "$as_me:$LINENO: result: $with_expat" >&5
6454echo "${ECHO_T}$with_expat" >&6
6455
6456if test "${with_expat}" = no; then
6457 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
6458echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
6459 HAVE_LIBEXPAT=no
6460else
6461
3841debe
DJ
6462 if test "X$prefix" = "XNONE"; then
6463 acl_final_prefix="$ac_default_prefix"
6464 else
6465 acl_final_prefix="$prefix"
6466 fi
6467 if test "X$exec_prefix" = "XNONE"; then
6468 acl_final_exec_prefix='${prefix}'
6469 else
6470 acl_final_exec_prefix="$exec_prefix"
6471 fi
6472 acl_save_prefix="$prefix"
6473 prefix="$acl_final_prefix"
6474 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6475 prefix="$acl_save_prefix"
6476
6477
6478# Check whether --with-gnu-ld or --without-gnu-ld was given.
6479if test "${with_gnu_ld+set}" = set; then
6480 withval="$with_gnu_ld"
6481 test "$withval" = no || with_gnu_ld=yes
6482else
6483 with_gnu_ld=no
6484fi;
6485# Prepare PATH_SEPARATOR.
6486# The user is always right.
6487if test "${PATH_SEPARATOR+set}" != set; then
6488 echo "#! /bin/sh" >conf$$.sh
6489 echo "exit 0" >>conf$$.sh
6490 chmod +x conf$$.sh
6491 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6492 PATH_SEPARATOR=';'
6493 else
6494 PATH_SEPARATOR=:
6495 fi
6496 rm -f conf$$.sh
6497fi
6498ac_prog=ld
6499if test "$GCC" = yes; then
6500 # Check if gcc -print-prog-name=ld gives a path.
6501 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6502echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6503 case $host in
6504 *-*-mingw*)
6505 # gcc leaves a trailing carriage return which upsets mingw
6506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6507 *)
6508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6509 esac
6510 case $ac_prog in
6511 # Accept absolute paths.
6512 [\\/]* | [A-Za-z]:[\\/]*)
6513 re_direlt='/[^/][^/]*/\.\./'
6514 # Canonicalize the path of ld
6515 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6516 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6517 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6518 done
6519 test -z "$LD" && LD="$ac_prog"
6520 ;;
6521 "")
6522 # If it fails, then pretend we aren't using GCC.
6523 ac_prog=ld
6524 ;;
6525 *)
6526 # If it is relative, then search for the first ld in PATH.
6527 with_gnu_ld=unknown
6528 ;;
6529 esac
6530elif test "$with_gnu_ld" = yes; then
6531 echo "$as_me:$LINENO: checking for GNU ld" >&5
6532echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6533else
6534 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6535echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6536fi
6537if test "${acl_cv_path_LD+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540 if test -z "$LD"; then
6541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6542 for ac_dir in $PATH; do
6543 test -z "$ac_dir" && ac_dir=.
6544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6545 acl_cv_path_LD="$ac_dir/$ac_prog"
6546 # Check to see if the program is GNU ld. I'd rather use --version,
6547 # but apparently some GNU ld's only accept -v.
6548 # Break only if it was the GNU/non-GNU ld that we prefer.
6549 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6550 test "$with_gnu_ld" != no && break
6551 else
6552 test "$with_gnu_ld" != yes && break
6553 fi
6554 fi
6555 done
6556 IFS="$ac_save_ifs"
6557else
6558 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6559fi
6560fi
6561
6562LD="$acl_cv_path_LD"
6563if test -n "$LD"; then
6564 echo "$as_me:$LINENO: result: $LD" >&5
6565echo "${ECHO_T}$LD" >&6
6566else
6567 echo "$as_me:$LINENO: result: no" >&5
6568echo "${ECHO_T}no" >&6
6569fi
6570test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6571echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6572 { (exit 1); exit 1; }; }
6573echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6574echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6575if test "${acl_cv_prog_gnu_ld+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6579if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6580 acl_cv_prog_gnu_ld=yes
6581else
6582 acl_cv_prog_gnu_ld=no
6583fi
6584fi
6585echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6586echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6587with_gnu_ld=$acl_cv_prog_gnu_ld
6588
6589
6590
6591 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6592echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6593if test "${acl_cv_rpath+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596
6597 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6598 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6599 . ./conftest.sh
6600 rm -f ./conftest.sh
6601 acl_cv_rpath=done
6602
6603fi
6604echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6605echo "${ECHO_T}$acl_cv_rpath" >&6
6606 wl="$acl_cv_wl"
6607 libext="$acl_cv_libext"
6608 shlibext="$acl_cv_shlibext"
6609 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6610 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6611 hardcode_direct="$acl_cv_hardcode_direct"
6612 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6613 # Check whether --enable-rpath or --disable-rpath was given.
6614if test "${enable_rpath+set}" = set; then
6615 enableval="$enable_rpath"
6616 :
6617else
6618 enable_rpath=yes
6619fi;
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629 use_additional=yes
6630
6631 acl_save_prefix="$prefix"
6632 prefix="$acl_final_prefix"
6633 acl_save_exec_prefix="$exec_prefix"
6634 exec_prefix="$acl_final_exec_prefix"
6635
6636 eval additional_includedir=\"$includedir\"
6637 eval additional_libdir=\"$libdir\"
6638
6639 exec_prefix="$acl_save_exec_prefix"
6640 prefix="$acl_save_prefix"
6641
6642
6643# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6644if test "${with_libexpat_prefix+set}" = set; then
6645 withval="$with_libexpat_prefix"
6646
6647 if test "X$withval" = "Xno"; then
6648 use_additional=no
6649 else
6650 if test "X$withval" = "X"; then
6651
6652 acl_save_prefix="$prefix"
6653 prefix="$acl_final_prefix"
6654 acl_save_exec_prefix="$exec_prefix"
6655 exec_prefix="$acl_final_exec_prefix"
6656
6657 eval additional_includedir=\"$includedir\"
6658 eval additional_libdir=\"$libdir\"
6659
6660 exec_prefix="$acl_save_exec_prefix"
6661 prefix="$acl_save_prefix"
6662
6663 else
6664 additional_includedir="$withval/include"
6665 additional_libdir="$withval/lib"
6666 fi
6667 fi
6668
6669fi;
6670 LIBEXPAT=
6671 LTLIBEXPAT=
6672 INCEXPAT=
6673 rpathdirs=
6674 ltrpathdirs=
6675 names_already_handled=
6676 names_next_round='expat '
6677 while test -n "$names_next_round"; do
6678 names_this_round="$names_next_round"
6679 names_next_round=
6680 for name in $names_this_round; do
6681 already_handled=
6682 for n in $names_already_handled; do
6683 if test "$n" = "$name"; then
6684 already_handled=yes
6685 break
6686 fi
6687 done
6688 if test -z "$already_handled"; then
6689 names_already_handled="$names_already_handled $name"
6690 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6691 eval value=\"\$HAVE_LIB$uppername\"
6692 if test -n "$value"; then
6693 if test "$value" = yes; then
6694 eval value=\"\$LIB$uppername\"
6695 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6696 eval value=\"\$LTLIB$uppername\"
6697 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6698 else
6699 :
6700 fi
6701 else
6702 found_dir=
6703 found_la=
6704 found_so=
6705 found_a=
6706 if test $use_additional = yes; then
6707 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6708 found_dir="$additional_libdir"
6709 found_so="$additional_libdir/lib$name.$shlibext"
6710 if test -f "$additional_libdir/lib$name.la"; then
6711 found_la="$additional_libdir/lib$name.la"
6712 fi
6713 else
6714 if test -f "$additional_libdir/lib$name.$libext"; then
6715 found_dir="$additional_libdir"
6716 found_a="$additional_libdir/lib$name.$libext"
6717 if test -f "$additional_libdir/lib$name.la"; then
6718 found_la="$additional_libdir/lib$name.la"
6719 fi
6720 fi
6721 fi
6722 fi
6723 if test "X$found_dir" = "X"; then
6724 for x in $LDFLAGS $LTLIBEXPAT; do
6725
6726 acl_save_prefix="$prefix"
6727 prefix="$acl_final_prefix"
6728 acl_save_exec_prefix="$exec_prefix"
6729 exec_prefix="$acl_final_exec_prefix"
6730 eval x=\"$x\"
6731 exec_prefix="$acl_save_exec_prefix"
6732 prefix="$acl_save_prefix"
6733
6734 case "$x" in
6735 -L*)
6736 dir=`echo "X$x" | sed -e 's/^X-L//'`
6737 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6738 found_dir="$dir"
6739 found_so="$dir/lib$name.$shlibext"
6740 if test -f "$dir/lib$name.la"; then
6741 found_la="$dir/lib$name.la"
6742 fi
6743 else
6744 if test -f "$dir/lib$name.$libext"; then
6745 found_dir="$dir"
6746 found_a="$dir/lib$name.$libext"
6747 if test -f "$dir/lib$name.la"; then
6748 found_la="$dir/lib$name.la"
6749 fi
6750 fi
6751 fi
6752 ;;
6753 esac
6754 if test "X$found_dir" != "X"; then
6755 break
6756 fi
6757 done
6758 fi
6759 if test "X$found_dir" != "X"; then
6760 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6761 if test "X$found_so" != "X"; then
6762 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6763 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6764 else
6765 haveit=
6766 for x in $ltrpathdirs; do
6767 if test "X$x" = "X$found_dir"; then
6768 haveit=yes
6769 break
6770 fi
6771 done
6772 if test -z "$haveit"; then
6773 ltrpathdirs="$ltrpathdirs $found_dir"
6774 fi
6775 if test "$hardcode_direct" = yes; then
6776 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6777 else
6778 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6779 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6780 haveit=
6781 for x in $rpathdirs; do
6782 if test "X$x" = "X$found_dir"; then
6783 haveit=yes
6784 break
6785 fi
6786 done
6787 if test -z "$haveit"; then
6788 rpathdirs="$rpathdirs $found_dir"
6789 fi
6790 else
6791 haveit=
6792 for x in $LDFLAGS $LIBEXPAT; do
6793
6794 acl_save_prefix="$prefix"
6795 prefix="$acl_final_prefix"
6796 acl_save_exec_prefix="$exec_prefix"
6797 exec_prefix="$acl_final_exec_prefix"
6798 eval x=\"$x\"
6799 exec_prefix="$acl_save_exec_prefix"
6800 prefix="$acl_save_prefix"
6801
6802 if test "X$x" = "X-L$found_dir"; then
6803 haveit=yes
6804 break
6805 fi
6806 done
6807 if test -z "$haveit"; then
6808 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6809 fi
6810 if test "$hardcode_minus_L" != no; then
6811 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6812 else
6813 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6814 fi
6815 fi
6816 fi
6817 fi
6818 else
6819 if test "X$found_a" != "X"; then
6820 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6821 else
6822 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6823 fi
6824 fi
6825 additional_includedir=
6826 case "$found_dir" in
6827 */lib | */lib/)
6828 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6829 additional_includedir="$basedir/include"
6830 ;;
6831 esac
6832 if test "X$additional_includedir" != "X"; then
6833 if test "X$additional_includedir" != "X/usr/include"; then
6834 haveit=
6835 if test "X$additional_includedir" = "X/usr/local/include"; then
6836 if test -n "$GCC"; then
6837 case $host_os in
6838 linux*) haveit=yes;;
6839 esac
6840 fi
6841 fi
6842 if test -z "$haveit"; then
6843 for x in $CPPFLAGS $INCEXPAT; do
6844
6845 acl_save_prefix="$prefix"
6846 prefix="$acl_final_prefix"
6847 acl_save_exec_prefix="$exec_prefix"
6848 exec_prefix="$acl_final_exec_prefix"
6849 eval x=\"$x\"
6850 exec_prefix="$acl_save_exec_prefix"
6851 prefix="$acl_save_prefix"
6852
6853 if test "X$x" = "X-I$additional_includedir"; then
6854 haveit=yes
6855 break
6856 fi
6857 done
6858 if test -z "$haveit"; then
6859 if test -d "$additional_includedir"; then
6860 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6861 fi
6862 fi
6863 fi
6864 fi
6865 fi
6866 if test -n "$found_la"; then
6867 save_libdir="$libdir"
6868 case "$found_la" in
6869 */* | *\\*) . "$found_la" ;;
6870 *) . "./$found_la" ;;
6871 esac
6872 libdir="$save_libdir"
6873 for dep in $dependency_libs; do
6874 case "$dep" in
6875 -L*)
6876 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6877 if test "X$additional_libdir" != "X/usr/lib"; then
6878 haveit=
6879 if test "X$additional_libdir" = "X/usr/local/lib"; then
6880 if test -n "$GCC"; then
6881 case $host_os in
6882 linux*) haveit=yes;;
6883 esac
6884 fi
6885 fi
6886 if test -z "$haveit"; then
6887 haveit=
6888 for x in $LDFLAGS $LIBEXPAT; do
6889
6890 acl_save_prefix="$prefix"
6891 prefix="$acl_final_prefix"
6892 acl_save_exec_prefix="$exec_prefix"
6893 exec_prefix="$acl_final_exec_prefix"
6894 eval x=\"$x\"
6895 exec_prefix="$acl_save_exec_prefix"
6896 prefix="$acl_save_prefix"
6897
6898 if test "X$x" = "X-L$additional_libdir"; then
6899 haveit=yes
6900 break
6901 fi
6902 done
6903 if test -z "$haveit"; then
6904 if test -d "$additional_libdir"; then
6905 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6906 fi
6907 fi
6908 haveit=
6909 for x in $LDFLAGS $LTLIBEXPAT; do
6910
6911 acl_save_prefix="$prefix"
6912 prefix="$acl_final_prefix"
6913 acl_save_exec_prefix="$exec_prefix"
6914 exec_prefix="$acl_final_exec_prefix"
6915 eval x=\"$x\"
6916 exec_prefix="$acl_save_exec_prefix"
6917 prefix="$acl_save_prefix"
6918
6919 if test "X$x" = "X-L$additional_libdir"; then
6920 haveit=yes
6921 break
6922 fi
6923 done
6924 if test -z "$haveit"; then
6925 if test -d "$additional_libdir"; then
6926 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6927 fi
6928 fi
6929 fi
6930 fi
6931 ;;
6932 -R*)
6933 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6934 if test "$enable_rpath" != no; then
6935 haveit=
6936 for x in $rpathdirs; do
6937 if test "X$x" = "X$dir"; then
6938 haveit=yes
6939 break
6940 fi
6941 done
6942 if test -z "$haveit"; then
6943 rpathdirs="$rpathdirs $dir"
6944 fi
6945 haveit=
6946 for x in $ltrpathdirs; do
6947 if test "X$x" = "X$dir"; then
6948 haveit=yes
6949 break
6950 fi
6951 done
6952 if test -z "$haveit"; then
6953 ltrpathdirs="$ltrpathdirs $dir"
6954 fi
6955 fi
6956 ;;
6957 -l*)
6958 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6959 ;;
6960 *.la)
6961 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6962 ;;
6963 *)
6964 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6965 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6966 ;;
6967 esac
6968 done
6969 fi
6970 else
6971 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6972 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6973 fi
6974 fi
6975 fi
6976 done
6977 done
6978 if test "X$rpathdirs" != "X"; then
6979 if test -n "$hardcode_libdir_separator"; then
6980 alldirs=
6981 for found_dir in $rpathdirs; do
6982 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6983 done
6984 acl_save_libdir="$libdir"
6985 libdir="$alldirs"
6986 eval flag=\"$hardcode_libdir_flag_spec\"
6987 libdir="$acl_save_libdir"
6988 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6989 else
6990 for found_dir in $rpathdirs; do
6991 acl_save_libdir="$libdir"
6992 libdir="$found_dir"
6993 eval flag=\"$hardcode_libdir_flag_spec\"
6994 libdir="$acl_save_libdir"
6995 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6996 done
6997 fi
6998 fi
6999 if test "X$ltrpathdirs" != "X"; then
7000 for found_dir in $ltrpathdirs; do
7001 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7002 done
7003 fi
7004
7005
7006 ac_save_CPPFLAGS="$CPPFLAGS"
7007
7008 for element in $INCEXPAT; do
7009 haveit=
7010 for x in $CPPFLAGS; do
7011
7012 acl_save_prefix="$prefix"
7013 prefix="$acl_final_prefix"
7014 acl_save_exec_prefix="$exec_prefix"
7015 exec_prefix="$acl_final_exec_prefix"
7016 eval x=\"$x\"
7017 exec_prefix="$acl_save_exec_prefix"
7018 prefix="$acl_save_prefix"
7019
7020 if test "X$x" = "X$element"; then
7021 haveit=yes
7022 break
7023 fi
7024 done
7025 if test -z "$haveit"; then
7026 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7027 fi
7028 done
7029
7030
7031 echo "$as_me:$LINENO: checking for libexpat" >&5
7032echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
7033if test "${ac_cv_libexpat+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035else
7036
7037 ac_save_LIBS="$LIBS"
7038 LIBS="$LIBS $LIBEXPAT"
7039 cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h. */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h. */
7045#include "expat.h"
7046int
7047main ()
7048{
7049XML_Parser p = XML_ParserCreate (0);
7050 ;
7051 return 0;
7052}
7053_ACEOF
7054rm -f conftest.$ac_objext conftest$ac_exeext
7055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056 (eval $ac_link) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest$ac_exeext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_libexpat=yes
7077else
7078 echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5
7080
7081ac_cv_libexpat=no
7082fi
7083rm -f conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext
7085 LIBS="$ac_save_LIBS"
7086
7087fi
7088echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
7089echo "${ECHO_T}$ac_cv_libexpat" >&6
7090 if test "$ac_cv_libexpat" = yes; then
7091 HAVE_LIBEXPAT=yes
7092
7093cat >>confdefs.h <<\_ACEOF
7094#define HAVE_LIBEXPAT 1
7095_ACEOF
7096
7097 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
7098echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
7099 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
7100echo "${ECHO_T}$LIBEXPAT" >&6
7101 else
7102 HAVE_LIBEXPAT=no
7103 CPPFLAGS="$ac_save_CPPFLAGS"
7104 LIBEXPAT=
7105 LTLIBEXPAT=
7106 fi
7107
7108
7109
7110
7111
7112
5c39566f
DJ
7113 if test "$HAVE_LIBEXPAT" != yes; then
7114 if test "$with_expat" = yes; then
7115 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
7116echo "$as_me: error: expat is missing or unusable" >&2;}
7117 { (exit 1); exit 1; }; }
7118 else
7119 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7120echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7121 fi
7122 else
7123 save_LIBS=$LIBS
7124 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
7125
7126for ac_func in XML_StopParser
7127do
7128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7129echo "$as_me:$LINENO: checking for $ac_func" >&5
7130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7131if eval "test \"\${$as_ac_var+set}\" = set"; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 cat >conftest.$ac_ext <<_ACEOF
7135/* confdefs.h. */
7136_ACEOF
7137cat confdefs.h >>conftest.$ac_ext
7138cat >>conftest.$ac_ext <<_ACEOF
7139/* end confdefs.h. */
7140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7142#define $ac_func innocuous_$ac_func
7143
7144/* System header to define __stub macros and hopefully few prototypes,
7145 which can conflict with char $ac_func (); below.
7146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7147 <limits.h> exists even on freestanding compilers. */
7148
7149#ifdef __STDC__
7150# include <limits.h>
7151#else
7152# include <assert.h>
7153#endif
7154
7155#undef $ac_func
7156
7157/* Override any gcc2 internal prototype to avoid an error. */
7158#ifdef __cplusplus
7159extern "C"
7160{
7161#endif
7162/* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7164char $ac_func ();
7165/* The GNU C library defines this for functions which it implements
7166 to always fail with ENOSYS. Some functions are actually named
7167 something starting with __ and the normal name is an alias. */
7168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7169choke me
7170#else
7171char (*f) () = $ac_func;
7172#endif
7173#ifdef __cplusplus
7174}
7175#endif
7176
7177int
7178main ()
7179{
7180return f != $ac_func;
7181 ;
7182 return 0;
7183}
7184_ACEOF
7185rm -f conftest.$ac_objext conftest$ac_exeext
7186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187 (eval $ac_link) 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try='test -z "$ac_c_werror_flag"
7195 || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try='test -s conftest$ac_exeext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 eval "$as_ac_var=yes"
7208else
7209 echo "$as_me: failed program was:" >&5
7210sed 's/^/| /' conftest.$ac_ext >&5
7211
7212eval "$as_ac_var=no"
7213fi
7214rm -f conftest.err conftest.$ac_objext \
7215 conftest$ac_exeext conftest.$ac_ext
7216fi
7217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7219if test `eval echo '${'$as_ac_var'}'` = yes; then
7220 cat >>confdefs.h <<_ACEOF
7221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7222_ACEOF
7223
7224fi
7225done
7226
5c39566f
DJ
7227 LIBS=$save_LIBS
7228 fi
3841debe
DJ
7229fi
7230
bec39cab
AC
7231# ------------------------- #
7232# Checks for header files. #
7233# ------------------------- #
8ee53726 7234
0e5d83e3 7235
bec39cab
AC
7236
7237
7238
7239
7240ac_header_dirent=no
7241for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7242 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
7243echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7244echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7245if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248 cat >conftest.$ac_ext <<_ACEOF
7249/* confdefs.h. */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h. */
7254#include <sys/types.h>
0e5d83e3 7255#include <$ac_hdr>
bec39cab
AC
7256
7257int
7258main ()
7259{
7260if ((DIR *) 0)
7261return 0;
7262 ;
7263 return 0;
7264}
7265_ACEOF
7266rm -f conftest.$ac_objext
7267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
b4e70030
JB
7275 { ac_try='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
bec39cab
AC
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 eval "$as_ac_Header=yes"
7289else
7290 echo "$as_me: failed program was:" >&5
7291sed 's/^/| /' conftest.$ac_ext >&5
7292
b4e70030 7293eval "$as_ac_Header=no"
bec39cab
AC
7294fi
7295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7296fi
b4e70030
JB
7297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7299if test `eval echo '${'$as_ac_Header'}'` = yes; then
7300 cat >>confdefs.h <<_ACEOF
7301#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7302_ACEOF
7303
7304ac_header_dirent=$ac_hdr; break
0e5d83e3 7305fi
0e5d83e3 7306
bec39cab
AC
7307done
7308# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7309if test $ac_header_dirent = dirent.h; then
b4e70030
JB
7310 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7311echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
7312if test "${ac_cv_search_opendir+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315 ac_func_search_save_LIBS=$LIBS
b4e70030 7316ac_cv_search_opendir=no
bec39cab
AC
7317cat >conftest.$ac_ext <<_ACEOF
7318/* confdefs.h. */
7319_ACEOF
7320cat confdefs.h >>conftest.$ac_ext
7321cat >>conftest.$ac_ext <<_ACEOF
7322/* end confdefs.h. */
0e5d83e3 7323
b4e70030 7324/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
7325#ifdef __cplusplus
7326extern "C"
7327#endif
b4e70030
JB
7328/* We use char because int might match the return type of a gcc2
7329 builtin and then its argument prototype would still apply. */
bec39cab
AC
7330char opendir ();
7331int
7332main ()
7333{
b4e70030 7334opendir ();
bec39cab
AC
7335 ;
7336 return 0;
7337}
7338_ACEOF
b4e70030 7339rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
7340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
b4e70030
JB
7348 { ac_try='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
bec39cab
AC
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest$ac_exeext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
b4e70030 7361 ac_cv_search_opendir="none required"
bec39cab
AC
7362else
7363 echo "$as_me: failed program was:" >&5
7364sed 's/^/| /' conftest.$ac_ext >&5
7365
7366fi
bec39cab 7367rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
7368 conftest$ac_exeext conftest.$ac_ext
7369if test "$ac_cv_search_opendir" = no; then
7370 for ac_lib in dir; do
7371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7372 cat >conftest.$ac_ext <<_ACEOF
7373/* confdefs.h. */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h. */
7378
7379/* Override any gcc2 internal prototype to avoid an error. */
7380#ifdef __cplusplus
7381extern "C"
7382#endif
7383/* We use char because int might match the return type of a gcc2
7384 builtin and then its argument prototype would still apply. */
7385char opendir ();
7386int
7387main ()
7388{
7389opendir ();
7390 ;
7391 return 0;
7392}
7393_ACEOF
7394rm -f conftest.$ac_objext conftest$ac_exeext
7395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7396 (eval $ac_link) 2>conftest.er1
7397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -z "$ac_c_werror_flag"
7404 || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_cv_search_opendir="-l$ac_lib"
7417break
4e8d927d 7418else
b4e70030
JB
7419 echo "$as_me: failed program was:" >&5
7420sed 's/^/| /' conftest.$ac_ext >&5
7421
7422fi
7423rm -f conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425 done
0e5d83e3 7426fi
bec39cab 7427LIBS=$ac_func_search_save_LIBS
0e5d83e3 7428fi
b4e70030
JB
7429echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7430echo "${ECHO_T}$ac_cv_search_opendir" >&6
7431if test "$ac_cv_search_opendir" != no; then
7432 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 7433
0e5d83e3
JJ
7434fi
7435
d28f9cdf 7436else
b4e70030
JB
7437 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7438echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
7439if test "${ac_cv_search_opendir+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442 ac_func_search_save_LIBS=$LIBS
b4e70030 7443ac_cv_search_opendir=no
bec39cab
AC
7444cat >conftest.$ac_ext <<_ACEOF
7445/* confdefs.h. */
7446_ACEOF
7447cat confdefs.h >>conftest.$ac_ext
7448cat >>conftest.$ac_ext <<_ACEOF
7449/* end confdefs.h. */
d28f9cdf 7450
b4e70030 7451/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
7452#ifdef __cplusplus
7453extern "C"
d28f9cdf 7454#endif
b4e70030
JB
7455/* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
bec39cab
AC
7457char opendir ();
7458int
7459main ()
7460{
b4e70030 7461opendir ();
bec39cab
AC
7462 ;
7463 return 0;
7464}
7465_ACEOF
b4e70030 7466rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
7467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468 (eval $ac_link) 2>conftest.er1
7469 ac_status=$?
7470 grep -v '^ *+' conftest.er1 >conftest.err
7471 rm -f conftest.er1
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
b4e70030
JB
7475 { ac_try='test -z "$ac_c_werror_flag"
7476 || test ! -s conftest.err'
bec39cab
AC
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try='test -s conftest$ac_exeext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
b4e70030 7488 ac_cv_search_opendir="none required"
d28f9cdf 7489else
bec39cab
AC
7490 echo "$as_me: failed program was:" >&5
7491sed 's/^/| /' conftest.$ac_ext >&5
7492
d28f9cdf 7493fi
bec39cab 7494rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
7495 conftest$ac_exeext conftest.$ac_ext
7496if test "$ac_cv_search_opendir" = no; then
7497 for ac_lib in x; do
7498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7499 cat >conftest.$ac_ext <<_ACEOF
7500/* confdefs.h. */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h. */
7505
7506/* Override any gcc2 internal prototype to avoid an error. */
7507#ifdef __cplusplus
7508extern "C"
7509#endif
7510/* We use char because int might match the return type of a gcc2
7511 builtin and then its argument prototype would still apply. */
7512char opendir ();
7513int
7514main ()
7515{
7516opendir ();
7517 ;
7518 return 0;
7519}
7520_ACEOF
7521rm -f conftest.$ac_objext conftest$ac_exeext
7522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7523 (eval $ac_link) 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest$ac_exeext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_search_opendir="-l$ac_lib"
7544break
4e8d927d 7545else
b4e70030
JB
7546 echo "$as_me: failed program was:" >&5
7547sed 's/^/| /' conftest.$ac_ext >&5
7548
7549fi
7550rm -f conftest.err conftest.$ac_objext \
7551 conftest$ac_exeext conftest.$ac_ext
7552 done
bec39cab
AC
7553fi
7554LIBS=$ac_func_search_save_LIBS
d28f9cdf 7555fi
b4e70030
JB
7556echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7557echo "${ECHO_T}$ac_cv_search_opendir" >&6
7558if test "$ac_cv_search_opendir" != no; then
7559 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 7560
d28f9cdf
DJ
7561fi
7562
bec39cab 7563fi
b0b1c2c0 7564
b4e70030
JB
7565echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7566echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
7567if test "${ac_cv_header_stat_broken+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 7569else
bec39cab
AC
7570 cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */
7576#include <sys/types.h>
7577#include <sys/stat.h>
b0b1c2c0 7578
b4e70030 7579#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
7580# if S_ISBLK (S_IFDIR)
7581You lose.
7582# endif
7583#endif
b0b1c2c0 7584
b4e70030 7585#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
7586# if S_ISBLK (S_IFCHR)
7587You lose.
7588# endif
7589#endif
d28f9cdf 7590
b4e70030 7591#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
7592# if S_ISLNK (S_IFREG)
7593You lose.
7594# endif
7595#endif
d28f9cdf 7596
b4e70030 7597#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
7598# if S_ISSOCK (S_IFREG)
7599You lose.
7600# endif
7601#endif
7602
7603_ACEOF
7604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7605 $EGREP "You lose" >/dev/null 2>&1; then
7606 ac_cv_header_stat_broken=yes
d28f9cdf 7607else
bec39cab 7608 ac_cv_header_stat_broken=no
d28f9cdf
DJ
7609fi
7610rm -f conftest*
d28f9cdf 7611
d28f9cdf 7612fi
b4e70030
JB
7613echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7614echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 7615if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 7616
bec39cab
AC
7617cat >>confdefs.h <<\_ACEOF
7618#define STAT_MACROS_BROKEN 1
7619_ACEOF
8bb2c122 7620
7a292a7a 7621fi
bec39cab 7622
b4e70030
JB
7623echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7624echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
7625if test "${ac_cv_header_stdc+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 7627else
bec39cab
AC
7628 cat >conftest.$ac_ext <<_ACEOF
7629/* confdefs.h. */
7630_ACEOF
7631cat confdefs.h >>conftest.$ac_ext
7632cat >>conftest.$ac_ext <<_ACEOF
7633/* end confdefs.h. */
7634#include <stdlib.h>
7635#include <stdarg.h>
7636#include <string.h>
7637#include <float.h>
7a292a7a 7638
bec39cab
AC
7639int
7640main ()
7641{
7a292a7a 7642
bec39cab
AC
7643 ;
7644 return 0;
7645}
7646_ACEOF
7647rm -f conftest.$ac_objext
7648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
b4e70030
JB
7656 { ac_try='test -z "$ac_c_werror_flag"
7657 || test ! -s conftest.err'
bec39cab
AC
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_cv_header_stdc=yes
c906108c 7670else
bec39cab
AC
7671 echo "$as_me: failed program was:" >&5
7672sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7673
b4e70030 7674ac_cv_header_stdc=no
c906108c 7675fi
bec39cab 7676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7677
bec39cab
AC
7678if test $ac_cv_header_stdc = yes; then
7679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7680 cat >conftest.$ac_ext <<_ACEOF
7681/* confdefs.h. */
7682_ACEOF
7683cat confdefs.h >>conftest.$ac_ext
7684cat >>conftest.$ac_ext <<_ACEOF
7685/* end confdefs.h. */
7686#include <string.h>
c906108c 7687
bec39cab
AC
7688_ACEOF
7689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7690 $EGREP "memchr" >/dev/null 2>&1; then
7691 :
8bb2c122 7692else
bec39cab 7693 ac_cv_header_stdc=no
8bb2c122 7694fi
bec39cab
AC
7695rm -f conftest*
7696
c906108c
SS
7697fi
7698
bec39cab
AC
7699if test $ac_cv_header_stdc = yes; then
7700 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7701 cat >conftest.$ac_ext <<_ACEOF
7702/* confdefs.h. */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h. */
7707#include <stdlib.h>
7708
7709_ACEOF
7710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711 $EGREP "free" >/dev/null 2>&1; then
7712 :
c906108c 7713else
bec39cab 7714 ac_cv_header_stdc=no
c906108c 7715fi
bec39cab
AC
7716rm -f conftest*
7717
c906108c
SS
7718fi
7719
bec39cab
AC
7720if test $ac_cv_header_stdc = yes; then
7721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7722 if test "$cross_compiling" = yes; then
7723 :
c906108c 7724else
bec39cab
AC
7725 cat >conftest.$ac_ext <<_ACEOF
7726/* confdefs.h. */
7727_ACEOF
7728cat confdefs.h >>conftest.$ac_ext
7729cat >>conftest.$ac_ext <<_ACEOF
7730/* end confdefs.h. */
7731#include <ctype.h>
7732#if ((' ' & 0x0FF) == 0x020)
7733# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7734# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7735#else
7736# define ISLOWER(c) \
7737 (('a' <= (c) && (c) <= 'i') \
7738 || ('j' <= (c) && (c) <= 'r') \
7739 || ('s' <= (c) && (c) <= 'z'))
7740# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7741#endif
7742
7743#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7744int
7745main ()
7746{
7747 int i;
7748 for (i = 0; i < 256; i++)
7749 if (XOR (islower (i), ISLOWER (i))
7750 || toupper (i) != TOUPPER (i))
b4e70030
JB
7751 exit(2);
7752 exit (0);
bec39cab
AC
7753}
7754_ACEOF
7755rm -f conftest$ac_exeext
7756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 :
7767else
7768 echo "$as_me: program exited with status $ac_status" >&5
7769echo "$as_me: failed program was:" >&5
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7772( exit $ac_status )
7773ac_cv_header_stdc=no
c906108c 7774fi
b4e70030 7775rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7776fi
c906108c 7777fi
bec39cab 7778fi
b4e70030
JB
7779echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7780echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7781if test $ac_cv_header_stdc = yes; then
c906108c 7782
bec39cab
AC
7783cat >>confdefs.h <<\_ACEOF
7784#define STDC_HEADERS 1
7785_ACEOF
c906108c 7786
bec39cab 7787fi
8bb2c122 7788
bec39cab 7789
7cb9022a 7790for ac_header in nlist.h
bec39cab
AC
7791do
7792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7793if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794 echo "$as_me:$LINENO: checking for $ac_header" >&5
7795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7796if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798fi
b4e70030
JB
7799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7801else
7802 # Is the header compilable?
b4e70030
JB
7803echo "$as_me:$LINENO: checking $ac_header usability" >&5
7804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7805cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h. */
7811$ac_includes_default
7812#include <$ac_header>
7813_ACEOF
7814rm -f conftest.$ac_objext
7815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816 (eval $ac_compile) 2>conftest.er1
7817 ac_status=$?
7818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
b4e70030
JB
7823 { ac_try='test -z "$ac_c_werror_flag"
7824 || test ! -s conftest.err'
bec39cab
AC
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest.$ac_objext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_header_compiler=yes
7837else
7838 echo "$as_me: failed program was:" >&5
7839sed 's/^/| /' conftest.$ac_ext >&5
7840
b4e70030 7841ac_header_compiler=no
bec39cab
AC
7842fi
7843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7845echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7846
7847# Is the header present?
b4e70030
JB
7848echo "$as_me:$LINENO: checking $ac_header presence" >&5
7849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7850cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h. */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h. */
7856#include <$ac_header>
7857_ACEOF
7858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } >/dev/null; then
7866 if test -s conftest.err; then
7867 ac_cpp_err=$ac_c_preproc_warn_flag
7868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7869 else
7870 ac_cpp_err=
7871 fi
c906108c 7872else
bec39cab 7873 ac_cpp_err=yes
c906108c 7874fi
bec39cab
AC
7875if test -z "$ac_cpp_err"; then
7876 ac_header_preproc=yes
c906108c 7877else
bec39cab
AC
7878 echo "$as_me: failed program was:" >&5
7879sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7880
bec39cab
AC
7881 ac_header_preproc=no
7882fi
7883rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7885echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7886
bec39cab
AC
7887# So? What about this header?
7888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7889 yes:no: )
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7894 ac_header_preproc=yes
7895 ;;
7896 no:yes:* )
7897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7909 (
7910 cat <<\_ASBOX
7911## ------------------------------------------ ##
7912## Report this to the AC_PACKAGE_NAME lists. ##
7913## ------------------------------------------ ##
7914_ASBOX
7915 ) |
7916 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7917 ;;
7918esac
b4e70030
JB
7919echo "$as_me:$LINENO: checking for $ac_header" >&5
7920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7921if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7922 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7923else
bec39cab 7924 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7925fi
b4e70030
JB
7926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7928
95ca63c4 7929fi
bec39cab
AC
7930if test `eval echo '${'$as_ac_Header'}'` = yes; then
7931 cat >>confdefs.h <<_ACEOF
7932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7933_ACEOF
7934
95ca63c4
CF
7935fi
7936
bec39cab 7937done
95ca63c4
CF
7938
7939
7cb9022a 7940for ac_header in link.h
bec39cab
AC
7941do
7942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7943echo "$as_me:$LINENO: checking for $ac_header" >&5
7944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7945if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7946 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7947else
7cb9022a 7948 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */
7cb9022a
MK
7954#if HAVE_SYS_TYPES_H
7955# include <sys/types.h>
7956#endif
7957#if HAVE_NLIST_H
7958# include <nlist.h>
7959#endif
7960
7961
bec39cab
AC
7962#include <$ac_header>
7963_ACEOF
7964rm -f conftest.$ac_objext
7965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7966 (eval $ac_compile) 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
b4e70030
JB
7973 { ac_try='test -z "$ac_c_werror_flag"
7974 || test ! -s conftest.err'
bec39cab
AC
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; } &&
7980 { ac_try='test -s conftest.$ac_objext'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7cb9022a 7986 eval "$as_ac_Header=yes"
bec39cab
AC
7987else
7988 echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
b4e70030 7991eval "$as_ac_Header=no"
bec39cab
AC
7992fi
7993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7994fi
b4e70030
JB
7995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7997if test `eval echo '${'$as_ac_Header'}'` = yes; then
7998 cat >>confdefs.h <<_ACEOF
7999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000_ACEOF
95ca63c4 8001
bec39cab 8002fi
95ca63c4 8003
bec39cab 8004done
95ca63c4 8005
c906108c 8006
7cb9022a 8007for ac_header in machine/reg.h
bec39cab
AC
8008do
8009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8010if eval "test \"\${$as_ac_Header+set}\" = set"; then
8011 echo "$as_me:$LINENO: checking for $ac_header" >&5
8012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8013if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015fi
b4e70030
JB
8016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8018else
8019 # Is the header compilable?
b4e70030
JB
8020echo "$as_me:$LINENO: checking $ac_header usability" >&5
8021echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8022cat >conftest.$ac_ext <<_ACEOF
8023/* confdefs.h. */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h. */
8028$ac_includes_default
8029#include <$ac_header>
8030_ACEOF
8031rm -f conftest.$ac_objext
8032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033 (eval $ac_compile) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
b4e70030
JB
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
bec39cab
AC
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_header_compiler=yes
8054else
8055 echo "$as_me: failed program was:" >&5
8056sed 's/^/| /' conftest.$ac_ext >&5
8057
b4e70030 8058ac_header_compiler=no
bec39cab
AC
8059fi
8060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8062echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8063
8064# Is the header present?
b4e70030
JB
8065echo "$as_me:$LINENO: checking $ac_header presence" >&5
8066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8067cat >conftest.$ac_ext <<_ACEOF
8068/* confdefs.h. */
8069_ACEOF
8070cat confdefs.h >>conftest.$ac_ext
8071cat >>conftest.$ac_ext <<_ACEOF
8072/* end confdefs.h. */
8073#include <$ac_header>
8074_ACEOF
8075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } >/dev/null; then
8083 if test -s conftest.err; then
8084 ac_cpp_err=$ac_c_preproc_warn_flag
8085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8086 else
8087 ac_cpp_err=
8088 fi
75c6e08a 8089else
bec39cab 8090 ac_cpp_err=yes
75c6e08a 8091fi
bec39cab
AC
8092if test -z "$ac_cpp_err"; then
8093 ac_header_preproc=yes
8094else
8095 echo "$as_me: failed program was:" >&5
8096sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_header_preproc=no
75c6e08a 8099fi
bec39cab 8100rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8101echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8102echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8103
8104# So? What about this header?
8105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8106 yes:no: )
8107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8111 ac_header_preproc=yes
8112 ;;
8113 no:yes:* )
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8126 (
8127 cat <<\_ASBOX
8128## ------------------------------------------ ##
8129## Report this to the AC_PACKAGE_NAME lists. ##
8130## ------------------------------------------ ##
8131_ASBOX
8132 ) |
8133 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8134 ;;
8135esac
b4e70030
JB
8136echo "$as_me:$LINENO: checking for $ac_header" >&5
8137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8138if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8139 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 8140else
bec39cab
AC
8141 eval "$as_ac_Header=\$ac_header_preproc"
8142fi
b4e70030
JB
8143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8144echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8145
75c6e08a 8146fi
bec39cab
AC
8147if test `eval echo '${'$as_ac_Header'}'` = yes; then
8148 cat >>confdefs.h <<_ACEOF
8149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8150_ACEOF
75c6e08a 8151
bec39cab 8152fi
75c6e08a 8153
bec39cab 8154done
75c6e08a
MK
8155
8156
9a156167 8157
bec39cab
AC
8158for ac_header in poll.h sys/poll.h
8159do
8160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8161if eval "test \"\${$as_ac_Header+set}\" = set"; then
8162 echo "$as_me:$LINENO: checking for $ac_header" >&5
8163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8164if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166fi
b4e70030
JB
8167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8169else
8170 # Is the header compilable?
b4e70030
JB
8171echo "$as_me:$LINENO: checking $ac_header usability" >&5
8172echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8173cat >conftest.$ac_ext <<_ACEOF
8174/* confdefs.h. */
8175_ACEOF
8176cat confdefs.h >>conftest.$ac_ext
8177cat >>conftest.$ac_ext <<_ACEOF
8178/* end confdefs.h. */
8179$ac_includes_default
8180#include <$ac_header>
8181_ACEOF
8182rm -f conftest.$ac_objext
8183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8184 (eval $ac_compile) 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
b4e70030
JB
8191 { ac_try='test -z "$ac_c_werror_flag"
8192 || test ! -s conftest.err'
bec39cab
AC
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 (eval $ac_try) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; } &&
8198 { ac_try='test -s conftest.$ac_objext'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 ac_header_compiler=yes
8205else
8206 echo "$as_me: failed program was:" >&5
8207sed 's/^/| /' conftest.$ac_ext >&5
8208
b4e70030 8209ac_header_compiler=no
bec39cab
AC
8210fi
8211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8212echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8213echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8214
8215# Is the header present?
b4e70030
JB
8216echo "$as_me:$LINENO: checking $ac_header presence" >&5
8217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8218cat >conftest.$ac_ext <<_ACEOF
8219/* confdefs.h. */
8220_ACEOF
8221cat confdefs.h >>conftest.$ac_ext
8222cat >>conftest.$ac_ext <<_ACEOF
8223/* end confdefs.h. */
8224#include <$ac_header>
8225_ACEOF
8226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } >/dev/null; then
8234 if test -s conftest.err; then
8235 ac_cpp_err=$ac_c_preproc_warn_flag
8236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8237 else
8238 ac_cpp_err=
8239 fi
9a156167 8240else
bec39cab 8241 ac_cpp_err=yes
9a156167 8242fi
bec39cab
AC
8243if test -z "$ac_cpp_err"; then
8244 ac_header_preproc=yes
8245else
8246 echo "$as_me: failed program was:" >&5
8247sed 's/^/| /' conftest.$ac_ext >&5
9a156167 8248
bec39cab 8249 ac_header_preproc=no
9a156167 8250fi
bec39cab 8251rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8252echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8253echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 8254
bec39cab
AC
8255# So? What about this header?
8256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8257 yes:no: )
8258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8261echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8262 ac_header_preproc=yes
8263 ;;
8264 no:yes:* )
8265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8268echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8270echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8272echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8276echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8277 (
8278 cat <<\_ASBOX
8279## ------------------------------------------ ##
8280## Report this to the AC_PACKAGE_NAME lists. ##
8281## ------------------------------------------ ##
8282_ASBOX
8283 ) |
8284 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8285 ;;
8286esac
b4e70030
JB
8287echo "$as_me:$LINENO: checking for $ac_header" >&5
8288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8289if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8290 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8291else
bec39cab 8292 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8293fi
b4e70030
JB
8294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 8296
bec39cab
AC
8297fi
8298if test `eval echo '${'$as_ac_Header'}'` = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8301_ACEOF
9a156167 8302
bec39cab 8303fi
9a156167 8304
bec39cab 8305done
9a156167 8306
9a156167 8307
9a156167 8308
bec39cab
AC
8309
8310for ac_header in proc_service.h thread_db.h gnu/libc-version.h
8311do
8312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8313if eval "test \"\${$as_ac_Header+set}\" = set"; then
8314 echo "$as_me:$LINENO: checking for $ac_header" >&5
8315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8316if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318fi
b4e70030
JB
8319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8321else
8322 # Is the header compilable?
b4e70030
JB
8323echo "$as_me:$LINENO: checking $ac_header usability" >&5
8324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8325cat >conftest.$ac_ext <<_ACEOF
8326/* confdefs.h. */
8327_ACEOF
8328cat confdefs.h >>conftest.$ac_ext
8329cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
8330/* end confdefs.h. */
8331$ac_includes_default
8332#include <$ac_header>
8333_ACEOF
8334rm -f conftest.$ac_objext
8335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_header_compiler=yes
8357else
8358 echo "$as_me: failed program was:" >&5
8359sed 's/^/| /' conftest.$ac_ext >&5
8360
8361ac_header_compiler=no
8362fi
8363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8364echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8365echo "${ECHO_T}$ac_header_compiler" >&6
8366
8367# Is the header present?
8368echo "$as_me:$LINENO: checking $ac_header presence" >&5
8369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8370cat >conftest.$ac_ext <<_ACEOF
8371/* confdefs.h. */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h. */
8376#include <$ac_header>
8377_ACEOF
8378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } >/dev/null; then
8386 if test -s conftest.err; then
8387 ac_cpp_err=$ac_c_preproc_warn_flag
8388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8389 else
8390 ac_cpp_err=
8391 fi
8392else
8393 ac_cpp_err=yes
8394fi
8395if test -z "$ac_cpp_err"; then
8396 ac_header_preproc=yes
8397else
8398 echo "$as_me: failed program was:" >&5
8399sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 ac_header_preproc=no
8402fi
8403rm -f conftest.err conftest.$ac_ext
8404echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8405echo "${ECHO_T}$ac_header_preproc" >&6
8406
8407# So? What about this header?
8408case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8409 yes:no: )
8410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8411echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8413echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8414 ac_header_preproc=yes
8415 ;;
8416 no:yes:* )
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8418echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8420echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8422echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8424echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8426echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8428echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8429 (
8430 cat <<\_ASBOX
8431## ------------------------------------------ ##
8432## Report this to the AC_PACKAGE_NAME lists. ##
8433## ------------------------------------------ ##
8434_ASBOX
8435 ) |
8436 sed "s/^/$as_me: WARNING: /" >&2
8437 ;;
8438esac
8439echo "$as_me:$LINENO: checking for $ac_header" >&5
8440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8441if eval "test \"\${$as_ac_Header+set}\" = set"; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443else
8444 eval "$as_ac_Header=\$ac_header_preproc"
8445fi
8446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8448
8449fi
8450if test `eval echo '${'$as_ac_Header'}'` = yes; then
8451 cat >>confdefs.h <<_ACEOF
8452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8453_ACEOF
8454
8455fi
8456
8457done
8458
8459
8460for ac_header in signal.h
8461do
8462as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8463if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464 echo "$as_me:$LINENO: checking for $ac_header" >&5
8465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8466if eval "test \"\${$as_ac_Header+set}\" = set"; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468fi
8469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8471else
8472 # Is the header compilable?
8473echo "$as_me:$LINENO: checking $ac_header usability" >&5
8474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8475cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
8480/* end confdefs.h. */
8481$ac_includes_default
8482#include <$ac_header>
8483_ACEOF
8484rm -f conftest.$ac_objext
8485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 (eval $ac_compile) 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
b4e70030
JB
8493 { ac_try='test -z "$ac_c_werror_flag"
8494 || test ! -s conftest.err'
bec39cab
AC
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest.$ac_objext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_header_compiler=yes
8507else
8508 echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
b4e70030 8511ac_header_compiler=no
bec39cab
AC
8512fi
8513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8514echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8515echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8516
8517# Is the header present?
b4e70030
JB
8518echo "$as_me:$LINENO: checking $ac_header presence" >&5
8519echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8520cat >conftest.$ac_ext <<_ACEOF
8521/* confdefs.h. */
8522_ACEOF
8523cat confdefs.h >>conftest.$ac_ext
8524cat >>conftest.$ac_ext <<_ACEOF
8525/* end confdefs.h. */
8526#include <$ac_header>
8527_ACEOF
8528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } >/dev/null; then
8536 if test -s conftest.err; then
8537 ac_cpp_err=$ac_c_preproc_warn_flag
8538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8539 else
8540 ac_cpp_err=
8541 fi
9a156167 8542else
bec39cab 8543 ac_cpp_err=yes
9a156167 8544fi
bec39cab
AC
8545if test -z "$ac_cpp_err"; then
8546 ac_header_preproc=yes
8547else
8548 echo "$as_me: failed program was:" >&5
8549sed 's/^/| /' conftest.$ac_ext >&5
9a156167 8550
bec39cab 8551 ac_header_preproc=no
9a156167 8552fi
bec39cab 8553rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8554echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8555echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 8556
bec39cab
AC
8557# So? What about this header?
8558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8559 yes:no: )
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8561echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8563echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8564 ac_header_preproc=yes
8565 ;;
8566 no:yes:* )
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8568echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8570echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8572echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8574echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8578echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8579 (
8580 cat <<\_ASBOX
8581## ------------------------------------------ ##
8582## Report this to the AC_PACKAGE_NAME lists. ##
8583## ------------------------------------------ ##
8584_ASBOX
8585 ) |
8586 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8587 ;;
8588esac
b4e70030
JB
8589echo "$as_me:$LINENO: checking for $ac_header" >&5
8590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8591if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8592 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8593else
bec39cab 8594 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8595fi
b4e70030
JB
8596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
8598
8599fi
bec39cab
AC
8600if test `eval echo '${'$as_ac_Header'}'` = yes; then
8601 cat >>confdefs.h <<_ACEOF
8602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8603_ACEOF
9a156167 8604
bec39cab
AC
8605fi
8606
8607done
9a156167 8608
c890192f 8609
bec39cab
AC
8610for ac_header in stddef.h
8611do
8612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8613if eval "test \"\${$as_ac_Header+set}\" = set"; then
8614 echo "$as_me:$LINENO: checking for $ac_header" >&5
8615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8616if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618fi
b4e70030
JB
8619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8621else
8622 # Is the header compilable?
b4e70030
JB
8623echo "$as_me:$LINENO: checking $ac_header usability" >&5
8624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8625cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h. */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */
8631$ac_includes_default
8632#include <$ac_header>
8633_ACEOF
8634rm -f conftest.$ac_objext
8635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8636 (eval $ac_compile) 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
b4e70030
JB
8643 { ac_try='test -z "$ac_c_werror_flag"
8644 || test ! -s conftest.err'
bec39cab
AC
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; } &&
8650 { ac_try='test -s conftest.$ac_objext'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 (eval $ac_try) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 ac_header_compiler=yes
8657else
8658 echo "$as_me: failed program was:" >&5
8659sed 's/^/| /' conftest.$ac_ext >&5
8660
b4e70030 8661ac_header_compiler=no
bec39cab
AC
8662fi
8663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8664echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8665echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8666
8667# Is the header present?
b4e70030
JB
8668echo "$as_me:$LINENO: checking $ac_header presence" >&5
8669echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8670cat >conftest.$ac_ext <<_ACEOF
8671/* confdefs.h. */
8672_ACEOF
8673cat confdefs.h >>conftest.$ac_ext
8674cat >>conftest.$ac_ext <<_ACEOF
8675/* end confdefs.h. */
8676#include <$ac_header>
8677_ACEOF
8678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } >/dev/null; then
8686 if test -s conftest.err; then
8687 ac_cpp_err=$ac_c_preproc_warn_flag
8688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8689 else
8690 ac_cpp_err=
8691 fi
c890192f 8692else
bec39cab
AC
8693 ac_cpp_err=yes
8694fi
8695if test -z "$ac_cpp_err"; then
8696 ac_header_preproc=yes
c890192f 8697else
bec39cab
AC
8698 echo "$as_me: failed program was:" >&5
8699sed 's/^/| /' conftest.$ac_ext >&5
8700
8701 ac_header_preproc=no
c890192f 8702fi
bec39cab 8703rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8704echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8705echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8706
8707# So? What about this header?
8708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8709 yes:no: )
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8711echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8713echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8714 ac_header_preproc=yes
8715 ;;
8716 no:yes:* )
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8718echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8720echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8722echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8724echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8726echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8728echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8729 (
8730 cat <<\_ASBOX
8731## ------------------------------------------ ##
8732## Report this to the AC_PACKAGE_NAME lists. ##
8733## ------------------------------------------ ##
8734_ASBOX
8735 ) |
8736 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8737 ;;
8738esac
b4e70030
JB
8739echo "$as_me:$LINENO: checking for $ac_header" >&5
8740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8741if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8742 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 8743else
bec39cab 8744 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 8745fi
b4e70030
JB
8746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8748
c890192f 8749fi
bec39cab
AC
8750if test `eval echo '${'$as_ac_Header'}'` = yes; then
8751 cat >>confdefs.h <<_ACEOF
8752#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8753_ACEOF
c890192f 8754
c890192f
MK
8755fi
8756
bec39cab 8757done
9a156167 8758
bec39cab
AC
8759
8760for ac_header in stdlib.h
8761do
8762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8763if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764 echo "$as_me:$LINENO: checking for $ac_header" >&5
8765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8766if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768fi
b4e70030
JB
8769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8771else
8772 # Is the header compilable?
b4e70030
JB
8773echo "$as_me:$LINENO: checking $ac_header usability" >&5
8774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8775cat >conftest.$ac_ext <<_ACEOF
8776/* confdefs.h. */
8777_ACEOF
8778cat confdefs.h >>conftest.$ac_ext
8779cat >>conftest.$ac_ext <<_ACEOF
8780/* end confdefs.h. */
8781$ac_includes_default
8782#include <$ac_header>
8783_ACEOF
8784rm -f conftest.$ac_objext
8785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786 (eval $ac_compile) 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
b4e70030
JB
8793 { ac_try='test -z "$ac_c_werror_flag"
8794 || test ! -s conftest.err'
bec39cab
AC
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 (eval $ac_try) 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try='test -s conftest.$ac_objext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 (eval $ac_try) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_header_compiler=yes
8807else
8808 echo "$as_me: failed program was:" >&5
8809sed 's/^/| /' conftest.$ac_ext >&5
8810
b4e70030 8811ac_header_compiler=no
bec39cab
AC
8812fi
8813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8814echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8815echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8816
8817# Is the header present?
b4e70030
JB
8818echo "$as_me:$LINENO: checking $ac_header presence" >&5
8819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8820cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826#include <$ac_header>
8827_ACEOF
8828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } >/dev/null; then
8836 if test -s conftest.err; then
8837 ac_cpp_err=$ac_c_preproc_warn_flag
8838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8839 else
8840 ac_cpp_err=
8841 fi
9a156167 8842else
bec39cab
AC
8843 ac_cpp_err=yes
8844fi
8845if test -z "$ac_cpp_err"; then
8846 ac_header_preproc=yes
9a156167 8847else
bec39cab
AC
8848 echo "$as_me: failed program was:" >&5
8849sed 's/^/| /' conftest.$ac_ext >&5
8850
8851 ac_header_preproc=no
9a156167 8852fi
bec39cab 8853rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8854echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8855echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8856
8857# So? What about this header?
8858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8859 yes:no: )
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8863echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8864 ac_header_preproc=yes
8865 ;;
8866 no:yes:* )
8867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8868echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8870echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8872echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8874echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8878echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8879 (
8880 cat <<\_ASBOX
8881## ------------------------------------------ ##
8882## Report this to the AC_PACKAGE_NAME lists. ##
8883## ------------------------------------------ ##
8884_ASBOX
8885 ) |
8886 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8887 ;;
8888esac
b4e70030
JB
8889echo "$as_me:$LINENO: checking for $ac_header" >&5
8890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8891if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8892 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8893else
bec39cab 8894 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8895fi
b4e70030
JB
8896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8898
9a156167 8899fi
bec39cab
AC
8900if test `eval echo '${'$as_ac_Header'}'` = yes; then
8901 cat >>confdefs.h <<_ACEOF
8902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8903_ACEOF
9a156167 8904
9a156167
MK
8905fi
8906
bec39cab
AC
8907done
8908
06825bd1 8909
bec39cab
AC
8910for ac_header in stdint.h
8911do
8912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8913if eval "test \"\${$as_ac_Header+set}\" = set"; then
8914 echo "$as_me:$LINENO: checking for $ac_header" >&5
8915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8916if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918fi
b4e70030
JB
8919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8921else
8922 # Is the header compilable?
b4e70030
JB
8923echo "$as_me:$LINENO: checking $ac_header usability" >&5
8924echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8925cat >conftest.$ac_ext <<_ACEOF
8926/* confdefs.h. */
8927_ACEOF
8928cat confdefs.h >>conftest.$ac_ext
8929cat >>conftest.$ac_ext <<_ACEOF
8930/* end confdefs.h. */
8931$ac_includes_default
8932#include <$ac_header>
8933_ACEOF
8934rm -f conftest.$ac_objext
8935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8936 (eval $ac_compile) 2>conftest.er1
8937 ac_status=$?
8938 grep -v '^ *+' conftest.er1 >conftest.err
8939 rm -f conftest.er1
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } &&
b4e70030
JB
8943 { ac_try='test -z "$ac_c_werror_flag"
8944 || test ! -s conftest.err'
bec39cab
AC
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest.$ac_objext'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8956 ac_header_compiler=yes
8957else
8958 echo "$as_me: failed program was:" >&5
8959sed 's/^/| /' conftest.$ac_ext >&5
8960
b4e70030 8961ac_header_compiler=no
bec39cab
AC
8962fi
8963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8965echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8966
8967# Is the header present?
b4e70030
JB
8968echo "$as_me:$LINENO: checking $ac_header presence" >&5
8969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8970cat >conftest.$ac_ext <<_ACEOF
8971/* confdefs.h. */
8972_ACEOF
8973cat confdefs.h >>conftest.$ac_ext
8974cat >>conftest.$ac_ext <<_ACEOF
8975/* end confdefs.h. */
8976#include <$ac_header>
8977_ACEOF
8978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } >/dev/null; then
8986 if test -s conftest.err; then
8987 ac_cpp_err=$ac_c_preproc_warn_flag
8988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8989 else
8990 ac_cpp_err=
8991 fi
06825bd1 8992else
bec39cab
AC
8993 ac_cpp_err=yes
8994fi
8995if test -z "$ac_cpp_err"; then
8996 ac_header_preproc=yes
06825bd1 8997else
bec39cab
AC
8998 echo "$as_me: failed program was:" >&5
8999sed 's/^/| /' conftest.$ac_ext >&5
9000
9001 ac_header_preproc=no
06825bd1 9002fi
bec39cab 9003rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9004echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9005echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9006
9007# So? What about this header?
9008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9009 yes:no: )
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9011echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9013echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9014 ac_header_preproc=yes
9015 ;;
9016 no:yes:* )
9017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9018echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9020echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9022echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9024echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9026echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9028echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9029 (
9030 cat <<\_ASBOX
9031## ------------------------------------------ ##
9032## Report this to the AC_PACKAGE_NAME lists. ##
9033## ------------------------------------------ ##
9034_ASBOX
9035 ) |
9036 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9037 ;;
9038esac
b4e70030
JB
9039echo "$as_me:$LINENO: checking for $ac_header" >&5
9040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9041if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9042 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 9043else
bec39cab 9044 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 9045fi
b4e70030
JB
9046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9048
06825bd1 9049fi
bec39cab
AC
9050if test `eval echo '${'$as_ac_Header'}'` = yes; then
9051 cat >>confdefs.h <<_ACEOF
9052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9053_ACEOF
06825bd1 9054
06825bd1 9055fi
4f0be353 9056
bec39cab 9057done
4f0be353 9058
06825bd1 9059
06825bd1 9060
bec39cab
AC
9061
9062for ac_header in string.h memory.h strings.h
9063do
9064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9065if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo "$as_me:$LINENO: checking for $ac_header" >&5
9067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9068if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9070fi
b4e70030
JB
9071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9073else
9074 # Is the header compilable?
b4e70030
JB
9075echo "$as_me:$LINENO: checking $ac_header usability" >&5
9076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9077cat >conftest.$ac_ext <<_ACEOF
9078/* confdefs.h. */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h. */
9083$ac_includes_default
9084#include <$ac_header>
9085_ACEOF
9086rm -f conftest.$ac_objext
9087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088 (eval $ac_compile) 2>conftest.er1
9089 ac_status=$?
9090 grep -v '^ *+' conftest.er1 >conftest.err
9091 rm -f conftest.er1
9092 cat conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
b4e70030
JB
9095 { ac_try='test -z "$ac_c_werror_flag"
9096 || test ! -s conftest.err'
bec39cab
AC
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; } &&
9102 { ac_try='test -s conftest.$ac_objext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 (eval $ac_try) 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 ac_header_compiler=yes
9109else
9110 echo "$as_me: failed program was:" >&5
9111sed 's/^/| /' conftest.$ac_ext >&5
9112
b4e70030 9113ac_header_compiler=no
bec39cab
AC
9114fi
9115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9116echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9117echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9118
9119# Is the header present?
b4e70030
JB
9120echo "$as_me:$LINENO: checking $ac_header presence" >&5
9121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9122cat >conftest.$ac_ext <<_ACEOF
9123/* confdefs.h. */
9124_ACEOF
9125cat confdefs.h >>conftest.$ac_ext
9126cat >>conftest.$ac_ext <<_ACEOF
9127/* end confdefs.h. */
9128#include <$ac_header>
9129_ACEOF
9130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9132 ac_status=$?
9133 grep -v '^ *+' conftest.er1 >conftest.err
9134 rm -f conftest.er1
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } >/dev/null; then
9138 if test -s conftest.err; then
9139 ac_cpp_err=$ac_c_preproc_warn_flag
9140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9141 else
9142 ac_cpp_err=
9143 fi
06825bd1 9144else
bec39cab
AC
9145 ac_cpp_err=yes
9146fi
9147if test -z "$ac_cpp_err"; then
9148 ac_header_preproc=yes
06825bd1 9149else
bec39cab
AC
9150 echo "$as_me: failed program was:" >&5
9151sed 's/^/| /' conftest.$ac_ext >&5
9152
9153 ac_header_preproc=no
06825bd1 9154fi
bec39cab 9155rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9156echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9157echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9158
9159# So? What about this header?
9160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9161 yes:no: )
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9166 ac_header_preproc=yes
9167 ;;
9168 no:yes:* )
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9172echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9176echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9181 (
9182 cat <<\_ASBOX
9183## ------------------------------------------ ##
9184## Report this to the AC_PACKAGE_NAME lists. ##
9185## ------------------------------------------ ##
9186_ASBOX
9187 ) |
9188 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9189 ;;
9190esac
b4e70030
JB
9191echo "$as_me:$LINENO: checking for $ac_header" >&5
9192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
9196 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 9197fi
b4e70030
JB
9198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 9200
06825bd1 9201fi
bec39cab
AC
9202if test `eval echo '${'$as_ac_Header'}'` = yes; then
9203 cat >>confdefs.h <<_ACEOF
9204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9205_ACEOF
06825bd1 9206
06825bd1
MK
9207fi
9208
bec39cab 9209done
5ee754fc 9210
bec39cab
AC
9211
9212for ac_header in sys/fault.h
5ee754fc 9213do
bec39cab 9214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9215if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216 echo "$as_me:$LINENO: checking for $ac_header" >&5
9217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9218if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220fi
b4e70030
JB
9221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9223else
9224 # Is the header compilable?
b4e70030
JB
9225echo "$as_me:$LINENO: checking $ac_header usability" >&5
9226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9227cat >conftest.$ac_ext <<_ACEOF
9228/* confdefs.h. */
9229_ACEOF
9230cat confdefs.h >>conftest.$ac_ext
9231cat >>conftest.$ac_ext <<_ACEOF
9232/* end confdefs.h. */
9233$ac_includes_default
9234#include <$ac_header>
9235_ACEOF
9236rm -f conftest.$ac_objext
9237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238 (eval $ac_compile) 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
b4e70030
JB
9245 { ac_try='test -z "$ac_c_werror_flag"
9246 || test ! -s conftest.err'
bec39cab
AC
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 (eval $ac_try) 2>&5
9249 ac_status=$?
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; } &&
9252 { ac_try='test -s conftest.$ac_objext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 ac_header_compiler=yes
9259else
9260 echo "$as_me: failed program was:" >&5
9261sed 's/^/| /' conftest.$ac_ext >&5
9262
b4e70030 9263ac_header_compiler=no
bec39cab
AC
9264fi
9265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9267echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9268
9269# Is the header present?
b4e70030
JB
9270echo "$as_me:$LINENO: checking $ac_header presence" >&5
9271echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9272cat >conftest.$ac_ext <<_ACEOF
9273/* confdefs.h. */
9274_ACEOF
9275cat confdefs.h >>conftest.$ac_ext
9276cat >>conftest.$ac_ext <<_ACEOF
9277/* end confdefs.h. */
9278#include <$ac_header>
9279_ACEOF
9280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } >/dev/null; then
9288 if test -s conftest.err; then
9289 ac_cpp_err=$ac_c_preproc_warn_flag
9290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9291 else
9292 ac_cpp_err=
9293 fi
5ee754fc 9294else
bec39cab 9295 ac_cpp_err=yes
5ee754fc 9296fi
bec39cab
AC
9297if test -z "$ac_cpp_err"; then
9298 ac_header_preproc=yes
9299else
9300 echo "$as_me: failed program was:" >&5
9301sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9302
bec39cab 9303 ac_header_preproc=no
5ee754fc 9304fi
bec39cab 9305rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9307echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9308
9309# So? What about this header?
9310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9311 yes:no: )
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9313echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9315echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9316 ac_header_preproc=yes
9317 ;;
9318 no:yes:* )
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9320echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9322echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9324echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9326echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9328echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9330echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9331 (
9332 cat <<\_ASBOX
9333## ------------------------------------------ ##
9334## Report this to the AC_PACKAGE_NAME lists. ##
9335## ------------------------------------------ ##
9336_ASBOX
9337 ) |
9338 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9339 ;;
9340esac
b4e70030
JB
9341echo "$as_me:$LINENO: checking for $ac_header" >&5
9342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9343if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9344 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9345else
bec39cab 9346 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 9347fi
b4e70030
JB
9348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 9350
5ee754fc 9351fi
bec39cab
AC
9352if test `eval echo '${'$as_ac_Header'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9355_ACEOF
c906108c 9356
5ee754fc 9357fi
bec39cab
AC
9358
9359done
9360
9361
9362for ac_header in sys/file.h
9363do
9364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9365if eval "test \"\${$as_ac_Header+set}\" = set"; then
9366 echo "$as_me:$LINENO: checking for $ac_header" >&5
9367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9368if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370fi
b4e70030
JB
9371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9373else
9374 # Is the header compilable?
b4e70030
JB
9375echo "$as_me:$LINENO: checking $ac_header usability" >&5
9376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9377cat >conftest.$ac_ext <<_ACEOF
9378/* confdefs.h. */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h. */
9383$ac_includes_default
9384#include <$ac_header>
9385_ACEOF
9386rm -f conftest.$ac_objext
9387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
b4e70030
JB
9395 { ac_try='test -z "$ac_c_werror_flag"
9396 || test ! -s conftest.err'
bec39cab
AC
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_header_compiler=yes
9409else
9410 echo "$as_me: failed program was:" >&5
9411sed 's/^/| /' conftest.$ac_ext >&5
9412
b4e70030 9413ac_header_compiler=no
bec39cab
AC
9414fi
9415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9418
9419# Is the header present?
b4e70030
JB
9420echo "$as_me:$LINENO: checking $ac_header presence" >&5
9421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9422cat >conftest.$ac_ext <<_ACEOF
9423/* confdefs.h. */
9424_ACEOF
9425cat confdefs.h >>conftest.$ac_ext
9426cat >>conftest.$ac_ext <<_ACEOF
9427/* end confdefs.h. */
9428#include <$ac_header>
9429_ACEOF
9430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } >/dev/null; then
9438 if test -s conftest.err; then
9439 ac_cpp_err=$ac_c_preproc_warn_flag
9440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9441 else
9442 ac_cpp_err=
9443 fi
5ee754fc 9444else
bec39cab 9445 ac_cpp_err=yes
5ee754fc 9446fi
bec39cab
AC
9447if test -z "$ac_cpp_err"; then
9448 ac_header_preproc=yes
9449else
9450 echo "$as_me: failed program was:" >&5
9451sed 's/^/| /' conftest.$ac_ext >&5
c906108c 9452
bec39cab 9453 ac_header_preproc=no
5ee754fc 9454fi
bec39cab 9455rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9457echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 9458
bec39cab
AC
9459# So? What about this header?
9460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9461 yes:no: )
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9466 ac_header_preproc=yes
9467 ;;
9468 no:yes:* )
9469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9481 (
9482 cat <<\_ASBOX
9483## ------------------------------------------ ##
9484## Report this to the AC_PACKAGE_NAME lists. ##
9485## ------------------------------------------ ##
9486_ASBOX
9487 ) |
9488 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9489 ;;
9490esac
b4e70030
JB
9491echo "$as_me:$LINENO: checking for $ac_header" >&5
9492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9493if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 9495else
bec39cab
AC
9496 eval "$as_ac_Header=\$ac_header_preproc"
9497fi
b4e70030
JB
9498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9500
bec39cab
AC
9501fi
9502if test `eval echo '${'$as_ac_Header'}'` = yes; then
9503 cat >>confdefs.h <<_ACEOF
9504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9505_ACEOF
5ee754fc 9506
bec39cab 9507fi
5ee754fc 9508
bec39cab 9509done
5ee754fc 9510
5ee754fc 9511
bec39cab
AC
9512for ac_header in sys/filio.h
9513do
9514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9515if eval "test \"\${$as_ac_Header+set}\" = set"; then
9516 echo "$as_me:$LINENO: checking for $ac_header" >&5
9517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9518if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520fi
b4e70030
JB
9521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9523else
9524 # Is the header compilable?
b4e70030
JB
9525echo "$as_me:$LINENO: checking $ac_header usability" >&5
9526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9527cat >conftest.$ac_ext <<_ACEOF
9528/* confdefs.h. */
9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h. */
9533$ac_includes_default
9534#include <$ac_header>
9535_ACEOF
9536rm -f conftest.$ac_objext
9537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
b4e70030
JB
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
bec39cab
AC
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 ac_header_compiler=yes
9559else
9560 echo "$as_me: failed program was:" >&5
9561sed 's/^/| /' conftest.$ac_ext >&5
9562
b4e70030 9563ac_header_compiler=no
bec39cab
AC
9564fi
9565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9567echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9568
9569# Is the header present?
b4e70030
JB
9570echo "$as_me:$LINENO: checking $ac_header presence" >&5
9571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9572cat >conftest.$ac_ext <<_ACEOF
9573/* confdefs.h. */
9574_ACEOF
9575cat confdefs.h >>conftest.$ac_ext
9576cat >>conftest.$ac_ext <<_ACEOF
9577/* end confdefs.h. */
9578#include <$ac_header>
9579_ACEOF
9580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } >/dev/null; then
9588 if test -s conftest.err; then
9589 ac_cpp_err=$ac_c_preproc_warn_flag
9590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9591 else
9592 ac_cpp_err=
9593 fi
5ee754fc 9594else
bec39cab 9595 ac_cpp_err=yes
5ee754fc 9596fi
bec39cab
AC
9597if test -z "$ac_cpp_err"; then
9598 ac_header_preproc=yes
9599else
9600 echo "$as_me: failed program was:" >&5
9601sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9602
bec39cab 9603 ac_header_preproc=no
5ee754fc 9604fi
bec39cab 9605rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9607echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9608
bec39cab
AC
9609# So? What about this header?
9610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9611 yes:no: )
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9616 ac_header_preproc=yes
9617 ;;
9618 no:yes:* )
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9631 (
9632 cat <<\_ASBOX
9633## ------------------------------------------ ##
9634## Report this to the AC_PACKAGE_NAME lists. ##
9635## ------------------------------------------ ##
9636_ASBOX
9637 ) |
9638 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9639 ;;
9640esac
b4e70030
JB
9641echo "$as_me:$LINENO: checking for $ac_header" >&5
9642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9643if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9644 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9645else
bec39cab 9646 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9647fi
b4e70030
JB
9648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9650
5ee754fc 9651fi
bec39cab
AC
9652if test `eval echo '${'$as_ac_Header'}'` = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9655_ACEOF
5ee754fc
MK
9656
9657fi
9658
bec39cab
AC
9659done
9660
9661
9662for ac_header in sys/ioctl.h
9663do
9664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9665if eval "test \"\${$as_ac_Header+set}\" = set"; then
9666 echo "$as_me:$LINENO: checking for $ac_header" >&5
9667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9668if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670fi
b4e70030
JB
9671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9673else
9674 # Is the header compilable?
b4e70030
JB
9675echo "$as_me:$LINENO: checking $ac_header usability" >&5
9676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9677cat >conftest.$ac_ext <<_ACEOF
9678/* confdefs.h. */
9679_ACEOF
9680cat confdefs.h >>conftest.$ac_ext
9681cat >>conftest.$ac_ext <<_ACEOF
9682/* end confdefs.h. */
9683$ac_includes_default
9684#include <$ac_header>
9685_ACEOF
9686rm -f conftest.$ac_objext
9687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688 (eval $ac_compile) 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
b4e70030
JB
9695 { ac_try='test -z "$ac_c_werror_flag"
9696 || test ! -s conftest.err'
bec39cab
AC
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; } &&
9702 { ac_try='test -s conftest.$ac_objext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 ac_header_compiler=yes
9709else
9710 echo "$as_me: failed program was:" >&5
9711sed 's/^/| /' conftest.$ac_ext >&5
9712
b4e70030 9713ac_header_compiler=no
bec39cab
AC
9714fi
9715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9717echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9718
9719# Is the header present?
b4e70030
JB
9720echo "$as_me:$LINENO: checking $ac_header presence" >&5
9721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9722cat >conftest.$ac_ext <<_ACEOF
9723/* confdefs.h. */
9724_ACEOF
9725cat confdefs.h >>conftest.$ac_ext
9726cat >>conftest.$ac_ext <<_ACEOF
9727/* end confdefs.h. */
9728#include <$ac_header>
9729_ACEOF
9730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } >/dev/null; then
9738 if test -s conftest.err; then
9739 ac_cpp_err=$ac_c_preproc_warn_flag
9740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9741 else
9742 ac_cpp_err=
9743 fi
5ee754fc 9744else
bec39cab 9745 ac_cpp_err=yes
5ee754fc 9746fi
bec39cab
AC
9747if test -z "$ac_cpp_err"; then
9748 ac_header_preproc=yes
9749else
9750 echo "$as_me: failed program was:" >&5
9751sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9752
bec39cab 9753 ac_header_preproc=no
5ee754fc 9754fi
bec39cab 9755rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9757echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9758
bec39cab
AC
9759# So? What about this header?
9760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9761 yes:no: )
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9766 ac_header_preproc=yes
9767 ;;
9768 no:yes:* )
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9781 (
9782 cat <<\_ASBOX
9783## ------------------------------------------ ##
9784## Report this to the AC_PACKAGE_NAME lists. ##
9785## ------------------------------------------ ##
9786_ASBOX
9787 ) |
9788 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9789 ;;
9790esac
b4e70030
JB
9791echo "$as_me:$LINENO: checking for $ac_header" >&5
9792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9793if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 9795else
bec39cab 9796 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9797fi
b4e70030
JB
9798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
9800
9801fi
bec39cab
AC
9802if test `eval echo '${'$as_ac_Header'}'` = yes; then
9803 cat >>confdefs.h <<_ACEOF
9804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9805_ACEOF
9806
5ee754fc
MK
9807fi
9808
bec39cab 9809done
5ee754fc 9810
5ee754fc 9811
bec39cab 9812for ac_header in sys/param.h
5ee754fc 9813do
bec39cab 9814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9815if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo "$as_me:$LINENO: checking for $ac_header" >&5
9817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9818if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820fi
b4e70030
JB
9821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9823else
9824 # Is the header compilable?
b4e70030
JB
9825echo "$as_me:$LINENO: checking $ac_header usability" >&5
9826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9827cat >conftest.$ac_ext <<_ACEOF
9828/* confdefs.h. */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h. */
9833$ac_includes_default
9834#include <$ac_header>
9835_ACEOF
9836rm -f conftest.$ac_objext
9837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838 (eval $ac_compile) 2>conftest.er1
9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
b4e70030
JB
9845 { ac_try='test -z "$ac_c_werror_flag"
9846 || test ! -s conftest.err'
bec39cab
AC
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; } &&
9852 { ac_try='test -s conftest.$ac_objext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 ac_header_compiler=yes
9859else
9860 echo "$as_me: failed program was:" >&5
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
b4e70030 9863ac_header_compiler=no
bec39cab
AC
9864fi
9865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9866echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9867echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9868
9869# Is the header present?
b4e70030
JB
9870echo "$as_me:$LINENO: checking $ac_header presence" >&5
9871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9872cat >conftest.$ac_ext <<_ACEOF
9873/* confdefs.h. */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h. */
9878#include <$ac_header>
9879_ACEOF
9880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } >/dev/null; then
9888 if test -s conftest.err; then
9889 ac_cpp_err=$ac_c_preproc_warn_flag
9890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9891 else
9892 ac_cpp_err=
9893 fi
5ee754fc 9894else
bec39cab 9895 ac_cpp_err=yes
5ee754fc 9896fi
bec39cab
AC
9897if test -z "$ac_cpp_err"; then
9898 ac_header_preproc=yes
9899else
9900 echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9902
bec39cab 9903 ac_header_preproc=no
5ee754fc 9904fi
bec39cab 9905rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9906echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9907echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9908
9909# So? What about this header?
9910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9911 yes:no: )
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9916 ac_header_preproc=yes
9917 ;;
9918 no:yes:* )
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9931 (
9932 cat <<\_ASBOX
9933## ------------------------------------------ ##
9934## Report this to the AC_PACKAGE_NAME lists. ##
9935## ------------------------------------------ ##
9936_ASBOX
9937 ) |
9938 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9939 ;;
9940esac
b4e70030
JB
9941echo "$as_me:$LINENO: checking for $ac_header" >&5
9942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9943if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9944 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9945else
bec39cab 9946 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9947fi
b4e70030
JB
9948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9950
5ee754fc 9951fi
bec39cab
AC
9952if test `eval echo '${'$as_ac_Header'}'` = yes; then
9953 cat >>confdefs.h <<_ACEOF
9954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9955_ACEOF
9956
5ee754fc 9957fi
bec39cab 9958
5ee754fc
MK
9959done
9960
bec39cab 9961
7eb368b3
NR
9962for ac_header in sys/resource.h
9963do
9964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9965if eval "test \"\${$as_ac_Header+set}\" = set"; then
9966 echo "$as_me:$LINENO: checking for $ac_header" >&5
9967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9968if eval "test \"\${$as_ac_Header+set}\" = set"; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970fi
9971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9972echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9973else
9974 # Is the header compilable?
9975echo "$as_me:$LINENO: checking $ac_header usability" >&5
9976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9977cat >conftest.$ac_ext <<_ACEOF
9978/* confdefs.h. */
9979_ACEOF
9980cat confdefs.h >>conftest.$ac_ext
9981cat >>conftest.$ac_ext <<_ACEOF
9982/* end confdefs.h. */
9983$ac_includes_default
9984#include <$ac_header>
9985_ACEOF
9986rm -f conftest.$ac_objext
9987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9988 (eval $ac_compile) 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest.$ac_objext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_header_compiler=yes
10009else
10010 echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013ac_header_compiler=no
10014fi
10015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10016echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10017echo "${ECHO_T}$ac_header_compiler" >&6
10018
10019# Is the header present?
10020echo "$as_me:$LINENO: checking $ac_header presence" >&5
10021echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10022cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
10028#include <$ac_header>
10029_ACEOF
10030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } >/dev/null; then
10038 if test -s conftest.err; then
10039 ac_cpp_err=$ac_c_preproc_warn_flag
10040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10041 else
10042 ac_cpp_err=
10043 fi
10044else
10045 ac_cpp_err=yes
10046fi
10047if test -z "$ac_cpp_err"; then
10048 ac_header_preproc=yes
10049else
10050 echo "$as_me: failed program was:" >&5
10051sed 's/^/| /' conftest.$ac_ext >&5
10052
10053 ac_header_preproc=no
10054fi
10055rm -f conftest.err conftest.$ac_ext
10056echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10057echo "${ECHO_T}$ac_header_preproc" >&6
10058
10059# So? What about this header?
10060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10061 yes:no: )
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10063echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10065echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10066 ac_header_preproc=yes
10067 ;;
10068 no:yes:* )
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10070echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10072echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10074echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10076echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10080echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10081 (
10082 cat <<\_ASBOX
10083## ------------------------------------------ ##
10084## Report this to the AC_PACKAGE_NAME lists. ##
10085## ------------------------------------------ ##
10086_ASBOX
10087 ) |
10088 sed "s/^/$as_me: WARNING: /" >&2
10089 ;;
10090esac
10091echo "$as_me:$LINENO: checking for $ac_header" >&5
10092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10093if eval "test \"\${$as_ac_Header+set}\" = set"; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095else
10096 eval "$as_ac_Header=\$ac_header_preproc"
10097fi
10098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10100
10101fi
10102if test `eval echo '${'$as_ac_Header'}'` = yes; then
10103 cat >>confdefs.h <<_ACEOF
10104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10105_ACEOF
10106
10107fi
10108
10109done
10110
10111
bec39cab 10112for ac_header in sys/proc.h
5ee754fc 10113do
bec39cab 10114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10115echo "$as_me:$LINENO: checking for $ac_header" >&5
10116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10117if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10118 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10119else
7cb9022a 10120 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10121/* confdefs.h. */
10122_ACEOF
10123cat confdefs.h >>conftest.$ac_ext
10124cat >>conftest.$ac_ext <<_ACEOF
10125/* end confdefs.h. */
7cb9022a
MK
10126#if HAVE_SYS_PARAM_H
10127# include <sys/param.h>
10128#endif
10129
10130
bec39cab
AC
10131#include <$ac_header>
10132_ACEOF
10133rm -f conftest.$ac_objext
10134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10135 (eval $ac_compile) 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
b4e70030
JB
10142 { ac_try='test -z "$ac_c_werror_flag"
10143 || test ! -s conftest.err'
bec39cab
AC
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest.$ac_objext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
7cb9022a 10155 eval "$as_ac_Header=yes"
bec39cab
AC
10156else
10157 echo "$as_me: failed program was:" >&5
10158sed 's/^/| /' conftest.$ac_ext >&5
10159
b4e70030 10160eval "$as_ac_Header=no"
bec39cab
AC
10161fi
10162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10163fi
b4e70030
JB
10164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10166if test `eval echo '${'$as_ac_Header'}'` = yes; then
10167 cat >>confdefs.h <<_ACEOF
10168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10169_ACEOF
10170
5ee754fc 10171fi
bec39cab 10172
5ee754fc
MK
10173done
10174
bec39cab
AC
10175
10176for ac_header in sys/procfs.h
5ee754fc 10177do
bec39cab 10178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10179if eval "test \"\${$as_ac_Header+set}\" = set"; then
10180 echo "$as_me:$LINENO: checking for $ac_header" >&5
10181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10182if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184fi
b4e70030
JB
10185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10187else
10188 # Is the header compilable?
b4e70030
JB
10189echo "$as_me:$LINENO: checking $ac_header usability" >&5
10190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10191cat >conftest.$ac_ext <<_ACEOF
10192/* confdefs.h. */
10193_ACEOF
10194cat confdefs.h >>conftest.$ac_ext
10195cat >>conftest.$ac_ext <<_ACEOF
10196/* end confdefs.h. */
10197$ac_includes_default
10198#include <$ac_header>
10199_ACEOF
10200rm -f conftest.$ac_objext
10201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
b4e70030
JB
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
bec39cab
AC
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest.$ac_objext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_header_compiler=yes
10223else
10224 echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
b4e70030 10227ac_header_compiler=no
bec39cab
AC
10228fi
10229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10232
10233# Is the header present?
b4e70030
JB
10234echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10236cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
10242#include <$ac_header>
10243_ACEOF
10244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } >/dev/null; then
10252 if test -s conftest.err; then
10253 ac_cpp_err=$ac_c_preproc_warn_flag
10254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10255 else
10256 ac_cpp_err=
10257 fi
10258else
10259 ac_cpp_err=yes
5ee754fc 10260fi
bec39cab
AC
10261if test -z "$ac_cpp_err"; then
10262 ac_header_preproc=yes
5ee754fc 10263else
bec39cab
AC
10264 echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_header_preproc=no
5ee754fc 10268fi
bec39cab 10269rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10272
bec39cab
AC
10273# So? What about this header?
10274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10275 yes:no: )
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10280 ac_header_preproc=yes
10281 ;;
10282 no:yes:* )
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10295 (
10296 cat <<\_ASBOX
10297## ------------------------------------------ ##
10298## Report this to the AC_PACKAGE_NAME lists. ##
10299## ------------------------------------------ ##
10300_ASBOX
10301 ) |
10302 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10303 ;;
10304esac
b4e70030
JB
10305echo "$as_me:$LINENO: checking for $ac_header" >&5
10306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10307if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10311fi
b4e70030
JB
10312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10314
5ee754fc 10315fi
bec39cab
AC
10316if test `eval echo '${'$as_ac_Header'}'` = yes; then
10317 cat >>confdefs.h <<_ACEOF
10318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10319_ACEOF
10320
5ee754fc 10321fi
bec39cab 10322
5ee754fc
MK
10323done
10324
bec39cab
AC
10325
10326
10327for ac_header in sys/ptrace.h ptrace.h
5ee754fc 10328do
bec39cab 10329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10330if eval "test \"\${$as_ac_Header+set}\" = set"; then
10331 echo "$as_me:$LINENO: checking for $ac_header" >&5
10332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10333if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335fi
b4e70030
JB
10336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10338else
10339 # Is the header compilable?
b4e70030
JB
10340echo "$as_me:$LINENO: checking $ac_header usability" >&5
10341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10342cat >conftest.$ac_ext <<_ACEOF
10343/* confdefs.h. */
10344_ACEOF
10345cat confdefs.h >>conftest.$ac_ext
10346cat >>conftest.$ac_ext <<_ACEOF
10347/* end confdefs.h. */
10348$ac_includes_default
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
10373 ac_header_compiler=yes
10374else
10375 echo "$as_me: failed program was:" >&5
10376sed 's/^/| /' conftest.$ac_ext >&5
10377
b4e70030 10378ac_header_compiler=no
bec39cab
AC
10379fi
10380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10381echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10382echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10383
10384# Is the header present?
b4e70030
JB
10385echo "$as_me:$LINENO: checking $ac_header presence" >&5
10386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10387cat >conftest.$ac_ext <<_ACEOF
10388/* confdefs.h. */
10389_ACEOF
10390cat confdefs.h >>conftest.$ac_ext
10391cat >>conftest.$ac_ext <<_ACEOF
10392/* end confdefs.h. */
10393#include <$ac_header>
10394_ACEOF
10395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10397 ac_status=$?
10398 grep -v '^ *+' conftest.er1 >conftest.err
10399 rm -f conftest.er1
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } >/dev/null; then
10403 if test -s conftest.err; then
10404 ac_cpp_err=$ac_c_preproc_warn_flag
10405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10406 else
10407 ac_cpp_err=
10408 fi
10409else
10410 ac_cpp_err=yes
5ee754fc 10411fi
bec39cab
AC
10412if test -z "$ac_cpp_err"; then
10413 ac_header_preproc=yes
5ee754fc 10414else
bec39cab
AC
10415 echo "$as_me: failed program was:" >&5
10416sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_header_preproc=no
5ee754fc 10419fi
bec39cab 10420rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10421echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10422echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10423
bec39cab
AC
10424# So? What about this header?
10425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10426 yes:no: )
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10431 ac_header_preproc=yes
10432 ;;
10433 no:yes:* )
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10441echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10446 (
10447 cat <<\_ASBOX
10448## ------------------------------------------ ##
10449## Report this to the AC_PACKAGE_NAME lists. ##
10450## ------------------------------------------ ##
10451_ASBOX
10452 ) |
10453 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10454 ;;
10455esac
b4e70030
JB
10456echo "$as_me:$LINENO: checking for $ac_header" >&5
10457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10458if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460else
10461 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10462fi
b4e70030
JB
10463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10465
5ee754fc 10466fi
bec39cab
AC
10467if test `eval echo '${'$as_ac_Header'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10470_ACEOF
10471
5ee754fc 10472fi
bec39cab 10473
5ee754fc
MK
10474done
10475
bec39cab
AC
10476
10477
10478for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 10479do
bec39cab 10480as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10481if eval "test \"\${$as_ac_Header+set}\" = set"; then
10482 echo "$as_me:$LINENO: checking for $ac_header" >&5
10483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10484if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10486fi
b4e70030
JB
10487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10489else
10490 # Is the header compilable?
b4e70030
JB
10491echo "$as_me:$LINENO: checking $ac_header usability" >&5
10492echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10493cat >conftest.$ac_ext <<_ACEOF
10494/* confdefs.h. */
10495_ACEOF
10496cat confdefs.h >>conftest.$ac_ext
10497cat >>conftest.$ac_ext <<_ACEOF
10498/* end confdefs.h. */
10499$ac_includes_default
10500#include <$ac_header>
10501_ACEOF
10502rm -f conftest.$ac_objext
10503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504 (eval $ac_compile) 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
b4e70030
JB
10511 { ac_try='test -z "$ac_c_werror_flag"
10512 || test ! -s conftest.err'
bec39cab
AC
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try='test -s conftest.$ac_objext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 ac_header_compiler=yes
10525else
10526 echo "$as_me: failed program was:" >&5
10527sed 's/^/| /' conftest.$ac_ext >&5
10528
b4e70030 10529ac_header_compiler=no
bec39cab
AC
10530fi
10531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10532echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10533echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10534
10535# Is the header present?
b4e70030
JB
10536echo "$as_me:$LINENO: checking $ac_header presence" >&5
10537echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10538cat >conftest.$ac_ext <<_ACEOF
10539/* confdefs.h. */
10540_ACEOF
10541cat confdefs.h >>conftest.$ac_ext
10542cat >>conftest.$ac_ext <<_ACEOF
10543/* end confdefs.h. */
10544#include <$ac_header>
10545_ACEOF
10546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } >/dev/null; then
10554 if test -s conftest.err; then
10555 ac_cpp_err=$ac_c_preproc_warn_flag
10556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10557 else
10558 ac_cpp_err=
10559 fi
10560else
10561 ac_cpp_err=yes
5ee754fc 10562fi
bec39cab
AC
10563if test -z "$ac_cpp_err"; then
10564 ac_header_preproc=yes
5ee754fc 10565else
bec39cab
AC
10566 echo "$as_me: failed program was:" >&5
10567sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_header_preproc=no
5ee754fc 10570fi
bec39cab 10571rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10572echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10573echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10574
bec39cab
AC
10575# So? What about this header?
10576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10577 yes:no: )
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10579echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10581echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10582 ac_header_preproc=yes
10583 ;;
10584 no:yes:* )
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10586echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10588echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10590echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10592echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10594echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10596echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10597 (
10598 cat <<\_ASBOX
10599## ------------------------------------------ ##
10600## Report this to the AC_PACKAGE_NAME lists. ##
10601## ------------------------------------------ ##
10602_ASBOX
10603 ) |
10604 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10605 ;;
10606esac
b4e70030
JB
10607echo "$as_me:$LINENO: checking for $ac_header" >&5
10608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10609if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10613fi
b4e70030
JB
10614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10616
5ee754fc 10617fi
bec39cab
AC
10618if test `eval echo '${'$as_ac_Header'}'` = yes; then
10619 cat >>confdefs.h <<_ACEOF
10620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10621_ACEOF
10622
5ee754fc 10623fi
bec39cab 10624
5ee754fc
MK
10625done
10626
bec39cab
AC
10627
10628for ac_header in sys/select.h
5ee754fc 10629do
bec39cab 10630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10631if eval "test \"\${$as_ac_Header+set}\" = set"; then
10632 echo "$as_me:$LINENO: checking for $ac_header" >&5
10633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10634if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636fi
b4e70030
JB
10637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10639else
10640 # Is the header compilable?
b4e70030
JB
10641echo "$as_me:$LINENO: checking $ac_header usability" >&5
10642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10643cat >conftest.$ac_ext <<_ACEOF
10644/* confdefs.h. */
10645_ACEOF
10646cat confdefs.h >>conftest.$ac_ext
10647cat >>conftest.$ac_ext <<_ACEOF
10648/* end confdefs.h. */
10649$ac_includes_default
10650#include <$ac_header>
10651_ACEOF
10652rm -f conftest.$ac_objext
10653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654 (eval $ac_compile) 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
b4e70030
JB
10661 { ac_try='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
bec39cab
AC
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest.$ac_objext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_header_compiler=yes
10675else
10676 echo "$as_me: failed program was:" >&5
10677sed 's/^/| /' conftest.$ac_ext >&5
10678
b4e70030 10679ac_header_compiler=no
bec39cab
AC
10680fi
10681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10682echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10683echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10684
10685# Is the header present?
b4e70030
JB
10686echo "$as_me:$LINENO: checking $ac_header presence" >&5
10687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10688cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
10694#include <$ac_header>
10695_ACEOF
10696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } >/dev/null; then
10704 if test -s conftest.err; then
10705 ac_cpp_err=$ac_c_preproc_warn_flag
10706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10707 else
10708 ac_cpp_err=
10709 fi
10710else
10711 ac_cpp_err=yes
5ee754fc 10712fi
bec39cab
AC
10713if test -z "$ac_cpp_err"; then
10714 ac_header_preproc=yes
5ee754fc 10715else
bec39cab
AC
10716 echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719 ac_header_preproc=no
5ee754fc 10720fi
bec39cab 10721rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10722echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10723echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10724
bec39cab
AC
10725# So? What about this header?
10726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10727 yes:no: )
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10731echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10732 ac_header_preproc=yes
10733 ;;
10734 no:yes:* )
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10736echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10738echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10740echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10742echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10746echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10747 (
10748 cat <<\_ASBOX
10749## ------------------------------------------ ##
10750## Report this to the AC_PACKAGE_NAME lists. ##
10751## ------------------------------------------ ##
10752_ASBOX
10753 ) |
10754 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10755 ;;
10756esac
b4e70030
JB
10757echo "$as_me:$LINENO: checking for $ac_header" >&5
10758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10759if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10763fi
b4e70030
JB
10764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10766
5ee754fc 10767fi
bec39cab
AC
10768if test `eval echo '${'$as_ac_Header'}'` = yes; then
10769 cat >>confdefs.h <<_ACEOF
10770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10771_ACEOF
10772
5ee754fc 10773fi
bec39cab 10774
5ee754fc
MK
10775done
10776
bec39cab
AC
10777
10778for ac_header in sys/syscall.h
5ee754fc 10779do
bec39cab 10780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10781if eval "test \"\${$as_ac_Header+set}\" = set"; then
10782 echo "$as_me:$LINENO: checking for $ac_header" >&5
10783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10784if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786fi
b4e70030
JB
10787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10789else
10790 # Is the header compilable?
b4e70030
JB
10791echo "$as_me:$LINENO: checking $ac_header usability" >&5
10792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10793cat >conftest.$ac_ext <<_ACEOF
10794/* confdefs.h. */
10795_ACEOF
10796cat confdefs.h >>conftest.$ac_ext
10797cat >>conftest.$ac_ext <<_ACEOF
10798/* end confdefs.h. */
10799$ac_includes_default
10800#include <$ac_header>
10801_ACEOF
10802rm -f conftest.$ac_objext
10803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10804 (eval $ac_compile) 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
b4e70030
JB
10811 { ac_try='test -z "$ac_c_werror_flag"
10812 || test ! -s conftest.err'
bec39cab
AC
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; } &&
10818 { ac_try='test -s conftest.$ac_objext'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 ac_header_compiler=yes
10825else
10826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
b4e70030 10829ac_header_compiler=no
bec39cab
AC
10830fi
10831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10834
10835# Is the header present?
b4e70030
JB
10836echo "$as_me:$LINENO: checking $ac_header presence" >&5
10837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10838cat >conftest.$ac_ext <<_ACEOF
10839/* confdefs.h. */
10840_ACEOF
10841cat confdefs.h >>conftest.$ac_ext
10842cat >>conftest.$ac_ext <<_ACEOF
10843/* end confdefs.h. */
10844#include <$ac_header>
10845_ACEOF
10846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } >/dev/null; then
10854 if test -s conftest.err; then
10855 ac_cpp_err=$ac_c_preproc_warn_flag
10856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10857 else
10858 ac_cpp_err=
10859 fi
10860else
10861 ac_cpp_err=yes
5ee754fc 10862fi
bec39cab
AC
10863if test -z "$ac_cpp_err"; then
10864 ac_header_preproc=yes
5ee754fc 10865else
bec39cab
AC
10866 echo "$as_me: failed program was:" >&5
10867sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 ac_header_preproc=no
5ee754fc 10870fi
bec39cab 10871rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10873echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10874
bec39cab
AC
10875# So? What about this header?
10876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10877 yes:no: )
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10882 ac_header_preproc=yes
10883 ;;
10884 no:yes:* )
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10892echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10897 (
10898 cat <<\_ASBOX
10899## ------------------------------------------ ##
10900## Report this to the AC_PACKAGE_NAME lists. ##
10901## ------------------------------------------ ##
10902_ASBOX
10903 ) |
10904 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10905 ;;
10906esac
b4e70030
JB
10907echo "$as_me:$LINENO: checking for $ac_header" >&5
10908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10909if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10913fi
b4e70030
JB
10914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10916
5ee754fc 10917fi
bec39cab
AC
10918if test `eval echo '${'$as_ac_Header'}'` = yes; then
10919 cat >>confdefs.h <<_ACEOF
10920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10921_ACEOF
10922
5ee754fc 10923fi
bec39cab 10924
5ee754fc
MK
10925done
10926
bec39cab
AC
10927
10928for ac_header in sys/types.h
5ee754fc 10929do
bec39cab 10930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10931if eval "test \"\${$as_ac_Header+set}\" = set"; then
10932 echo "$as_me:$LINENO: checking for $ac_header" >&5
10933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10934if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936fi
b4e70030
JB
10937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10939else
10940 # Is the header compilable?
b4e70030
JB
10941echo "$as_me:$LINENO: checking $ac_header usability" >&5
10942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10943cat >conftest.$ac_ext <<_ACEOF
10944/* confdefs.h. */
10945_ACEOF
10946cat confdefs.h >>conftest.$ac_ext
10947cat >>conftest.$ac_ext <<_ACEOF
10948/* end confdefs.h. */
10949$ac_includes_default
10950#include <$ac_header>
10951_ACEOF
10952rm -f conftest.$ac_objext
10953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10954 (eval $ac_compile) 2>conftest.er1
10955 ac_status=$?
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
b4e70030
JB
10961 { ac_try='test -z "$ac_c_werror_flag"
10962 || test ! -s conftest.err'
bec39cab
AC
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest.$ac_objext'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_header_compiler=yes
10975else
10976 echo "$as_me: failed program was:" >&5
10977sed 's/^/| /' conftest.$ac_ext >&5
10978
b4e70030 10979ac_header_compiler=no
bec39cab
AC
10980fi
10981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10982echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10983echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10984
10985# Is the header present?
b4e70030
JB
10986echo "$as_me:$LINENO: checking $ac_header presence" >&5
10987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10988cat >conftest.$ac_ext <<_ACEOF
10989/* confdefs.h. */
10990_ACEOF
10991cat confdefs.h >>conftest.$ac_ext
10992cat >>conftest.$ac_ext <<_ACEOF
10993/* end confdefs.h. */
10994#include <$ac_header>
10995_ACEOF
10996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } >/dev/null; then
11004 if test -s conftest.err; then
11005 ac_cpp_err=$ac_c_preproc_warn_flag
11006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11007 else
11008 ac_cpp_err=
11009 fi
11010else
11011 ac_cpp_err=yes
5ee754fc 11012fi
bec39cab
AC
11013if test -z "$ac_cpp_err"; then
11014 ac_header_preproc=yes
5ee754fc 11015else
bec39cab
AC
11016 echo "$as_me: failed program was:" >&5
11017sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 ac_header_preproc=no
5ee754fc 11020fi
bec39cab 11021rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11022echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11023echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11024
bec39cab
AC
11025# So? What about this header?
11026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11027 yes:no: )
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11029echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11031echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11032 ac_header_preproc=yes
11033 ;;
11034 no:yes:* )
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11038echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11040echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11042echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11046echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11047 (
11048 cat <<\_ASBOX
11049## ------------------------------------------ ##
11050## Report this to the AC_PACKAGE_NAME lists. ##
11051## ------------------------------------------ ##
11052_ASBOX
11053 ) |
11054 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11055 ;;
11056esac
b4e70030
JB
11057echo "$as_me:$LINENO: checking for $ac_header" >&5
11058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11059if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061else
11062 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11063fi
b4e70030
JB
11064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11066
5ee754fc 11067fi
bec39cab
AC
11068if test `eval echo '${'$as_ac_Header'}'` = yes; then
11069 cat >>confdefs.h <<_ACEOF
11070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11071_ACEOF
11072
5ee754fc 11073fi
bec39cab 11074
5ee754fc
MK
11075done
11076
bec39cab
AC
11077
11078for ac_header in sys/user.h
5ee754fc 11079do
bec39cab 11080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11081echo "$as_me:$LINENO: checking for $ac_header" >&5
11082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11083if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11084 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11085else
7cb9022a 11086 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11087/* confdefs.h. */
11088_ACEOF
11089cat confdefs.h >>conftest.$ac_ext
11090cat >>conftest.$ac_ext <<_ACEOF
11091/* end confdefs.h. */
7cb9022a
MK
11092#if HAVE_SYS_PARAM_H
11093# include <sys/param.h>
11094#endif
11095
11096
bec39cab
AC
11097#include <$ac_header>
11098_ACEOF
11099rm -f conftest.$ac_objext
11100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11101 (eval $ac_compile) 2>conftest.er1
11102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } &&
b4e70030
JB
11108 { ac_try='test -z "$ac_c_werror_flag"
11109 || test ! -s conftest.err'
bec39cab
AC
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest.$ac_objext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
7cb9022a 11121 eval "$as_ac_Header=yes"
bec39cab
AC
11122else
11123 echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
b4e70030 11126eval "$as_ac_Header=no"
bec39cab
AC
11127fi
11128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11129fi
b4e70030
JB
11130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11132if test `eval echo '${'$as_ac_Header'}'` = yes; then
11133 cat >>confdefs.h <<_ACEOF
11134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11135_ACEOF
11136
5ee754fc 11137fi
bec39cab 11138
5ee754fc
MK
11139done
11140
bec39cab
AC
11141
11142
11143for ac_header in sys/wait.h wait.h
5ee754fc 11144do
bec39cab 11145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11146if eval "test \"\${$as_ac_Header+set}\" = set"; then
11147 echo "$as_me:$LINENO: checking for $ac_header" >&5
11148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11149if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151fi
b4e70030
JB
11152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11154else
11155 # Is the header compilable?
b4e70030
JB
11156echo "$as_me:$LINENO: checking $ac_header usability" >&5
11157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11158cat >conftest.$ac_ext <<_ACEOF
11159/* confdefs.h. */
11160_ACEOF
11161cat confdefs.h >>conftest.$ac_ext
11162cat >>conftest.$ac_ext <<_ACEOF
11163/* end confdefs.h. */
11164$ac_includes_default
11165#include <$ac_header>
11166_ACEOF
11167rm -f conftest.$ac_objext
11168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11169 (eval $ac_compile) 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
b4e70030
JB
11176 { ac_try='test -z "$ac_c_werror_flag"
11177 || test ! -s conftest.err'
bec39cab
AC
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; } &&
11183 { ac_try='test -s conftest.$ac_objext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_header_compiler=yes
11190else
11191 echo "$as_me: failed program was:" >&5
11192sed 's/^/| /' conftest.$ac_ext >&5
11193
b4e70030 11194ac_header_compiler=no
bec39cab
AC
11195fi
11196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11198echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11199
11200# Is the header present?
b4e70030
JB
11201echo "$as_me:$LINENO: checking $ac_header presence" >&5
11202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11203cat >conftest.$ac_ext <<_ACEOF
11204/* confdefs.h. */
11205_ACEOF
11206cat confdefs.h >>conftest.$ac_ext
11207cat >>conftest.$ac_ext <<_ACEOF
11208/* end confdefs.h. */
11209#include <$ac_header>
11210_ACEOF
11211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } >/dev/null; then
11219 if test -s conftest.err; then
11220 ac_cpp_err=$ac_c_preproc_warn_flag
11221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11222 else
11223 ac_cpp_err=
11224 fi
11225else
11226 ac_cpp_err=yes
5ee754fc 11227fi
bec39cab
AC
11228if test -z "$ac_cpp_err"; then
11229 ac_header_preproc=yes
5ee754fc 11230else
bec39cab
AC
11231 echo "$as_me: failed program was:" >&5
11232sed 's/^/| /' conftest.$ac_ext >&5
11233
11234 ac_header_preproc=no
5ee754fc 11235fi
bec39cab 11236rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11238echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11239
bec39cab
AC
11240# So? What about this header?
11241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11242 yes:no: )
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11247 ac_header_preproc=yes
11248 ;;
11249 no:yes:* )
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11262 (
11263 cat <<\_ASBOX
11264## ------------------------------------------ ##
11265## Report this to the AC_PACKAGE_NAME lists. ##
11266## ------------------------------------------ ##
11267_ASBOX
11268 ) |
11269 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11270 ;;
11271esac
b4e70030
JB
11272echo "$as_me:$LINENO: checking for $ac_header" >&5
11273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11274if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276else
11277 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 11278fi
b4e70030
JB
11279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11281
9608ab8b 11282fi
bec39cab
AC
11283if test `eval echo '${'$as_ac_Header'}'` = yes; then
11284 cat >>confdefs.h <<_ACEOF
11285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11286_ACEOF
11287
9608ab8b 11288fi
bec39cab 11289
9608ab8b 11290done
5ee754fc 11291
bec39cab
AC
11292
11293
11294
11295for ac_header in termios.h termio.h sgtty.h
5ee754fc 11296do
bec39cab 11297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11298if eval "test \"\${$as_ac_Header+set}\" = set"; then
11299 echo "$as_me:$LINENO: checking for $ac_header" >&5
11300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11301if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11303fi
b4e70030
JB
11304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11306else
11307 # Is the header compilable?
b4e70030
JB
11308echo "$as_me:$LINENO: checking $ac_header usability" >&5
11309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11310cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
11316$ac_includes_default
11317#include <$ac_header>
11318_ACEOF
11319rm -f conftest.$ac_objext
11320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11321 (eval $ac_compile) 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
b4e70030
JB
11328 { ac_try='test -z "$ac_c_werror_flag"
11329 || test ! -s conftest.err'
bec39cab
AC
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest.$ac_objext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_header_compiler=yes
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
b4e70030 11346ac_header_compiler=no
bec39cab
AC
11347fi
11348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11350echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11351
11352# Is the header present?
b4e70030
JB
11353echo "$as_me:$LINENO: checking $ac_header presence" >&5
11354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11355cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
11361#include <$ac_header>
11362_ACEOF
11363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } >/dev/null; then
11371 if test -s conftest.err; then
11372 ac_cpp_err=$ac_c_preproc_warn_flag
11373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11374 else
11375 ac_cpp_err=
11376 fi
11377else
11378 ac_cpp_err=yes
9608ab8b 11379fi
bec39cab
AC
11380if test -z "$ac_cpp_err"; then
11381 ac_header_preproc=yes
9608ab8b 11382else
bec39cab
AC
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386 ac_header_preproc=no
9608ab8b 11387fi
bec39cab 11388rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11390echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 11391
bec39cab
AC
11392# So? What about this header?
11393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11394 yes:no: )
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11399 ac_header_preproc=yes
11400 ;;
11401 no:yes:* )
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11409echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11414 (
11415 cat <<\_ASBOX
11416## ------------------------------------------ ##
11417## Report this to the AC_PACKAGE_NAME lists. ##
11418## ------------------------------------------ ##
11419_ASBOX
11420 ) |
11421 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11422 ;;
11423esac
b4e70030
JB
11424echo "$as_me:$LINENO: checking for $ac_header" >&5
11425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11426if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11428else
11429 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 11430fi
b4e70030
JB
11431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11433
9608ab8b 11434fi
bec39cab
AC
11435if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11438_ACEOF
11439
9608ab8b 11440fi
bec39cab 11441
5ee754fc 11442done
9608ab8b 11443
bec39cab
AC
11444
11445for ac_header in unistd.h
78434e59 11446do
bec39cab 11447as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11448if eval "test \"\${$as_ac_Header+set}\" = set"; then
11449 echo "$as_me:$LINENO: checking for $ac_header" >&5
11450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11451if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453fi
b4e70030
JB
11454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11456else
11457 # Is the header compilable?
b4e70030
JB
11458echo "$as_me:$LINENO: checking $ac_header usability" >&5
11459echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11460cat >conftest.$ac_ext <<_ACEOF
11461/* confdefs.h. */
11462_ACEOF
11463cat confdefs.h >>conftest.$ac_ext
11464cat >>conftest.$ac_ext <<_ACEOF
11465/* end confdefs.h. */
11466$ac_includes_default
11467#include <$ac_header>
11468_ACEOF
11469rm -f conftest.$ac_objext
11470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471 (eval $ac_compile) 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } &&
b4e70030
JB
11478 { ac_try='test -z "$ac_c_werror_flag"
11479 || test ! -s conftest.err'
bec39cab
AC
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491 ac_header_compiler=yes
11492else
11493 echo "$as_me: failed program was:" >&5
11494sed 's/^/| /' conftest.$ac_ext >&5
11495
b4e70030 11496ac_header_compiler=no
bec39cab
AC
11497fi
11498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11500echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11501
11502# Is the header present?
b4e70030
JB
11503echo "$as_me:$LINENO: checking $ac_header presence" >&5
11504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11505cat >conftest.$ac_ext <<_ACEOF
11506/* confdefs.h. */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h. */
11511#include <$ac_header>
11512_ACEOF
11513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } >/dev/null; then
11521 if test -s conftest.err; then
11522 ac_cpp_err=$ac_c_preproc_warn_flag
11523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11524 else
11525 ac_cpp_err=
11526 fi
11527else
11528 ac_cpp_err=yes
78434e59 11529fi
bec39cab
AC
11530if test -z "$ac_cpp_err"; then
11531 ac_header_preproc=yes
78434e59 11532else
bec39cab
AC
11533 echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536 ac_header_preproc=no
78434e59 11537fi
bec39cab 11538rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11540echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 11541
bec39cab
AC
11542# So? What about this header?
11543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11544 yes:no: )
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11549 ac_header_preproc=yes
11550 ;;
11551 no:yes:* )
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11555echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11559echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11564 (
11565 cat <<\_ASBOX
11566## ------------------------------------------ ##
11567## Report this to the AC_PACKAGE_NAME lists. ##
11568## ------------------------------------------ ##
11569_ASBOX
11570 ) |
11571 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11572 ;;
11573esac
b4e70030
JB
11574echo "$as_me:$LINENO: checking for $ac_header" >&5
11575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11576if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 11580fi
b4e70030
JB
11581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11583
086ec9eb 11584fi
bec39cab
AC
11585if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11588_ACEOF
11589
086ec9eb 11590fi
bec39cab 11591
086ec9eb
MK
11592done
11593
9608ab8b 11594
b1d19a62 11595# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
11596# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11597# think that we don't have <curses.h> if we're using GCC.
11598case $host_os in
b1d19a62 11599 solaris2.[789])
5ee754fc 11600 if test "$GCC" = yes; then
bec39cab
AC
11601
11602cat >>confdefs.h <<\_ACEOF
5ee754fc 11603#define _MSE_INT_H 1
bec39cab 11604_ACEOF
5ee754fc
MK
11605
11606 fi ;;
11607esac
bec39cab
AC
11608
11609
11610
11611
11612for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 11613do
bec39cab 11614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11615if eval "test \"\${$as_ac_Header+set}\" = set"; then
11616 echo "$as_me:$LINENO: checking for $ac_header" >&5
11617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11618if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620fi
b4e70030
JB
11621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11623else
11624 # Is the header compilable?
b4e70030
JB
11625echo "$as_me:$LINENO: checking $ac_header usability" >&5
11626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11627cat >conftest.$ac_ext <<_ACEOF
11628/* confdefs.h. */
11629_ACEOF
11630cat confdefs.h >>conftest.$ac_ext
11631cat >>conftest.$ac_ext <<_ACEOF
11632/* end confdefs.h. */
11633$ac_includes_default
11634#include <$ac_header>
11635_ACEOF
11636rm -f conftest.$ac_objext
11637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11638 (eval $ac_compile) 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
b4e70030
JB
11645 { ac_try='test -z "$ac_c_werror_flag"
11646 || test ! -s conftest.err'
bec39cab
AC
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; } &&
11652 { ac_try='test -s conftest.$ac_objext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 ac_header_compiler=yes
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
b4e70030 11663ac_header_compiler=no
bec39cab
AC
11664fi
11665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11667echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11668
11669# Is the header present?
b4e70030
JB
11670echo "$as_me:$LINENO: checking $ac_header presence" >&5
11671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11672cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
11678#include <$ac_header>
11679_ACEOF
11680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } >/dev/null; then
11688 if test -s conftest.err; then
11689 ac_cpp_err=$ac_c_preproc_warn_flag
11690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11691 else
11692 ac_cpp_err=
11693 fi
11694else
11695 ac_cpp_err=yes
c906108c 11696fi
bec39cab
AC
11697if test -z "$ac_cpp_err"; then
11698 ac_header_preproc=yes
11699else
11700 echo "$as_me: failed program was:" >&5
11701sed 's/^/| /' conftest.$ac_ext >&5
11702
11703 ac_header_preproc=no
c906108c 11704fi
bec39cab 11705rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11707echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11708
11709# So? What about this header?
11710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11711 yes:no: )
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11716 ac_header_preproc=yes
11717 ;;
11718 no:yes:* )
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11731 (
11732 cat <<\_ASBOX
11733## ------------------------------------------ ##
11734## Report this to the AC_PACKAGE_NAME lists. ##
11735## ------------------------------------------ ##
11736_ASBOX
11737 ) |
11738 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11739 ;;
11740esac
b4e70030
JB
11741echo "$as_me:$LINENO: checking for $ac_header" >&5
11742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11743if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11744 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11745else
bec39cab 11746 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 11747fi
b4e70030
JB
11748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11750
11751fi
11752if test `eval echo '${'$as_ac_Header'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11755_ACEOF
11756
11757fi
11758
5ee754fc 11759done
c906108c 11760
bec39cab 11761
065a1afc 11762for ac_header in ncurses/term.h
3b78cdbb 11763do
bec39cab 11764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11765if eval "test \"\${$as_ac_Header+set}\" = set"; then
11766 echo "$as_me:$LINENO: checking for $ac_header" >&5
11767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11768if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770fi
b4e70030
JB
11771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11773else
11774 # Is the header compilable?
b4e70030
JB
11775echo "$as_me:$LINENO: checking $ac_header usability" >&5
11776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11777cat >conftest.$ac_ext <<_ACEOF
11778/* confdefs.h. */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h. */
11783$ac_includes_default
11784#include <$ac_header>
11785_ACEOF
11786rm -f conftest.$ac_objext
11787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
b4e70030
JB
11795 { ac_try='test -z "$ac_c_werror_flag"
11796 || test ! -s conftest.err'
bec39cab
AC
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_header_compiler=yes
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
b4e70030 11813ac_header_compiler=no
bec39cab
AC
11814fi
11815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11817echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11818
11819# Is the header present?
b4e70030
JB
11820echo "$as_me:$LINENO: checking $ac_header presence" >&5
11821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11822cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828#include <$ac_header>
11829_ACEOF
11830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11832 ac_status=$?
11833 grep -v '^ *+' conftest.er1 >conftest.err
11834 rm -f conftest.er1
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } >/dev/null; then
11838 if test -s conftest.err; then
11839 ac_cpp_err=$ac_c_preproc_warn_flag
11840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11841 else
11842 ac_cpp_err=
11843 fi
11844else
11845 ac_cpp_err=yes
3b78cdbb 11846fi
bec39cab
AC
11847if test -z "$ac_cpp_err"; then
11848 ac_header_preproc=yes
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 ac_header_preproc=no
3b78cdbb 11854fi
bec39cab 11855rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11858
11859# So? What about this header?
11860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11861 yes:no: )
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11866 ac_header_preproc=yes
11867 ;;
11868 no:yes:* )
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11881 (
11882 cat <<\_ASBOX
11883## ------------------------------------------ ##
11884## Report this to the AC_PACKAGE_NAME lists. ##
11885## ------------------------------------------ ##
11886_ASBOX
11887 ) |
11888 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11889 ;;
11890esac
b4e70030
JB
11891echo "$as_me:$LINENO: checking for $ac_header" >&5
11892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11893if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11894 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 11895else
bec39cab
AC
11896 eval "$as_ac_Header=\$ac_header_preproc"
11897fi
b4e70030
JB
11898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11900
3b78cdbb 11901fi
bec39cab
AC
11902if test `eval echo '${'$as_ac_Header'}'` = yes; then
11903 cat >>confdefs.h <<_ACEOF
11904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11905_ACEOF
11906
11907fi
11908
3b78cdbb
DA
11909done
11910
c906108c 11911
065a1afc
JB
11912for ac_header in term.h
11913do
11914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11915echo "$as_me:$LINENO: checking for $ac_header" >&5
11916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11917if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919else
11920 cat >conftest.$ac_ext <<_ACEOF
11921/* confdefs.h. */
11922_ACEOF
11923cat confdefs.h >>conftest.$ac_ext
11924cat >>conftest.$ac_ext <<_ACEOF
11925/* end confdefs.h. */
11926#if HAVE_CURSES_H
11927# include <curses.h>
11928#endif
11929
11930
11931#include <$ac_header>
11932_ACEOF
11933rm -f conftest.$ac_objext
11934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935 (eval $ac_compile) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
b4e70030
JB
11942 { ac_try='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
065a1afc
JB
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 eval "$as_ac_Header=yes"
11956else
11957 echo "$as_me: failed program was:" >&5
11958sed 's/^/| /' conftest.$ac_ext >&5
11959
b4e70030 11960eval "$as_ac_Header=no"
065a1afc
JB
11961fi
11962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11963fi
b4e70030
JB
11964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
11966if test `eval echo '${'$as_ac_Header'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11969_ACEOF
11970
11971fi
11972
11973done
11974
11975
d542061a
UW
11976# Check for HP/UX 64-bit shared library support
11977
11978for ac_header in elf_hp.h
11979do
11980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11981if eval "test \"\${$as_ac_Header+set}\" = set"; then
11982 echo "$as_me:$LINENO: checking for $ac_header" >&5
11983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11984if eval "test \"\${$as_ac_Header+set}\" = set"; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986fi
11987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11989else
11990 # Is the header compilable?
11991echo "$as_me:$LINENO: checking $ac_header usability" >&5
11992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11993cat >conftest.$ac_ext <<_ACEOF
11994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
11999$ac_includes_default
12000#include <$ac_header>
12001_ACEOF
12002rm -f conftest.$ac_objext
12003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag"
12012 || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_header_compiler=yes
12025else
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029ac_header_compiler=no
12030fi
12031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12033echo "${ECHO_T}$ac_header_compiler" >&6
12034
12035# Is the header present?
12036echo "$as_me:$LINENO: checking $ac_header presence" >&5
12037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12038cat >conftest.$ac_ext <<_ACEOF
12039/* confdefs.h. */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h. */
12044#include <$ac_header>
12045_ACEOF
12046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12048 ac_status=$?
12049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } >/dev/null; then
12054 if test -s conftest.err; then
12055 ac_cpp_err=$ac_c_preproc_warn_flag
12056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12057 else
12058 ac_cpp_err=
12059 fi
12060else
12061 ac_cpp_err=yes
12062fi
12063if test -z "$ac_cpp_err"; then
12064 ac_header_preproc=yes
12065else
12066 echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 ac_header_preproc=no
12070fi
12071rm -f conftest.err conftest.$ac_ext
12072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12073echo "${ECHO_T}$ac_header_preproc" >&6
12074
12075# So? What about this header?
12076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12077 yes:no: )
12078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12082 ac_header_preproc=yes
12083 ;;
12084 no:yes:* )
12085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12088echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12092echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12097 (
12098 cat <<\_ASBOX
12099## ------------------------------------------ ##
12100## Report this to the AC_PACKAGE_NAME lists. ##
12101## ------------------------------------------ ##
12102_ASBOX
12103 ) |
12104 sed "s/^/$as_me: WARNING: /" >&2
12105 ;;
12106esac
12107echo "$as_me:$LINENO: checking for $ac_header" >&5
12108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12109if eval "test \"\${$as_ac_Header+set}\" = set"; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111else
12112 eval "$as_ac_Header=\$ac_header_preproc"
12113fi
12114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12116
12117fi
12118if test `eval echo '${'$as_ac_Header'}'` = yes; then
12119 cat >>confdefs.h <<_ACEOF
12120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12121_ACEOF
12122
12123fi
12124
12125done
12126
12127
5ee754fc
MK
12128# FIXME: kettenis/20030102: In most cases we include these
12129# unconditionally, so what's the point in checking these?
bec39cab
AC
12130
12131
12132for ac_header in ctype.h time.h
c906108c 12133do
bec39cab 12134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12135if eval "test \"\${$as_ac_Header+set}\" = set"; then
12136 echo "$as_me:$LINENO: checking for $ac_header" >&5
12137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12138if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140fi
b4e70030
JB
12141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12143else
12144 # Is the header compilable?
b4e70030
JB
12145echo "$as_me:$LINENO: checking $ac_header usability" >&5
12146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12147cat >conftest.$ac_ext <<_ACEOF
12148/* confdefs.h. */
12149_ACEOF
12150cat confdefs.h >>conftest.$ac_ext
12151cat >>conftest.$ac_ext <<_ACEOF
12152/* end confdefs.h. */
12153$ac_includes_default
12154#include <$ac_header>
12155_ACEOF
12156rm -f conftest.$ac_objext
12157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158 (eval $ac_compile) 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
b4e70030
JB
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
bec39cab
AC
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 ac_header_compiler=yes
12179else
12180 echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
b4e70030 12183ac_header_compiler=no
bec39cab
AC
12184fi
12185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12187echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12188
12189# Is the header present?
b4e70030
JB
12190echo "$as_me:$LINENO: checking $ac_header presence" >&5
12191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12192cat >conftest.$ac_ext <<_ACEOF
12193/* confdefs.h. */
12194_ACEOF
12195cat confdefs.h >>conftest.$ac_ext
12196cat >>conftest.$ac_ext <<_ACEOF
12197/* end confdefs.h. */
12198#include <$ac_header>
12199_ACEOF
12200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } >/dev/null; then
12208 if test -s conftest.err; then
12209 ac_cpp_err=$ac_c_preproc_warn_flag
12210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12211 else
12212 ac_cpp_err=
12213 fi
12214else
12215 ac_cpp_err=yes
c906108c 12216fi
bec39cab
AC
12217if test -z "$ac_cpp_err"; then
12218 ac_header_preproc=yes
12219else
12220 echo "$as_me: failed program was:" >&5
12221sed 's/^/| /' conftest.$ac_ext >&5
12222
12223 ac_header_preproc=no
c906108c 12224fi
bec39cab 12225rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12227echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12228
12229# So? What about this header?
12230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12231 yes:no: )
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12236 ac_header_preproc=yes
12237 ;;
12238 no:yes:* )
12239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12251 (
12252 cat <<\_ASBOX
12253## ------------------------------------------ ##
12254## Report this to the AC_PACKAGE_NAME lists. ##
12255## ------------------------------------------ ##
12256_ASBOX
12257 ) |
12258 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12259 ;;
12260esac
b4e70030
JB
12261echo "$as_me:$LINENO: checking for $ac_header" >&5
12262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12263if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12264 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12265else
bec39cab
AC
12266 eval "$as_ac_Header=\$ac_header_preproc"
12267fi
b4e70030
JB
12268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12270
12271fi
12272if test `eval echo '${'$as_ac_Header'}'` = yes; then
12273 cat >>confdefs.h <<_ACEOF
12274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12275_ACEOF
12276
c906108c 12277fi
bec39cab 12278
c906108c
SS
12279done
12280
5ee754fc 12281
4e8d927d 12282# Create a header we can use portably to get the standard integer types.
666ec76f 12283
4e8d927d
DJ
12284
12285inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12286
12287acx_cv_header_stdint=stddef.h
12288acx_cv_header_stdint_kind="(already complete)"
12289for i in stdint.h $inttype_headers; do
12290 unset ac_cv_type_uintptr_t
12291 unset ac_cv_type_uintmax_t
12292 unset ac_cv_type_int_least32_t
12293 unset ac_cv_type_int_fast32_t
12294 unset ac_cv_type_uint64_t
12295 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
12296 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12297echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 12298if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 12299 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12300else
bec39cab
AC
12301 cat >conftest.$ac_ext <<_ACEOF
12302/* confdefs.h. */
12303_ACEOF
12304cat confdefs.h >>conftest.$ac_ext
12305cat >>conftest.$ac_ext <<_ACEOF
12306/* end confdefs.h. */
4e8d927d
DJ
12307#include <sys/types.h>
12308#include <$i>
12309
bec39cab
AC
12310int
12311main ()
12312{
b4e70030 12313if ((uintmax_t *) 0)
4e8d927d 12314 return 0;
b4e70030 12315if (sizeof (uintmax_t))
4e8d927d
DJ
12316 return 0;
12317 ;
bec39cab
AC
12318 return 0;
12319}
12320_ACEOF
12321rm -f conftest.$ac_objext
12322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12323 (eval $ac_compile) 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
b4e70030
JB
12330 { ac_try='test -z "$ac_c_werror_flag"
12331 || test ! -s conftest.err'
bec39cab
AC
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest.$ac_objext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
4e8d927d 12343 ac_cv_type_uintmax_t=yes
40a7debc 12344else
bec39cab
AC
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
b4e70030 12348ac_cv_type_uintmax_t=no
40a7debc 12349fi
bec39cab 12350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 12351fi
b4e70030
JB
12352echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12353echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
12354if test $ac_cv_type_uintmax_t = yes; then
12355 acx_cv_header_stdint=$i
666ec76f 12356else
4e8d927d 12357 continue
666ec76f 12358fi
4e8d927d 12359
b4e70030
JB
12360 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12361echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 12362if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12364else
12365 cat >conftest.$ac_ext <<_ACEOF
12366/* confdefs.h. */
12367_ACEOF
12368cat confdefs.h >>conftest.$ac_ext
12369cat >>conftest.$ac_ext <<_ACEOF
12370/* end confdefs.h. */
4e8d927d
DJ
12371#include <sys/types.h>
12372#include <$i>
12373
666ec76f
MK
12374int
12375main ()
12376{
b4e70030 12377if ((uintptr_t *) 0)
4e8d927d 12378 return 0;
b4e70030 12379if (sizeof (uintptr_t))
4e8d927d 12380 return 0;
666ec76f
MK
12381 ;
12382 return 0;
12383}
12384_ACEOF
12385rm -f conftest.$ac_objext
12386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387 (eval $ac_compile) 2>conftest.er1
12388 ac_status=$?
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
b4e70030
JB
12394 { ac_try='test -z "$ac_c_werror_flag"
12395 || test ! -s conftest.err'
666ec76f
MK
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest.$ac_objext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
4e8d927d 12407 ac_cv_type_uintptr_t=yes
666ec76f
MK
12408else
12409 echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 12411
b4e70030 12412ac_cv_type_uintptr_t=no
a3828db0
MK
12413fi
12414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12415fi
b4e70030
JB
12416echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12417echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
12418if test $ac_cv_type_uintptr_t = yes; then
12419 :
a3828db0 12420else
4e8d927d 12421 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 12422fi
4e8d927d 12423
b4e70030
JB
12424 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12425echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 12426if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428else
12429 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
12430/* confdefs.h. */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext
12433cat >>conftest.$ac_ext <<_ACEOF
12434/* end confdefs.h. */
4e8d927d
DJ
12435#include <sys/types.h>
12436#include <$i>
12437
bec39cab
AC
12438int
12439main ()
12440{
b4e70030 12441if ((int_least32_t *) 0)
4e8d927d 12442 return 0;
b4e70030 12443if (sizeof (int_least32_t))
4e8d927d 12444 return 0;
bec39cab
AC
12445 ;
12446 return 0;
12447}
12448_ACEOF
12449rm -f conftest.$ac_objext
12450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12451 (eval $ac_compile) 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
b4e70030
JB
12458 { ac_try='test -z "$ac_c_werror_flag"
12459 || test ! -s conftest.err'
bec39cab
AC
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest.$ac_objext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
4e8d927d 12471 ac_cv_type_int_least32_t=yes
b9362cc7 12472else
bec39cab
AC
12473 echo "$as_me: failed program was:" >&5
12474sed 's/^/| /' conftest.$ac_ext >&5
12475
b4e70030 12476ac_cv_type_int_least32_t=no
b9362cc7 12477fi
bec39cab 12478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 12479fi
b4e70030
JB
12480echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
12481echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
12482if test $ac_cv_type_int_least32_t = yes; then
12483 :
a3828db0 12484else
4e8d927d 12485 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 12486fi
5ee754fc 12487
b4e70030
JB
12488 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
12489echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 12490if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492else
12493 cat >conftest.$ac_ext <<_ACEOF
12494/* confdefs.h. */
12495_ACEOF
12496cat confdefs.h >>conftest.$ac_ext
12497cat >>conftest.$ac_ext <<_ACEOF
12498/* end confdefs.h. */
4e8d927d
DJ
12499#include <sys/types.h>
12500#include <$i>
12501
bec39cab
AC
12502int
12503main ()
12504{
b4e70030 12505if ((int_fast32_t *) 0)
4e8d927d 12506 return 0;
b4e70030 12507if (sizeof (int_fast32_t))
4e8d927d 12508 return 0;
bec39cab
AC
12509 ;
12510 return 0;
12511}
12512_ACEOF
12513rm -f conftest.$ac_objext
12514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515 (eval $ac_compile) 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
b4e70030
JB
12522 { ac_try='test -z "$ac_c_werror_flag"
12523 || test ! -s conftest.err'
bec39cab
AC
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; } &&
12529 { ac_try='test -s conftest.$ac_objext'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
4e8d927d 12535 ac_cv_type_int_fast32_t=yes
c906108c 12536else
bec39cab
AC
12537 echo "$as_me: failed program was:" >&5
12538sed 's/^/| /' conftest.$ac_ext >&5
12539
b4e70030 12540ac_cv_type_int_fast32_t=no
c906108c 12541fi
bec39cab 12542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12543fi
b4e70030
JB
12544echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12545echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
12546if test $ac_cv_type_int_fast32_t = yes; then
12547 :
a3828db0 12548else
4e8d927d 12549 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 12550fi
4e8d927d 12551
b4e70030
JB
12552 echo "$as_me:$LINENO: checking for uint64_t" >&5
12553echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 12554if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556else
12557 cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
4e8d927d
DJ
12563#include <sys/types.h>
12564#include <$i>
12565
bec39cab
AC
12566int
12567main ()
12568{
b4e70030 12569if ((uint64_t *) 0)
4e8d927d 12570 return 0;
b4e70030 12571if (sizeof (uint64_t))
4e8d927d 12572 return 0;
bec39cab
AC
12573 ;
12574 return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext
12578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
b4e70030
JB
12586 { ac_try='test -z "$ac_c_werror_flag"
12587 || test ! -s conftest.err'
bec39cab
AC
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest.$ac_objext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
4e8d927d 12599 ac_cv_type_uint64_t=yes
c906108c 12600else
bec39cab
AC
12601 echo "$as_me: failed program was:" >&5
12602sed 's/^/| /' conftest.$ac_ext >&5
12603
b4e70030 12604ac_cv_type_uint64_t=no
c906108c 12605fi
bec39cab 12606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12607fi
b4e70030
JB
12608echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12609echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
12610if test $ac_cv_type_uint64_t = yes; then
12611 :
a3828db0 12612else
4e8d927d 12613 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
12614fi
12615
4e8d927d
DJ
12616 break
12617done
12618if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 12619 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 12620 for i in stdint.h $inttype_headers; do
3841debe 12621 unset ac_cv_type_uintptr_t
4e8d927d
DJ
12622 unset ac_cv_type_uint32_t
12623 unset ac_cv_type_uint64_t
12624 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
12625 echo "$as_me:$LINENO: checking for uint32_t" >&5
12626echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 12627if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 12628 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 12629else
bec39cab
AC
12630 cat >conftest.$ac_ext <<_ACEOF
12631/* confdefs.h. */
12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h. */
4e8d927d
DJ
12636#include <sys/types.h>
12637#include <$i>
12638
a3828db0
MK
12639int
12640main ()
12641{
b4e70030 12642if ((uint32_t *) 0)
4e8d927d 12643 return 0;
b4e70030 12644if (sizeof (uint32_t))
4e8d927d 12645 return 0;
a3828db0
MK
12646 ;
12647 return 0;
12648}
bec39cab
AC
12649_ACEOF
12650rm -f conftest.$ac_objext
12651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652 (eval $ac_compile) 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
b4e70030
JB
12659 { ac_try='test -z "$ac_c_werror_flag"
12660 || test ! -s conftest.err'
bec39cab
AC
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest.$ac_objext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
4e8d927d 12672 ac_cv_type_uint32_t=yes
bce58c09 12673else
bec39cab
AC
12674 echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
b4e70030 12677ac_cv_type_uint32_t=no
bce58c09 12678fi
bec39cab 12679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 12680fi
b4e70030
JB
12681echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12682echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
12683if test $ac_cv_type_uint32_t = yes; then
12684 acx_cv_header_stdint=$i
a3828db0 12685else
4e8d927d 12686 continue
e5a7de23 12687fi
4e8d927d 12688
b4e70030
JB
12689 echo "$as_me:$LINENO: checking for uint64_t" >&5
12690echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 12691if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693else
12694 cat >conftest.$ac_ext <<_ACEOF
12695/* confdefs.h. */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
12699/* end confdefs.h. */
4e8d927d
DJ
12700#include <sys/types.h>
12701#include <$i>
12702
e5a7de23
EZ
12703int
12704main ()
12705{
b4e70030 12706if ((uint64_t *) 0)
4e8d927d 12707 return 0;
b4e70030 12708if (sizeof (uint64_t))
4e8d927d 12709 return 0;
e5a7de23
EZ
12710 ;
12711 return 0;
12712}
12713_ACEOF
12714rm -f conftest.$ac_objext
12715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716 (eval $ac_compile) 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
b4e70030
JB
12723 { ac_try='test -z "$ac_c_werror_flag"
12724 || test ! -s conftest.err'
e5a7de23
EZ
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } &&
12730 { ac_try='test -s conftest.$ac_objext'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
4e8d927d 12736 ac_cv_type_uint64_t=yes
e5a7de23
EZ
12737else
12738 echo "$as_me: failed program was:" >&5
12739sed 's/^/| /' conftest.$ac_ext >&5
12740
b4e70030 12741ac_cv_type_uint64_t=no
e5a7de23
EZ
12742fi
12743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12744fi
b4e70030
JB
12745echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12746echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
12747
12748 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12749echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12750if test "${ac_cv_type_uintptr_t+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752else
12753 cat >conftest.$ac_ext <<_ACEOF
12754/* confdefs.h. */
12755_ACEOF
12756cat confdefs.h >>conftest.$ac_ext
12757cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */
12759#include <sys/types.h>
12760#include <$i>
12761
12762int
12763main ()
12764{
12765if ((uintptr_t *) 0)
12766 return 0;
12767if (sizeof (uintptr_t))
12768 return 0;
12769 ;
12770 return 0;
12771}
12772_ACEOF
12773rm -f conftest.$ac_objext
12774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12775 (eval $ac_compile) 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag"
12783 || test ! -s conftest.err'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; } &&
12789 { ac_try='test -s conftest.$ac_objext'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 ac_cv_type_uintptr_t=yes
e5a7de23 12796else
3841debe
DJ
12797 echo "$as_me: failed program was:" >&5
12798sed 's/^/| /' conftest.$ac_ext >&5
12799
12800ac_cv_type_uintptr_t=no
4e8d927d 12801fi
3841debe
DJ
12802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12803fi
12804echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12805echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 12806
4e8d927d
DJ
12807 break
12808 done
e5a7de23 12809fi
4e8d927d
DJ
12810if test "$acx_cv_header_stdint" = stddef.h; then
12811 acx_cv_header_stdint_kind="(u_intXX_t style)"
12812 for i in sys/types.h $inttype_headers; do
12813 unset ac_cv_type_u_int32_t
12814 unset ac_cv_type_u_int64_t
12815 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
12816 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12817echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 12818if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820else
12821 cat >conftest.$ac_ext <<_ACEOF
12822/* confdefs.h. */
12823_ACEOF
12824cat confdefs.h >>conftest.$ac_ext
12825cat >>conftest.$ac_ext <<_ACEOF
12826/* end confdefs.h. */
4e8d927d
DJ
12827#include <sys/types.h>
12828#include <$i>
12829
e5a7de23
EZ
12830int
12831main ()
12832{
b4e70030 12833if ((u_int32_t *) 0)
4e8d927d 12834 return 0;
b4e70030 12835if (sizeof (u_int32_t))
4e8d927d 12836 return 0;
e5a7de23
EZ
12837 ;
12838 return 0;
12839}
12840_ACEOF
12841rm -f conftest.$ac_objext
12842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12843 (eval $ac_compile) 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
b4e70030
JB
12850 { ac_try='test -z "$ac_c_werror_flag"
12851 || test ! -s conftest.err'
e5a7de23
EZ
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest.$ac_objext'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; }; then
4e8d927d 12863 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
12864else
12865 echo "$as_me: failed program was:" >&5
12866sed 's/^/| /' conftest.$ac_ext >&5
12867
b4e70030 12868ac_cv_type_u_int32_t=no
e5a7de23
EZ
12869fi
12870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12871fi
b4e70030
JB
12872echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12873echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
12874if test $ac_cv_type_u_int32_t = yes; then
12875 acx_cv_header_stdint=$i
e5a7de23 12876else
4e8d927d 12877 continue
a3828db0 12878fi
5ee754fc 12879
b4e70030
JB
12880 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12881echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 12882if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884else
12885 cat >conftest.$ac_ext <<_ACEOF
12886/* confdefs.h. */
12887_ACEOF
12888cat confdefs.h >>conftest.$ac_ext
12889cat >>conftest.$ac_ext <<_ACEOF
12890/* end confdefs.h. */
4e8d927d
DJ
12891#include <sys/types.h>
12892#include <$i>
12893
bec39cab
AC
12894int
12895main ()
12896{
b4e70030 12897if ((u_int64_t *) 0)
4e8d927d 12898 return 0;
b4e70030 12899if (sizeof (u_int64_t))
4e8d927d 12900 return 0;
bec39cab
AC
12901 ;
12902 return 0;
12903}
12904_ACEOF
a3828db0
MK
12905rm -f conftest.$ac_objext
12906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
b4e70030
JB
12914 { ac_try='test -z "$ac_c_werror_flag"
12915 || test ! -s conftest.err'
bec39cab
AC
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
a3828db0 12921 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
4e8d927d 12927 ac_cv_type_u_int64_t=yes
bec39cab
AC
12928else
12929 echo "$as_me: failed program was:" >&5
12930sed 's/^/| /' conftest.$ac_ext >&5
12931
b4e70030 12932ac_cv_type_u_int64_t=no
4e8d927d 12933fi
4e8d927d
DJ
12934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12935fi
b4e70030
JB
12936echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12937echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
12938
12939 break
12940 done
12941fi
12942if test "$acx_cv_header_stdint" = stddef.h; then
12943 acx_cv_header_stdint_kind="(using manual detection)"
12944fi
12945
12946test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12947test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12948test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12949test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12950test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12951
12952# ----------------- Summarize what we found so far
12953
b4e70030
JB
12954echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12955echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 12956
b4e70030 12957case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
12958$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12959 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
12960 Xgdb_stdint.h : 'X\(/\)$' \| \
12961 . : '\(.\)' 2>/dev/null ||
4e8d927d 12962echo X/gdb_stdint.h |
b4e70030
JB
12963 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12964 /^X\/\(\/\/\)$/{ s//\1/; q; }
12965 /^X\/\(\/\).*/{ s//\1/; q; }
12966 s/.*/./; q'` in
4e8d927d
DJ
12967 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12968echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12969 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12970echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12971 *) ;;
12972esac
12973
b4e70030
JB
12974echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12975echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
12976
12977# ----------------- done included file, check C basic types --------
12978
12979# Lacking an uintptr_t? Test size of void *
12980case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
12981 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12982echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
12983if test "${ac_cv_type_void_p+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985else
12986 cat >conftest.$ac_ext <<_ACEOF
a3828db0 12987/* confdefs.h. */
bec39cab
AC
12988_ACEOF
12989cat confdefs.h >>conftest.$ac_ext
12990cat >>conftest.$ac_ext <<_ACEOF
12991/* end confdefs.h. */
a3828db0 12992$ac_includes_default
bec39cab
AC
12993int
12994main ()
12995{
b4e70030 12996if ((void * *) 0)
4e8d927d 12997 return 0;
b4e70030 12998if (sizeof (void *))
4e8d927d 12999 return 0;
bec39cab
AC
13000 ;
13001 return 0;
13002}
13003_ACEOF
a3828db0
MK
13004rm -f conftest.$ac_objext
13005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13006 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
b4e70030
JB
13013 { ac_try='test -z "$ac_c_werror_flag"
13014 || test ! -s conftest.err'
bec39cab
AC
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
a3828db0 13020 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
4e8d927d 13026 ac_cv_type_void_p=yes
46711df8 13027else
bec39cab
AC
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
b4e70030 13031ac_cv_type_void_p=no
a3828db0 13032fi
4e8d927d 13033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 13034fi
b4e70030
JB
13035echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13036echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 13037
b4e70030
JB
13038echo "$as_me:$LINENO: checking size of void *" >&5
13039echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 13040if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042else
4e8d927d 13043 if test "$ac_cv_type_void_p" = yes; then
b4e70030 13044 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13047 # This bug is HP SR number 8606223364.
13048 if test "$cross_compiling" = yes; then
13049 # Depending upon the size, compute the lo and hi bounds.
13050cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056$ac_includes_default
13057int
13058main ()
13059{
b4e70030 13060static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
13061test_array [0] = 0
13062
d3ea6809
MM
13063 ;
13064 return 0;
13065}
13066_ACEOF
13067rm -f conftest.$ac_objext
13068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13069 (eval $ac_compile) 2>conftest.er1
13070 ac_status=$?
13071 grep -v '^ *+' conftest.er1 >conftest.err
13072 rm -f conftest.er1
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
b4e70030
JB
13076 { ac_try='test -z "$ac_c_werror_flag"
13077 || test ! -s conftest.err'
d3ea6809
MM
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; } &&
13083 { ac_try='test -s conftest.$ac_objext'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
4e8d927d
DJ
13089 ac_lo=0 ac_mid=0
13090 while :; do
13091 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
13092/* confdefs.h. */
13093_ACEOF
13094cat confdefs.h >>conftest.$ac_ext
13095cat >>conftest.$ac_ext <<_ACEOF
13096/* end confdefs.h. */
13097$ac_includes_default
13098int
13099main ()
13100{
b4e70030 13101static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
13102test_array [0] = 0
13103
d3ea6809
MM
13104 ;
13105 return 0;
13106}
13107_ACEOF
13108rm -f conftest.$ac_objext
13109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110 (eval $ac_compile) 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
b4e70030
JB
13117 { ac_try='test -z "$ac_c_werror_flag"
13118 || test ! -s conftest.err'
d3ea6809
MM
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try='test -s conftest.$ac_objext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
4e8d927d 13130 ac_hi=$ac_mid; break
d3ea6809
MM
13131else
13132 echo "$as_me: failed program was:" >&5
13133sed 's/^/| /' conftest.$ac_ext >&5
13134
b4e70030
JB
13135ac_lo=`expr $ac_mid + 1`
13136 if test $ac_lo -le $ac_mid; then
13137 ac_lo= ac_hi=
13138 break
13139 fi
13140 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 13141fi
4e8d927d
DJ
13142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13143 done
bec39cab 13144else
4e8d927d
DJ
13145 echo "$as_me: failed program was:" >&5
13146sed 's/^/| /' conftest.$ac_ext >&5
13147
b4e70030 13148cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13149/* confdefs.h. */
13150_ACEOF
13151cat confdefs.h >>conftest.$ac_ext
13152cat >>conftest.$ac_ext <<_ACEOF
13153/* end confdefs.h. */
4e8d927d 13154$ac_includes_default
bec39cab
AC
13155int
13156main ()
13157{
b4e70030 13158static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
13159test_array [0] = 0
13160
bec39cab
AC
13161 ;
13162 return 0;
13163}
13164_ACEOF
a3828db0
MK
13165rm -f conftest.$ac_objext
13166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
b4e70030
JB
13174 { ac_try='test -z "$ac_c_werror_flag"
13175 || test ! -s conftest.err'
bec39cab
AC
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
a3828db0 13181 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
4e8d927d
DJ
13187 ac_hi=-1 ac_mid=-1
13188 while :; do
13189 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
13190/* confdefs.h. */
13191_ACEOF
13192cat confdefs.h >>conftest.$ac_ext
13193cat >>conftest.$ac_ext <<_ACEOF
13194/* end confdefs.h. */
4e8d927d 13195$ac_includes_default
f9f87d2c
MK
13196int
13197main ()
13198{
b4e70030 13199static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
13200test_array [0] = 0
13201
f9f87d2c
MK
13202 ;
13203 return 0;
13204}
13205_ACEOF
13206rm -f conftest.$ac_objext
13207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13208 (eval $ac_compile) 2>conftest.er1
13209 ac_status=$?
13210 grep -v '^ *+' conftest.er1 >conftest.err
13211 rm -f conftest.er1
13212 cat conftest.err >&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
b4e70030
JB
13215 { ac_try='test -z "$ac_c_werror_flag"
13216 || test ! -s conftest.err'
f9f87d2c
MK
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest.$ac_objext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
4e8d927d 13228 ac_lo=$ac_mid; break
f9f87d2c
MK
13229else
13230 echo "$as_me: failed program was:" >&5
13231sed 's/^/| /' conftest.$ac_ext >&5
13232
b4e70030
JB
13233ac_hi=`expr '(' $ac_mid ')' - 1`
13234 if test $ac_mid -le $ac_hi; then
13235 ac_lo= ac_hi=
13236 break
13237 fi
13238 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 13239fi
4e8d927d
DJ
13240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13241 done
13242else
13243 echo "$as_me: failed program was:" >&5
13244sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 13245
b4e70030 13246ac_lo= ac_hi=
4e8d927d 13247fi
4e8d927d 13248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 13249fi
4e8d927d
DJ
13250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13251# Binary search between lo and hi bounds.
13252while test "x$ac_lo" != "x$ac_hi"; do
13253 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
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. */
4e8d927d 13260$ac_includes_default
3be60c3d
MK
13261int
13262main ()
13263{
b4e70030 13264static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
13265test_array [0] = 0
13266
3be60c3d
MK
13267 ;
13268 return 0;
13269}
13270_ACEOF
13271rm -f conftest.$ac_objext
13272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13273 (eval $ac_compile) 2>conftest.er1
13274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
b4e70030
JB
13280 { ac_try='test -z "$ac_c_werror_flag"
13281 || test ! -s conftest.err'
3be60c3d
MK
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest.$ac_objext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
4e8d927d 13293 ac_hi=$ac_mid
3be60c3d
MK
13294else
13295 echo "$as_me: failed program was:" >&5
13296sed 's/^/| /' conftest.$ac_ext >&5
13297
b4e70030 13298ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 13299fi
4e8d927d
DJ
13300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13301done
13302case $ac_lo in
13303?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 13304'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 13305See \`config.log' for more details." >&5
b4e70030 13306echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 13307See \`config.log' for more details." >&2;}
b4e70030 13308 { (exit 1); exit 1; }; } ;;
4e8d927d 13309esac
b4e70030
JB
13310else
13311 if test "$cross_compiling" = yes; then
13312 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13313See \`config.log' for more details." >&5
13314echo "$as_me: error: cannot run test program while cross compiling
13315See \`config.log' for more details." >&2;}
13316 { (exit 1); exit 1; }; }
4e8d927d
DJ
13317else
13318 cat >conftest.$ac_ext <<_ACEOF
13319/* confdefs.h. */
3be60c3d 13320_ACEOF
4e8d927d
DJ
13321cat confdefs.h >>conftest.$ac_ext
13322cat >>conftest.$ac_ext <<_ACEOF
13323/* end confdefs.h. */
13324$ac_includes_default
b4e70030
JB
13325long longval () { return (long) (sizeof (void *)); }
13326unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
13327#include <stdio.h>
13328#include <stdlib.h>
13329int
13330main ()
13331{
13332
13333 FILE *f = fopen ("conftest.val", "w");
13334 if (! f)
b4e70030
JB
13335 exit (1);
13336 if (((long) (sizeof (void *))) < 0)
4e8d927d 13337 {
b4e70030
JB
13338 long i = longval ();
13339 if (i != ((long) (sizeof (void *))))
13340 exit (1);
4e8d927d
DJ
13341 fprintf (f, "%ld\n", i);
13342 }
13343 else
13344 {
b4e70030
JB
13345 unsigned long i = ulongval ();
13346 if (i != ((long) (sizeof (void *))))
13347 exit (1);
4e8d927d
DJ
13348 fprintf (f, "%lu\n", i);
13349 }
b4e70030 13350 exit (ferror (f) || fclose (f) != 0);
3be60c3d 13351
4e8d927d
DJ
13352 ;
13353 return 0;
13354}
13355_ACEOF
13356rm -f conftest$ac_exeext
13357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13358 (eval $ac_link) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_sizeof_void_p=`cat conftest.val`
13368else
13369 echo "$as_me: program exited with status $ac_status" >&5
13370echo "$as_me: failed program was:" >&5
13371sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 13372
4e8d927d 13373( exit $ac_status )
b4e70030 13374{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 13375See \`config.log' for more details." >&5
b4e70030 13376echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 13377See \`config.log' for more details." >&2;}
b4e70030
JB
13378 { (exit 1); exit 1; }; }
13379fi
13380rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 13381fi
4e8d927d
DJ
13382fi
13383rm -f conftest.val
13384else
13385 ac_cv_sizeof_void_p=0
13386fi
13387fi
b4e70030
JB
13388echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13389echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
13390cat >>confdefs.h <<_ACEOF
13391#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13392_ACEOF
f9f87d2c 13393
4e8d927d
DJ
13394 ;;
13395esac
46711df8 13396
4e8d927d
DJ
13397# Lacking an uint64_t? Test size of long
13398case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
13399 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13400echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 13401if test "${ac_cv_type_long+set}" = set; then
bec39cab 13402 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13403else
bec39cab
AC
13404 cat >conftest.$ac_ext <<_ACEOF
13405/* confdefs.h. */
13406_ACEOF
13407cat confdefs.h >>conftest.$ac_ext
13408cat >>conftest.$ac_ext <<_ACEOF
13409/* end confdefs.h. */
4e8d927d 13410$ac_includes_default
bec39cab 13411int
46711df8
MK
13412main ()
13413{
b4e70030 13414if ((long *) 0)
4e8d927d 13415 return 0;
b4e70030 13416if (sizeof (long))
4e8d927d 13417 return 0;
a3828db0
MK
13418 ;
13419 return 0;
46711df8 13420}
bec39cab 13421_ACEOF
a3828db0
MK
13422rm -f conftest.$ac_objext
13423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13424 (eval $ac_compile) 2>conftest.er1
13425 ac_status=$?
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
b4e70030
JB
13431 { ac_try='test -z "$ac_c_werror_flag"
13432 || test ! -s conftest.err'
a3828db0
MK
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
bec39cab
AC
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
4e8d927d 13444 ac_cv_type_long=yes
46711df8 13445else
a3828db0 13446 echo "$as_me: failed program was:" >&5
bec39cab
AC
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
b4e70030 13449ac_cv_type_long=no
46711df8 13450fi
4e8d927d 13451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13452fi
b4e70030
JB
13453echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13454echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 13455
b4e70030
JB
13456echo "$as_me:$LINENO: checking size of long" >&5
13457echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 13458if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 13459 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13460else
4e8d927d 13461 if test "$ac_cv_type_long" = yes; then
b4e70030 13462 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13463 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13464 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13465 # This bug is HP SR number 8606223364.
13466 if test "$cross_compiling" = yes; then
13467 # Depending upon the size, compute the lo and hi bounds.
13468cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13469/* confdefs.h. */
13470_ACEOF
13471cat confdefs.h >>conftest.$ac_ext
13472cat >>conftest.$ac_ext <<_ACEOF
13473/* end confdefs.h. */
4e8d927d 13474$ac_includes_default
4e8d927d
DJ
13475int
13476main ()
13477{
b4e70030 13478static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 13479test_array [0] = 0
a3828db0 13480
4e8d927d
DJ
13481 ;
13482 return 0;
13483}
bec39cab
AC
13484_ACEOF
13485rm -f conftest.$ac_objext
13486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487 (eval $ac_compile) 2>conftest.er1
13488 ac_status=$?
13489 grep -v '^ *+' conftest.er1 >conftest.err
13490 rm -f conftest.er1
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } &&
b4e70030
JB
13494 { ac_try='test -z "$ac_c_werror_flag"
13495 || test ! -s conftest.err'
bec39cab
AC
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; } &&
13501 { ac_try='test -s conftest.$ac_objext'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
4e8d927d
DJ
13507 ac_lo=0 ac_mid=0
13508 while :; do
13509 cat >conftest.$ac_ext <<_ACEOF
13510/* confdefs.h. */
13511_ACEOF
13512cat confdefs.h >>conftest.$ac_ext
13513cat >>conftest.$ac_ext <<_ACEOF
13514/* end confdefs.h. */
13515$ac_includes_default
4e8d927d
DJ
13516int
13517main ()
13518{
b4e70030 13519static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
13520test_array [0] = 0
13521
13522 ;
13523 return 0;
13524}
13525_ACEOF
13526rm -f conftest.$ac_objext
13527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528 (eval $ac_compile) 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
b4e70030
JB
13535 { ac_try='test -z "$ac_c_werror_flag"
13536 || test ! -s conftest.err'
4e8d927d
DJ
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; } &&
13542 { ac_try='test -s conftest.$ac_objext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_hi=$ac_mid; break
13549else
13550 echo "$as_me: failed program was:" >&5
13551sed 's/^/| /' conftest.$ac_ext >&5
13552
b4e70030
JB
13553ac_lo=`expr $ac_mid + 1`
13554 if test $ac_lo -le $ac_mid; then
13555 ac_lo= ac_hi=
13556 break
13557 fi
13558 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13559fi
4e8d927d
DJ
13560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13561 done
13562else
13563 echo "$as_me: failed program was:" >&5
13564sed 's/^/| /' conftest.$ac_ext >&5
13565
b4e70030 13566cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13567/* confdefs.h. */
13568_ACEOF
13569cat confdefs.h >>conftest.$ac_ext
13570cat >>conftest.$ac_ext <<_ACEOF
13571/* end confdefs.h. */
13572$ac_includes_default
4e8d927d
DJ
13573int
13574main ()
13575{
b4e70030 13576static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
13577test_array [0] = 0
13578
13579 ;
13580 return 0;
13581}
13582_ACEOF
13583rm -f conftest.$ac_objext
13584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585 (eval $ac_compile) 2>conftest.er1
13586 ac_status=$?
13587 grep -v '^ *+' conftest.er1 >conftest.err
13588 rm -f conftest.er1
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
b4e70030
JB
13592 { ac_try='test -z "$ac_c_werror_flag"
13593 || test ! -s conftest.err'
4e8d927d
DJ
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest.$ac_objext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 ac_hi=-1 ac_mid=-1
13606 while :; do
13607 cat >conftest.$ac_ext <<_ACEOF
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
13613$ac_includes_default
4e8d927d
DJ
13614int
13615main ()
13616{
b4e70030 13617static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
13618test_array [0] = 0
13619
13620 ;
13621 return 0;
13622}
13623_ACEOF
13624rm -f conftest.$ac_objext
13625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626 (eval $ac_compile) 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
b4e70030
JB
13633 { ac_try='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
4e8d927d
DJ
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest.$ac_objext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_lo=$ac_mid; break
13647else
13648 echo "$as_me: failed program was:" >&5
13649sed 's/^/| /' conftest.$ac_ext >&5
13650
b4e70030
JB
13651ac_hi=`expr '(' $ac_mid ')' - 1`
13652 if test $ac_mid -le $ac_hi; then
13653 ac_lo= ac_hi=
13654 break
13655 fi
13656 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13657fi
4e8d927d
DJ
13658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13659 done
13660else
13661 echo "$as_me: failed program was:" >&5
13662sed 's/^/| /' conftest.$ac_ext >&5
13663
b4e70030 13664ac_lo= ac_hi=
4e8d927d 13665fi
4e8d927d
DJ
13666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13667fi
4e8d927d
DJ
13668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13669# Binary search between lo and hi bounds.
13670while test "x$ac_lo" != "x$ac_hi"; do
13671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13672 cat >conftest.$ac_ext <<_ACEOF
13673/* confdefs.h. */
13674_ACEOF
13675cat confdefs.h >>conftest.$ac_ext
13676cat >>conftest.$ac_ext <<_ACEOF
13677/* end confdefs.h. */
13678$ac_includes_default
4e8d927d
DJ
13679int
13680main ()
13681{
b4e70030 13682static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
13683test_array [0] = 0
13684
13685 ;
13686 return 0;
13687}
13688_ACEOF
13689rm -f conftest.$ac_objext
13690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13691 (eval $ac_compile) 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
b4e70030
JB
13698 { ac_try='test -z "$ac_c_werror_flag"
13699 || test ! -s conftest.err'
4e8d927d
DJ
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_hi=$ac_mid
13712else
13713 echo "$as_me: failed program was:" >&5
13714sed 's/^/| /' conftest.$ac_ext >&5
13715
b4e70030 13716ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13717fi
4e8d927d
DJ
13718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13719done
13720case $ac_lo in
13721?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 13722'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 13723See \`config.log' for more details." >&5
b4e70030 13724echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 13725See \`config.log' for more details." >&2;}
b4e70030 13726 { (exit 1); exit 1; }; } ;;
4e8d927d 13727esac
b4e70030
JB
13728else
13729 if test "$cross_compiling" = yes; then
13730 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13731See \`config.log' for more details." >&5
13732echo "$as_me: error: cannot run test program while cross compiling
13733See \`config.log' for more details." >&2;}
13734 { (exit 1); exit 1; }; }
4e8d927d
DJ
13735else
13736 cat >conftest.$ac_ext <<_ACEOF
13737/* confdefs.h. */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
13741/* end confdefs.h. */
13742$ac_includes_default
b4e70030
JB
13743long longval () { return (long) (sizeof (long)); }
13744unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
13745#include <stdio.h>
13746#include <stdlib.h>
13747int
13748main ()
13749{
13750
13751 FILE *f = fopen ("conftest.val", "w");
13752 if (! f)
b4e70030
JB
13753 exit (1);
13754 if (((long) (sizeof (long))) < 0)
4e8d927d 13755 {
b4e70030
JB
13756 long i = longval ();
13757 if (i != ((long) (sizeof (long))))
13758 exit (1);
4e8d927d
DJ
13759 fprintf (f, "%ld\n", i);
13760 }
13761 else
13762 {
b4e70030
JB
13763 unsigned long i = ulongval ();
13764 if (i != ((long) (sizeof (long))))
13765 exit (1);
4e8d927d
DJ
13766 fprintf (f, "%lu\n", i);
13767 }
b4e70030 13768 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13769
13770 ;
13771 return 0;
13772}
13773_ACEOF
13774rm -f conftest$ac_exeext
13775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13776 (eval $ac_link) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_cv_sizeof_long=`cat conftest.val`
13786else
13787 echo "$as_me: program exited with status $ac_status" >&5
13788echo "$as_me: failed program was:" >&5
13789sed 's/^/| /' conftest.$ac_ext >&5
13790
13791( exit $ac_status )
b4e70030 13792{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 13793See \`config.log' for more details." >&5
b4e70030 13794echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 13795See \`config.log' for more details." >&2;}
b4e70030
JB
13796 { (exit 1); exit 1; }; }
13797fi
13798rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13799fi
4e8d927d
DJ
13800fi
13801rm -f conftest.val
13802else
13803 ac_cv_sizeof_long=0
13804fi
13805fi
b4e70030
JB
13806echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13807echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
13808cat >>confdefs.h <<_ACEOF
13809#define SIZEOF_LONG $ac_cv_sizeof_long
13810_ACEOF
13811
13812 ;;
13813esac
13814
13815if test $acx_cv_header_stdint = stddef.h; then
13816 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
13817 echo "$as_me:$LINENO: checking for int" >&5
13818echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
13819if test "${ac_cv_type_int+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13821else
13822 cat >conftest.$ac_ext <<_ACEOF
13823/* confdefs.h. */
13824_ACEOF
13825cat confdefs.h >>conftest.$ac_ext
13826cat >>conftest.$ac_ext <<_ACEOF
13827/* end confdefs.h. */
13828$ac_includes_default
4e8d927d
DJ
13829int
13830main ()
13831{
b4e70030 13832if ((int *) 0)
4e8d927d 13833 return 0;
b4e70030 13834if (sizeof (int))
4e8d927d
DJ
13835 return 0;
13836 ;
13837 return 0;
13838}
13839_ACEOF
13840rm -f conftest.$ac_objext
13841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842 (eval $ac_compile) 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
b4e70030
JB
13849 { ac_try='test -z "$ac_c_werror_flag"
13850 || test ! -s conftest.err'
4e8d927d
DJ
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_cv_type_int=yes
13863else
13864 echo "$as_me: failed program was:" >&5
13865sed 's/^/| /' conftest.$ac_ext >&5
13866
b4e70030 13867ac_cv_type_int=no
4e8d927d 13868fi
4e8d927d
DJ
13869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13870fi
b4e70030
JB
13871echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13872echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 13873
b4e70030
JB
13874echo "$as_me:$LINENO: checking size of int" >&5
13875echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
13876if test "${ac_cv_sizeof_int+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878else
13879 if test "$ac_cv_type_int" = yes; then
b4e70030 13880 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13883 # This bug is HP SR number 8606223364.
13884 if test "$cross_compiling" = yes; then
13885 # Depending upon the size, compute the lo and hi bounds.
13886cat >conftest.$ac_ext <<_ACEOF
13887/* confdefs.h. */
13888_ACEOF
13889cat confdefs.h >>conftest.$ac_ext
13890cat >>conftest.$ac_ext <<_ACEOF
13891/* end confdefs.h. */
13892$ac_includes_default
4e8d927d
DJ
13893int
13894main ()
13895{
b4e70030 13896static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
13897test_array [0] = 0
13898
13899 ;
13900 return 0;
13901}
13902_ACEOF
13903rm -f conftest.$ac_objext
13904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13905 (eval $ac_compile) 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } &&
b4e70030
JB
13912 { ac_try='test -z "$ac_c_werror_flag"
13913 || test ! -s conftest.err'
4e8d927d
DJ
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; } &&
13919 { ac_try='test -s conftest.$ac_objext'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 ac_lo=0 ac_mid=0
13926 while :; do
13927 cat >conftest.$ac_ext <<_ACEOF
13928/* confdefs.h. */
13929_ACEOF
13930cat confdefs.h >>conftest.$ac_ext
13931cat >>conftest.$ac_ext <<_ACEOF
13932/* end confdefs.h. */
13933$ac_includes_default
4e8d927d
DJ
13934int
13935main ()
13936{
b4e70030 13937static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13938test_array [0] = 0
13939
13940 ;
13941 return 0;
13942}
13943_ACEOF
13944rm -f conftest.$ac_objext
13945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946 (eval $ac_compile) 2>conftest.er1
13947 ac_status=$?
13948 grep -v '^ *+' conftest.er1 >conftest.err
13949 rm -f conftest.er1
13950 cat conftest.err >&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
b4e70030
JB
13953 { ac_try='test -z "$ac_c_werror_flag"
13954 || test ! -s conftest.err'
4e8d927d
DJ
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest.$ac_objext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_hi=$ac_mid; break
13967else
13968 echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
b4e70030
JB
13971ac_lo=`expr $ac_mid + 1`
13972 if test $ac_lo -le $ac_mid; then
13973 ac_lo= ac_hi=
13974 break
13975 fi
13976 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13977fi
4e8d927d
DJ
13978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13979 done
13980else
13981 echo "$as_me: failed program was:" >&5
13982sed 's/^/| /' conftest.$ac_ext >&5
13983
b4e70030 13984cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13985/* confdefs.h. */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
13989/* end confdefs.h. */
13990$ac_includes_default
4e8d927d
DJ
13991int
13992main ()
13993{
b4e70030 13994static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
13995test_array [0] = 0
13996
13997 ;
13998 return 0;
13999}
14000_ACEOF
14001rm -f conftest.$ac_objext
14002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14003 (eval $ac_compile) 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
b4e70030
JB
14010 { ac_try='test -z "$ac_c_werror_flag"
14011 || test ! -s conftest.err'
4e8d927d
DJ
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest.$ac_objext'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 ac_hi=-1 ac_mid=-1
14024 while :; do
14025 cat >conftest.$ac_ext <<_ACEOF
14026/* confdefs.h. */
14027_ACEOF
14028cat confdefs.h >>conftest.$ac_ext
14029cat >>conftest.$ac_ext <<_ACEOF
14030/* end confdefs.h. */
14031$ac_includes_default
4e8d927d
DJ
14032int
14033main ()
14034{
b4e70030 14035static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
14036test_array [0] = 0
14037
14038 ;
14039 return 0;
14040}
14041_ACEOF
14042rm -f conftest.$ac_objext
14043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044 (eval $ac_compile) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
b4e70030
JB
14051 { ac_try='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
4e8d927d
DJ
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest.$ac_objext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_lo=$ac_mid; break
14065else
14066 echo "$as_me: failed program was:" >&5
14067sed 's/^/| /' conftest.$ac_ext >&5
14068
b4e70030
JB
14069ac_hi=`expr '(' $ac_mid ')' - 1`
14070 if test $ac_mid -le $ac_hi; then
14071 ac_lo= ac_hi=
14072 break
14073 fi
14074 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14075fi
4e8d927d
DJ
14076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14077 done
14078else
14079 echo "$as_me: failed program was:" >&5
14080sed 's/^/| /' conftest.$ac_ext >&5
14081
b4e70030 14082ac_lo= ac_hi=
4e8d927d 14083fi
4e8d927d
DJ
14084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14085fi
4e8d927d
DJ
14086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14087# Binary search between lo and hi bounds.
14088while test "x$ac_lo" != "x$ac_hi"; do
14089 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14090 cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
14096$ac_includes_default
4e8d927d
DJ
14097int
14098main ()
14099{
b4e70030 14100static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
14101test_array [0] = 0
14102
14103 ;
14104 return 0;
14105}
14106_ACEOF
14107rm -f conftest.$ac_objext
14108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>conftest.er1
14110 ac_status=$?
14111 grep -v '^ *+' conftest.er1 >conftest.err
14112 rm -f conftest.er1
14113 cat conftest.err >&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
b4e70030
JB
14116 { ac_try='test -z "$ac_c_werror_flag"
14117 || test ! -s conftest.err'
4e8d927d
DJ
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest.$ac_objext'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_hi=$ac_mid
14130else
14131 echo "$as_me: failed program was:" >&5
14132sed 's/^/| /' conftest.$ac_ext >&5
14133
b4e70030 14134ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14135fi
4e8d927d
DJ
14136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14137done
14138case $ac_lo in
14139?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 14140'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 14141See \`config.log' for more details." >&5
b4e70030 14142echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 14143See \`config.log' for more details." >&2;}
b4e70030 14144 { (exit 1); exit 1; }; } ;;
4e8d927d 14145esac
b4e70030
JB
14146else
14147 if test "$cross_compiling" = yes; then
14148 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14149See \`config.log' for more details." >&5
14150echo "$as_me: error: cannot run test program while cross compiling
14151See \`config.log' for more details." >&2;}
14152 { (exit 1); exit 1; }; }
4e8d927d
DJ
14153else
14154 cat >conftest.$ac_ext <<_ACEOF
14155/* confdefs.h. */
14156_ACEOF
14157cat confdefs.h >>conftest.$ac_ext
14158cat >>conftest.$ac_ext <<_ACEOF
14159/* end confdefs.h. */
14160$ac_includes_default
b4e70030
JB
14161long longval () { return (long) (sizeof (int)); }
14162unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
14163#include <stdio.h>
14164#include <stdlib.h>
14165int
14166main ()
14167{
14168
14169 FILE *f = fopen ("conftest.val", "w");
14170 if (! f)
b4e70030
JB
14171 exit (1);
14172 if (((long) (sizeof (int))) < 0)
4e8d927d 14173 {
b4e70030
JB
14174 long i = longval ();
14175 if (i != ((long) (sizeof (int))))
14176 exit (1);
4e8d927d
DJ
14177 fprintf (f, "%ld\n", i);
14178 }
14179 else
14180 {
b4e70030
JB
14181 unsigned long i = ulongval ();
14182 if (i != ((long) (sizeof (int))))
14183 exit (1);
4e8d927d
DJ
14184 fprintf (f, "%lu\n", i);
14185 }
b4e70030 14186 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14187
14188 ;
14189 return 0;
14190}
14191_ACEOF
14192rm -f conftest$ac_exeext
14193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14194 (eval $ac_link) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_cv_sizeof_int=`cat conftest.val`
14204else
14205 echo "$as_me: program exited with status $ac_status" >&5
14206echo "$as_me: failed program was:" >&5
14207sed 's/^/| /' conftest.$ac_ext >&5
14208
14209( exit $ac_status )
b4e70030 14210{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 14211See \`config.log' for more details." >&5
b4e70030 14212echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 14213See \`config.log' for more details." >&2;}
b4e70030
JB
14214 { (exit 1); exit 1; }; }
14215fi
14216rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14217fi
4e8d927d
DJ
14218fi
14219rm -f conftest.val
14220else
14221 ac_cv_sizeof_int=0
14222fi
14223fi
b4e70030
JB
14224echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14225echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
14226cat >>confdefs.h <<_ACEOF
14227#define SIZEOF_INT $ac_cv_sizeof_int
14228_ACEOF
14229
14230
b4e70030
JB
14231 echo "$as_me:$LINENO: checking for short" >&5
14232echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
14233if test "${ac_cv_type_short+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235else
14236 cat >conftest.$ac_ext <<_ACEOF
14237/* confdefs.h. */
14238_ACEOF
14239cat confdefs.h >>conftest.$ac_ext
14240cat >>conftest.$ac_ext <<_ACEOF
14241/* end confdefs.h. */
14242$ac_includes_default
4e8d927d
DJ
14243int
14244main ()
14245{
b4e70030 14246if ((short *) 0)
4e8d927d 14247 return 0;
b4e70030 14248if (sizeof (short))
4e8d927d
DJ
14249 return 0;
14250 ;
14251 return 0;
14252}
14253_ACEOF
14254rm -f conftest.$ac_objext
14255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256 (eval $ac_compile) 2>conftest.er1
14257 ac_status=$?
14258 grep -v '^ *+' conftest.er1 >conftest.err
14259 rm -f conftest.er1
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
b4e70030
JB
14263 { ac_try='test -z "$ac_c_werror_flag"
14264 || test ! -s conftest.err'
4e8d927d
DJ
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; } &&
14270 { ac_try='test -s conftest.$ac_objext'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }; then
14276 ac_cv_type_short=yes
14277else
14278 echo "$as_me: failed program was:" >&5
14279sed 's/^/| /' conftest.$ac_ext >&5
14280
b4e70030 14281ac_cv_type_short=no
4e8d927d 14282fi
4e8d927d
DJ
14283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14284fi
b4e70030
JB
14285echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14286echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 14287
b4e70030
JB
14288echo "$as_me:$LINENO: checking size of short" >&5
14289echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
14290if test "${ac_cv_sizeof_short+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292else
14293 if test "$ac_cv_type_short" = yes; then
b4e70030 14294 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14297 # This bug is HP SR number 8606223364.
14298 if test "$cross_compiling" = yes; then
14299 # Depending upon the size, compute the lo and hi bounds.
14300cat >conftest.$ac_ext <<_ACEOF
14301/* confdefs.h. */
14302_ACEOF
14303cat confdefs.h >>conftest.$ac_ext
14304cat >>conftest.$ac_ext <<_ACEOF
14305/* end confdefs.h. */
14306$ac_includes_default
4e8d927d
DJ
14307int
14308main ()
14309{
b4e70030 14310static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
14311test_array [0] = 0
14312
14313 ;
14314 return 0;
14315}
14316_ACEOF
14317rm -f conftest.$ac_objext
14318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
b4e70030
JB
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
4e8d927d
DJ
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_lo=0 ac_mid=0
14340 while :; do
14341 cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h. */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h. */
14347$ac_includes_default
4e8d927d
DJ
14348int
14349main ()
14350{
b4e70030 14351static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
14352test_array [0] = 0
14353
14354 ;
14355 return 0;
14356}
14357_ACEOF
14358rm -f conftest.$ac_objext
14359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360 (eval $ac_compile) 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
b4e70030
JB
14367 { ac_try='test -z "$ac_c_werror_flag"
14368 || test ! -s conftest.err'
4e8d927d
DJ
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; } &&
14374 { ac_try='test -s conftest.$ac_objext'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_hi=$ac_mid; break
14381else
14382 echo "$as_me: failed program was:" >&5
14383sed 's/^/| /' conftest.$ac_ext >&5
14384
b4e70030
JB
14385ac_lo=`expr $ac_mid + 1`
14386 if test $ac_lo -le $ac_mid; then
14387 ac_lo= ac_hi=
14388 break
14389 fi
14390 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14391fi
4e8d927d
DJ
14392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14393 done
14394else
14395 echo "$as_me: failed program was:" >&5
14396sed 's/^/| /' conftest.$ac_ext >&5
14397
b4e70030 14398cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14399/* confdefs.h. */
14400_ACEOF
14401cat confdefs.h >>conftest.$ac_ext
14402cat >>conftest.$ac_ext <<_ACEOF
14403/* end confdefs.h. */
14404$ac_includes_default
4e8d927d
DJ
14405int
14406main ()
14407{
b4e70030 14408static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
14409test_array [0] = 0
14410
14411 ;
14412 return 0;
14413}
14414_ACEOF
14415rm -f conftest.$ac_objext
14416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
b4e70030
JB
14424 { ac_try='test -z "$ac_c_werror_flag"
14425 || test ! -s conftest.err'
4e8d927d
DJ
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14437 ac_hi=-1 ac_mid=-1
14438 while :; do
14439 cat >conftest.$ac_ext <<_ACEOF
14440/* confdefs.h. */
14441_ACEOF
14442cat confdefs.h >>conftest.$ac_ext
14443cat >>conftest.$ac_ext <<_ACEOF
14444/* end confdefs.h. */
14445$ac_includes_default
4e8d927d
DJ
14446int
14447main ()
14448{
b4e70030 14449static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
14450test_array [0] = 0
14451
14452 ;
14453 return 0;
14454}
14455_ACEOF
14456rm -f conftest.$ac_objext
14457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458 (eval $ac_compile) 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
b4e70030
JB
14465 { ac_try='test -z "$ac_c_werror_flag"
14466 || test ! -s conftest.err'
4e8d927d
DJ
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_lo=$ac_mid; break
14479else
14480 echo "$as_me: failed program was:" >&5
14481sed 's/^/| /' conftest.$ac_ext >&5
14482
b4e70030
JB
14483ac_hi=`expr '(' $ac_mid ')' - 1`
14484 if test $ac_mid -le $ac_hi; then
14485 ac_lo= ac_hi=
14486 break
14487 fi
14488 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14489fi
4e8d927d
DJ
14490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14491 done
14492else
14493 echo "$as_me: failed program was:" >&5
14494sed 's/^/| /' conftest.$ac_ext >&5
14495
b4e70030 14496ac_lo= ac_hi=
4e8d927d 14497fi
4e8d927d
DJ
14498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14499fi
4e8d927d
DJ
14500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14501# Binary search between lo and hi bounds.
14502while test "x$ac_lo" != "x$ac_hi"; do
14503 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14504 cat >conftest.$ac_ext <<_ACEOF
14505/* confdefs.h. */
14506_ACEOF
14507cat confdefs.h >>conftest.$ac_ext
14508cat >>conftest.$ac_ext <<_ACEOF
14509/* end confdefs.h. */
14510$ac_includes_default
4e8d927d
DJ
14511int
14512main ()
14513{
b4e70030 14514static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
14515test_array [0] = 0
14516
14517 ;
14518 return 0;
14519}
14520_ACEOF
14521rm -f conftest.$ac_objext
14522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523 (eval $ac_compile) 2>conftest.er1
14524 ac_status=$?
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
b4e70030
JB
14530 { ac_try='test -z "$ac_c_werror_flag"
14531 || test ! -s conftest.err'
4e8d927d
DJ
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_hi=$ac_mid
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
b4e70030 14548ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14549fi
4e8d927d
DJ
14550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14551done
14552case $ac_lo in
14553?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 14554'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 14555See \`config.log' for more details." >&5
b4e70030 14556echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 14557See \`config.log' for more details." >&2;}
b4e70030 14558 { (exit 1); exit 1; }; } ;;
4e8d927d 14559esac
b4e70030
JB
14560else
14561 if test "$cross_compiling" = yes; then
14562 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14563See \`config.log' for more details." >&5
14564echo "$as_me: error: cannot run test program while cross compiling
14565See \`config.log' for more details." >&2;}
14566 { (exit 1); exit 1; }; }
4e8d927d
DJ
14567else
14568 cat >conftest.$ac_ext <<_ACEOF
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574$ac_includes_default
b4e70030
JB
14575long longval () { return (long) (sizeof (short)); }
14576unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
14577#include <stdio.h>
14578#include <stdlib.h>
14579int
14580main ()
14581{
14582
14583 FILE *f = fopen ("conftest.val", "w");
14584 if (! f)
b4e70030
JB
14585 exit (1);
14586 if (((long) (sizeof (short))) < 0)
4e8d927d 14587 {
b4e70030
JB
14588 long i = longval ();
14589 if (i != ((long) (sizeof (short))))
14590 exit (1);
4e8d927d
DJ
14591 fprintf (f, "%ld\n", i);
14592 }
14593 else
14594 {
b4e70030
JB
14595 unsigned long i = ulongval ();
14596 if (i != ((long) (sizeof (short))))
14597 exit (1);
4e8d927d
DJ
14598 fprintf (f, "%lu\n", i);
14599 }
b4e70030 14600 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14601
14602 ;
14603 return 0;
14604}
14605_ACEOF
14606rm -f conftest$ac_exeext
14607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14608 (eval $ac_link) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_cv_sizeof_short=`cat conftest.val`
14618else
14619 echo "$as_me: program exited with status $ac_status" >&5
14620echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623( exit $ac_status )
b4e70030 14624{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 14625See \`config.log' for more details." >&5
b4e70030 14626echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 14627See \`config.log' for more details." >&2;}
b4e70030
JB
14628 { (exit 1); exit 1; }; }
14629fi
14630rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14631fi
4e8d927d
DJ
14632fi
14633rm -f conftest.val
14634else
14635 ac_cv_sizeof_short=0
14636fi
14637fi
b4e70030
JB
14638echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14639echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
14640cat >>confdefs.h <<_ACEOF
14641#define SIZEOF_SHORT $ac_cv_sizeof_short
14642_ACEOF
14643
14644
b4e70030
JB
14645 echo "$as_me:$LINENO: checking for char" >&5
14646echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
14647if test "${ac_cv_type_char+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649else
14650 cat >conftest.$ac_ext <<_ACEOF
14651/* confdefs.h. */
14652_ACEOF
14653cat confdefs.h >>conftest.$ac_ext
14654cat >>conftest.$ac_ext <<_ACEOF
14655/* end confdefs.h. */
14656$ac_includes_default
4e8d927d
DJ
14657int
14658main ()
14659{
b4e70030 14660if ((char *) 0)
4e8d927d 14661 return 0;
b4e70030 14662if (sizeof (char))
4e8d927d
DJ
14663 return 0;
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668rm -f conftest.$ac_objext
14669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14670 (eval $ac_compile) 2>conftest.er1
14671 ac_status=$?
14672 grep -v '^ *+' conftest.er1 >conftest.err
14673 rm -f conftest.er1
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
b4e70030
JB
14677 { ac_try='test -z "$ac_c_werror_flag"
14678 || test ! -s conftest.err'
4e8d927d
DJ
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; } &&
14684 { ac_try='test -s conftest.$ac_objext'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then
14690 ac_cv_type_char=yes
14691else
14692 echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5
14694
b4e70030 14695ac_cv_type_char=no
4e8d927d 14696fi
4e8d927d
DJ
14697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14698fi
b4e70030
JB
14699echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14700echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 14701
b4e70030
JB
14702echo "$as_me:$LINENO: checking size of char" >&5
14703echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
14704if test "${ac_cv_sizeof_char+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14706else
14707 if test "$ac_cv_type_char" = yes; then
b4e70030 14708 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14711 # This bug is HP SR number 8606223364.
14712 if test "$cross_compiling" = yes; then
14713 # Depending upon the size, compute the lo and hi bounds.
14714cat >conftest.$ac_ext <<_ACEOF
14715/* confdefs.h. */
14716_ACEOF
14717cat confdefs.h >>conftest.$ac_ext
14718cat >>conftest.$ac_ext <<_ACEOF
14719/* end confdefs.h. */
14720$ac_includes_default
4e8d927d
DJ
14721int
14722main ()
14723{
b4e70030 14724static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
14725test_array [0] = 0
14726
14727 ;
14728 return 0;
14729}
14730_ACEOF
14731rm -f conftest.$ac_objext
14732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14733 (eval $ac_compile) 2>conftest.er1
14734 ac_status=$?
14735 grep -v '^ *+' conftest.er1 >conftest.err
14736 rm -f conftest.er1
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
b4e70030
JB
14740 { ac_try='test -z "$ac_c_werror_flag"
14741 || test ! -s conftest.err'
4e8d927d
DJ
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 ac_lo=0 ac_mid=0
14754 while :; do
14755 cat >conftest.$ac_ext <<_ACEOF
14756/* confdefs.h. */
14757_ACEOF
14758cat confdefs.h >>conftest.$ac_ext
14759cat >>conftest.$ac_ext <<_ACEOF
14760/* end confdefs.h. */
14761$ac_includes_default
4e8d927d
DJ
14762int
14763main ()
14764{
b4e70030 14765static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14766test_array [0] = 0
14767
14768 ;
14769 return 0;
14770}
14771_ACEOF
14772rm -f conftest.$ac_objext
14773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14774 (eval $ac_compile) 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
b4e70030
JB
14781 { ac_try='test -z "$ac_c_werror_flag"
14782 || test ! -s conftest.err'
4e8d927d
DJ
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest.$ac_objext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_hi=$ac_mid; break
14795else
14796 echo "$as_me: failed program was:" >&5
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
b4e70030
JB
14799ac_lo=`expr $ac_mid + 1`
14800 if test $ac_lo -le $ac_mid; then
14801 ac_lo= ac_hi=
14802 break
14803 fi
14804 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14805fi
4e8d927d
DJ
14806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14807 done
14808else
14809 echo "$as_me: failed program was:" >&5
14810sed 's/^/| /' conftest.$ac_ext >&5
14811
b4e70030 14812cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14813/* confdefs.h. */
14814_ACEOF
14815cat confdefs.h >>conftest.$ac_ext
14816cat >>conftest.$ac_ext <<_ACEOF
14817/* end confdefs.h. */
14818$ac_includes_default
4e8d927d
DJ
14819int
14820main ()
14821{
b4e70030 14822static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
14823test_array [0] = 0
14824
14825 ;
14826 return 0;
14827}
14828_ACEOF
14829rm -f conftest.$ac_objext
14830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14831 (eval $ac_compile) 2>conftest.er1
14832 ac_status=$?
14833 grep -v '^ *+' conftest.er1 >conftest.err
14834 rm -f conftest.er1
14835 cat conftest.err >&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } &&
b4e70030
JB
14838 { ac_try='test -z "$ac_c_werror_flag"
14839 || test ! -s conftest.err'
4e8d927d
DJ
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; } &&
14845 { ac_try='test -s conftest.$ac_objext'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14851 ac_hi=-1 ac_mid=-1
14852 while :; do
14853 cat >conftest.$ac_ext <<_ACEOF
14854/* confdefs.h. */
14855_ACEOF
14856cat confdefs.h >>conftest.$ac_ext
14857cat >>conftest.$ac_ext <<_ACEOF
14858/* end confdefs.h. */
14859$ac_includes_default
4e8d927d
DJ
14860int
14861main ()
14862{
b4e70030 14863static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
14864test_array [0] = 0
14865
14866 ;
14867 return 0;
14868}
14869_ACEOF
14870rm -f conftest.$ac_objext
14871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14872 (eval $ac_compile) 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
b4e70030
JB
14879 { ac_try='test -z "$ac_c_werror_flag"
14880 || test ! -s conftest.err'
4e8d927d
DJ
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest.$ac_objext'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; }; then
14892 ac_lo=$ac_mid; break
14893else
14894 echo "$as_me: failed program was:" >&5
14895sed 's/^/| /' conftest.$ac_ext >&5
14896
b4e70030
JB
14897ac_hi=`expr '(' $ac_mid ')' - 1`
14898 if test $ac_mid -le $ac_hi; then
14899 ac_lo= ac_hi=
14900 break
14901 fi
14902 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14903fi
4e8d927d
DJ
14904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14905 done
14906else
14907 echo "$as_me: failed program was:" >&5
14908sed 's/^/| /' conftest.$ac_ext >&5
14909
b4e70030 14910ac_lo= ac_hi=
4e8d927d 14911fi
4e8d927d
DJ
14912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14913fi
4e8d927d
DJ
14914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14915# Binary search between lo and hi bounds.
14916while test "x$ac_lo" != "x$ac_hi"; do
14917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14918 cat >conftest.$ac_ext <<_ACEOF
14919/* confdefs.h. */
14920_ACEOF
14921cat confdefs.h >>conftest.$ac_ext
14922cat >>conftest.$ac_ext <<_ACEOF
14923/* end confdefs.h. */
14924$ac_includes_default
4e8d927d
DJ
14925int
14926main ()
14927{
b4e70030 14928static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14929test_array [0] = 0
14930
14931 ;
14932 return 0;
14933}
14934_ACEOF
14935rm -f conftest.$ac_objext
14936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14937 (eval $ac_compile) 2>conftest.er1
14938 ac_status=$?
14939 grep -v '^ *+' conftest.er1 >conftest.err
14940 rm -f conftest.er1
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
b4e70030
JB
14944 { ac_try='test -z "$ac_c_werror_flag"
14945 || test ! -s conftest.err'
4e8d927d
DJ
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; } &&
14951 { ac_try='test -s conftest.$ac_objext'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 ac_hi=$ac_mid
14958else
14959 echo "$as_me: failed program was:" >&5
14960sed 's/^/| /' conftest.$ac_ext >&5
14961
b4e70030 14962ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14963fi
4e8d927d
DJ
14964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14965done
14966case $ac_lo in
14967?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 14968'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14969See \`config.log' for more details." >&5
b4e70030 14970echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14971See \`config.log' for more details." >&2;}
b4e70030 14972 { (exit 1); exit 1; }; } ;;
4e8d927d 14973esac
b4e70030
JB
14974else
14975 if test "$cross_compiling" = yes; then
14976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14977See \`config.log' for more details." >&5
14978echo "$as_me: error: cannot run test program while cross compiling
14979See \`config.log' for more details." >&2;}
14980 { (exit 1); exit 1; }; }
4e8d927d
DJ
14981else
14982 cat >conftest.$ac_ext <<_ACEOF
14983/* confdefs.h. */
14984_ACEOF
14985cat confdefs.h >>conftest.$ac_ext
14986cat >>conftest.$ac_ext <<_ACEOF
14987/* end confdefs.h. */
14988$ac_includes_default
b4e70030
JB
14989long longval () { return (long) (sizeof (char)); }
14990unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
14991#include <stdio.h>
14992#include <stdlib.h>
14993int
14994main ()
14995{
14996
14997 FILE *f = fopen ("conftest.val", "w");
14998 if (! f)
b4e70030
JB
14999 exit (1);
15000 if (((long) (sizeof (char))) < 0)
4e8d927d 15001 {
b4e70030
JB
15002 long i = longval ();
15003 if (i != ((long) (sizeof (char))))
15004 exit (1);
4e8d927d
DJ
15005 fprintf (f, "%ld\n", i);
15006 }
15007 else
15008 {
b4e70030
JB
15009 unsigned long i = ulongval ();
15010 if (i != ((long) (sizeof (char))))
15011 exit (1);
4e8d927d
DJ
15012 fprintf (f, "%lu\n", i);
15013 }
b4e70030 15014 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
15015
15016 ;
15017 return 0;
15018}
15019_ACEOF
15020rm -f conftest$ac_exeext
15021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15022 (eval $ac_link) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_cv_sizeof_char=`cat conftest.val`
15032else
15033 echo "$as_me: program exited with status $ac_status" >&5
15034echo "$as_me: failed program was:" >&5
15035sed 's/^/| /' conftest.$ac_ext >&5
15036
15037( exit $ac_status )
b4e70030 15038{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 15039See \`config.log' for more details." >&5
b4e70030 15040echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 15041See \`config.log' for more details." >&2;}
b4e70030
JB
15042 { (exit 1); exit 1; }; }
15043fi
15044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 15045fi
4e8d927d
DJ
15046fi
15047rm -f conftest.val
15048else
15049 ac_cv_sizeof_char=0
15050fi
15051fi
b4e70030
JB
15052echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15053echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
15054cat >>confdefs.h <<_ACEOF
15055#define SIZEOF_CHAR $ac_cv_sizeof_char
15056_ACEOF
15057
15058
15059
b4e70030
JB
15060 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15061echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
15062 case "$ac_cv_sizeof_char" in
15063 1) acx_cv_type_int8_t=char ;;
15064 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15065echo "$as_me: error: no 8-bit type" >&2;}
15066 { (exit please report a bug); exit please report a bug; }; }
15067 esac
b4e70030
JB
15068 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15069echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 15070
b4e70030
JB
15071 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15072echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
15073 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15074 2:*) acx_cv_type_int16_t=int ;;
15075 *:2) acx_cv_type_int16_t=short ;;
15076 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15077echo "$as_me: error: no 16-bit type" >&2;}
15078 { (exit please report a bug); exit please report a bug; }; }
15079 esac
b4e70030
JB
15080 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15081echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 15082
b4e70030
JB
15083 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15084echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
15085 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15086 4:*) acx_cv_type_int32_t=int ;;
15087 *:4) acx_cv_type_int32_t=long ;;
15088 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15089echo "$as_me: error: no 32-bit type" >&2;}
15090 { (exit please report a bug); exit please report a bug; }; }
15091 esac
b4e70030
JB
15092 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15093echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
15094fi
15095
15096# These tests are here to make the output prettier
15097
15098if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15099 case "$ac_cv_sizeof_long" in
15100 8) acx_cv_type_int64_t=long ;;
15101 esac
b4e70030
JB
15102 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15103echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15104 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15105echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
15106fi
15107
15108# Now we can use the above types
15109
15110if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
15111 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15112echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
15113 case $ac_cv_sizeof_void_p in
15114 2) acx_cv_type_intptr_t=int16_t ;;
15115 4) acx_cv_type_intptr_t=int32_t ;;
15116 8) acx_cv_type_intptr_t=int64_t ;;
15117 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15118echo "$as_me: error: no equivalent for intptr_t" >&2;}
15119 { (exit please report a bug); exit please report a bug; }; }
15120 esac
b4e70030
JB
15121 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15122echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
15123fi
15124
15125# ----------------- done all checks, emit header -------------
b4e70030 15126 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
15127
15128
15129
15130
15131# ------------------------- #
15132# Checks for declarations. #
15133# ------------------------- #
15134
b4e70030
JB
15135echo "$as_me:$LINENO: checking whether free is declared" >&5
15136echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
15137if test "${ac_cv_have_decl_free+set}" = set; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15139else
15140 cat >conftest.$ac_ext <<_ACEOF
15141/* confdefs.h. */
15142_ACEOF
15143cat confdefs.h >>conftest.$ac_ext
15144cat >>conftest.$ac_ext <<_ACEOF
15145/* end confdefs.h. */
15146$ac_includes_default
15147int
15148main ()
15149{
15150#ifndef free
15151 char *p = (char *) free;
4e8d927d
DJ
15152#endif
15153
15154 ;
15155 return 0;
15156}
15157_ACEOF
15158rm -f conftest.$ac_objext
15159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160 (eval $ac_compile) 2>conftest.er1
15161 ac_status=$?
15162 grep -v '^ *+' conftest.er1 >conftest.err
15163 rm -f conftest.er1
15164 cat conftest.err >&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
b4e70030
JB
15167 { ac_try='test -z "$ac_c_werror_flag"
15168 || test ! -s conftest.err'
4e8d927d
DJ
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; } &&
15174 { ac_try='test -s conftest.$ac_objext'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15177 ac_status=$?
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; }; then
15180 ac_cv_have_decl_free=yes
15181else
15182 echo "$as_me: failed program was:" >&5
15183sed 's/^/| /' conftest.$ac_ext >&5
15184
b4e70030 15185ac_cv_have_decl_free=no
4e8d927d 15186fi
4e8d927d
DJ
15187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15188fi
b4e70030
JB
15189echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
15190echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
15191if test $ac_cv_have_decl_free = yes; then
15192
15193cat >>confdefs.h <<_ACEOF
15194#define HAVE_DECL_FREE 1
15195_ACEOF
15196
15197
15198else
15199 cat >>confdefs.h <<_ACEOF
15200#define HAVE_DECL_FREE 0
15201_ACEOF
15202
15203
15204fi
b4e70030
JB
15205echo "$as_me:$LINENO: checking whether malloc is declared" >&5
15206echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
15207if test "${ac_cv_have_decl_malloc+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15209else
15210 cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
15215/* end confdefs.h. */
15216$ac_includes_default
15217int
15218main ()
15219{
15220#ifndef malloc
15221 char *p = (char *) malloc;
4e8d927d
DJ
15222#endif
15223
15224 ;
15225 return 0;
15226}
15227_ACEOF
15228rm -f conftest.$ac_objext
15229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230 (eval $ac_compile) 2>conftest.er1
15231 ac_status=$?
15232 grep -v '^ *+' conftest.er1 >conftest.err
15233 rm -f conftest.er1
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
b4e70030
JB
15237 { ac_try='test -z "$ac_c_werror_flag"
15238 || test ! -s conftest.err'
4e8d927d
DJ
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_cv_have_decl_malloc=yes
15251else
15252 echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
15254
b4e70030 15255ac_cv_have_decl_malloc=no
4e8d927d 15256fi
4e8d927d
DJ
15257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15258fi
b4e70030
JB
15259echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
15260echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
15261if test $ac_cv_have_decl_malloc = yes; then
15262
15263cat >>confdefs.h <<_ACEOF
15264#define HAVE_DECL_MALLOC 1
15265_ACEOF
15266
15267
15268else
15269 cat >>confdefs.h <<_ACEOF
15270#define HAVE_DECL_MALLOC 0
15271_ACEOF
15272
15273
15274fi
b4e70030
JB
15275echo "$as_me:$LINENO: checking whether realloc is declared" >&5
15276echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
15277if test "${ac_cv_have_decl_realloc+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279else
15280 cat >conftest.$ac_ext <<_ACEOF
15281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
15285/* end confdefs.h. */
15286$ac_includes_default
15287int
15288main ()
15289{
15290#ifndef realloc
15291 char *p = (char *) realloc;
4e8d927d
DJ
15292#endif
15293
15294 ;
15295 return 0;
15296}
15297_ACEOF
15298rm -f conftest.$ac_objext
15299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15300 (eval $ac_compile) 2>conftest.er1
15301 ac_status=$?
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
b4e70030
JB
15307 { ac_try='test -z "$ac_c_werror_flag"
15308 || test ! -s conftest.err'
4e8d927d
DJ
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest.$ac_objext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 ac_cv_have_decl_realloc=yes
15321else
15322 echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
b4e70030 15325ac_cv_have_decl_realloc=no
4e8d927d 15326fi
4e8d927d
DJ
15327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15328fi
b4e70030
JB
15329echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
15330echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
15331if test $ac_cv_have_decl_realloc = yes; then
15332
15333cat >>confdefs.h <<_ACEOF
15334#define HAVE_DECL_REALLOC 1
15335_ACEOF
15336
15337
15338else
15339 cat >>confdefs.h <<_ACEOF
15340#define HAVE_DECL_REALLOC 0
15341_ACEOF
15342
15343
15344fi
15345
15346
b4e70030
JB
15347echo "$as_me:$LINENO: checking whether strerror is declared" >&5
15348echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
15349if test "${ac_cv_have_decl_strerror+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351else
15352 cat >conftest.$ac_ext <<_ACEOF
15353/* confdefs.h. */
15354_ACEOF
15355cat confdefs.h >>conftest.$ac_ext
15356cat >>conftest.$ac_ext <<_ACEOF
15357/* end confdefs.h. */
15358$ac_includes_default
15359int
15360main ()
15361{
15362#ifndef strerror
15363 char *p = (char *) strerror;
4e8d927d
DJ
15364#endif
15365
15366 ;
15367 return 0;
15368}
15369_ACEOF
15370rm -f conftest.$ac_objext
15371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15372 (eval $ac_compile) 2>conftest.er1
15373 ac_status=$?
15374 grep -v '^ *+' conftest.er1 >conftest.err
15375 rm -f conftest.er1
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
b4e70030
JB
15379 { ac_try='test -z "$ac_c_werror_flag"
15380 || test ! -s conftest.err'
4e8d927d
DJ
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest.$ac_objext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 ac_cv_have_decl_strerror=yes
15393else
15394 echo "$as_me: failed program was:" >&5
15395sed 's/^/| /' conftest.$ac_ext >&5
15396
b4e70030 15397ac_cv_have_decl_strerror=no
4e8d927d 15398fi
4e8d927d
DJ
15399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15400fi
b4e70030
JB
15401echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
15402echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
15403if test $ac_cv_have_decl_strerror = yes; then
15404
15405cat >>confdefs.h <<_ACEOF
15406#define HAVE_DECL_STRERROR 1
15407_ACEOF
15408
15409
15410else
15411 cat >>confdefs.h <<_ACEOF
15412#define HAVE_DECL_STRERROR 0
15413_ACEOF
15414
15415
15416fi
b4e70030
JB
15417echo "$as_me:$LINENO: checking whether strstr is declared" >&5
15418echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
15419if test "${ac_cv_have_decl_strstr+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15421else
15422 cat >conftest.$ac_ext <<_ACEOF
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
15428$ac_includes_default
15429int
15430main ()
15431{
15432#ifndef strstr
15433 char *p = (char *) strstr;
4e8d927d
DJ
15434#endif
15435
15436 ;
15437 return 0;
15438}
15439_ACEOF
15440rm -f conftest.$ac_objext
15441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15442 (eval $ac_compile) 2>conftest.er1
15443 ac_status=$?
15444 grep -v '^ *+' conftest.er1 >conftest.err
15445 rm -f conftest.er1
15446 cat conftest.err >&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
b4e70030
JB
15449 { ac_try='test -z "$ac_c_werror_flag"
15450 || test ! -s conftest.err'
4e8d927d
DJ
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; } &&
15456 { ac_try='test -s conftest.$ac_objext'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 ac_cv_have_decl_strstr=yes
15463else
15464 echo "$as_me: failed program was:" >&5
15465sed 's/^/| /' conftest.$ac_ext >&5
15466
b4e70030 15467ac_cv_have_decl_strstr=no
4e8d927d 15468fi
4e8d927d
DJ
15469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15470fi
b4e70030
JB
15471echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
15472echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
15473if test $ac_cv_have_decl_strstr = yes; then
15474
15475cat >>confdefs.h <<_ACEOF
15476#define HAVE_DECL_STRSTR 1
15477_ACEOF
15478
15479
15480else
15481 cat >>confdefs.h <<_ACEOF
15482#define HAVE_DECL_STRSTR 0
15483_ACEOF
15484
15485
15486fi
15487
15488
b4e70030
JB
15489echo "$as_me:$LINENO: checking whether getopt is declared" >&5
15490echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
15491if test "${ac_cv_have_decl_getopt+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 cat >conftest.$ac_ext <<_ACEOF
15495/* confdefs.h. */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h. */
15500$ac_includes_default
15501int
15502main ()
15503{
15504#ifndef getopt
15505 char *p = (char *) getopt;
4e8d927d
DJ
15506#endif
15507
15508 ;
15509 return 0;
15510}
15511_ACEOF
15512rm -f conftest.$ac_objext
15513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514 (eval $ac_compile) 2>conftest.er1
15515 ac_status=$?
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
b4e70030
JB
15521 { ac_try='test -z "$ac_c_werror_flag"
15522 || test ! -s conftest.err'
4e8d927d
DJ
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 ac_cv_have_decl_getopt=yes
15535else
15536 echo "$as_me: failed program was:" >&5
15537sed 's/^/| /' conftest.$ac_ext >&5
15538
b4e70030 15539ac_cv_have_decl_getopt=no
4e8d927d 15540fi
4e8d927d
DJ
15541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15542fi
b4e70030
JB
15543echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
15544echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
15545if test $ac_cv_have_decl_getopt = yes; then
15546
15547cat >>confdefs.h <<_ACEOF
15548#define HAVE_DECL_GETOPT 1
15549_ACEOF
15550
15551
15552else
15553 cat >>confdefs.h <<_ACEOF
15554#define HAVE_DECL_GETOPT 0
15555_ACEOF
15556
15557
15558fi
b4e70030
JB
15559echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15560echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
15561if test "${ac_cv_have_decl_snprintf+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15563else
15564 cat >conftest.$ac_ext <<_ACEOF
15565/* confdefs.h. */
15566_ACEOF
15567cat confdefs.h >>conftest.$ac_ext
15568cat >>conftest.$ac_ext <<_ACEOF
15569/* end confdefs.h. */
15570$ac_includes_default
15571int
15572main ()
15573{
15574#ifndef snprintf
15575 char *p = (char *) snprintf;
4e8d927d
DJ
15576#endif
15577
15578 ;
15579 return 0;
15580}
15581_ACEOF
15582rm -f conftest.$ac_objext
15583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
b4e70030
JB
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
4e8d927d
DJ
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_cv_have_decl_snprintf=yes
15605else
15606 echo "$as_me: failed program was:" >&5
15607sed 's/^/| /' conftest.$ac_ext >&5
15608
b4e70030 15609ac_cv_have_decl_snprintf=no
4e8d927d 15610fi
4e8d927d
DJ
15611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612fi
b4e70030
JB
15613echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15614echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
15615if test $ac_cv_have_decl_snprintf = yes; then
15616
15617cat >>confdefs.h <<_ACEOF
15618#define HAVE_DECL_SNPRINTF 1
15619_ACEOF
15620
15621
15622else
15623 cat >>confdefs.h <<_ACEOF
15624#define HAVE_DECL_SNPRINTF 0
15625_ACEOF
15626
15627
15628fi
b4e70030
JB
15629echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15630echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
15631if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15633else
15634 cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
15640$ac_includes_default
15641int
15642main ()
15643{
15644#ifndef vsnprintf
15645 char *p = (char *) vsnprintf;
4e8d927d
DJ
15646#endif
15647
15648 ;
15649 return 0;
15650}
15651_ACEOF
15652rm -f conftest.$ac_objext
15653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15654 (eval $ac_compile) 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } &&
b4e70030
JB
15661 { ac_try='test -z "$ac_c_werror_flag"
15662 || test ! -s conftest.err'
4e8d927d
DJ
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest.$ac_objext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_cv_have_decl_vsnprintf=yes
15675else
15676 echo "$as_me: failed program was:" >&5
15677sed 's/^/| /' conftest.$ac_ext >&5
15678
b4e70030 15679ac_cv_have_decl_vsnprintf=no
4e8d927d 15680fi
4e8d927d
DJ
15681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15682fi
b4e70030
JB
15683echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15684echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
15685if test $ac_cv_have_decl_vsnprintf = yes; then
15686
15687cat >>confdefs.h <<_ACEOF
15688#define HAVE_DECL_VSNPRINTF 1
15689_ACEOF
15690
15691
15692else
15693 cat >>confdefs.h <<_ACEOF
15694#define HAVE_DECL_VSNPRINTF 0
15695_ACEOF
15696
15697
15698fi
15699
15700
15701
15702# ----------------------- #
15703# Checks for structures. #
15704# ----------------------- #
15705
b4e70030
JB
15706echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15707echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
15708if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710else
15711 cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717$ac_includes_default
15718int
15719main ()
15720{
15721static struct stat ac_aggr;
15722if (ac_aggr.st_blocks)
15723return 0;
15724 ;
15725 return 0;
15726}
15727_ACEOF
15728rm -f conftest.$ac_objext
15729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15730 (eval $ac_compile) 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
b4e70030
JB
15737 { ac_try='test -z "$ac_c_werror_flag"
15738 || test ! -s conftest.err'
4e8d927d
DJ
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_cv_member_struct_stat_st_blocks=yes
15751else
15752 echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
b4e70030 15755cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15756/* confdefs.h. */
15757_ACEOF
15758cat confdefs.h >>conftest.$ac_ext
15759cat >>conftest.$ac_ext <<_ACEOF
15760/* end confdefs.h. */
15761$ac_includes_default
15762int
15763main ()
15764{
15765static struct stat ac_aggr;
15766if (sizeof ac_aggr.st_blocks)
15767return 0;
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext
15773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774 (eval $ac_compile) 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
b4e70030
JB
15781 { ac_try='test -z "$ac_c_werror_flag"
15782 || test ! -s conftest.err'
4e8d927d
DJ
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest.$ac_objext'
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; }; then
15794 ac_cv_member_struct_stat_st_blocks=yes
15795else
15796 echo "$as_me: failed program was:" >&5
15797sed 's/^/| /' conftest.$ac_ext >&5
15798
b4e70030 15799ac_cv_member_struct_stat_st_blocks=no
4e8d927d 15800fi
4e8d927d
DJ
15801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15802fi
4e8d927d
DJ
15803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15804fi
b4e70030
JB
15805echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15806echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
15807if test $ac_cv_member_struct_stat_st_blocks = yes; then
15808
15809cat >>confdefs.h <<_ACEOF
15810#define HAVE_STRUCT_STAT_ST_BLOCKS 1
15811_ACEOF
15812
15813
15814fi
15815
b4e70030
JB
15816echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15817echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
15818if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820else
15821 cat >conftest.$ac_ext <<_ACEOF
15822/* confdefs.h. */
15823_ACEOF
15824cat confdefs.h >>conftest.$ac_ext
15825cat >>conftest.$ac_ext <<_ACEOF
15826/* end confdefs.h. */
15827$ac_includes_default
15828int
15829main ()
15830{
15831static struct stat ac_aggr;
15832if (ac_aggr.st_blksize)
15833return 0;
15834 ;
15835 return 0;
15836}
15837_ACEOF
15838rm -f conftest.$ac_objext
15839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840 (eval $ac_compile) 2>conftest.er1
15841 ac_status=$?
15842 grep -v '^ *+' conftest.er1 >conftest.err
15843 rm -f conftest.er1
15844 cat conftest.err >&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } &&
b4e70030
JB
15847 { ac_try='test -z "$ac_c_werror_flag"
15848 || test ! -s conftest.err'
4e8d927d
DJ
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; } &&
15854 { ac_try='test -s conftest.$ac_objext'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_cv_member_struct_stat_st_blksize=yes
15861else
15862 echo "$as_me: failed program was:" >&5
15863sed 's/^/| /' conftest.$ac_ext >&5
15864
b4e70030 15865cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15866/* confdefs.h. */
15867_ACEOF
15868cat confdefs.h >>conftest.$ac_ext
15869cat >>conftest.$ac_ext <<_ACEOF
15870/* end confdefs.h. */
15871$ac_includes_default
15872int
15873main ()
15874{
15875static struct stat ac_aggr;
15876if (sizeof ac_aggr.st_blksize)
15877return 0;
15878 ;
15879 return 0;
15880}
15881_ACEOF
15882rm -f conftest.$ac_objext
15883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15884 (eval $ac_compile) 2>conftest.er1
15885 ac_status=$?
15886 grep -v '^ *+' conftest.er1 >conftest.err
15887 rm -f conftest.er1
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
b4e70030
JB
15891 { ac_try='test -z "$ac_c_werror_flag"
15892 || test ! -s conftest.err'
4e8d927d
DJ
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; } &&
15898 { ac_try='test -s conftest.$ac_objext'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15904 ac_cv_member_struct_stat_st_blksize=yes
15905else
15906 echo "$as_me: failed program was:" >&5
15907sed 's/^/| /' conftest.$ac_ext >&5
15908
b4e70030 15909ac_cv_member_struct_stat_st_blksize=no
4e8d927d 15910fi
4e8d927d
DJ
15911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15912fi
4e8d927d
DJ
15913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15914fi
b4e70030
JB
15915echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15916echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
15917if test $ac_cv_member_struct_stat_st_blksize = yes; then
15918
15919cat >>confdefs.h <<_ACEOF
15920#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15921_ACEOF
15922
15923
15924fi
15925
15926
15927# ------------------ #
15928# Checks for types. #
15929# ------------------ #
15930
b4e70030
JB
15931echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15932echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
15933if test "${ac_cv_type_signal+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15935else
15936 cat >conftest.$ac_ext <<_ACEOF
15937/* confdefs.h. */
15938_ACEOF
15939cat confdefs.h >>conftest.$ac_ext
15940cat >>conftest.$ac_ext <<_ACEOF
15941/* end confdefs.h. */
15942#include <sys/types.h>
15943#include <signal.h>
b4e70030
JB
15944#ifdef signal
15945# undef signal
15946#endif
15947#ifdef __cplusplus
15948extern "C" void (*signal (int, void (*)(int)))(int);
15949#else
15950void (*signal ()) ();
15951#endif
4e8d927d
DJ
15952
15953int
15954main ()
15955{
b4e70030 15956int i;
4e8d927d
DJ
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext
15962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15963 (eval $ac_compile) 2>conftest.er1
15964 ac_status=$?
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } &&
b4e70030
JB
15970 { ac_try='test -z "$ac_c_werror_flag"
15971 || test ! -s conftest.err'
4e8d927d
DJ
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; } &&
15977 { ac_try='test -s conftest.$ac_objext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
b4e70030 15983 ac_cv_type_signal=void
4e8d927d
DJ
15984else
15985 echo "$as_me: failed program was:" >&5
15986sed 's/^/| /' conftest.$ac_ext >&5
15987
b4e70030 15988ac_cv_type_signal=int
4e8d927d 15989fi
4e8d927d
DJ
15990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15991fi
b4e70030
JB
15992echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15993echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
15994
15995cat >>confdefs.h <<_ACEOF
15996#define RETSIGTYPE $ac_cv_type_signal
15997_ACEOF
15998
15999
b4e70030
JB
16000echo "$as_me:$LINENO: checking for socklen_t" >&5
16001echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
16002if test "${ac_cv_type_socklen_t+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004else
16005 cat >conftest.$ac_ext <<_ACEOF
16006/* confdefs.h. */
16007_ACEOF
16008cat confdefs.h >>conftest.$ac_ext
16009cat >>conftest.$ac_ext <<_ACEOF
16010/* end confdefs.h. */
16011#include <sys/types.h>
16012#include <sys/socket.h>
16013
16014
4e8d927d
DJ
16015int
16016main ()
16017{
b4e70030 16018if ((socklen_t *) 0)
4e8d927d 16019 return 0;
b4e70030 16020if (sizeof (socklen_t))
4e8d927d
DJ
16021 return 0;
16022 ;
16023 return 0;
16024}
16025_ACEOF
16026rm -f conftest.$ac_objext
16027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028 (eval $ac_compile) 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
b4e70030
JB
16035 { ac_try='test -z "$ac_c_werror_flag"
16036 || test ! -s conftest.err'
4e8d927d
DJ
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_cv_type_socklen_t=yes
16049else
16050 echo "$as_me: failed program was:" >&5
16051sed 's/^/| /' conftest.$ac_ext >&5
16052
b4e70030 16053ac_cv_type_socklen_t=no
4e8d927d 16054fi
4e8d927d
DJ
16055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16056fi
b4e70030
JB
16057echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16058echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
16059if test $ac_cv_type_socklen_t = yes; then
16060
16061cat >>confdefs.h <<_ACEOF
16062#define HAVE_SOCKLEN_T 1
16063_ACEOF
16064
16065
16066fi
16067
b4e70030
JB
16068echo "$as_me:$LINENO: checking for uintptr_t" >&5
16069echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
16070if test "${ac_cv_type_uintptr_t+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16072else
16073 cat >conftest.$ac_ext <<_ACEOF
16074/* confdefs.h. */
16075_ACEOF
16076cat confdefs.h >>conftest.$ac_ext
16077cat >>conftest.$ac_ext <<_ACEOF
16078/* end confdefs.h. */
16079#include <stdint.h>
16080
4e8d927d
DJ
16081int
16082main ()
16083{
b4e70030 16084if ((uintptr_t *) 0)
4e8d927d 16085 return 0;
b4e70030 16086if (sizeof (uintptr_t))
4e8d927d
DJ
16087 return 0;
16088 ;
16089 return 0;
16090}
16091_ACEOF
16092rm -f conftest.$ac_objext
16093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16094 (eval $ac_compile) 2>conftest.er1
16095 ac_status=$?
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } &&
b4e70030
JB
16101 { ac_try='test -z "$ac_c_werror_flag"
16102 || test ! -s conftest.err'
4e8d927d
DJ
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest.$ac_objext'
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_cv_type_uintptr_t=yes
16115else
16116 echo "$as_me: failed program was:" >&5
16117sed 's/^/| /' conftest.$ac_ext >&5
16118
b4e70030 16119ac_cv_type_uintptr_t=no
4e8d927d 16120fi
4e8d927d
DJ
16121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16122fi
b4e70030
JB
16123echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16124echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
16125if test $ac_cv_type_uintptr_t = yes; then
16126
16127cat >>confdefs.h <<_ACEOF
16128#define HAVE_UINTPTR_T 1
16129_ACEOF
16130
16131
16132fi
16133
16134
16135# ------------------------------------- #
16136# Checks for compiler characteristics. #
16137# ------------------------------------- #
16138
b4e70030
JB
16139echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16140echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
16141if test "${ac_cv_c_const+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16143else
16144 cat >conftest.$ac_ext <<_ACEOF
16145/* confdefs.h. */
16146_ACEOF
16147cat confdefs.h >>conftest.$ac_ext
16148cat >>conftest.$ac_ext <<_ACEOF
16149/* end confdefs.h. */
16150
16151int
16152main ()
16153{
16154/* FIXME: Include the comments suggested by Paul. */
16155#ifndef __cplusplus
16156 /* Ultrix mips cc rejects this. */
16157 typedef int charset[2];
16158 const charset x;
16159 /* SunOS 4.1.1 cc rejects this. */
16160 char const *const *ccp;
16161 char **p;
16162 /* NEC SVR4.0.2 mips cc rejects this. */
16163 struct point {int x, y;};
16164 static struct point const zero = {0,0};
16165 /* AIX XL C 1.02.0.0 rejects this.
16166 It does not let you subtract one const X* pointer from another in
16167 an arm of an if-expression whose if-part is not a constant
16168 expression */
16169 const char *g = "string";
16170 ccp = &g + (g ? g-g : 0);
16171 /* HPUX 7.0 cc rejects these. */
16172 ++ccp;
16173 p = (char**) ccp;
16174 ccp = (char const *const *) p;
16175 { /* SCO 3.2v4 cc rejects this. */
16176 char *t;
16177 char const *s = 0 ? (char *) 0 : (char const *) 0;
16178
16179 *t++ = 0;
4e8d927d
DJ
16180 }
16181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16182 int x[] = {25, 17};
16183 const int *foo = &x[0];
16184 ++foo;
16185 }
16186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16187 typedef const int *iptr;
16188 iptr p = 0;
16189 ++p;
16190 }
16191 { /* AIX XL C 1.02.0.0 rejects this saying
16192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16193 struct s { int j; const int *ap[3]; };
16194 struct s *b; b->j = 5;
16195 }
16196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16197 const int foo = 10;
4e8d927d 16198 }
4e8d927d
DJ
16199#endif
16200
16201 ;
16202 return 0;
16203}
16204_ACEOF
16205rm -f conftest.$ac_objext
16206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16207 (eval $ac_compile) 2>conftest.er1
16208 ac_status=$?
16209 grep -v '^ *+' conftest.er1 >conftest.err
16210 rm -f conftest.er1
16211 cat conftest.err >&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
b4e70030
JB
16214 { ac_try='test -z "$ac_c_werror_flag"
16215 || test ! -s conftest.err'
4e8d927d
DJ
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; } &&
16221 { ac_try='test -s conftest.$ac_objext'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 ac_cv_c_const=yes
16228else
16229 echo "$as_me: failed program was:" >&5
16230sed 's/^/| /' conftest.$ac_ext >&5
16231
b4e70030 16232ac_cv_c_const=no
4e8d927d 16233fi
4e8d927d
DJ
16234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16235fi
b4e70030
JB
16236echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16237echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
16238if test $ac_cv_c_const = no; then
16239
16240cat >>confdefs.h <<\_ACEOF
16241#define const
16242_ACEOF
16243
16244fi
16245
b4e70030
JB
16246echo "$as_me:$LINENO: checking for inline" >&5
16247echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
16248if test "${ac_cv_c_inline+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16250else
16251 ac_cv_c_inline=no
16252for ac_kw in inline __inline__ __inline; do
16253 cat >conftest.$ac_ext <<_ACEOF
16254/* confdefs.h. */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h. */
16259#ifndef __cplusplus
16260typedef int foo_t;
16261static $ac_kw foo_t static_foo () {return 0; }
16262$ac_kw foo_t foo () {return 0; }
16263#endif
16264
16265_ACEOF
16266rm -f conftest.$ac_objext
16267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268 (eval $ac_compile) 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
b4e70030
JB
16275 { ac_try='test -z "$ac_c_werror_flag"
16276 || test ! -s conftest.err'
4e8d927d
DJ
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
b4e70030 16288 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
16289else
16290 echo "$as_me: failed program was:" >&5
16291sed 's/^/| /' conftest.$ac_ext >&5
16292
4e8d927d 16293fi
4e8d927d 16294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
16295done
16296
16297fi
b4e70030
JB
16298echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16299echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 16300
bec39cab 16301
a3828db0
MK
16302case $ac_cv_c_inline in
16303 inline | yes) ;;
16304 *)
16305 case $ac_cv_c_inline in
16306 no) ac_val=;;
16307 *) ac_val=$ac_cv_c_inline;;
16308 esac
16309 cat >>confdefs.h <<_ACEOF
16310#ifndef __cplusplus
16311#define inline $ac_val
16312#endif
16313_ACEOF
bec39cab
AC
16314 ;;
16315esac
bec39cab 16316
9b913628
TJB
16317echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16318echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16319if test "${ac_cv_c_bigendian+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321else
16322 # See if sys/param.h defines the BYTE_ORDER macro.
16323cat >conftest.$ac_ext <<_ACEOF
16324/* confdefs.h. */
16325_ACEOF
16326cat confdefs.h >>conftest.$ac_ext
16327cat >>conftest.$ac_ext <<_ACEOF
16328/* end confdefs.h. */
16329#include <sys/types.h>
16330#include <sys/param.h>
16331
16332int
16333main ()
16334{
16335#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16336 bogus endian macros
16337#endif
16338
16339 ;
16340 return 0;
16341}
16342_ACEOF
16343rm -f conftest.$ac_objext
16344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16345 (eval $ac_compile) 2>conftest.er1
16346 ac_status=$?
16347 grep -v '^ *+' conftest.er1 >conftest.err
16348 rm -f conftest.er1
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -z "$ac_c_werror_flag"
16353 || test ! -s conftest.err'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest.$ac_objext'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 # It does; now see whether it defined to BIG_ENDIAN or not.
16366cat >conftest.$ac_ext <<_ACEOF
16367/* confdefs.h. */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h. */
16372#include <sys/types.h>
16373#include <sys/param.h>
16374
16375int
16376main ()
16377{
16378#if BYTE_ORDER != BIG_ENDIAN
16379 not big endian
16380#endif
16381
16382 ;
16383 return 0;
16384}
16385_ACEOF
16386rm -f conftest.$ac_objext
16387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388 (eval $ac_compile) 2>conftest.er1
16389 ac_status=$?
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
16395 { ac_try='test -z "$ac_c_werror_flag"
16396 || test ! -s conftest.err'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 ac_cv_c_bigendian=yes
16409else
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413ac_cv_c_bigendian=no
16414fi
16415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16416else
16417 echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420# It does not; compile a test program.
16421if test "$cross_compiling" = yes; then
16422 # try to guess the endianness by grepping values into an object file
16423 ac_cv_c_bigendian=unknown
16424 cat >conftest.$ac_ext <<_ACEOF
16425/* confdefs.h. */
16426_ACEOF
16427cat confdefs.h >>conftest.$ac_ext
16428cat >>conftest.$ac_ext <<_ACEOF
16429/* end confdefs.h. */
16430short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16431short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16432void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
16433short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16434short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16435void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
16436int
16437main ()
16438{
16439 _ascii (); _ebcdic ();
16440 ;
16441 return 0;
16442}
16443_ACEOF
16444rm -f conftest.$ac_objext
16445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try='test -s conftest.$ac_objext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
16467 ac_cv_c_bigendian=yes
16468fi
16469if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16470 if test "$ac_cv_c_bigendian" = unknown; then
16471 ac_cv_c_bigendian=no
16472 else
16473 # finding both strings is unlikely to happen, but who knows?
16474 ac_cv_c_bigendian=unknown
16475 fi
16476fi
16477else
16478 echo "$as_me: failed program was:" >&5
16479sed 's/^/| /' conftest.$ac_ext >&5
16480
16481fi
16482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16483else
16484 cat >conftest.$ac_ext <<_ACEOF
16485/* confdefs.h. */
16486_ACEOF
16487cat confdefs.h >>conftest.$ac_ext
16488cat >>conftest.$ac_ext <<_ACEOF
16489/* end confdefs.h. */
16490int
16491main ()
16492{
16493 /* Are we little or big endian? From Harbison&Steele. */
16494 union
16495 {
16496 long l;
16497 char c[sizeof (long)];
16498 } u;
16499 u.l = 1;
16500 exit (u.c[sizeof (long) - 1] == 1);
16501}
16502_ACEOF
16503rm -f conftest$ac_exeext
16504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16505 (eval $ac_link) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 ac_cv_c_bigendian=no
16515else
16516 echo "$as_me: program exited with status $ac_status" >&5
16517echo "$as_me: failed program was:" >&5
16518sed 's/^/| /' conftest.$ac_ext >&5
16519
16520( exit $ac_status )
16521ac_cv_c_bigendian=yes
16522fi
16523rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16524fi
16525fi
16526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16527fi
16528echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16529echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16530case $ac_cv_c_bigendian in
16531 yes)
16532
16533cat >>confdefs.h <<\_ACEOF
16534#define WORDS_BIGENDIAN 1
16535_ACEOF
16536 ;;
16537 no)
16538 ;;
16539 *)
16540 { { echo "$as_me:$LINENO: error: unknown endianness
16541presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16542echo "$as_me: error: unknown endianness
16543presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16544 { (exit 1); exit 1; }; } ;;
16545esac
16546
74c1b268 16547
a3828db0
MK
16548# ------------------------------ #
16549# Checks for library functions. #
16550# ------------------------------ #
bec39cab 16551
a3828db0
MK
16552# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16553# for constant arguments. Useless!
b4e70030
JB
16554echo "$as_me:$LINENO: checking for working alloca.h" >&5
16555echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 16556if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558else
16559 cat >conftest.$ac_ext <<_ACEOF
16560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
a3828db0 16565#include <alloca.h>
bec39cab
AC
16566int
16567main ()
16568{
a3828db0 16569char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574rm -f conftest.$ac_objext conftest$ac_exeext
16575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576 (eval $ac_link) 2>conftest.er1
16577 ac_status=$?
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
b4e70030
JB
16583 { ac_try='test -z "$ac_c_werror_flag"
16584 || test ! -s conftest.err'
bec39cab
AC
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest$ac_exeext'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16593 ac_status=$?
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; }; then
a3828db0 16596 ac_cv_working_alloca_h=yes
bec39cab
AC
16597else
16598 echo "$as_me: failed program was:" >&5
16599sed 's/^/| /' conftest.$ac_ext >&5
16600
b4e70030 16601ac_cv_working_alloca_h=no
bec39cab
AC
16602fi
16603rm -f conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16605fi
b4e70030
JB
16606echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16607echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
16608if test $ac_cv_working_alloca_h = yes; then
16609
16610cat >>confdefs.h <<\_ACEOF
16611#define HAVE_ALLOCA_H 1
bec39cab 16612_ACEOF
74c1b268 16613
74c1b268
AC
16614fi
16615
b4e70030
JB
16616echo "$as_me:$LINENO: checking for alloca" >&5
16617echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 16618if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 16619 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 16620else
bec39cab
AC
16621 cat >conftest.$ac_ext <<_ACEOF
16622/* confdefs.h. */
16623_ACEOF
16624cat confdefs.h >>conftest.$ac_ext
16625cat >>conftest.$ac_ext <<_ACEOF
16626/* end confdefs.h. */
a3828db0
MK
16627#ifdef __GNUC__
16628# define alloca __builtin_alloca
16629#else
16630# ifdef _MSC_VER
16631# include <malloc.h>
16632# define alloca _alloca
16633# else
16634# if HAVE_ALLOCA_H
16635# include <alloca.h>
16636# else
16637# ifdef _AIX
16638 #pragma alloca
16639# else
16640# ifndef alloca /* predefined by HP cc +Olibcalls */
16641char *alloca ();
16642# endif
16643# endif
16644# endif
97bf5e38 16645# endif
a3828db0 16646#endif
97bf5e38 16647
bec39cab
AC
16648int
16649main ()
16650{
a3828db0 16651char *p = (char *) alloca (1);
bec39cab
AC
16652 ;
16653 return 0;
16654}
16655_ACEOF
a3828db0
MK
16656rm -f conftest.$ac_objext conftest$ac_exeext
16657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16659 ac_status=$?
16660 grep -v '^ *+' conftest.er1 >conftest.err
16661 rm -f conftest.er1
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
b4e70030
JB
16665 { ac_try='test -z "$ac_c_werror_flag"
16666 || test ! -s conftest.err'
bec39cab
AC
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; } &&
a3828db0 16672 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
a3828db0 16678 ac_cv_func_alloca_works=yes
0200359f 16679else
bec39cab
AC
16680 echo "$as_me: failed program was:" >&5
16681sed 's/^/| /' conftest.$ac_ext >&5
0200359f 16682
b4e70030 16683ac_cv_func_alloca_works=no
0200359f 16684fi
a3828db0
MK
16685rm -f conftest.err conftest.$ac_objext \
16686 conftest$ac_exeext conftest.$ac_ext
72473524 16687fi
b4e70030
JB
16688echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16689echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 16690
a3828db0
MK
16691if test $ac_cv_func_alloca_works = yes; then
16692
16693cat >>confdefs.h <<\_ACEOF
16694#define HAVE_ALLOCA 1
bec39cab
AC
16695_ACEOF
16696
a3828db0
MK
16697else
16698 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16699# that cause trouble. Some versions do not even contain alloca or
16700# contain a buggy version. If you still want to use their alloca,
16701# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 16702
b4e70030 16703ALLOCA=alloca.$ac_objext
bec39cab 16704
a3828db0
MK
16705cat >>confdefs.h <<\_ACEOF
16706#define C_ALLOCA 1
16707_ACEOF
bec39cab 16708
a3828db0 16709
b4e70030
JB
16710echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16711echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 16712if test "${ac_cv_os_cray+set}" = set; then
bec39cab 16713 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 16714else
a3828db0 16715 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16716/* confdefs.h. */
16717_ACEOF
16718cat confdefs.h >>conftest.$ac_ext
16719cat >>conftest.$ac_ext <<_ACEOF
16720/* end confdefs.h. */
b4e70030 16721#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
16722webecray
16723#else
16724wenotbecray
16725#endif
16726
16727_ACEOF
16728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16729 $EGREP "webecray" >/dev/null 2>&1; then
16730 ac_cv_os_cray=yes
16731else
16732 ac_cv_os_cray=no
16733fi
16734rm -f conftest*
16735
16736fi
b4e70030
JB
16737echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16738echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
16739if test $ac_cv_os_cray = yes; then
16740 for ac_func in _getb67 GETB67 getb67; do
16741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16742echo "$as_me:$LINENO: checking for $ac_func" >&5
16743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16744if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16746else
16747 cat >conftest.$ac_ext <<_ACEOF
16748/* confdefs.h. */
16749_ACEOF
16750cat confdefs.h >>conftest.$ac_ext
16751cat >>conftest.$ac_ext <<_ACEOF
16752/* end confdefs.h. */
16753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16755#define $ac_func innocuous_$ac_func
16756
16757/* System header to define __stub macros and hopefully few prototypes,
16758 which can conflict with char $ac_func (); below.
16759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16760 <limits.h> exists even on freestanding compilers. */
16761
16762#ifdef __STDC__
16763# include <limits.h>
16764#else
16765# include <assert.h>
16766#endif
16767
16768#undef $ac_func
16769
b4e70030 16770/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
16771#ifdef __cplusplus
16772extern "C"
b4e70030 16773{
a3828db0 16774#endif
b4e70030
JB
16775/* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
a3828db0
MK
16777char $ac_func ();
16778/* The GNU C library defines this for functions which it implements
16779 to always fail with ENOSYS. Some functions are actually named
16780 something starting with __ and the normal name is an alias. */
b4e70030 16781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 16782choke me
b4e70030
JB
16783#else
16784char (*f) () = $ac_func;
16785#endif
16786#ifdef __cplusplus
16787}
a3828db0
MK
16788#endif
16789
16790int
16791main ()
16792{
b4e70030 16793return f != $ac_func;
a3828db0
MK
16794 ;
16795 return 0;
16796}
16797_ACEOF
16798rm -f conftest.$ac_objext conftest$ac_exeext
16799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800 (eval $ac_link) 2>conftest.er1
16801 ac_status=$?
16802 grep -v '^ *+' conftest.er1 >conftest.err
16803 rm -f conftest.er1
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
b4e70030
JB
16807 { ac_try='test -z "$ac_c_werror_flag"
16808 || test ! -s conftest.err'
a3828db0
MK
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 eval "$as_ac_var=yes"
16821else
16822 echo "$as_me: failed program was:" >&5
16823sed 's/^/| /' conftest.$ac_ext >&5
16824
b4e70030 16825eval "$as_ac_var=no"
a3828db0
MK
16826fi
16827rm -f conftest.err conftest.$ac_objext \
16828 conftest$ac_exeext conftest.$ac_ext
16829fi
b4e70030
JB
16830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
16832if test `eval echo '${'$as_ac_var'}'` = yes; then
16833
16834cat >>confdefs.h <<_ACEOF
16835#define CRAY_STACKSEG_END $ac_func
16836_ACEOF
16837
16838 break
16839fi
16840
16841 done
16842fi
16843
b4e70030
JB
16844echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16845echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
16846if test "${ac_cv_c_stack_direction+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848else
16849 if test "$cross_compiling" = yes; then
16850 ac_cv_c_stack_direction=0
16851else
16852 cat >conftest.$ac_ext <<_ACEOF
16853/* confdefs.h. */
16854_ACEOF
16855cat confdefs.h >>conftest.$ac_ext
16856cat >>conftest.$ac_ext <<_ACEOF
16857/* end confdefs.h. */
16858int
16859find_stack_direction ()
16860{
16861 static char *addr = 0;
16862 auto char dummy;
16863 if (addr == 0)
16864 {
16865 addr = &dummy;
16866 return find_stack_direction ();
16867 }
16868 else
16869 return (&dummy > addr) ? 1 : -1;
16870}
16871
16872int
16873main ()
16874{
b4e70030 16875 exit (find_stack_direction () < 0);
a3828db0
MK
16876}
16877_ACEOF
16878rm -f conftest$ac_exeext
16879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16880 (eval $ac_link) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 ac_cv_c_stack_direction=1
16890else
16891 echo "$as_me: program exited with status $ac_status" >&5
16892echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895( exit $ac_status )
16896ac_cv_c_stack_direction=-1
16897fi
b4e70030 16898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16899fi
16900fi
b4e70030
JB
16901echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16902echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
16903
16904cat >>confdefs.h <<_ACEOF
16905#define STACK_DIRECTION $ac_cv_c_stack_direction
16906_ACEOF
16907
16908
16909fi
16910
16911
16912
16913for ac_header in stdlib.h unistd.h
16914do
16915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16916if eval "test \"\${$as_ac_Header+set}\" = set"; then
16917 echo "$as_me:$LINENO: checking for $ac_header" >&5
16918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16919if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921fi
b4e70030
JB
16922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
16924else
16925 # Is the header compilable?
b4e70030
JB
16926echo "$as_me:$LINENO: checking $ac_header usability" >&5
16927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
16928cat >conftest.$ac_ext <<_ACEOF
16929/* confdefs.h. */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h. */
16934$ac_includes_default
16935#include <$ac_header>
16936_ACEOF
16937rm -f conftest.$ac_objext
16938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16939 (eval $ac_compile) 2>conftest.er1
16940 ac_status=$?
bec39cab
AC
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
b4e70030
JB
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
bec39cab
AC
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_header_compiler=yes
16960else
16961 echo "$as_me: failed program was:" >&5
16962sed 's/^/| /' conftest.$ac_ext >&5
16963
b4e70030 16964ac_header_compiler=no
bec39cab
AC
16965fi
16966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16967echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16968echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16969
16970# Is the header present?
b4e70030
JB
16971echo "$as_me:$LINENO: checking $ac_header presence" >&5
16972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16973cat >conftest.$ac_ext <<_ACEOF
16974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
16978/* end confdefs.h. */
16979#include <$ac_header>
16980_ACEOF
16981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16983 ac_status=$?
16984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } >/dev/null; then
16989 if test -s conftest.err; then
16990 ac_cpp_err=$ac_c_preproc_warn_flag
16991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16992 else
16993 ac_cpp_err=
16994 fi
16995else
16996 ac_cpp_err=yes
16997fi
16998if test -z "$ac_cpp_err"; then
16999 ac_header_preproc=yes
97bf5e38 17000else
bec39cab
AC
17001 echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
17004 ac_header_preproc=no
72473524 17005fi
bec39cab 17006rm -f conftest.err conftest.$ac_ext
b4e70030
JB
17007echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17008echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 17009
bec39cab
AC
17010# So? What about this header?
17011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17012 yes:no: )
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17014echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17016echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17017 ac_header_preproc=yes
17018 ;;
17019 no:yes:* )
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17023echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17025echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17027echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17031echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17032 (
17033 cat <<\_ASBOX
17034## ------------------------------------------ ##
17035## Report this to the AC_PACKAGE_NAME lists. ##
17036## ------------------------------------------ ##
17037_ASBOX
17038 ) |
17039 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
17040 ;;
17041esac
b4e70030
JB
17042echo "$as_me:$LINENO: checking for $ac_header" >&5
17043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17044if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 17045 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17046else
bec39cab
AC
17047 eval "$as_ac_Header=\$ac_header_preproc"
17048fi
b4e70030
JB
17049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
17051
17052fi
17053if test `eval echo '${'$as_ac_Header'}'` = yes; then
17054 cat >>confdefs.h <<_ACEOF
17055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17056_ACEOF
17057
17058fi
17059
17060done
17061
17062
a3828db0 17063for ac_func in getpagesize
bec39cab
AC
17064do
17065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17066echo "$as_me:$LINENO: checking for $ac_func" >&5
17067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17068if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070else
17071 cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
17077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17079#define $ac_func innocuous_$ac_func
17080
97bf5e38 17081/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17082 which can conflict with char $ac_func (); below.
17083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17084 <limits.h> exists even on freestanding compilers. */
2b2d558c 17085
bec39cab
AC
17086#ifdef __STDC__
17087# include <limits.h>
17088#else
17089# include <assert.h>
17090#endif
97bf5e38 17091
bec39cab
AC
17092#undef $ac_func
17093
b4e70030 17094/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17095#ifdef __cplusplus
17096extern "C"
b4e70030 17097{
bec39cab 17098#endif
b4e70030
JB
17099/* We use char because int might match the return type of a gcc2
17100 builtin and then its argument prototype would still apply. */
bec39cab 17101char $ac_func ();
97bf5e38
MK
17102/* The GNU C library defines this for functions which it implements
17103 to always fail with ENOSYS. Some functions are actually named
17104 something starting with __ and the normal name is an alias. */
b4e70030 17105#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17106choke me
b4e70030
JB
17107#else
17108char (*f) () = $ac_func;
17109#endif
17110#ifdef __cplusplus
17111}
97bf5e38
MK
17112#endif
17113
bec39cab
AC
17114int
17115main ()
17116{
b4e70030 17117return f != $ac_func;
bec39cab
AC
17118 ;
17119 return 0;
17120}
17121_ACEOF
17122rm -f conftest.$ac_objext conftest$ac_exeext
17123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17124 (eval $ac_link) 2>conftest.er1
17125 ac_status=$?
17126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
b4e70030
JB
17131 { ac_try='test -z "$ac_c_werror_flag"
17132 || test ! -s conftest.err'
bec39cab
AC
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; } &&
17138 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17144 eval "$as_ac_var=yes"
17145else
17146 echo "$as_me: failed program was:" >&5
17147sed 's/^/| /' conftest.$ac_ext >&5
17148
b4e70030 17149eval "$as_ac_var=no"
bec39cab
AC
17150fi
17151rm -f conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153fi
b4e70030
JB
17154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17155echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17156if test `eval echo '${'$as_ac_var'}'` = yes; then
17157 cat >>confdefs.h <<_ACEOF
17158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17159_ACEOF
17160
2b2d558c 17161fi
bec39cab 17162done
2b2d558c 17163
b4e70030
JB
17164echo "$as_me:$LINENO: checking for working mmap" >&5
17165echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 17166if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 17167 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17168else
bec39cab 17169 if test "$cross_compiling" = yes; then
a3828db0 17170 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
17171else
17172 cat >conftest.$ac_ext <<_ACEOF
a3828db0 17173/* confdefs.h. */
bec39cab
AC
17174_ACEOF
17175cat confdefs.h >>conftest.$ac_ext
17176cat >>conftest.$ac_ext <<_ACEOF
17177/* end confdefs.h. */
a3828db0
MK
17178$ac_includes_default
17179/* malloc might have been renamed as rpl_malloc. */
17180#undef malloc
bec39cab 17181
a3828db0
MK
17182/* Thanks to Mike Haertel and Jim Avera for this test.
17183 Here is a matrix of mmap possibilities:
17184 mmap private not fixed
17185 mmap private fixed at somewhere currently unmapped
17186 mmap private fixed at somewhere already mapped
17187 mmap shared not fixed
17188 mmap shared fixed at somewhere currently unmapped
17189 mmap shared fixed at somewhere already mapped
17190 For private mappings, we should verify that changes cannot be read()
17191 back from the file, nor mmap's back from the file at a different
17192 address. (There have been systems where private was not correctly
17193 implemented like the infamous i386 svr4.0, and systems where the
17194 VM page cache was not coherent with the file system buffer cache
17195 like early versions of FreeBSD and possibly contemporary NetBSD.)
17196 For shared mappings, we should conversely verify that changes get
17197 propagated back to all the places they're supposed to be.
7dfa765c 17198
a3828db0
MK
17199 Grep wants private fixed already mapped.
17200 The main things grep needs to know about mmap are:
17201 * does it exist and is it safe to write into the mmap'd area
17202 * how to use it (BSD variants) */
7dfa765c 17203
a3828db0
MK
17204#include <fcntl.h>
17205#include <sys/mman.h>
7dfa765c 17206
a3828db0
MK
17207#if !STDC_HEADERS && !HAVE_STDLIB_H
17208char *malloc ();
17209#endif
7dfa765c 17210
a3828db0
MK
17211/* This mess was copied from the GNU getpagesize.h. */
17212#if !HAVE_GETPAGESIZE
17213/* Assume that all systems that can run configure have sys/param.h. */
17214# if !HAVE_SYS_PARAM_H
17215# define HAVE_SYS_PARAM_H 1
17216# endif
64bb1671 17217
a3828db0
MK
17218# ifdef _SC_PAGESIZE
17219# define getpagesize() sysconf(_SC_PAGESIZE)
17220# else /* no _SC_PAGESIZE */
17221# if HAVE_SYS_PARAM_H
17222# include <sys/param.h>
17223# ifdef EXEC_PAGESIZE
17224# define getpagesize() EXEC_PAGESIZE
17225# else /* no EXEC_PAGESIZE */
17226# ifdef NBPG
17227# define getpagesize() NBPG * CLSIZE
17228# ifndef CLSIZE
17229# define CLSIZE 1
17230# endif /* no CLSIZE */
17231# else /* no NBPG */
17232# ifdef NBPC
17233# define getpagesize() NBPC
17234# else /* no NBPC */
17235# ifdef PAGESIZE
17236# define getpagesize() PAGESIZE
17237# endif /* PAGESIZE */
17238# endif /* no NBPC */
17239# endif /* no NBPG */
17240# endif /* no EXEC_PAGESIZE */
17241# else /* no HAVE_SYS_PARAM_H */
17242# define getpagesize() 8192 /* punt totally */
17243# endif /* no HAVE_SYS_PARAM_H */
17244# endif /* no _SC_PAGESIZE */
64bb1671 17245
a3828db0 17246#endif /* no HAVE_GETPAGESIZE */
64bb1671 17247
a3828db0
MK
17248int
17249main ()
17250{
17251 char *data, *data2, *data3;
17252 int i, pagesize;
17253 int fd;
97bf5e38 17254
a3828db0
MK
17255 pagesize = getpagesize ();
17256
17257 /* First, make a file with some known garbage in it. */
17258 data = (char *) malloc (pagesize);
17259 if (!data)
b4e70030 17260 exit (1);
a3828db0
MK
17261 for (i = 0; i < pagesize; ++i)
17262 *(data + i) = rand ();
17263 umask (0);
17264 fd = creat ("conftest.mmap", 0600);
17265 if (fd < 0)
b4e70030 17266 exit (1);
a3828db0 17267 if (write (fd, data, pagesize) != pagesize)
b4e70030 17268 exit (1);
a3828db0
MK
17269 close (fd);
17270
17271 /* Next, try to mmap the file at a fixed address which already has
17272 something else allocated at it. If we can, also make sure that
17273 we see the same garbage. */
17274 fd = open ("conftest.mmap", O_RDWR);
17275 if (fd < 0)
b4e70030 17276 exit (1);
a3828db0
MK
17277 data2 = (char *) malloc (2 * pagesize);
17278 if (!data2)
b4e70030
JB
17279 exit (1);
17280 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
17281 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17282 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 17283 exit (1);
a3828db0
MK
17284 for (i = 0; i < pagesize; ++i)
17285 if (*(data + i) != *(data2 + i))
b4e70030 17286 exit (1);
a3828db0
MK
17287
17288 /* Finally, make sure that changes to the mapped area do not
17289 percolate back to the file as seen by read(). (This is a bug on
17290 some variants of i386 svr4.0.) */
17291 for (i = 0; i < pagesize; ++i)
17292 *(data2 + i) = *(data2 + i) + 1;
17293 data3 = (char *) malloc (pagesize);
17294 if (!data3)
b4e70030 17295 exit (1);
a3828db0 17296 if (read (fd, data3, pagesize) != pagesize)
b4e70030 17297 exit (1);
a3828db0
MK
17298 for (i = 0; i < pagesize; ++i)
17299 if (*(data + i) != *(data3 + i))
b4e70030 17300 exit (1);
a3828db0 17301 close (fd);
b4e70030 17302 exit (0);
97bf5e38 17303}
bec39cab
AC
17304_ACEOF
17305rm -f conftest$ac_exeext
17306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17307 (eval $ac_link) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
a3828db0 17316 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 17317else
bec39cab
AC
17318 echo "$as_me: program exited with status $ac_status" >&5
17319echo "$as_me: failed program was:" >&5
17320sed 's/^/| /' conftest.$ac_ext >&5
17321
17322( exit $ac_status )
a3828db0 17323ac_cv_func_mmap_fixed_mapped=no
0afdd437 17324fi
b4e70030 17325rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 17326fi
a3828db0 17327fi
b4e70030
JB
17328echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17329echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 17330if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
17331
17332cat >>confdefs.h <<\_ACEOF
a3828db0 17333#define HAVE_MMAP 1
bec39cab 17334_ACEOF
0afdd437
MK
17335
17336fi
a3828db0 17337rm -f conftest.mmap
0afdd437 17338
b4e70030
JB
17339echo "$as_me:$LINENO: checking for pid_t" >&5
17340echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 17341if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343else
17344 cat >conftest.$ac_ext <<_ACEOF
17345/* confdefs.h. */
17346_ACEOF
17347cat confdefs.h >>conftest.$ac_ext
17348cat >>conftest.$ac_ext <<_ACEOF
17349/* end confdefs.h. */
a3828db0 17350$ac_includes_default
bec39cab
AC
17351int
17352main ()
17353{
b4e70030 17354if ((pid_t *) 0)
a3828db0 17355 return 0;
b4e70030 17356if (sizeof (pid_t))
a3828db0 17357 return 0;
bec39cab
AC
17358 ;
17359 return 0;
17360}
17361_ACEOF
a3828db0
MK
17362rm -f conftest.$ac_objext
17363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17364 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
17365 ac_status=$?
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
b4e70030
JB
17371 { ac_try='test -z "$ac_c_werror_flag"
17372 || test ! -s conftest.err'
bec39cab
AC
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
a3828db0 17378 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
a3828db0 17384 ac_cv_type_pid_t=yes
bec39cab
AC
17385else
17386 echo "$as_me: failed program was:" >&5
17387sed 's/^/| /' conftest.$ac_ext >&5
17388
b4e70030 17389ac_cv_type_pid_t=no
bec39cab 17390fi
a3828db0 17391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 17392fi
b4e70030
JB
17393echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17394echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
17395if test $ac_cv_type_pid_t = yes; then
17396 :
17397else
17398
17399cat >>confdefs.h <<_ACEOF
17400#define pid_t int
bec39cab 17401_ACEOF
7e89e357 17402
7e89e357
JT
17403fi
17404
bec39cab 17405
b4e70030
JB
17406
17407for ac_header in unistd.h vfork.h
7be570e7 17408do
a3828db0 17409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
17410if eval "test \"\${$as_ac_Header+set}\" = set"; then
17411 echo "$as_me:$LINENO: checking for $ac_header" >&5
17412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17413if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 17414 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 17415fi
b4e70030
JB
17416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 17418else
a3828db0 17419 # Is the header compilable?
b4e70030
JB
17420echo "$as_me:$LINENO: checking $ac_header usability" >&5
17421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 17422cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
17427/* end confdefs.h. */
a3828db0
MK
17428$ac_includes_default
17429#include <$ac_header>
bec39cab 17430_ACEOF
a3828db0
MK
17431rm -f conftest.$ac_objext
17432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
17434 ac_status=$?
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } &&
b4e70030
JB
17440 { ac_try='test -z "$ac_c_werror_flag"
17441 || test ! -s conftest.err'
bec39cab
AC
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
a3828db0 17447 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
a3828db0 17453 ac_header_compiler=yes
bec39cab
AC
17454else
17455 echo "$as_me: failed program was:" >&5
17456sed 's/^/| /' conftest.$ac_ext >&5
17457
b4e70030 17458ac_header_compiler=no
bec39cab 17459fi
a3828db0 17460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
17461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17462echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
17463
17464# Is the header present?
b4e70030
JB
17465echo "$as_me:$LINENO: checking $ac_header presence" >&5
17466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
17467cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
17473#include <$ac_header>
17474_ACEOF
17475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17477 ac_status=$?
17478 grep -v '^ *+' conftest.er1 >conftest.err
17479 rm -f conftest.er1
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } >/dev/null; then
17483 if test -s conftest.err; then
17484 ac_cpp_err=$ac_c_preproc_warn_flag
17485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17486 else
17487 ac_cpp_err=
17488 fi
17489else
17490 ac_cpp_err=yes
17491fi
17492if test -z "$ac_cpp_err"; then
17493 ac_header_preproc=yes
17494else
17495 echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 ac_header_preproc=no
17499fi
17500rm -f conftest.err conftest.$ac_ext
b4e70030
JB
17501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17502echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
17503
17504# So? What about this header?
17505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17506 yes:no: )
17507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17511 ac_header_preproc=yes
17512 ;;
17513 no:yes:* )
17514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17521echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17526 (
17527 cat <<\_ASBOX
17528## ------------------------------------------ ##
17529## Report this to the AC_PACKAGE_NAME lists. ##
17530## ------------------------------------------ ##
17531_ASBOX
17532 ) |
17533 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
17534 ;;
17535esac
b4e70030
JB
17536echo "$as_me:$LINENO: checking for $ac_header" >&5
17537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17538if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540else
17541 eval "$as_ac_Header=\$ac_header_preproc"
17542fi
b4e70030
JB
17543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 17545
bec39cab 17546fi
a3828db0 17547if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 17548 cat >>confdefs.h <<_ACEOF
a3828db0 17549#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 17550_ACEOF
14abd0fb 17551
14abd0fb 17552fi
a3828db0 17553
14abd0fb
MK
17554done
17555
bec39cab 17556
a3828db0
MK
17557
17558for ac_func in fork vfork
14abd0fb 17559do
bec39cab 17560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17561echo "$as_me:$LINENO: checking for $ac_func" >&5
17562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17563if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17565else
17566 cat >conftest.$ac_ext <<_ACEOF
17567/* confdefs.h. */
17568_ACEOF
17569cat confdefs.h >>conftest.$ac_ext
17570cat >>conftest.$ac_ext <<_ACEOF
17571/* end confdefs.h. */
17572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17574#define $ac_func innocuous_$ac_func
17575
14abd0fb 17576/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17577 which can conflict with char $ac_func (); below.
17578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579 <limits.h> exists even on freestanding compilers. */
17580
17581#ifdef __STDC__
17582# include <limits.h>
17583#else
17584# include <assert.h>
17585#endif
14abd0fb 17586
bec39cab 17587#undef $ac_func
14abd0fb 17588
b4e70030 17589/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17590#ifdef __cplusplus
17591extern "C"
b4e70030 17592{
bec39cab 17593#endif
b4e70030
JB
17594/* We use char because int might match the return type of a gcc2
17595 builtin and then its argument prototype would still apply. */
bec39cab 17596char $ac_func ();
14abd0fb
MK
17597/* The GNU C library defines this for functions which it implements
17598 to always fail with ENOSYS. Some functions are actually named
17599 something starting with __ and the normal name is an alias. */
b4e70030 17600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 17601choke me
b4e70030
JB
17602#else
17603char (*f) () = $ac_func;
17604#endif
17605#ifdef __cplusplus
17606}
14abd0fb
MK
17607#endif
17608
bec39cab
AC
17609int
17610main ()
17611{
b4e70030 17612return f != $ac_func;
bec39cab
AC
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617rm -f conftest.$ac_objext conftest$ac_exeext
17618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>conftest.er1
17620 ac_status=$?
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
b4e70030
JB
17626 { ac_try='test -z "$ac_c_werror_flag"
17627 || test ! -s conftest.err'
bec39cab
AC
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest$ac_exeext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 eval "$as_ac_var=yes"
17640else
17641 echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
b4e70030 17644eval "$as_ac_var=no"
bec39cab
AC
17645fi
17646rm -f conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17648fi
b4e70030
JB
17649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17651if test `eval echo '${'$as_ac_var'}'` = yes; then
17652 cat >>confdefs.h <<_ACEOF
17653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17654_ACEOF
7be570e7 17655
7be570e7
JM
17656fi
17657done
17658
a3828db0 17659if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
17660 echo "$as_me:$LINENO: checking for working fork" >&5
17661echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
17662if test "${ac_cv_func_fork_works+set}" = set; then
17663 echo $ECHO_N "(cached) $ECHO_C" >&6
17664else
17665 if test "$cross_compiling" = yes; then
17666 ac_cv_func_fork_works=cross
17667else
17668 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
17669/* By Ruediger Kuhlmann. */
17670 #include <sys/types.h>
17671 #if HAVE_UNISTD_H
17672 # include <unistd.h>
17673 #endif
17674 /* Some systems only have a dummy stub for fork() */
17675 int main ()
17676 {
17677 if (fork() < 0)
17678 exit (1);
17679 exit (0);
17680 }
a3828db0
MK
17681_ACEOF
17682rm -f conftest$ac_exeext
17683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 (eval $ac_link) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_cv_func_fork_works=yes
17694else
17695 echo "$as_me: program exited with status $ac_status" >&5
17696echo "$as_me: failed program was:" >&5
17697sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 17698
a3828db0
MK
17699( exit $ac_status )
17700ac_cv_func_fork_works=no
17701fi
b4e70030 17702rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17703fi
17704fi
b4e70030
JB
17705echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17706echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
17707
17708else
17709 ac_cv_func_fork_works=$ac_cv_func_fork
17710fi
17711if test "x$ac_cv_func_fork_works" = xcross; then
17712 case $host in
17713 *-*-amigaos* | *-*-msdosdjgpp*)
17714 # Override, as these systems have only a dummy fork() stub
17715 ac_cv_func_fork_works=no
17716 ;;
17717 *)
17718 ac_cv_func_fork_works=yes
17719 ;;
17720 esac
17721 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17722echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17723fi
17724ac_cv_func_vfork_works=$ac_cv_func_vfork
17725if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
17726 echo "$as_me:$LINENO: checking for working vfork" >&5
17727echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 17728if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 17729 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
17730else
17731 if test "$cross_compiling" = yes; then
17732 ac_cv_func_vfork_works=cross
bec39cab
AC
17733else
17734 cat >conftest.$ac_ext <<_ACEOF
17735/* confdefs.h. */
17736_ACEOF
17737cat confdefs.h >>conftest.$ac_ext
17738cat >>conftest.$ac_ext <<_ACEOF
17739/* end confdefs.h. */
a3828db0 17740/* Thanks to Paul Eggert for this test. */
b4e70030
JB
17741#include <stdio.h>
17742#include <stdlib.h>
17743#include <sys/types.h>
17744#include <sys/stat.h>
a3828db0 17745#include <sys/wait.h>
b4e70030
JB
17746#if HAVE_UNISTD_H
17747# include <unistd.h>
17748#endif
a3828db0
MK
17749#if HAVE_VFORK_H
17750# include <vfork.h>
bec39cab 17751#endif
a3828db0
MK
17752/* On some sparc systems, changes by the child to local and incoming
17753 argument registers are propagated back to the parent. The compiler
17754 is told about this with #include <vfork.h>, but some compilers
17755 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17756 static variable whose address is put into a register that is
17757 clobbered by the vfork. */
17758static void
bec39cab 17759#ifdef __cplusplus
a3828db0
MK
17760sparc_address_test (int arg)
17761# else
17762sparc_address_test (arg) int arg;
c906108c 17763#endif
a3828db0
MK
17764{
17765 static pid_t child;
17766 if (!child) {
17767 child = vfork ();
17768 if (child < 0) {
17769 perror ("vfork");
17770 _exit(2);
17771 }
17772 if (!child) {
17773 arg = getpid();
17774 write(-1, "", 0);
17775 _exit (arg);
17776 }
17777 }
17778}
97bf5e38 17779
bec39cab
AC
17780int
17781main ()
17782{
a3828db0
MK
17783 pid_t parent = getpid ();
17784 pid_t child;
17785
17786 sparc_address_test (0);
17787
17788 child = vfork ();
17789
17790 if (child == 0) {
17791 /* Here is another test for sparc vfork register problems. This
17792 test uses lots of local variables, at least as many local
17793 variables as main has allocated so far including compiler
17794 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17795 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17796 reuse the register of parent for one of the local variables,
17797 since it will think that parent can't possibly be used any more
17798 in this routine. Assigning to the local variable will thus
17799 munge parent in the parent process. */
17800 pid_t
17801 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17802 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17803 /* Convince the compiler that p..p7 are live; otherwise, it might
17804 use the same hardware register for all 8 local variables. */
17805 if (p != p1 || p != p2 || p != p3 || p != p4
17806 || p != p5 || p != p6 || p != p7)
17807 _exit(1);
17808
17809 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17810 from child file descriptors. If the child closes a descriptor
17811 before it execs or exits, this munges the parent's descriptor
17812 as well. Test for this by closing stdout in the child. */
17813 _exit(close(fileno(stdout)) != 0);
17814 } else {
17815 int status;
17816 struct stat st;
17817
17818 while (wait(&status) != child)
17819 ;
b4e70030 17820 exit(
a3828db0
MK
17821 /* Was there some problem with vforking? */
17822 child < 0
17823
17824 /* Did the child fail? (This shouldn't happen.) */
17825 || status
17826
17827 /* Did the vfork/compiler bug occur? */
17828 || parent != getpid()
17829
17830 /* Did the file descriptor bug occur? */
17831 || fstat(fileno(stdout), &st) != 0
17832 );
17833 }
bec39cab
AC
17834}
17835_ACEOF
a3828db0 17836rm -f conftest$ac_exeext
bec39cab 17837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17838 (eval $ac_link) 2>&5
bec39cab
AC
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
a3828db0
MK
17847 ac_cv_func_vfork_works=yes
17848else
17849 echo "$as_me: program exited with status $ac_status" >&5
17850echo "$as_me: failed program was:" >&5
17851sed 's/^/| /' conftest.$ac_ext >&5
17852
17853( exit $ac_status )
17854ac_cv_func_vfork_works=no
17855fi
b4e70030 17856rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17857fi
17858fi
b4e70030
JB
17859echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17860echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
17861
17862fi;
17863if test "x$ac_cv_func_fork_works" = xcross; then
17864 ac_cv_func_vfork_works=$ac_cv_func_vfork
17865 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17866echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17867fi
17868
17869if test "x$ac_cv_func_vfork_works" = xyes; then
17870
17871cat >>confdefs.h <<\_ACEOF
17872#define HAVE_WORKING_VFORK 1
17873_ACEOF
17874
bec39cab 17875else
bec39cab 17876
a3828db0
MK
17877cat >>confdefs.h <<\_ACEOF
17878#define vfork fork
17879_ACEOF
17880
bec39cab 17881fi
a3828db0
MK
17882if test "x$ac_cv_func_fork_works" = xyes; then
17883
17884cat >>confdefs.h <<\_ACEOF
17885#define HAVE_WORKING_FORK 1
bec39cab 17886_ACEOF
c906108c 17887
c906108c
SS
17888fi
17889
bec39cab
AC
17890
17891
a3828db0 17892for ac_func in canonicalize_file_name realpath
97bf5e38 17893do
bec39cab 17894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 17895echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
17896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17897if eval "test \"\${$as_ac_var+set}\" = set"; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17899else
17900 cat >conftest.$ac_ext <<_ACEOF
17901/* confdefs.h. */
17902_ACEOF
17903cat confdefs.h >>conftest.$ac_ext
17904cat >>conftest.$ac_ext <<_ACEOF
17905/* end confdefs.h. */
17906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17908#define $ac_func innocuous_$ac_func
17909
17910/* System header to define __stub macros and hopefully few prototypes,
17911 which can conflict with char $ac_func (); below.
17912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913 <limits.h> exists even on freestanding compilers. */
17914
17915#ifdef __STDC__
17916# include <limits.h>
17917#else
17918# include <assert.h>
17919#endif
17920
17921#undef $ac_func
17922
17923/* Override any gcc2 internal prototype to avoid an error. */
17924#ifdef __cplusplus
17925extern "C"
17926{
17927#endif
17928/* We use char because int might match the return type of a gcc2
17929 builtin and then its argument prototype would still apply. */
17930char $ac_func ();
17931/* The GNU C library defines this for functions which it implements
17932 to always fail with ENOSYS. Some functions are actually named
17933 something starting with __ and the normal name is an alias. */
17934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17935choke me
17936#else
17937char (*f) () = $ac_func;
17938#endif
17939#ifdef __cplusplus
17940}
17941#endif
17942
17943int
17944main ()
17945{
17946return f != $ac_func;
17947 ;
17948 return 0;
17949}
17950_ACEOF
17951rm -f conftest.$ac_objext conftest$ac_exeext
17952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17953 (eval $ac_link) 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_c_werror_flag"
17961 || test ! -s conftest.err'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest$ac_exeext'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 eval "$as_ac_var=yes"
17974else
17975 echo "$as_me: failed program was:" >&5
17976sed 's/^/| /' conftest.$ac_ext >&5
17977
17978eval "$as_ac_var=no"
17979fi
17980rm -f conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982fi
17983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17984echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17985if test `eval echo '${'$as_ac_var'}'` = yes; then
17986 cat >>confdefs.h <<_ACEOF
17987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17988_ACEOF
17989
17990fi
17991done
17992
17993
17994for ac_func in getrusage
17995do
17996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17997echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
17998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17999if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001else
18002 cat >conftest.$ac_ext <<_ACEOF
18003/* confdefs.h. */
18004_ACEOF
18005cat confdefs.h >>conftest.$ac_ext
18006cat >>conftest.$ac_ext <<_ACEOF
18007/* end confdefs.h. */
18008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18010#define $ac_func innocuous_$ac_func
18011
d3ea6809
MM
18012/* System header to define __stub macros and hopefully few prototypes,
18013 which can conflict with char $ac_func (); below.
18014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18015 <limits.h> exists even on freestanding compilers. */
18016
18017#ifdef __STDC__
18018# include <limits.h>
18019#else
18020# include <assert.h>
18021#endif
18022
18023#undef $ac_func
18024
b4e70030 18025/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
18026#ifdef __cplusplus
18027extern "C"
b4e70030 18028{
d3ea6809 18029#endif
b4e70030
JB
18030/* We use char because int might match the return type of a gcc2
18031 builtin and then its argument prototype would still apply. */
d3ea6809
MM
18032char $ac_func ();
18033/* The GNU C library defines this for functions which it implements
18034 to always fail with ENOSYS. Some functions are actually named
18035 something starting with __ and the normal name is an alias. */
b4e70030 18036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 18037choke me
b4e70030
JB
18038#else
18039char (*f) () = $ac_func;
18040#endif
18041#ifdef __cplusplus
18042}
d3ea6809
MM
18043#endif
18044
18045int
18046main ()
18047{
b4e70030 18048return f != $ac_func;
d3ea6809
MM
18049 ;
18050 return 0;
18051}
18052_ACEOF
18053rm -f conftest.$ac_objext conftest$ac_exeext
18054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055 (eval $ac_link) 2>conftest.er1
18056 ac_status=$?
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
b4e70030
JB
18062 { ac_try='test -z "$ac_c_werror_flag"
18063 || test ! -s conftest.err'
d3ea6809
MM
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try='test -s conftest$ac_exeext'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 eval "$as_ac_var=yes"
18076else
18077 echo "$as_me: failed program was:" >&5
18078sed 's/^/| /' conftest.$ac_ext >&5
18079
b4e70030 18080eval "$as_ac_var=no"
d3ea6809
MM
18081fi
18082rm -f conftest.err conftest.$ac_objext \
18083 conftest$ac_exeext conftest.$ac_ext
18084fi
b4e70030
JB
18085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
18087if test `eval echo '${'$as_ac_var'}'` = yes; then
18088 cat >>confdefs.h <<_ACEOF
18089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18090_ACEOF
18091
18092fi
18093done
18094
18095
18096
18097for ac_func in getuid getgid
18098do
18099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18100echo "$as_me:$LINENO: checking for $ac_func" >&5
18101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18102if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18104else
18105 cat >conftest.$ac_ext <<_ACEOF
18106/* confdefs.h. */
18107_ACEOF
18108cat confdefs.h >>conftest.$ac_ext
18109cat >>conftest.$ac_ext <<_ACEOF
18110/* end confdefs.h. */
18111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113#define $ac_func innocuous_$ac_func
18114
97bf5e38 18115/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18116 which can conflict with char $ac_func (); below.
18117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118 <limits.h> exists even on freestanding compilers. */
c906108c 18119
bec39cab
AC
18120#ifdef __STDC__
18121# include <limits.h>
18122#else
18123# include <assert.h>
18124#endif
97bf5e38 18125
bec39cab
AC
18126#undef $ac_func
18127
b4e70030 18128/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18129#ifdef __cplusplus
18130extern "C"
b4e70030 18131{
bec39cab 18132#endif
b4e70030
JB
18133/* We use char because int might match the return type of a gcc2
18134 builtin and then its argument prototype would still apply. */
bec39cab 18135char $ac_func ();
97bf5e38
MK
18136/* The GNU C library defines this for functions which it implements
18137 to always fail with ENOSYS. Some functions are actually named
18138 something starting with __ and the normal name is an alias. */
b4e70030 18139#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18140choke me
b4e70030
JB
18141#else
18142char (*f) () = $ac_func;
18143#endif
18144#ifdef __cplusplus
18145}
c906108c 18146#endif
97bf5e38 18147
bec39cab
AC
18148int
18149main ()
18150{
b4e70030 18151return f != $ac_func;
bec39cab
AC
18152 ;
18153 return 0;
18154}
18155_ACEOF
18156rm -f conftest.$ac_objext conftest$ac_exeext
18157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18158 (eval $ac_link) 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
b4e70030
JB
18165 { ac_try='test -z "$ac_c_werror_flag"
18166 || test ! -s conftest.err'
bec39cab
AC
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; } &&
18172 { ac_try='test -s conftest$ac_exeext'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 eval "$as_ac_var=yes"
18179else
18180 echo "$as_me: failed program was:" >&5
18181sed 's/^/| /' conftest.$ac_ext >&5
18182
b4e70030 18183eval "$as_ac_var=no"
bec39cab
AC
18184fi
18185rm -f conftest.err conftest.$ac_objext \
18186 conftest$ac_exeext conftest.$ac_ext
18187fi
b4e70030
JB
18188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18190if test `eval echo '${'$as_ac_var'}'` = yes; then
18191 cat >>confdefs.h <<_ACEOF
18192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18193_ACEOF
c906108c 18194
c906108c 18195fi
97bf5e38 18196done
c906108c 18197
bec39cab 18198
a3828db0 18199for ac_func in poll
97bf5e38 18200do
bec39cab 18201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18202echo "$as_me:$LINENO: checking for $ac_func" >&5
18203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18204if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18206else
18207 cat >conftest.$ac_ext <<_ACEOF
18208/* confdefs.h. */
18209_ACEOF
18210cat confdefs.h >>conftest.$ac_ext
18211cat >>conftest.$ac_ext <<_ACEOF
18212/* end confdefs.h. */
18213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18215#define $ac_func innocuous_$ac_func
18216
97bf5e38 18217/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18218 which can conflict with char $ac_func (); below.
18219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18220 <limits.h> exists even on freestanding compilers. */
18221
18222#ifdef __STDC__
18223# include <limits.h>
18224#else
18225# include <assert.h>
18226#endif
c906108c 18227
bec39cab 18228#undef $ac_func
97bf5e38 18229
b4e70030 18230/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18231#ifdef __cplusplus
18232extern "C"
b4e70030 18233{
bec39cab 18234#endif
b4e70030
JB
18235/* We use char because int might match the return type of a gcc2
18236 builtin and then its argument prototype would still apply. */
bec39cab 18237char $ac_func ();
97bf5e38
MK
18238/* The GNU C library defines this for functions which it implements
18239 to always fail with ENOSYS. Some functions are actually named
18240 something starting with __ and the normal name is an alias. */
b4e70030 18241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18242choke me
b4e70030
JB
18243#else
18244char (*f) () = $ac_func;
18245#endif
18246#ifdef __cplusplus
18247}
c906108c 18248#endif
97bf5e38 18249
bec39cab
AC
18250int
18251main ()
18252{
b4e70030 18253return f != $ac_func;
bec39cab
AC
18254 ;
18255 return 0;
18256}
18257_ACEOF
18258rm -f conftest.$ac_objext conftest$ac_exeext
18259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18260 (eval $ac_link) 2>conftest.er1
18261 ac_status=$?
18262 grep -v '^ *+' conftest.er1 >conftest.err
18263 rm -f conftest.er1
18264 cat conftest.err >&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } &&
b4e70030
JB
18267 { ac_try='test -z "$ac_c_werror_flag"
18268 || test ! -s conftest.err'
bec39cab
AC
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest$ac_exeext'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 eval "$as_ac_var=yes"
18281else
18282 echo "$as_me: failed program was:" >&5
18283sed 's/^/| /' conftest.$ac_ext >&5
18284
b4e70030 18285eval "$as_ac_var=no"
bec39cab
AC
18286fi
18287rm -f conftest.err conftest.$ac_objext \
18288 conftest$ac_exeext conftest.$ac_ext
18289fi
b4e70030
JB
18290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18292if test `eval echo '${'$as_ac_var'}'` = yes; then
18293 cat >>confdefs.h <<_ACEOF
18294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18295_ACEOF
c906108c 18296
c906108c 18297fi
97bf5e38 18298done
c906108c 18299
bec39cab 18300
a3828db0 18301for ac_func in pread64
97bf5e38 18302do
bec39cab 18303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18304echo "$as_me:$LINENO: checking for $ac_func" >&5
18305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18306if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308else
18309 cat >conftest.$ac_ext <<_ACEOF
18310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
18315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18317#define $ac_func innocuous_$ac_func
18318
97bf5e38 18319/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18320 which can conflict with char $ac_func (); below.
18321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18322 <limits.h> exists even on freestanding compilers. */
18323
18324#ifdef __STDC__
18325# include <limits.h>
18326#else
18327# include <assert.h>
18328#endif
c906108c 18329
bec39cab 18330#undef $ac_func
97bf5e38 18331
b4e70030 18332/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18333#ifdef __cplusplus
18334extern "C"
b4e70030 18335{
bec39cab 18336#endif
b4e70030
JB
18337/* We use char because int might match the return type of a gcc2
18338 builtin and then its argument prototype would still apply. */
bec39cab 18339char $ac_func ();
97bf5e38
MK
18340/* The GNU C library defines this for functions which it implements
18341 to always fail with ENOSYS. Some functions are actually named
18342 something starting with __ and the normal name is an alias. */
b4e70030 18343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18344choke me
b4e70030
JB
18345#else
18346char (*f) () = $ac_func;
18347#endif
18348#ifdef __cplusplus
18349}
c906108c 18350#endif
97bf5e38 18351
bec39cab
AC
18352int
18353main ()
18354{
b4e70030 18355return f != $ac_func;
bec39cab
AC
18356 ;
18357 return 0;
18358}
18359_ACEOF
18360rm -f conftest.$ac_objext conftest$ac_exeext
18361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18362 (eval $ac_link) 2>conftest.er1
18363 ac_status=$?
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
b4e70030
JB
18369 { ac_try='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
bec39cab
AC
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 eval "$as_ac_var=yes"
18383else
18384 echo "$as_me: failed program was:" >&5
18385sed 's/^/| /' conftest.$ac_ext >&5
18386
b4e70030 18387eval "$as_ac_var=no"
bec39cab
AC
18388fi
18389rm -f conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18391fi
b4e70030
JB
18392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18394if test `eval echo '${'$as_ac_var'}'` = yes; then
18395 cat >>confdefs.h <<_ACEOF
18396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18397_ACEOF
c906108c 18398
c906108c 18399fi
97bf5e38 18400done
c906108c 18401
bec39cab 18402
a3828db0 18403for ac_func in sbrk
b757528f 18404do
bec39cab 18405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18406echo "$as_me:$LINENO: checking for $ac_func" >&5
18407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18408if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18410else
18411 cat >conftest.$ac_ext <<_ACEOF
18412/* confdefs.h. */
18413_ACEOF
18414cat confdefs.h >>conftest.$ac_ext
18415cat >>conftest.$ac_ext <<_ACEOF
18416/* end confdefs.h. */
18417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18419#define $ac_func innocuous_$ac_func
18420
b757528f 18421/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18422 which can conflict with char $ac_func (); below.
18423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18424 <limits.h> exists even on freestanding compilers. */
18425
18426#ifdef __STDC__
18427# include <limits.h>
18428#else
18429# include <assert.h>
18430#endif
b757528f 18431
bec39cab 18432#undef $ac_func
b757528f 18433
b4e70030 18434/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18435#ifdef __cplusplus
18436extern "C"
b4e70030 18437{
bec39cab 18438#endif
b4e70030
JB
18439/* We use char because int might match the return type of a gcc2
18440 builtin and then its argument prototype would still apply. */
bec39cab 18441char $ac_func ();
b757528f
JJ
18442/* The GNU C library defines this for functions which it implements
18443 to always fail with ENOSYS. Some functions are actually named
18444 something starting with __ and the normal name is an alias. */
b4e70030 18445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 18446choke me
b4e70030
JB
18447#else
18448char (*f) () = $ac_func;
18449#endif
18450#ifdef __cplusplus
18451}
b757528f
JJ
18452#endif
18453
bec39cab
AC
18454int
18455main ()
18456{
b4e70030 18457return f != $ac_func;
bec39cab
AC
18458 ;
18459 return 0;
18460}
18461_ACEOF
18462rm -f conftest.$ac_objext conftest$ac_exeext
18463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18464 (eval $ac_link) 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
b4e70030
JB
18471 { ac_try='test -z "$ac_c_werror_flag"
18472 || test ! -s conftest.err'
bec39cab
AC
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest$ac_exeext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 eval "$as_ac_var=yes"
18485else
18486 echo "$as_me: failed program was:" >&5
18487sed 's/^/| /' conftest.$ac_ext >&5
18488
b4e70030 18489eval "$as_ac_var=no"
bec39cab
AC
18490fi
18491rm -f conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18493fi
b4e70030
JB
18494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18495echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18496if test `eval echo '${'$as_ac_var'}'` = yes; then
18497 cat >>confdefs.h <<_ACEOF
18498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18499_ACEOF
b757528f 18500
b757528f
JJ
18501fi
18502done
18503
bec39cab 18504
a3828db0
MK
18505
18506for ac_func in setpgid setpgrp
bcb3dc3d 18507do
bec39cab 18508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18509echo "$as_me:$LINENO: checking for $ac_func" >&5
18510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18511if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513else
18514 cat >conftest.$ac_ext <<_ACEOF
18515/* confdefs.h. */
18516_ACEOF
18517cat confdefs.h >>conftest.$ac_ext
18518cat >>conftest.$ac_ext <<_ACEOF
18519/* end confdefs.h. */
18520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522#define $ac_func innocuous_$ac_func
18523
bcb3dc3d 18524/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18525 which can conflict with char $ac_func (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18528
18529#ifdef __STDC__
18530# include <limits.h>
18531#else
18532# include <assert.h>
18533#endif
bcb3dc3d 18534
bec39cab 18535#undef $ac_func
bcb3dc3d 18536
b4e70030 18537/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18538#ifdef __cplusplus
18539extern "C"
b4e70030 18540{
bec39cab 18541#endif
b4e70030
JB
18542/* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
bec39cab 18544char $ac_func ();
bcb3dc3d
MK
18545/* The GNU C library defines this for functions which it implements
18546 to always fail with ENOSYS. Some functions are actually named
18547 something starting with __ and the normal name is an alias. */
b4e70030 18548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 18549choke me
b4e70030
JB
18550#else
18551char (*f) () = $ac_func;
18552#endif
18553#ifdef __cplusplus
18554}
bcb3dc3d
MK
18555#endif
18556
bec39cab
AC
18557int
18558main ()
18559{
b4e70030 18560return f != $ac_func;
bec39cab
AC
18561 ;
18562 return 0;
18563}
18564_ACEOF
18565rm -f conftest.$ac_objext conftest$ac_exeext
18566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567 (eval $ac_link) 2>conftest.er1
18568 ac_status=$?
18569 grep -v '^ *+' conftest.er1 >conftest.err
18570 rm -f conftest.er1
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
b4e70030
JB
18574 { ac_try='test -z "$ac_c_werror_flag"
18575 || test ! -s conftest.err'
bec39cab
AC
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest$ac_exeext'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 eval "$as_ac_var=yes"
18588else
18589 echo "$as_me: failed program was:" >&5
18590sed 's/^/| /' conftest.$ac_ext >&5
18591
b4e70030 18592eval "$as_ac_var=no"
bec39cab
AC
18593fi
18594rm -f conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
18596fi
b4e70030
JB
18597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18599if test `eval echo '${'$as_ac_var'}'` = yes; then
18600 cat >>confdefs.h <<_ACEOF
18601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18602_ACEOF
bcb3dc3d 18603
bcb3dc3d
MK
18604fi
18605done
18606
bec39cab 18607
a3828db0
MK
18608
18609
18610for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 18611do
bec39cab 18612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18613echo "$as_me:$LINENO: checking for $ac_func" >&5
18614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18615if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18617else
18618 cat >conftest.$ac_ext <<_ACEOF
18619/* confdefs.h. */
18620_ACEOF
18621cat confdefs.h >>conftest.$ac_ext
18622cat >>conftest.$ac_ext <<_ACEOF
18623/* end confdefs.h. */
18624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18626#define $ac_func innocuous_$ac_func
18627
8b9cf735 18628/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18629 which can conflict with char $ac_func (); below.
18630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18631 <limits.h> exists even on freestanding compilers. */
18632
18633#ifdef __STDC__
18634# include <limits.h>
18635#else
18636# include <assert.h>
18637#endif
8b9cf735 18638
bec39cab 18639#undef $ac_func
8b9cf735 18640
b4e70030 18641/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18642#ifdef __cplusplus
18643extern "C"
b4e70030 18644{
a3828db0 18645#endif
b4e70030
JB
18646/* We use char because int might match the return type of a gcc2
18647 builtin and then its argument prototype would still apply. */
a3828db0
MK
18648char $ac_func ();
18649/* The GNU C library defines this for functions which it implements
18650 to always fail with ENOSYS. Some functions are actually named
18651 something starting with __ and the normal name is an alias. */
b4e70030 18652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18653choke me
b4e70030
JB
18654#else
18655char (*f) () = $ac_func;
18656#endif
18657#ifdef __cplusplus
18658}
a3828db0
MK
18659#endif
18660
bec39cab
AC
18661int
18662main ()
18663{
b4e70030 18664return f != $ac_func;
bec39cab
AC
18665 ;
18666 return 0;
18667}
18668_ACEOF
a3828db0
MK
18669rm -f conftest.$ac_objext conftest$ac_exeext
18670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
b4e70030
JB
18678 { ac_try='test -z "$ac_c_werror_flag"
18679 || test ! -s conftest.err'
bec39cab
AC
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
a3828db0 18685 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
a3828db0 18691 eval "$as_ac_var=yes"
086ec9eb 18692else
bec39cab
AC
18693 echo "$as_me: failed program was:" >&5
18694sed 's/^/| /' conftest.$ac_ext >&5
18695
b4e70030 18696eval "$as_ac_var=no"
a3828db0
MK
18697fi
18698rm -f conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18700fi
b4e70030
JB
18701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18702echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18703if test `eval echo '${'$as_ac_var'}'` = yes; then
18704 cat >>confdefs.h <<_ACEOF
18705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18706_ACEOF
18707
086ec9eb 18708fi
a3828db0
MK
18709done
18710
18711
18712for ac_func in socketpair
18713do
18714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18715echo "$as_me:$LINENO: checking for $ac_func" >&5
18716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18717if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18719else
18720 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18721/* confdefs.h. */
18722_ACEOF
18723cat confdefs.h >>conftest.$ac_ext
18724cat >>conftest.$ac_ext <<_ACEOF
18725/* end confdefs.h. */
a3828db0
MK
18726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18728#define $ac_func innocuous_$ac_func
18729
18730/* System header to define __stub macros and hopefully few prototypes,
18731 which can conflict with char $ac_func (); below.
18732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733 <limits.h> exists even on freestanding compilers. */
18734
18735#ifdef __STDC__
18736# include <limits.h>
18737#else
18738# include <assert.h>
18739#endif
18740
18741#undef $ac_func
18742
b4e70030 18743/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18744#ifdef __cplusplus
18745extern "C"
b4e70030 18746{
a3828db0 18747#endif
b4e70030
JB
18748/* We use char because int might match the return type of a gcc2
18749 builtin and then its argument prototype would still apply. */
a3828db0
MK
18750char $ac_func ();
18751/* The GNU C library defines this for functions which it implements
18752 to always fail with ENOSYS. Some functions are actually named
18753 something starting with __ and the normal name is an alias. */
b4e70030 18754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18755choke me
b4e70030
JB
18756#else
18757char (*f) () = $ac_func;
18758#endif
18759#ifdef __cplusplus
18760}
a3828db0
MK
18761#endif
18762
bec39cab
AC
18763int
18764main ()
18765{
b4e70030 18766return f != $ac_func;
bec39cab
AC
18767 ;
18768 return 0;
18769}
18770_ACEOF
a3828db0
MK
18771rm -f conftest.$ac_objext conftest$ac_exeext
18772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18773 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18774 ac_status=$?
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
b4e70030
JB
18780 { ac_try='test -z "$ac_c_werror_flag"
18781 || test ! -s conftest.err'
bec39cab
AC
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
a3828db0 18787 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
a3828db0 18793 eval "$as_ac_var=yes"
086ec9eb 18794else
bec39cab
AC
18795 echo "$as_me: failed program was:" >&5
18796sed 's/^/| /' conftest.$ac_ext >&5
18797
b4e70030 18798eval "$as_ac_var=no"
086ec9eb 18799fi
a3828db0
MK
18800rm -f conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
086ec9eb 18802fi
b4e70030
JB
18803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18804echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18805if test `eval echo '${'$as_ac_var'}'` = yes; then
18806 cat >>confdefs.h <<_ACEOF
18807#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18808_ACEOF
086ec9eb
MK
18809
18810fi
a3828db0 18811done
086ec9eb 18812
a3828db0
MK
18813
18814for ac_func in syscall
18815do
18816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18817echo "$as_me:$LINENO: checking for $ac_func" >&5
18818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18819if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 18820 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
18821else
18822 cat >conftest.$ac_ext <<_ACEOF
18823/* confdefs.h. */
18824_ACEOF
18825cat confdefs.h >>conftest.$ac_ext
18826cat >>conftest.$ac_ext <<_ACEOF
18827/* end confdefs.h. */
a3828db0
MK
18828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18830#define $ac_func innocuous_$ac_func
18831
18832/* System header to define __stub macros and hopefully few prototypes,
18833 which can conflict with char $ac_func (); below.
18834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18835 <limits.h> exists even on freestanding compilers. */
18836
18837#ifdef __STDC__
18838# include <limits.h>
18839#else
18840# include <assert.h>
18841#endif
18842
18843#undef $ac_func
18844
b4e70030 18845/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18846#ifdef __cplusplus
18847extern "C"
b4e70030 18848{
a3828db0 18849#endif
b4e70030
JB
18850/* We use char because int might match the return type of a gcc2
18851 builtin and then its argument prototype would still apply. */
a3828db0
MK
18852char $ac_func ();
18853/* The GNU C library defines this for functions which it implements
18854 to always fail with ENOSYS. Some functions are actually named
18855 something starting with __ and the normal name is an alias. */
b4e70030 18856#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18857choke me
b4e70030
JB
18858#else
18859char (*f) () = $ac_func;
18860#endif
18861#ifdef __cplusplus
18862}
c906108c 18863#endif
97bf5e38 18864
bec39cab
AC
18865int
18866main ()
97bf5e38 18867{
b4e70030 18868return f != $ac_func;
bec39cab
AC
18869 ;
18870 return 0;
97bf5e38 18871}
bec39cab 18872_ACEOF
a3828db0 18873rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 18874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 18875 (eval $ac_link) 2>conftest.er1
bec39cab 18876 ac_status=$?
a3828db0
MK
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
bec39cab 18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18881 (exit $ac_status); } &&
b4e70030
JB
18882 { ac_try='test -z "$ac_c_werror_flag"
18883 || test ! -s conftest.err'
a3828db0
MK
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; } &&
18889 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; }; then
a3828db0 18895 eval "$as_ac_var=yes"
c906108c 18896else
a3828db0 18897 echo "$as_me: failed program was:" >&5
bec39cab
AC
18898sed 's/^/| /' conftest.$ac_ext >&5
18899
b4e70030 18900eval "$as_ac_var=no"
97bf5e38 18901fi
a3828db0
MK
18902rm -f conftest.err conftest.$ac_objext \
18903 conftest$ac_exeext conftest.$ac_ext
18904fi
b4e70030
JB
18905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18906echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18907if test `eval echo '${'$as_ac_var'}'` = yes; then
18908 cat >>confdefs.h <<_ACEOF
18909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18910_ACEOF
c906108c
SS
18911
18912fi
a3828db0 18913done
c906108c 18914
a3828db0
MK
18915
18916for ac_func in ttrace
18917do
18918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18919echo "$as_me:$LINENO: checking for $ac_func" >&5
18920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18921if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 18922 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 18923else
bec39cab
AC
18924 cat >conftest.$ac_ext <<_ACEOF
18925/* confdefs.h. */
18926_ACEOF
18927cat confdefs.h >>conftest.$ac_ext
18928cat >>conftest.$ac_ext <<_ACEOF
18929/* end confdefs.h. */
a3828db0
MK
18930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18932#define $ac_func innocuous_$ac_func
b83266a0 18933
a3828db0
MK
18934/* System header to define __stub macros and hopefully few prototypes,
18935 which can conflict with char $ac_func (); below.
18936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18937 <limits.h> exists even on freestanding compilers. */
18938
18939#ifdef __STDC__
18940# include <limits.h>
18941#else
18942# include <assert.h>
18943#endif
18944
18945#undef $ac_func
18946
b4e70030 18947/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18948#ifdef __cplusplus
18949extern "C"
b4e70030 18950{
a3828db0 18951#endif
b4e70030
JB
18952/* We use char because int might match the return type of a gcc2
18953 builtin and then its argument prototype would still apply. */
a3828db0
MK
18954char $ac_func ();
18955/* The GNU C library defines this for functions which it implements
18956 to always fail with ENOSYS. Some functions are actually named
18957 something starting with __ and the normal name is an alias. */
b4e70030 18958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18959choke me
b4e70030
JB
18960#else
18961char (*f) () = $ac_func;
18962#endif
18963#ifdef __cplusplus
18964}
a3828db0 18965#endif
97bf5e38 18966
bec39cab
AC
18967int
18968main ()
18969{
b4e70030 18970return f != $ac_func;
bec39cab
AC
18971 ;
18972 return 0;
18973}
18974_ACEOF
a3828db0
MK
18975rm -f conftest.$ac_objext conftest$ac_exeext
18976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18977 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
b4e70030
JB
18984 { ac_try='test -z "$ac_c_werror_flag"
18985 || test ! -s conftest.err'
bec39cab
AC
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
a3828db0 18991 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
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); }; }; then
a3828db0 18997 eval "$as_ac_var=yes"
b83266a0 18998else
bec39cab
AC
18999 echo "$as_me: failed program was:" >&5
19000sed 's/^/| /' conftest.$ac_ext >&5
19001
b4e70030 19002eval "$as_ac_var=no"
b83266a0 19003fi
a3828db0
MK
19004rm -f conftest.err conftest.$ac_objext \
19005 conftest$ac_exeext conftest.$ac_ext
b83266a0 19006fi
b4e70030
JB
19007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19008echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19009if test `eval echo '${'$as_ac_var'}'` = yes; then
19010 cat >>confdefs.h <<_ACEOF
19011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19012_ACEOF
b83266a0 19013
97bf5e38 19014fi
a3828db0 19015done
b83266a0 19016
a3828db0
MK
19017
19018for ac_func in wborder
19019do
19020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19021echo "$as_me:$LINENO: checking for $ac_func" >&5
19022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19023if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19025else
19026 cat >conftest.$ac_ext <<_ACEOF
19027/* confdefs.h. */
19028_ACEOF
19029cat confdefs.h >>conftest.$ac_ext
19030cat >>conftest.$ac_ext <<_ACEOF
19031/* end confdefs.h. */
a3828db0
MK
19032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19034#define $ac_func innocuous_$ac_func
a4db0f07 19035
a3828db0
MK
19036/* System header to define __stub macros and hopefully few prototypes,
19037 which can conflict with char $ac_func (); below.
19038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19039 <limits.h> exists even on freestanding compilers. */
19040
19041#ifdef __STDC__
19042# include <limits.h>
19043#else
19044# include <assert.h>
19045#endif
19046
19047#undef $ac_func
19048
b4e70030 19049/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19050#ifdef __cplusplus
19051extern "C"
b4e70030 19052{
a3828db0 19053#endif
b4e70030
JB
19054/* We use char because int might match the return type of a gcc2
19055 builtin and then its argument prototype would still apply. */
a3828db0
MK
19056char $ac_func ();
19057/* The GNU C library defines this for functions which it implements
19058 to always fail with ENOSYS. Some functions are actually named
19059 something starting with __ and the normal name is an alias. */
b4e70030 19060#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19061choke me
b4e70030
JB
19062#else
19063char (*f) () = $ac_func;
19064#endif
19065#ifdef __cplusplus
19066}
a3828db0 19067#endif
97bf5e38 19068
bec39cab
AC
19069int
19070main ()
19071{
b4e70030 19072return f != $ac_func;
bec39cab
AC
19073 ;
19074 return 0;
19075}
19076_ACEOF
a3828db0
MK
19077rm -f conftest.$ac_objext conftest$ac_exeext
19078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19079 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19080 ac_status=$?
19081 grep -v '^ *+' conftest.er1 >conftest.err
19082 rm -f conftest.er1
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
b4e70030
JB
19086 { ac_try='test -z "$ac_c_werror_flag"
19087 || test ! -s conftest.err'
bec39cab
AC
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
a3828db0 19093 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
a3828db0 19099 eval "$as_ac_var=yes"
a4db0f07 19100else
bec39cab
AC
19101 echo "$as_me: failed program was:" >&5
19102sed 's/^/| /' conftest.$ac_ext >&5
19103
b4e70030 19104eval "$as_ac_var=no"
a4db0f07 19105fi
a3828db0
MK
19106rm -f conftest.err conftest.$ac_objext \
19107 conftest$ac_exeext conftest.$ac_ext
a4db0f07 19108fi
b4e70030
JB
19109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19110echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19111if test `eval echo '${'$as_ac_var'}'` = yes; then
19112 cat >>confdefs.h <<_ACEOF
19113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19114_ACEOF
a4db0f07
RH
19115
19116fi
a3828db0 19117done
c906108c 19118
06825bd1 19119
a3828db0
MK
19120# Check the return and argument types of ptrace. No canned test for
19121# this, so roll our own.
19122gdb_ptrace_headers='
19123#if HAVE_SYS_TYPES_H
19124# include <sys/types.h>
19125#endif
19126#if HAVE_SYS_PTRACE_H
19127# include <sys/ptrace.h>
19128#endif
19129#if HAVE_UNISTD_H
19130# include <unistd.h>
19131#endif
19132'
19133# There is no point in checking if we don't have a prototype.
b4e70030
JB
19134echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
19135echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 19136if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138else
19139 cat >conftest.$ac_ext <<_ACEOF
19140/* confdefs.h. */
19141_ACEOF
19142cat confdefs.h >>conftest.$ac_ext
19143cat >>conftest.$ac_ext <<_ACEOF
19144/* end confdefs.h. */
a3828db0
MK
19145$gdb_ptrace_headers
19146
bec39cab
AC
19147int
19148main ()
19149{
a3828db0
MK
19150#ifndef ptrace
19151 char *p = (char *) ptrace;
06825bd1 19152#endif
a3828db0 19153
bec39cab
AC
19154 ;
19155 return 0;
19156}
19157_ACEOF
19158rm -f conftest.$ac_objext
19159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19160 (eval $ac_compile) 2>conftest.er1
19161 ac_status=$?
19162 grep -v '^ *+' conftest.er1 >conftest.err
19163 rm -f conftest.er1
19164 cat conftest.err >&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } &&
b4e70030
JB
19167 { ac_try='test -z "$ac_c_werror_flag"
19168 || test ! -s conftest.err'
bec39cab
AC
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; } &&
19174 { ac_try='test -s conftest.$ac_objext'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; }; then
a3828db0 19180 ac_cv_have_decl_ptrace=yes
06825bd1 19181else
bec39cab
AC
19182 echo "$as_me: failed program was:" >&5
19183sed 's/^/| /' conftest.$ac_ext >&5
19184
b4e70030 19185ac_cv_have_decl_ptrace=no
06825bd1 19186fi
bec39cab 19187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 19188fi
b4e70030
JB
19189echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
19190echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 19191if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 19192
a3828db0
MK
19193cat >>confdefs.h <<_ACEOF
19194#define HAVE_DECL_PTRACE 1
19195_ACEOF
bec39cab 19196
bec39cab 19197
a3828db0
MK
19198else
19199 cat >>confdefs.h <<_ACEOF
19200#define HAVE_DECL_PTRACE 0
bec39cab 19201_ACEOF
06825bd1 19202
a3828db0
MK
19203
19204 : ${gdb_cv_func_ptrace_ret='int'}
19205 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19206
06825bd1
MK
19207fi
19208
a3828db0
MK
19209
19210# Check return type.
b4e70030
JB
19211echo "$as_me:$LINENO: checking return type of ptrace" >&5
19212echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 19213if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19215else
19216 cat >conftest.$ac_ext <<_ACEOF
19217/* confdefs.h. */
19218_ACEOF
19219cat confdefs.h >>conftest.$ac_ext
19220cat >>conftest.$ac_ext <<_ACEOF
19221/* end confdefs.h. */
a3828db0 19222$gdb_ptrace_headers
bec39cab
AC
19223int
19224main ()
19225{
a3828db0 19226extern int ptrace ();
bec39cab
AC
19227 ;
19228 return 0;
19229}
19230_ACEOF
19231rm -f conftest.$ac_objext
19232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19233 (eval $ac_compile) 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
b4e70030
JB
19240 { ac_try='test -z "$ac_c_werror_flag"
19241 || test ! -s conftest.err'
bec39cab
AC
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest.$ac_objext'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
a3828db0 19253 gdb_cv_func_ptrace_ret='int'
70f9f479 19254else
bec39cab
AC
19255 echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
b4e70030 19258gdb_cv_func_ptrace_ret='long'
70f9f479 19259fi
bec39cab 19260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 19261fi
b4e70030
JB
19262echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
19263echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 19264
a3828db0
MK
19265cat >>confdefs.h <<_ACEOF
19266#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 19267_ACEOF
70f9f479 19268
a3828db0 19269# Check argument types.
b4e70030
JB
19270echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
19271echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 19272if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19274else
a3828db0
MK
19275
19276for gdb_arg1 in 'int' 'long'; do
19277 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 19278 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
19279 for gdb_arg4 in 'int' 'long'; do
19280 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
a3828db0 19286$gdb_ptrace_headers
bec39cab
AC
19287int
19288main ()
19289{
a3828db0
MK
19290
19291extern $gdb_cv_func_ptrace_ret
19292 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
19293
bec39cab
AC
19294 ;
19295 return 0;
19296}
19297_ACEOF
19298rm -f conftest.$ac_objext
19299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19300 (eval $ac_compile) 2>conftest.er1
19301 ac_status=$?
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
b4e70030
JB
19307 { ac_try='test -z "$ac_c_werror_flag"
19308 || test ! -s conftest.err'
bec39cab
AC
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; } &&
19314 { ac_try='test -s conftest.$ac_objext'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
a3828db0
MK
19320 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
19321 break 4;
5c7f2947 19322else
bec39cab
AC
19323 echo "$as_me: failed program was:" >&5
19324sed 's/^/| /' conftest.$ac_ext >&5
19325
5c7f2947 19326fi
bec39cab 19327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19328 for gdb_arg5 in 'int *' 'int' 'long'; do
19329 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19330/* confdefs.h. */
19331_ACEOF
19332cat confdefs.h >>conftest.$ac_ext
19333cat >>conftest.$ac_ext <<_ACEOF
19334/* end confdefs.h. */
a3828db0 19335$gdb_ptrace_headers
bec39cab
AC
19336int
19337main ()
19338{
a3828db0
MK
19339
19340extern $gdb_cv_func_ptrace_ret
19341 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
19342
bec39cab
AC
19343 ;
19344 return 0;
19345}
19346_ACEOF
19347rm -f conftest.$ac_objext
19348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19349 (eval $ac_compile) 2>conftest.er1
19350 ac_status=$?
19351 grep -v '^ *+' conftest.er1 >conftest.err
19352 rm -f conftest.er1
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
b4e70030
JB
19356 { ac_try='test -z "$ac_c_werror_flag"
19357 || test ! -s conftest.err'
bec39cab
AC
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest.$ac_objext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
a3828db0
MK
19369
19370gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
19371 break 5;
78434e59 19372else
bec39cab
AC
19373 echo "$as_me: failed program was:" >&5
19374sed 's/^/| /' conftest.$ac_ext >&5
19375
78434e59 19376fi
bec39cab 19377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19378 done
19379 done
19380 done
19381 done
19382done
19383# Provide a safe default value.
19384: ${gdb_cv_func_ptrace_args='int,int,long,long'}
19385
78434e59 19386fi
b4e70030
JB
19387echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
19388echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
19389ac_save_IFS=$IFS; IFS=','
19390set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
19391IFS=$ac_save_IFS
19392shift
bec39cab 19393
a3828db0
MK
19394cat >>confdefs.h <<_ACEOF
19395#define PTRACE_TYPE_ARG3 $3
19396_ACEOF
19397
19398if test -n "$5"; then
19399
19400cat >>confdefs.h <<_ACEOF
19401#define PTRACE_TYPE_ARG5 $5
bec39cab 19402_ACEOF
78434e59
MK
19403
19404fi
19405
a3828db0 19406if test "$cross_compiling" = no; then
b4e70030
JB
19407 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19408echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 19409if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 19410 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
19411else
19412 if test "$cross_compiling" = yes; then
19413 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19414echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19415 { (exit 1); exit 1; }; }
bec39cab
AC
19416else
19417 cat >conftest.$ac_ext <<_ACEOF
19418/* confdefs.h. */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h. */
b4e70030
JB
19423#if HAVE_UNISTD_H
19424# include <unistd.h>
19425#endif
19426
bec39cab
AC
19427int
19428main ()
19429{
a3828db0
MK
19430/* If this system has a BSD-style setpgrp which takes arguments,
19431 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19432 exit successfully. */
b4e70030 19433 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
19434 ;
19435 return 0;
19436}
19437_ACEOF
a3828db0
MK
19438rm -f conftest$ac_exeext
19439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19440 (eval $ac_link) 2>&5
bec39cab
AC
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
a3828db0 19449 ac_cv_func_setpgrp_void=no
c906108c 19450else
a3828db0
MK
19451 echo "$as_me: program exited with status $ac_status" >&5
19452echo "$as_me: failed program was:" >&5
bec39cab
AC
19453sed 's/^/| /' conftest.$ac_ext >&5
19454
a3828db0
MK
19455( exit $ac_status )
19456ac_cv_func_setpgrp_void=yes
c906108c 19457fi
b4e70030 19458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19459fi
a3828db0 19460fi
b4e70030
JB
19461echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19462echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
19463if test $ac_cv_func_setpgrp_void = yes; then
19464
19465cat >>confdefs.h <<\_ACEOF
19466#define SETPGRP_VOID 1
bec39cab 19467_ACEOF
97bf5e38
MK
19468
19469fi
a3828db0
MK
19470
19471else
b4e70030
JB
19472 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19473echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 19474if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 19475 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19476else
bec39cab
AC
19477 cat >conftest.$ac_ext <<_ACEOF
19478/* confdefs.h. */
19479_ACEOF
19480cat confdefs.h >>conftest.$ac_ext
19481cat >>conftest.$ac_ext <<_ACEOF
19482/* end confdefs.h. */
a3828db0
MK
19483
19484#include <unistd.h>
19485
bec39cab
AC
19486int
19487main ()
19488{
a3828db0
MK
19489
19490 if (setpgrp(1,1) == -1)
19491 exit (0);
19492 else
19493 exit (1);
19494
bec39cab
AC
19495 ;
19496 return 0;
19497}
19498_ACEOF
19499rm -f conftest.$ac_objext
19500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19501 (eval $ac_compile) 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
b4e70030
JB
19508 { ac_try='test -z "$ac_c_werror_flag"
19509 || test ! -s conftest.err'
bec39cab
AC
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest.$ac_objext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
a3828db0 19521 ac_cv_func_setpgrp_void=no
c906108c 19522else
bec39cab
AC
19523 echo "$as_me: failed program was:" >&5
19524sed 's/^/| /' conftest.$ac_ext >&5
19525
b4e70030 19526ac_cv_func_setpgrp_void=yes
c906108c 19527fi
bec39cab 19528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19529fi
b4e70030
JB
19530echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19531echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 19532if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 19533 cat >>confdefs.h <<\_ACEOF
a3828db0 19534#define SETPGRP_VOID 1
bec39cab 19535_ACEOF
c3f6f71d 19536
a3828db0 19537fi
c906108c
SS
19538fi
19539
a3828db0
MK
19540# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
19541# since sigsetjmp might only be defined as a macro.
b4e70030
JB
19542echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19543echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 19544if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546else
19547 cat >conftest.$ac_ext <<_ACEOF
19548/* confdefs.h. */
19549_ACEOF
19550cat confdefs.h >>conftest.$ac_ext
19551cat >>conftest.$ac_ext <<_ACEOF
19552/* end confdefs.h. */
a3828db0
MK
19553
19554#include <setjmp.h>
19555
bec39cab
AC
19556int
19557main ()
19558{
a3828db0 19559sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
19560 ;
19561 return 0;
19562}
19563_ACEOF
19564rm -f conftest.$ac_objext
19565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19566 (eval $ac_compile) 2>conftest.er1
19567 ac_status=$?
19568 grep -v '^ *+' conftest.er1 >conftest.err
19569 rm -f conftest.er1
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } &&
b4e70030
JB
19573 { ac_try='test -z "$ac_c_werror_flag"
19574 || test ! -s conftest.err'
bec39cab
AC
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try='test -s conftest.$ac_objext'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
a3828db0 19586 gdb_cv_func_sigsetjmp=yes
c906108c 19587else
bec39cab
AC
19588 echo "$as_me: failed program was:" >&5
19589sed 's/^/| /' conftest.$ac_ext >&5
19590
b4e70030 19591gdb_cv_func_sigsetjmp=no
c906108c 19592fi
bec39cab 19593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19594fi
b4e70030
JB
19595echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
19596echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 19597if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 19598
a3828db0
MK
19599cat >>confdefs.h <<\_ACEOF
19600#define HAVE_SIGSETJMP 1
bec39cab 19601_ACEOF
c906108c 19602
97bf5e38 19603fi
c906108c 19604
a3828db0
MK
19605# Assume we'll default to using the included libiberty regex.
19606gdb_use_included_regex=yes
19607
19608# However, if the system regex is GNU regex, then default to *not*
19609# using the included regex.
b4e70030
JB
19610echo "$as_me:$LINENO: checking for GNU regex" >&5
19611echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 19612if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614else
19615 cat >conftest.$ac_ext <<_ACEOF
19616/* confdefs.h. */
19617_ACEOF
19618cat confdefs.h >>conftest.$ac_ext
19619cat >>conftest.$ac_ext <<_ACEOF
19620/* end confdefs.h. */
a3828db0 19621#include <gnu-versions.h>
bec39cab
AC
19622int
19623main ()
19624{
a3828db0
MK
19625#define REGEX_INTERFACE_VERSION 1
19626#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
19627# error "Version mismatch"
19628#endif
bec39cab
AC
19629 ;
19630 return 0;
19631}
19632_ACEOF
19633rm -f conftest.$ac_objext
19634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635 (eval $ac_compile) 2>conftest.er1
19636 ac_status=$?
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
b4e70030
JB
19642 { ac_try='test -z "$ac_c_werror_flag"
19643 || test ! -s conftest.err'
bec39cab
AC
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; } &&
19649 { ac_try='test -s conftest.$ac_objext'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
a3828db0 19655 gdb_cv_have_gnu_regex=yes
c906108c 19656else
bec39cab
AC
19657 echo "$as_me: failed program was:" >&5
19658sed 's/^/| /' conftest.$ac_ext >&5
19659
b4e70030 19660gdb_cv_have_gnu_regex=no
c906108c 19661fi
bec39cab 19662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19663fi
b4e70030
JB
19664echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
19665echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
19666if test $gdb_cv_have_gnu_regex = yes; then
19667 gdb_use_included_regex=no
19668fi
c906108c 19669
a3828db0 19670
b4e70030 19671# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 19672if test "${with_included_regex+set}" = set; then
b4e70030
JB
19673 withval="$with_included_regex"
19674 gdb_with_regex=$withval
a3828db0
MK
19675else
19676 gdb_with_regex=$gdb_use_included_regex
b4e70030 19677fi;
a3828db0
MK
19678if test "$gdb_with_regex" = yes; then
19679
19680cat >>confdefs.h <<\_ACEOF
19681#define USE_INCLUDED_REGEX 1
bec39cab 19682_ACEOF
c906108c 19683
97bf5e38 19684fi
c906108c 19685
5c45e068 19686# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
19687echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
19688echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 19689if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19691else
19692 cat >conftest.$ac_ext <<_ACEOF
19693/* confdefs.h. */
19694_ACEOF
19695cat confdefs.h >>conftest.$ac_ext
19696cat >>conftest.$ac_ext <<_ACEOF
19697/* end confdefs.h. */
a3828db0
MK
19698#include <sys/param.h>
19699#include <sys/proc.h>
5c45e068
MK
19700
19701
bec39cab
AC
19702int
19703main ()
19704{
5c45e068
MK
19705static struct thread ac_aggr;
19706if (ac_aggr.td_pcb)
19707return 0;
bec39cab
AC
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext
19713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19714 (eval $ac_compile) 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
b4e70030
JB
19721 { ac_try='test -z "$ac_c_werror_flag"
19722 || test ! -s conftest.err'
bec39cab
AC
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest.$ac_objext'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
5c45e068 19734 ac_cv_member_struct_thread_td_pcb=yes
c906108c 19735else
bec39cab
AC
19736 echo "$as_me: failed program was:" >&5
19737sed 's/^/| /' conftest.$ac_ext >&5
19738
b4e70030 19739cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19740/* confdefs.h. */
19741_ACEOF
19742cat confdefs.h >>conftest.$ac_ext
19743cat >>conftest.$ac_ext <<_ACEOF
19744/* end confdefs.h. */
19745#include <sys/param.h>
19746#include <sys/proc.h>
19747
19748
19749int
19750main ()
19751{
19752static struct thread ac_aggr;
19753if (sizeof ac_aggr.td_pcb)
19754return 0;
19755 ;
19756 return 0;
19757}
19758_ACEOF
19759rm -f conftest.$ac_objext
19760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761 (eval $ac_compile) 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
b4e70030
JB
19768 { ac_try='test -z "$ac_c_werror_flag"
19769 || test ! -s conftest.err'
5c45e068
MK
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_cv_member_struct_thread_td_pcb=yes
19782else
19783 echo "$as_me: failed program was:" >&5
19784sed 's/^/| /' conftest.$ac_ext >&5
19785
b4e70030 19786ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
19787fi
19788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19789fi
bec39cab 19790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19791fi
b4e70030
JB
19792echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
19793echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 19794if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 19795
5c45e068 19796cat >>confdefs.h <<_ACEOF
a3828db0 19797#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 19798_ACEOF
c906108c 19799
5c45e068 19800
97bf5e38 19801fi
c906108c 19802
5c45e068 19803
a3828db0 19804# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
19805echo "$as_me:$LINENO: checking for struct lwp" >&5
19806echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 19807if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19809else
19810 cat >conftest.$ac_ext <<_ACEOF
19811/* confdefs.h. */
19812_ACEOF
19813cat confdefs.h >>conftest.$ac_ext
19814cat >>conftest.$ac_ext <<_ACEOF
19815/* end confdefs.h. */
a3828db0
MK
19816#include <sys/param.h>
19817#include <sys/lwp.h>
bec39cab
AC
19818int
19819main ()
19820{
a3828db0 19821struct lwp l;
bec39cab
AC
19822 ;
19823 return 0;
19824}
19825_ACEOF
19826rm -f conftest.$ac_objext
19827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19828 (eval $ac_compile) 2>conftest.er1
19829 ac_status=$?
19830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
b4e70030
JB
19835 { ac_try='test -z "$ac_c_werror_flag"
19836 || test ! -s conftest.err'
bec39cab
AC
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
a3828db0 19848 gdb_cv_struct_lwp=yes
c906108c 19849else
bec39cab
AC
19850 echo "$as_me: failed program was:" >&5
19851sed 's/^/| /' conftest.$ac_ext >&5
19852
b4e70030 19853gdb_cv_struct_lwp=no
c906108c 19854fi
bec39cab 19855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19856fi
b4e70030
JB
19857echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
19858echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 19859if test $gdb_cv_struct_lwp = yes; then
c906108c 19860
a3828db0
MK
19861cat >>confdefs.h <<\_ACEOF
19862#define HAVE_STRUCT_LWP 1
bec39cab 19863_ACEOF
c906108c 19864
97bf5e38 19865fi
c906108c 19866
a3828db0 19867# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
19868echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
19869echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 19870if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19872else
19873 cat >conftest.$ac_ext <<_ACEOF
19874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
a3828db0
MK
19879#include <sys/types.h>
19880#include <machine/reg.h>
bec39cab
AC
19881int
19882main ()
19883{
a3828db0 19884struct reg r;
bec39cab
AC
19885 ;
19886 return 0;
19887}
19888_ACEOF
19889rm -f conftest.$ac_objext
19890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891 (eval $ac_compile) 2>conftest.er1
19892 ac_status=$?
19893 grep -v '^ *+' conftest.er1 >conftest.err
19894 rm -f conftest.er1
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } &&
b4e70030
JB
19898 { ac_try='test -z "$ac_c_werror_flag"
19899 || test ! -s conftest.err'
bec39cab
AC
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; } &&
19905 { ac_try='test -s conftest.$ac_objext'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
a3828db0 19911 gdb_cv_struct_reg=yes
27ca5dad 19912else
bec39cab
AC
19913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
b4e70030 19916gdb_cv_struct_reg=no
27ca5dad 19917fi
bec39cab 19918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 19919fi
b4e70030
JB
19920echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
19921echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 19922if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
19923
19924cat >>confdefs.h <<\_ACEOF
a3828db0 19925#define HAVE_STRUCT_REG 1
bec39cab 19926_ACEOF
27ca5dad
MC
19927
19928fi
97bf5e38 19929
a3828db0
MK
19930# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
19931# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
19932echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
19933echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 19934if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 19935 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19936else
bec39cab
AC
19937 cat >conftest.$ac_ext <<_ACEOF
19938/* confdefs.h. */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
19942/* end confdefs.h. */
a3828db0 19943#include <machine/reg.h>
5c45e068
MK
19944
19945int
19946main ()
19947{
19948static struct reg ac_aggr;
19949if (ac_aggr.r_fs)
19950return 0;
19951 ;
19952 return 0;
19953}
19954_ACEOF
19955rm -f conftest.$ac_objext
19956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19957 (eval $ac_compile) 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
b4e70030
JB
19964 { ac_try='test -z "$ac_c_werror_flag"
19965 || test ! -s conftest.err'
5c45e068
MK
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_cv_member_struct_reg_r_fs=yes
19978else
19979 echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981
b4e70030 19982cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19983/* confdefs.h. */
19984_ACEOF
19985cat confdefs.h >>conftest.$ac_ext
19986cat >>conftest.$ac_ext <<_ACEOF
19987/* end confdefs.h. */
19988#include <machine/reg.h>
19989
bec39cab
AC
19990int
19991main ()
19992{
5c45e068
MK
19993static struct reg ac_aggr;
19994if (sizeof ac_aggr.r_fs)
19995return 0;
bec39cab
AC
19996 ;
19997 return 0;
19998}
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002 (eval $ac_compile) 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } &&
b4e70030
JB
20009 { ac_try='test -z "$ac_c_werror_flag"
20010 || test ! -s conftest.err'
bec39cab
AC
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; } &&
20016 { ac_try='test -s conftest.$ac_objext'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; }; then
5c45e068 20022 ac_cv_member_struct_reg_r_fs=yes
3862412b 20023else
bec39cab
AC
20024 echo "$as_me: failed program was:" >&5
20025sed 's/^/| /' conftest.$ac_ext >&5
20026
b4e70030 20027ac_cv_member_struct_reg_r_fs=no
3862412b 20028fi
bec39cab 20029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 20030fi
5c45e068
MK
20031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20032fi
b4e70030
JB
20033echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20034echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
20035if test $ac_cv_member_struct_reg_r_fs = yes; then
20036
20037cat >>confdefs.h <<_ACEOF
a3828db0 20038#define HAVE_STRUCT_REG_R_FS 1
bec39cab 20039_ACEOF
3862412b 20040
5c45e068 20041
97bf5e38 20042fi
b4e70030
JB
20043echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20044echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 20045if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 20046 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20047else
bec39cab
AC
20048 cat >conftest.$ac_ext <<_ACEOF
20049/* confdefs.h. */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h. */
a3828db0 20054#include <machine/reg.h>
5c45e068 20055
bec39cab
AC
20056int
20057main ()
20058{
5c45e068
MK
20059static struct reg ac_aggr;
20060if (ac_aggr.r_gs)
20061return 0;
bec39cab
AC
20062 ;
20063 return 0;
20064}
20065_ACEOF
20066rm -f conftest.$ac_objext
20067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } &&
b4e70030
JB
20075 { ac_try='test -z "$ac_c_werror_flag"
20076 || test ! -s conftest.err'
bec39cab
AC
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
5c45e068 20088 ac_cv_member_struct_reg_r_gs=yes
3862412b 20089else
bec39cab
AC
20090 echo "$as_me: failed program was:" >&5
20091sed 's/^/| /' conftest.$ac_ext >&5
20092
b4e70030 20093cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20094/* confdefs.h. */
20095_ACEOF
20096cat confdefs.h >>conftest.$ac_ext
20097cat >>conftest.$ac_ext <<_ACEOF
20098/* end confdefs.h. */
20099#include <machine/reg.h>
20100
20101int
20102main ()
20103{
20104static struct reg ac_aggr;
20105if (sizeof ac_aggr.r_gs)
20106return 0;
20107 ;
20108 return 0;
20109}
20110_ACEOF
20111rm -f conftest.$ac_objext
20112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20113 (eval $ac_compile) 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
b4e70030
JB
20120 { ac_try='test -z "$ac_c_werror_flag"
20121 || test ! -s conftest.err'
5c45e068
MK
20122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; } &&
20127 { ac_try='test -s conftest.$ac_objext'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; }; then
20133 ac_cv_member_struct_reg_r_gs=yes
20134else
20135 echo "$as_me: failed program was:" >&5
20136sed 's/^/| /' conftest.$ac_ext >&5
20137
b4e70030 20138ac_cv_member_struct_reg_r_gs=no
3862412b 20139fi
bec39cab 20140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 20141fi
5c45e068
MK
20142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20143fi
b4e70030
JB
20144echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
20145echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
20146if test $ac_cv_member_struct_reg_r_gs = yes; then
20147
20148cat >>confdefs.h <<_ACEOF
a3828db0 20149#define HAVE_STRUCT_REG_R_GS 1
bec39cab 20150_ACEOF
3862412b 20151
5c45e068 20152
97bf5e38 20153fi
3862412b 20154
5c45e068 20155
a3828db0 20156# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
20157echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
20158echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 20159if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 20160 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 20161else
bec39cab
AC
20162 cat >conftest.$ac_ext <<_ACEOF
20163/* confdefs.h. */
20164_ACEOF
20165cat confdefs.h >>conftest.$ac_ext
20166cat >>conftest.$ac_ext <<_ACEOF
20167/* end confdefs.h. */
a3828db0 20168#include <sys/ptrace.h>
bec39cab
AC
20169int
20170main ()
20171{
a3828db0 20172PTRACE_GETREGS;
bec39cab
AC
20173 ;
20174 return 0;
20175}
20176_ACEOF
20177rm -f conftest.$ac_objext
20178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20179 (eval $ac_compile) 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } &&
b4e70030
JB
20186 { ac_try='test -z "$ac_c_werror_flag"
20187 || test ! -s conftest.err'
bec39cab
AC
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; } &&
20193 { ac_try='test -s conftest.$ac_objext'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
a3828db0 20199 gdb_cv_have_ptrace_getregs=yes
451928c5 20200else
bec39cab
AC
20201 echo "$as_me: failed program was:" >&5
20202sed 's/^/| /' conftest.$ac_ext >&5
20203
b4e70030 20204gdb_cv_have_ptrace_getregs=no
451928c5 20205fi
bec39cab 20206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
20207fi
20208
b4e70030
JB
20209echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
20210echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 20211if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
20212
20213cat >>confdefs.h <<\_ACEOF
a3828db0 20214#define HAVE_PTRACE_GETREGS 1
bec39cab 20215_ACEOF
451928c5 20216
97bf5e38 20217fi
451928c5 20218
a3828db0 20219# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
20220echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
20221echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 20222if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 20223 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 20224else
bec39cab
AC
20225 cat >conftest.$ac_ext <<_ACEOF
20226/* confdefs.h. */
20227_ACEOF
20228cat confdefs.h >>conftest.$ac_ext
20229cat >>conftest.$ac_ext <<_ACEOF
20230/* end confdefs.h. */
a3828db0 20231#include <sys/ptrace.h>
bec39cab
AC
20232int
20233main ()
20234{
a3828db0 20235PTRACE_GETFPXREGS;
bec39cab
AC
20236 ;
20237 return 0;
20238}
20239_ACEOF
20240rm -f conftest.$ac_objext
20241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20242 (eval $ac_compile) 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
b4e70030
JB
20249 { ac_try='test -z "$ac_c_werror_flag"
20250 || test ! -s conftest.err'
bec39cab
AC
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; } &&
20256 { ac_try='test -s conftest.$ac_objext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
a3828db0 20262 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 20263else
bec39cab
AC
20264 echo "$as_me: failed program was:" >&5
20265sed 's/^/| /' conftest.$ac_ext >&5
20266
b4e70030 20267gdb_cv_have_ptrace_getfpxregs=no
451928c5 20268fi
bec39cab 20269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
20270fi
20271
b4e70030
JB
20272echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
20273echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 20274if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
20275
20276cat >>confdefs.h <<\_ACEOF
a3828db0 20277#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 20278_ACEOF
451928c5 20279
97bf5e38 20280fi
451928c5 20281
a3828db0 20282# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
20283echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
20284echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 20285if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 20286 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20287else
bec39cab
AC
20288 cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
a3828db0
MK
20294#include <sys/types.h>
20295#include <sys/ptrace.h>
bec39cab
AC
20296int
20297main ()
20298{
a3828db0 20299PT_GETDBREGS;
bec39cab
AC
20300 ;
20301 return 0;
20302}
20303_ACEOF
20304rm -f conftest.$ac_objext
20305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20306 (eval $ac_compile) 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
b4e70030
JB
20313 { ac_try='test -z "$ac_c_werror_flag"
20314 || test ! -s conftest.err'
bec39cab
AC
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest.$ac_objext'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
a3828db0 20326 gdb_cv_have_pt_getdbregs=yes
3862412b 20327else
bec39cab
AC
20328 echo "$as_me: failed program was:" >&5
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
b4e70030 20331gdb_cv_have_pt_getdbregs=no
3862412b 20332fi
bec39cab 20333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
20334fi
20335
b4e70030
JB
20336echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
20337echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 20338if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
20339
20340cat >>confdefs.h <<\_ACEOF
a3828db0 20341#define HAVE_PT_GETDBREGS 1
bec39cab 20342_ACEOF
3862412b 20343
97bf5e38 20344fi
3862412b 20345
a3828db0 20346# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
20347echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
20348echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 20349if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 20350 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20351else
bec39cab
AC
20352 cat >conftest.$ac_ext <<_ACEOF
20353/* confdefs.h. */
20354_ACEOF
20355cat confdefs.h >>conftest.$ac_ext
20356cat >>conftest.$ac_ext <<_ACEOF
20357/* end confdefs.h. */
a3828db0
MK
20358#include <sys/types.h>
20359#include <sys/ptrace.h>
bec39cab
AC
20360int
20361main ()
20362{
a3828db0 20363PT_GETXMMREGS;
bec39cab
AC
20364 ;
20365 return 0;
20366}
20367_ACEOF
20368rm -f conftest.$ac_objext
20369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20370 (eval $ac_compile) 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } &&
b4e70030
JB
20377 { ac_try='test -z "$ac_c_werror_flag"
20378 || test ! -s conftest.err'
bec39cab
AC
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; } &&
20384 { ac_try='test -s conftest.$ac_objext'
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
a3828db0 20390 gdb_cv_have_pt_getxmmregs=yes
3862412b 20391else
bec39cab
AC
20392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
b4e70030 20395gdb_cv_have_pt_getxmmregs=no
3862412b 20396fi
bec39cab 20397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
20398fi
20399
b4e70030
JB
20400echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
20401echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 20402if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
20403
20404cat >>confdefs.h <<\_ACEOF
a3828db0 20405#define HAVE_PT_GETXMMREGS 1
bec39cab 20406_ACEOF
3862412b 20407
97bf5e38 20408fi
3862412b 20409
eb368090 20410# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
20411
20412if test "${target}" = "${host}"; then
20413 case "${host}" in
97bf5e38 20414 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
20415
20416cat >>confdefs.h <<\_ACEOF
97bf5e38 20417#define NEW_PROC_API 1
bec39cab 20418_ACEOF
97bf5e38
MK
20419
20420 ;;
c162e8c9 20421 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
20422
20423cat >>confdefs.h <<\_ACEOF
97bf5e38 20424#define NEW_PROC_API 1
bec39cab 20425_ACEOF
c960c18f
AC
20426
20427 ;;
20428 mips-sgi-irix5*)
20429 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
20430
20431cat >>confdefs.h <<\_ACEOF
c960c18f 20432#define _KMEMUSER 1
bec39cab 20433_ACEOF
97bf5e38
MK
20434
20435 ;;
20436 esac
20437fi
20438
20439if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
20440 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
20441echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20442 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444else
20445 cat >conftest.$ac_ext <<_ACEOF
20446/* confdefs.h. */
20447_ACEOF
20448cat confdefs.h >>conftest.$ac_ext
20449cat >>conftest.$ac_ext <<_ACEOF
20450/* end confdefs.h. */
596c9d4b
KB
20451
20452#define _SYSCALL32
20453#include <sys/procfs.h>
bec39cab
AC
20454int
20455main ()
20456{
97bf5e38 20457pstatus_t avar
bec39cab
AC
20458 ;
20459 return 0;
20460}
20461_ACEOF
20462rm -f conftest.$ac_objext
20463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20464 (eval $ac_compile) 2>conftest.er1
20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
b4e70030
JB
20471 { ac_try='test -z "$ac_c_werror_flag"
20472 || test ! -s conftest.err'
bec39cab
AC
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try='test -s conftest.$ac_objext'
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; }; then
97bf5e38 20484 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 20485else
bec39cab
AC
20486 echo "$as_me: failed program was:" >&5
20487sed 's/^/| /' conftest.$ac_ext >&5
20488
b4e70030 20489bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 20490
596c9d4b 20491fi
bec39cab 20492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20493fi
20494
97bf5e38 20495 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
20496
20497cat >>confdefs.h <<\_ACEOF
97bf5e38 20498#define HAVE_PSTATUS_T 1
bec39cab 20499_ACEOF
596c9d4b
KB
20500
20501 fi
b4e70030
JB
20502 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
20503echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 20504
b4e70030
JB
20505 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
20506echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20507 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
20508 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 20509else
bec39cab
AC
20510 cat >conftest.$ac_ext <<_ACEOF
20511/* confdefs.h. */
20512_ACEOF
20513cat confdefs.h >>conftest.$ac_ext
20514cat >>conftest.$ac_ext <<_ACEOF
20515/* end confdefs.h. */
596c9d4b
KB
20516
20517#define _SYSCALL32
20518#include <sys/procfs.h>
bec39cab
AC
20519int
20520main ()
20521{
97bf5e38 20522prrun_t avar
bec39cab
AC
20523 ;
20524 return 0;
20525}
20526_ACEOF
20527rm -f conftest.$ac_objext
20528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20529 (eval $ac_compile) 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
b4e70030
JB
20536 { ac_try='test -z "$ac_c_werror_flag"
20537 || test ! -s conftest.err'
bec39cab
AC
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest.$ac_objext'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
97bf5e38 20549 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 20550else
bec39cab
AC
20551 echo "$as_me: failed program was:" >&5
20552sed 's/^/| /' conftest.$ac_ext >&5
20553
b4e70030 20554bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 20555
596c9d4b 20556fi
bec39cab 20557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20558fi
20559
97bf5e38 20560 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
20561
20562cat >>confdefs.h <<\_ACEOF
97bf5e38 20563#define HAVE_PRRUN_T 1
bec39cab 20564_ACEOF
596c9d4b
KB
20565
20566 fi
b4e70030
JB
20567 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
20568echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 20569
b4e70030
JB
20570 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
20571echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20572 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 20574else
bec39cab
AC
20575 cat >conftest.$ac_ext <<_ACEOF
20576/* confdefs.h. */
20577_ACEOF
20578cat confdefs.h >>conftest.$ac_ext
20579cat >>conftest.$ac_ext <<_ACEOF
20580/* end confdefs.h. */
596c9d4b
KB
20581
20582#define _SYSCALL32
20583#include <sys/procfs.h>
bec39cab
AC
20584int
20585main ()
20586{
97bf5e38 20587gregset_t avar
bec39cab
AC
20588 ;
20589 return 0;
20590}
20591_ACEOF
20592rm -f conftest.$ac_objext
20593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20594 (eval $ac_compile) 2>conftest.er1
20595 ac_status=$?
20596 grep -v '^ *+' conftest.er1 >conftest.err
20597 rm -f conftest.er1
20598 cat conftest.err >&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } &&
b4e70030
JB
20601 { ac_try='test -z "$ac_c_werror_flag"
20602 || test ! -s conftest.err'
bec39cab
AC
20603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604 (eval $ac_try) 2>&5
20605 ac_status=$?
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; } &&
20608 { ac_try='test -s conftest.$ac_objext'
20609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610 (eval $ac_try) 2>&5
20611 ac_status=$?
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; }; then
97bf5e38 20614 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 20615else
bec39cab
AC
20616 echo "$as_me: failed program was:" >&5
20617sed 's/^/| /' conftest.$ac_ext >&5
20618
b4e70030 20619bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 20620
596c9d4b 20621fi
bec39cab 20622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20623fi
20624
97bf5e38 20625 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
20626
20627cat >>confdefs.h <<\_ACEOF
97bf5e38 20628#define HAVE_GREGSET_T 1
bec39cab 20629_ACEOF
596c9d4b
KB
20630
20631 fi
b4e70030
JB
20632 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
20633echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 20634
b4e70030
JB
20635 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
20636echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20637 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 20639else
bec39cab
AC
20640 cat >conftest.$ac_ext <<_ACEOF
20641/* confdefs.h. */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
20645/* end confdefs.h. */
97bf5e38
MK
20646
20647#define _SYSCALL32
d84dd0c5 20648#include <sys/procfs.h>
bec39cab
AC
20649int
20650main ()
20651{
97bf5e38 20652fpregset_t avar
bec39cab
AC
20653 ;
20654 return 0;
20655}
20656_ACEOF
20657rm -f conftest.$ac_objext
20658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20659 (eval $ac_compile) 2>conftest.er1
20660 ac_status=$?
20661 grep -v '^ *+' conftest.er1 >conftest.err
20662 rm -f conftest.er1
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } &&
b4e70030
JB
20666 { ac_try='test -z "$ac_c_werror_flag"
20667 || test ! -s conftest.err'
bec39cab
AC
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; } &&
20673 { ac_try='test -s conftest.$ac_objext'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; }; then
97bf5e38 20679 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 20680else
bec39cab
AC
20681 echo "$as_me: failed program was:" >&5
20682sed 's/^/| /' conftest.$ac_ext >&5
20683
b4e70030 20684bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 20685
d84dd0c5 20686fi
bec39cab 20687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
20688fi
20689
97bf5e38 20690 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
20691
20692cat >>confdefs.h <<\_ACEOF
97bf5e38 20693#define HAVE_FPREGSET_T 1
bec39cab 20694_ACEOF
d84dd0c5 20695
97bf5e38 20696 fi
b4e70030
JB
20697 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
20698echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 20699
b4e70030
JB
20700 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
20701echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20702 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20704else
bec39cab
AC
20705 cat >conftest.$ac_ext <<_ACEOF
20706/* confdefs.h. */
20707_ACEOF
20708cat confdefs.h >>conftest.$ac_ext
20709cat >>conftest.$ac_ext <<_ACEOF
20710/* end confdefs.h. */
c906108c 20711
97bf5e38
MK
20712#define _SYSCALL32
20713#include <sys/procfs.h>
bec39cab
AC
20714int
20715main ()
20716{
97bf5e38 20717prgregset_t avar
bec39cab
AC
20718 ;
20719 return 0;
20720}
20721_ACEOF
20722rm -f conftest.$ac_objext
20723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20724 (eval $ac_compile) 2>conftest.er1
20725 ac_status=$?
20726 grep -v '^ *+' conftest.er1 >conftest.err
20727 rm -f conftest.er1
20728 cat conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
b4e70030
JB
20731 { ac_try='test -z "$ac_c_werror_flag"
20732 || test ! -s conftest.err'
bec39cab
AC
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20735 ac_status=$?
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; } &&
20738 { ac_try='test -s conftest.$ac_objext'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; }; then
97bf5e38 20744 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 20745else
bec39cab
AC
20746 echo "$as_me: failed program was:" >&5
20747sed 's/^/| /' conftest.$ac_ext >&5
20748
b4e70030 20749bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 20750
c906108c 20751fi
bec39cab 20752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20753fi
20754
97bf5e38 20755 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
20756
20757cat >>confdefs.h <<\_ACEOF
97bf5e38 20758#define HAVE_PRGREGSET_T 1
bec39cab 20759_ACEOF
c906108c 20760
97bf5e38 20761 fi
b4e70030
JB
20762 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
20763echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 20764
b4e70030
JB
20765 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
20766echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20767 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20769else
bec39cab
AC
20770 cat >conftest.$ac_ext <<_ACEOF
20771/* confdefs.h. */
20772_ACEOF
20773cat confdefs.h >>conftest.$ac_ext
20774cat >>conftest.$ac_ext <<_ACEOF
20775/* end confdefs.h. */
97bf5e38
MK
20776
20777#define _SYSCALL32
20778#include <sys/procfs.h>
bec39cab
AC
20779int
20780main ()
20781{
97bf5e38 20782prfpregset_t avar
bec39cab
AC
20783 ;
20784 return 0;
20785}
20786_ACEOF
20787rm -f conftest.$ac_objext
20788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20789 (eval $ac_compile) 2>conftest.er1
20790 ac_status=$?
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } &&
b4e70030
JB
20796 { ac_try='test -z "$ac_c_werror_flag"
20797 || test ! -s conftest.err'
bec39cab
AC
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest.$ac_objext'
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
97bf5e38 20809 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 20810else
bec39cab
AC
20811 echo "$as_me: failed program was:" >&5
20812sed 's/^/| /' conftest.$ac_ext >&5
20813
b4e70030 20814bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 20815
d45fe813 20816fi
bec39cab 20817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20818fi
20819
97bf5e38 20820 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
20821
20822cat >>confdefs.h <<\_ACEOF
97bf5e38 20823#define HAVE_PRFPREGSET_T 1
bec39cab 20824_ACEOF
d45fe813 20825
97bf5e38 20826 fi
b4e70030
JB
20827 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
20828echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 20829
b4e70030
JB
20830 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
20831echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20832 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20834else
bec39cab
AC
20835 cat >conftest.$ac_ext <<_ACEOF
20836/* confdefs.h. */
20837_ACEOF
20838cat confdefs.h >>conftest.$ac_ext
20839cat >>conftest.$ac_ext <<_ACEOF
20840/* end confdefs.h. */
97bf5e38
MK
20841
20842#define _SYSCALL32
20843#include <sys/procfs.h>
bec39cab
AC
20844int
20845main ()
20846{
97bf5e38 20847prgregset32_t avar
bec39cab
AC
20848 ;
20849 return 0;
20850}
20851_ACEOF
20852rm -f conftest.$ac_objext
20853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20854 (eval $ac_compile) 2>conftest.er1
20855 ac_status=$?
20856 grep -v '^ *+' conftest.er1 >conftest.err
20857 rm -f conftest.er1
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
b4e70030
JB
20861 { ac_try='test -z "$ac_c_werror_flag"
20862 || test ! -s conftest.err'
bec39cab
AC
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; } &&
20868 { ac_try='test -s conftest.$ac_objext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
97bf5e38 20874 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 20875else
bec39cab
AC
20876 echo "$as_me: failed program was:" >&5
20877sed 's/^/| /' conftest.$ac_ext >&5
20878
b4e70030 20879bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 20880
d45fe813 20881fi
bec39cab 20882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20883fi
20884
97bf5e38 20885 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
20886
20887cat >>confdefs.h <<\_ACEOF
97bf5e38 20888#define HAVE_PRGREGSET32_T 1
bec39cab 20889_ACEOF
d45fe813 20890
97bf5e38 20891 fi
b4e70030
JB
20892 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
20893echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 20894
b4e70030
JB
20895 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
20896echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20897 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20899else
bec39cab
AC
20900 cat >conftest.$ac_ext <<_ACEOF
20901/* confdefs.h. */
20902_ACEOF
20903cat confdefs.h >>conftest.$ac_ext
20904cat >>conftest.$ac_ext <<_ACEOF
20905/* end confdefs.h. */
97bf5e38
MK
20906
20907#define _SYSCALL32
20908#include <sys/procfs.h>
bec39cab
AC
20909int
20910main ()
20911{
97bf5e38 20912prfpregset32_t avar
bec39cab
AC
20913 ;
20914 return 0;
20915}
20916_ACEOF
20917rm -f conftest.$ac_objext
20918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20919 (eval $ac_compile) 2>conftest.er1
20920 ac_status=$?
20921 grep -v '^ *+' conftest.er1 >conftest.err
20922 rm -f conftest.er1
20923 cat conftest.err >&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } &&
b4e70030
JB
20926 { ac_try='test -z "$ac_c_werror_flag"
20927 || test ! -s conftest.err'
bec39cab
AC
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } &&
20933 { ac_try='test -s conftest.$ac_objext'
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; }; then
97bf5e38 20939 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 20940else
bec39cab
AC
20941 echo "$as_me: failed program was:" >&5
20942sed 's/^/| /' conftest.$ac_ext >&5
20943
b4e70030 20944bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 20945
d45fe813 20946fi
bec39cab 20947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20948fi
20949
97bf5e38 20950 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
20951
20952cat >>confdefs.h <<\_ACEOF
97bf5e38 20953#define HAVE_PRFPREGSET32_T 1
bec39cab 20954_ACEOF
d45fe813 20955
97bf5e38 20956 fi
b4e70030
JB
20957 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
20958echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 20959
b4e70030
JB
20960 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
20961echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20962 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20964else
bec39cab
AC
20965 cat >conftest.$ac_ext <<_ACEOF
20966/* confdefs.h. */
20967_ACEOF
20968cat confdefs.h >>conftest.$ac_ext
20969cat >>conftest.$ac_ext <<_ACEOF
20970/* end confdefs.h. */
97bf5e38 20971
d45fe813 20972#define _SYSCALL32
97bf5e38 20973#include <sys/procfs.h>
bec39cab
AC
20974int
20975main ()
20976{
97bf5e38 20977lwpid_t avar
bec39cab
AC
20978 ;
20979 return 0;
20980}
20981_ACEOF
20982rm -f conftest.$ac_objext
20983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20984 (eval $ac_compile) 2>conftest.er1
20985 ac_status=$?
20986 grep -v '^ *+' conftest.er1 >conftest.err
20987 rm -f conftest.er1
20988 cat conftest.err >&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } &&
b4e70030
JB
20991 { ac_try='test -z "$ac_c_werror_flag"
20992 || test ! -s conftest.err'
bec39cab
AC
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; } &&
20998 { ac_try='test -s conftest.$ac_objext'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
97bf5e38 21004 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 21005else
bec39cab
AC
21006 echo "$as_me: failed program was:" >&5
21007sed 's/^/| /' conftest.$ac_ext >&5
21008
b4e70030 21009bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 21010
d45fe813 21011fi
bec39cab 21012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21013fi
21014
97bf5e38 21015 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
21016
21017cat >>confdefs.h <<\_ACEOF
97bf5e38 21018#define HAVE_LWPID_T 1
bec39cab 21019_ACEOF
d45fe813 21020
97bf5e38 21021 fi
b4e70030
JB
21022 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21023echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 21024
b4e70030
JB
21025 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21026echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21027 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21029else
bec39cab
AC
21030 cat >conftest.$ac_ext <<_ACEOF
21031/* confdefs.h. */
21032_ACEOF
21033cat confdefs.h >>conftest.$ac_ext
21034cat >>conftest.$ac_ext <<_ACEOF
21035/* end confdefs.h. */
c906108c 21036
97bf5e38
MK
21037#define _SYSCALL32
21038#include <sys/procfs.h>
bec39cab
AC
21039int
21040main ()
21041{
97bf5e38 21042psaddr_t avar
bec39cab
AC
21043 ;
21044 return 0;
21045}
21046_ACEOF
21047rm -f conftest.$ac_objext
21048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21049 (eval $ac_compile) 2>conftest.er1
21050 ac_status=$?
21051 grep -v '^ *+' conftest.er1 >conftest.err
21052 rm -f conftest.er1
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } &&
b4e70030
JB
21056 { ac_try='test -z "$ac_c_werror_flag"
21057 || test ! -s conftest.err'
bec39cab
AC
21058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059 (eval $ac_try) 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; } &&
21063 { ac_try='test -s conftest.$ac_objext'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; }; then
97bf5e38 21069 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 21070else
bec39cab
AC
21071 echo "$as_me: failed program was:" >&5
21072sed 's/^/| /' conftest.$ac_ext >&5
21073
b4e70030 21074bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 21075
c906108c 21076fi
bec39cab 21077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21078fi
21079
97bf5e38 21080 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
21081
21082cat >>confdefs.h <<\_ACEOF
97bf5e38 21083#define HAVE_PSADDR_T 1
bec39cab 21084_ACEOF
c906108c 21085
97bf5e38 21086 fi
b4e70030
JB
21087 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21088echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 21089
b4e70030
JB
21090 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
21091echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21092 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21094else
bec39cab
AC
21095 cat >conftest.$ac_ext <<_ACEOF
21096/* confdefs.h. */
21097_ACEOF
21098cat confdefs.h >>conftest.$ac_ext
21099cat >>conftest.$ac_ext <<_ACEOF
21100/* end confdefs.h. */
c906108c 21101
97bf5e38
MK
21102#define _SYSCALL32
21103#include <sys/procfs.h>
bec39cab
AC
21104int
21105main ()
21106{
97bf5e38 21107prsysent_t avar
bec39cab
AC
21108 ;
21109 return 0;
21110}
21111_ACEOF
21112rm -f conftest.$ac_objext
21113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21114 (eval $ac_compile) 2>conftest.er1
21115 ac_status=$?
21116 grep -v '^ *+' conftest.er1 >conftest.err
21117 rm -f conftest.er1
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } &&
b4e70030
JB
21121 { ac_try='test -z "$ac_c_werror_flag"
21122 || test ! -s conftest.err'
bec39cab
AC
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; } &&
21128 { ac_try='test -s conftest.$ac_objext'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; }; then
97bf5e38 21134 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 21135else
bec39cab
AC
21136 echo "$as_me: failed program was:" >&5
21137sed 's/^/| /' conftest.$ac_ext >&5
21138
b4e70030 21139bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 21140
c906108c 21141fi
bec39cab 21142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21143fi
21144
97bf5e38 21145 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
21146
21147cat >>confdefs.h <<\_ACEOF
97bf5e38 21148#define HAVE_PRSYSENT_T 1
bec39cab 21149_ACEOF
c906108c 21150
97bf5e38 21151 fi
b4e70030
JB
21152 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
21153echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 21154
b4e70030
JB
21155 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
21156echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21157 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21159else
bec39cab
AC
21160 cat >conftest.$ac_ext <<_ACEOF
21161/* confdefs.h. */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h. */
c906108c 21166
97bf5e38
MK
21167#define _SYSCALL32
21168#include <sys/procfs.h>
bec39cab
AC
21169int
21170main ()
21171{
97bf5e38 21172pr_sigset_t avar
bec39cab
AC
21173 ;
21174 return 0;
21175}
21176_ACEOF
21177rm -f conftest.$ac_objext
21178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21179 (eval $ac_compile) 2>conftest.er1
21180 ac_status=$?
21181 grep -v '^ *+' conftest.er1 >conftest.err
21182 rm -f conftest.er1
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
b4e70030
JB
21186 { ac_try='test -z "$ac_c_werror_flag"
21187 || test ! -s conftest.err'
bec39cab
AC
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21190 ac_status=$?
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; } &&
21193 { ac_try='test -s conftest.$ac_objext'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
97bf5e38 21199 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 21200else
bec39cab
AC
21201 echo "$as_me: failed program was:" >&5
21202sed 's/^/| /' conftest.$ac_ext >&5
21203
b4e70030 21204bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 21205
c906108c 21206fi
bec39cab 21207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21208fi
21209
97bf5e38 21210 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
21211
21212cat >>confdefs.h <<\_ACEOF
97bf5e38 21213#define HAVE_PR_SIGSET_T 1
bec39cab 21214_ACEOF
c906108c 21215
97bf5e38 21216 fi
b4e70030
JB
21217 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
21218echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 21219
b4e70030
JB
21220 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
21221echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21222 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21224else
bec39cab
AC
21225 cat >conftest.$ac_ext <<_ACEOF
21226/* confdefs.h. */
21227_ACEOF
21228cat confdefs.h >>conftest.$ac_ext
21229cat >>conftest.$ac_ext <<_ACEOF
21230/* end confdefs.h. */
c906108c 21231
97bf5e38
MK
21232#define _SYSCALL32
21233#include <sys/procfs.h>
bec39cab
AC
21234int
21235main ()
21236{
97bf5e38 21237pr_sigaction64_t avar
bec39cab
AC
21238 ;
21239 return 0;
21240}
21241_ACEOF
21242rm -f conftest.$ac_objext
21243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21244 (eval $ac_compile) 2>conftest.er1
21245 ac_status=$?
21246 grep -v '^ *+' conftest.er1 >conftest.err
21247 rm -f conftest.er1
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } &&
b4e70030
JB
21251 { ac_try='test -z "$ac_c_werror_flag"
21252 || test ! -s conftest.err'
bec39cab
AC
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; } &&
21258 { ac_try='test -s conftest.$ac_objext'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21261 ac_status=$?
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
97bf5e38 21264 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 21265else
bec39cab
AC
21266 echo "$as_me: failed program was:" >&5
21267sed 's/^/| /' conftest.$ac_ext >&5
21268
b4e70030 21269bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 21270
c906108c 21271fi
bec39cab 21272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21273fi
21274
97bf5e38 21275 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
21276
21277cat >>confdefs.h <<\_ACEOF
97bf5e38 21278#define HAVE_PR_SIGACTION64_T 1
bec39cab 21279_ACEOF
c906108c 21280
97bf5e38 21281 fi
b4e70030
JB
21282 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
21283echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 21284
b4e70030
JB
21285 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
21286echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21287 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21289else
bec39cab
AC
21290 cat >conftest.$ac_ext <<_ACEOF
21291/* confdefs.h. */
21292_ACEOF
21293cat confdefs.h >>conftest.$ac_ext
21294cat >>conftest.$ac_ext <<_ACEOF
21295/* end confdefs.h. */
97bf5e38
MK
21296
21297#define _SYSCALL32
21298#include <sys/procfs.h>
bec39cab
AC
21299int
21300main ()
21301{
97bf5e38 21302pr_siginfo64_t avar
bec39cab
AC
21303 ;
21304 return 0;
21305}
21306_ACEOF
21307rm -f conftest.$ac_objext
21308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21309 (eval $ac_compile) 2>conftest.er1
21310 ac_status=$?
21311 grep -v '^ *+' conftest.er1 >conftest.err
21312 rm -f conftest.er1
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } &&
b4e70030
JB
21316 { ac_try='test -z "$ac_c_werror_flag"
21317 || test ! -s conftest.err'
bec39cab
AC
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; } &&
21323 { ac_try='test -s conftest.$ac_objext'
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; }; then
97bf5e38
MK
21329 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
21330else
bec39cab
AC
21331 echo "$as_me: failed program was:" >&5
21332sed 's/^/| /' conftest.$ac_ext >&5
21333
b4e70030 21334bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 21335
97bf5e38 21336fi
bec39cab 21337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21338fi
c906108c 21339
97bf5e38 21340 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
21341
21342cat >>confdefs.h <<\_ACEOF
97bf5e38 21343#define HAVE_PR_SIGINFO64_T 1
bec39cab 21344_ACEOF
c906108c 21345
97bf5e38 21346 fi
b4e70030
JB
21347 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
21348echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
21349
21350
97bf5e38
MK
21351
21352
21353
97bf5e38 21354 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
21355 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
21356echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
21357 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21359else
21360 if test "$cross_compiling" = yes; then
97bf5e38 21361 gdb_cv_prfpregset_t_broken=yes
c906108c 21362else
bec39cab
AC
21363 cat >conftest.$ac_ext <<_ACEOF
21364/* confdefs.h. */
21365_ACEOF
21366cat confdefs.h >>conftest.$ac_ext
21367cat >>conftest.$ac_ext <<_ACEOF
21368/* end confdefs.h. */
97bf5e38
MK
21369#include <sys/procfs.h>
21370 int main ()
21371 {
21372 if (sizeof (prfpregset_t) == sizeof (void *))
21373 return 1;
21374 return 0;
21375 }
bec39cab
AC
21376_ACEOF
21377rm -f conftest$ac_exeext
21378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379 (eval $ac_link) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
97bf5e38 21388 gdb_cv_prfpregset_t_broken=no
c906108c 21389else
bec39cab
AC
21390 echo "$as_me: program exited with status $ac_status" >&5
21391echo "$as_me: failed program was:" >&5
21392sed 's/^/| /' conftest.$ac_ext >&5
21393
21394( exit $ac_status )
21395gdb_cv_prfpregset_t_broken=yes
c906108c 21396fi
b4e70030 21397rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 21398fi
c906108c
SS
21399fi
21400
b4e70030
JB
21401 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
21402echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 21403 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
21404
21405cat >>confdefs.h <<\_ACEOF
97bf5e38 21406#define PRFPREGSET_T_BROKEN 1
bec39cab 21407_ACEOF
c906108c 21408
97bf5e38
MK
21409 fi
21410 fi
c906108c 21411
bec39cab 21412
b4e70030
JB
21413 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
21414echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21415 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21417else
bec39cab
AC
21418 cat >conftest.$ac_ext <<_ACEOF
21419/* confdefs.h. */
21420_ACEOF
21421cat confdefs.h >>conftest.$ac_ext
21422cat >>conftest.$ac_ext <<_ACEOF
21423/* end confdefs.h. */
97bf5e38
MK
21424#include <unistd.h>
21425#include <sys/types.h>
21426#include <sys/procfs.h>
21427
bec39cab
AC
21428int
21429main ()
21430{
97bf5e38
MK
21431
21432 int dummy;;
21433 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
21434
21435 ;
21436 return 0;
21437}
21438_ACEOF
21439rm -f conftest.$ac_objext
21440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21441 (eval $ac_compile) 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
b4e70030
JB
21448 { ac_try='test -z "$ac_c_werror_flag"
21449 || test ! -s conftest.err'
bec39cab
AC
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; } &&
21455 { ac_try='test -s conftest.$ac_objext'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; }; then
97bf5e38 21461 gdb_cv_have_procfs_piocset=yes
c906108c 21462else
bec39cab
AC
21463 echo "$as_me: failed program was:" >&5
21464sed 's/^/| /' conftest.$ac_ext >&5
21465
b4e70030 21466gdb_cv_have_procfs_piocset=no
c906108c 21467fi
bec39cab 21468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21469fi
97bf5e38 21470
b4e70030
JB
21471 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
21472echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 21473 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
21474
21475cat >>confdefs.h <<\_ACEOF
97bf5e38 21476#define HAVE_PROCFS_PIOCSET 1
bec39cab 21477_ACEOF
97bf5e38
MK
21478
21479 fi
c906108c 21480fi
c906108c 21481
97bf5e38 21482if test ${host} = ${target} ; then
bec39cab 21483
b4e70030
JB
21484 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
21485echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
21486 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21488else
21489 cat >conftest.$ac_ext <<_ACEOF
21490/* confdefs.h. */
21491_ACEOF
21492cat confdefs.h >>conftest.$ac_ext
21493cat >>conftest.$ac_ext <<_ACEOF
21494/* end confdefs.h. */
97bf5e38 21495#include <link.h>
bec39cab
AC
21496int
21497main ()
21498{
97bf5e38 21499struct link_map lm; (void) lm.l_addr;
bec39cab
AC
21500 ;
21501 return 0;
21502}
21503_ACEOF
21504rm -f conftest.$ac_objext
21505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21506 (eval $ac_compile) 2>conftest.er1
21507 ac_status=$?
21508 grep -v '^ *+' conftest.er1 >conftest.err
21509 rm -f conftest.er1
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
b4e70030
JB
21513 { ac_try='test -z "$ac_c_werror_flag"
21514 || test ! -s conftest.err'
bec39cab
AC
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; } &&
21520 { ac_try='test -s conftest.$ac_objext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
97bf5e38 21526 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 21527else
bec39cab
AC
21528 echo "$as_me: failed program was:" >&5
21529sed 's/^/| /' conftest.$ac_ext >&5
21530
b4e70030 21531gdb_cv_have_struct_link_map_with_l_members=no
c906108c 21532fi
bec39cab 21533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21534fi
21535
b4e70030
JB
21536 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
21537echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 21538 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
21539
21540cat >>confdefs.h <<\_ACEOF
97bf5e38 21541#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 21542_ACEOF
97bf5e38
MK
21543
21544 fi
21545
bec39cab 21546
b4e70030
JB
21547 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
21548echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
21549 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21551else
bec39cab
AC
21552 cat >conftest.$ac_ext <<_ACEOF
21553/* confdefs.h. */
21554_ACEOF
21555cat confdefs.h >>conftest.$ac_ext
21556cat >>conftest.$ac_ext <<_ACEOF
21557/* end confdefs.h. */
97bf5e38
MK
21558#include <sys/types.h>
21559#include <link.h>
bec39cab
AC
21560int
21561main ()
21562{
97bf5e38 21563struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
21564 ;
21565 return 0;
21566}
21567_ACEOF
21568rm -f conftest.$ac_objext
21569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21570 (eval $ac_compile) 2>conftest.er1
21571 ac_status=$?
21572 grep -v '^ *+' conftest.er1 >conftest.err
21573 rm -f conftest.er1
21574 cat conftest.err >&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } &&
b4e70030
JB
21577 { ac_try='test -z "$ac_c_werror_flag"
21578 || test ! -s conftest.err'
bec39cab
AC
21579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); }; } &&
21584 { ac_try='test -s conftest.$ac_objext'
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; }; then
97bf5e38
MK
21590 gdb_cv_have_struct_link_map_with_lm_members=yes
21591else
bec39cab
AC
21592 echo "$as_me: failed program was:" >&5
21593sed 's/^/| /' conftest.$ac_ext >&5
21594
b4e70030 21595gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 21596fi
bec39cab 21597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21598fi
c906108c 21599
b4e70030
JB
21600 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
21601echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 21602 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
21603
21604cat >>confdefs.h <<\_ACEOF
97bf5e38 21605#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 21606_ACEOF
97bf5e38
MK
21607
21608 fi
21609
bec39cab 21610
b4e70030
JB
21611 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
21612echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
21613 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21615else
bec39cab
AC
21616 cat >conftest.$ac_ext <<_ACEOF
21617/* confdefs.h. */
21618_ACEOF
21619cat confdefs.h >>conftest.$ac_ext
21620cat >>conftest.$ac_ext <<_ACEOF
21621/* end confdefs.h. */
97bf5e38
MK
21622#include <sys/types.h>
21623#ifdef HAVE_NLIST_H
21624#include <nlist.h>
21625#endif
21626#include <link.h>
bec39cab
AC
21627int
21628main ()
21629{
97bf5e38 21630struct so_map lm; (void) lm.som_addr;
bec39cab
AC
21631 ;
21632 return 0;
21633}
21634_ACEOF
21635rm -f conftest.$ac_objext
21636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21637 (eval $ac_compile) 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } &&
b4e70030
JB
21644 { ac_try='test -z "$ac_c_werror_flag"
21645 || test ! -s conftest.err'
bec39cab
AC
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; } &&
21651 { ac_try='test -s conftest.$ac_objext'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
97bf5e38
MK
21657 gdb_cv_have_struct_so_map_with_som_members=yes
21658else
bec39cab
AC
21659 echo "$as_me: failed program was:" >&5
21660sed 's/^/| /' conftest.$ac_ext >&5
21661
b4e70030 21662gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 21663fi
bec39cab 21664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21665fi
c906108c 21666
b4e70030
JB
21667 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
21668echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 21669 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
21670
21671cat >>confdefs.h <<\_ACEOF
97bf5e38 21672#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 21673_ACEOF
c906108c 21674
97bf5e38 21675 fi
c906108c 21676
bec39cab 21677
b4e70030
JB
21678 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
21679echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
21680 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21682else
bec39cab
AC
21683 cat >conftest.$ac_ext <<_ACEOF
21684/* confdefs.h. */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h. */
97bf5e38
MK
21689#define _SYSCALL32
21690#include <sys/link.h>
bec39cab
AC
21691int
21692main ()
21693{
97bf5e38 21694struct link_map32 l;
bec39cab
AC
21695 ;
21696 return 0;
21697}
21698_ACEOF
21699rm -f conftest.$ac_objext
21700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
b4e70030
JB
21708 { ac_try='test -z "$ac_c_werror_flag"
21709 || test ! -s conftest.err'
bec39cab
AC
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest.$ac_objext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
97bf5e38
MK
21721 gdb_cv_have_struct_link_map32=yes
21722else
bec39cab
AC
21723 echo "$as_me: failed program was:" >&5
21724sed 's/^/| /' conftest.$ac_ext >&5
21725
b4e70030 21726gdb_cv_have_struct_link_map32=no
97bf5e38 21727fi
bec39cab 21728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21729fi
c906108c 21730
b4e70030
JB
21731 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
21732echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 21733 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
21734
21735cat >>confdefs.h <<\_ACEOF
97bf5e38 21736#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 21737_ACEOF
c906108c 21738
60ca704f
SE
21739
21740cat >>confdefs.h <<\_ACEOF
97bf5e38 21741#define _SYSCALL32 1
bec39cab 21742_ACEOF
c906108c 21743
97bf5e38
MK
21744 fi
21745fi
c906108c 21746
bc8bcb4b 21747# Check if the compiler supports the `long long' type.
c906108c 21748
b4e70030
JB
21749echo "$as_me:$LINENO: checking for long long support in compiler" >&5
21750echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
21751if test "${gdb_cv_c_long_long+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21753else
bec39cab
AC
21754 cat >conftest.$ac_ext <<_ACEOF
21755/* confdefs.h. */
21756_ACEOF
21757cat confdefs.h >>conftest.$ac_ext
21758cat >>conftest.$ac_ext <<_ACEOF
21759/* end confdefs.h. */
bc8bcb4b 21760extern long long foo;
bec39cab
AC
21761int
21762main ()
21763{
bc8bcb4b 21764switch (foo & 2) { case 0: return 1; }
bec39cab
AC
21765 ;
21766 return 0;
21767}
21768_ACEOF
21769rm -f conftest.$ac_objext
21770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21771 (eval $ac_compile) 2>conftest.er1
21772 ac_status=$?
21773 grep -v '^ *+' conftest.er1 >conftest.err
21774 rm -f conftest.er1
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } &&
b4e70030
JB
21778 { ac_try='test -z "$ac_c_werror_flag"
21779 || test ! -s conftest.err'
bec39cab
AC
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest.$ac_objext'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
97bf5e38
MK
21791 gdb_cv_c_long_long=yes
21792else
bec39cab
AC
21793 echo "$as_me: failed program was:" >&5
21794sed 's/^/| /' conftest.$ac_ext >&5
21795
b4e70030 21796gdb_cv_c_long_long=no
97bf5e38 21797fi
bec39cab 21798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21799fi
b4e70030
JB
21800echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
21801echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 21802if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
21803
21804cat >>confdefs.h <<\_ACEOF
97bf5e38 21805#define CC_HAS_LONG_LONG 1
bec39cab 21806_ACEOF
97bf5e38
MK
21807
21808fi
21809
bc8bcb4b 21810# Check if the compiler and runtime support printing long longs.
97bf5e38 21811
b4e70030
JB
21812echo "$as_me:$LINENO: checking for long long support in printf" >&5
21813echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
21814if test "${gdb_cv_printf_has_long_long+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
21816else
21817 if test "$cross_compiling" = yes; then
21818 gdb_cv_printf_has_long_long=no
21819else
bec39cab
AC
21820 cat >conftest.$ac_ext <<_ACEOF
21821/* confdefs.h. */
21822_ACEOF
21823cat confdefs.h >>conftest.$ac_ext
21824cat >>conftest.$ac_ext <<_ACEOF
21825/* end confdefs.h. */
bc8bcb4b
MK
21826$ac_includes_default
21827int
21828main ()
21829{
21830char buf[32];
97bf5e38
MK
21831 long long l = 0;
21832 l = (l << 16) + 0x0123;
21833 l = (l << 16) + 0x4567;
21834 l = (l << 16) + 0x89ab;
21835 l = (l << 16) + 0xcdef;
21836 sprintf (buf, "0x%016llx", l);
21837 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
21838 ;
21839 return 0;
c906108c 21840}
bec39cab
AC
21841_ACEOF
21842rm -f conftest$ac_exeext
21843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21844 (eval $ac_link) 2>&5
21845 ac_status=$?
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
97bf5e38
MK
21853 gdb_cv_printf_has_long_long=yes
21854else
bec39cab
AC
21855 echo "$as_me: program exited with status $ac_status" >&5
21856echo "$as_me: failed program was:" >&5
21857sed 's/^/| /' conftest.$ac_ext >&5
21858
21859( exit $ac_status )
21860gdb_cv_printf_has_long_long=no
97bf5e38 21861fi
b4e70030 21862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 21863fi
97bf5e38 21864fi
b4e70030
JB
21865echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
21866echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 21867if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
21868
21869cat >>confdefs.h <<\_ACEOF
97bf5e38 21870#define PRINTF_HAS_LONG_LONG 1
bec39cab 21871_ACEOF
97bf5e38
MK
21872
21873fi
97bf5e38 21874
1a619819
LM
21875# Check if the compiler and runtime support printing decfloats.
21876
21877echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
21878echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
21879if test "${gdb_cv_printf_has_decfloat+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21881else
21882 if test "$cross_compiling" = yes; then
21883 gdb_cv_printf_has_decfloat=no
21884else
21885 cat >conftest.$ac_ext <<_ACEOF
21886/* confdefs.h. */
21887_ACEOF
21888cat confdefs.h >>conftest.$ac_ext
21889cat >>conftest.$ac_ext <<_ACEOF
21890/* end confdefs.h. */
21891$ac_includes_default
21892int
21893main ()
21894{
21895char buf[64];
21896 _Decimal32 d32 = 1.2345df;
21897 _Decimal64 d64 = 1.2345dd;
21898 _Decimal128 d128 = 1.2345dl;
21899 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
21900 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
21901 ;
21902 return 0;
21903}
21904_ACEOF
21905rm -f conftest$ac_exeext
21906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21907 (eval $ac_link) 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21916 gdb_cv_printf_has_decfloat=yes
21917else
21918 echo "$as_me: program exited with status $ac_status" >&5
21919echo "$as_me: failed program was:" >&5
21920sed 's/^/| /' conftest.$ac_ext >&5
21921
21922( exit $ac_status )
21923gdb_cv_printf_has_decfloat=no
21924fi
21925rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21926fi
21927fi
21928echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
21929echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
21930if test $gdb_cv_printf_has_decfloat = yes; then
21931
21932cat >>confdefs.h <<\_ACEOF
21933#define PRINTF_HAS_DECFLOAT 1
21934_ACEOF
21935
21936fi
21937
bc8bcb4b
MK
21938# Check if the compiler supports the `long double' type. We can't use
21939# AC_C_LONG_DOUBLE because that one does additional checks on the
21940# constants defined in <float.h> that fail on some systems,
21941# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 21942
b4e70030
JB
21943echo "$as_me:$LINENO: checking for long double support in compiler" >&5
21944echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 21945if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 21946 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21947else
bec39cab
AC
21948 cat >conftest.$ac_ext <<_ACEOF
21949/* confdefs.h. */
21950_ACEOF
21951cat confdefs.h >>conftest.$ac_ext
21952cat >>conftest.$ac_ext <<_ACEOF
21953/* end confdefs.h. */
97bf5e38 21954long double foo;
bec39cab
AC
21955_ACEOF
21956rm -f conftest.$ac_objext
21957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21958 (eval $ac_compile) 2>conftest.er1
21959 ac_status=$?
21960 grep -v '^ *+' conftest.er1 >conftest.err
21961 rm -f conftest.er1
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } &&
b4e70030
JB
21965 { ac_try='test -z "$ac_c_werror_flag"
21966 || test ! -s conftest.err'
bec39cab
AC
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21969 ac_status=$?
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; } &&
21972 { ac_try='test -s conftest.$ac_objext'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21975 ac_status=$?
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; }; then
bc8bcb4b 21978 gdb_cv_c_long_double=yes
97bf5e38 21979else
bec39cab
AC
21980 echo "$as_me: failed program was:" >&5
21981sed 's/^/| /' conftest.$ac_ext >&5
21982
b4e70030 21983gdb_cv_c_long_double=no
97bf5e38 21984fi
bec39cab 21985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21986fi
b4e70030
JB
21987echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
21988echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 21989if test $gdb_cv_c_long_double = yes; then
c906108c 21990
bc8bcb4b 21991cat >>confdefs.h <<\_ACEOF
97bf5e38 21992#define HAVE_LONG_DOUBLE 1
bec39cab 21993_ACEOF
97bf5e38
MK
21994
21995fi
21996
bc8bcb4b 21997# Check if the compiler and runtime support printing long doubles.
97bf5e38 21998
b4e70030
JB
21999echo "$as_me:$LINENO: checking for long double support in printf" >&5
22000echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
22001if test "${gdb_cv_printf_has_long_double+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22003else
22004 if test "$cross_compiling" = yes; then
22005 gdb_cv_printf_has_long_double=no
22006else
bec39cab
AC
22007 cat >conftest.$ac_ext <<_ACEOF
22008/* confdefs.h. */
22009_ACEOF
22010cat confdefs.h >>conftest.$ac_ext
22011cat >>conftest.$ac_ext <<_ACEOF
22012/* end confdefs.h. */
bc8bcb4b
MK
22013$ac_includes_default
22014int
22015main ()
22016{
22017char buf[16];
97bf5e38
MK
22018 long double f = 3.141592653;
22019 sprintf (buf, "%Lg", f);
22020 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
22021 ;
22022 return 0;
97bf5e38 22023}
bec39cab
AC
22024_ACEOF
22025rm -f conftest$ac_exeext
22026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027 (eval $ac_link) 2>&5
22028 ac_status=$?
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
97bf5e38 22036 gdb_cv_printf_has_long_double=yes
c906108c 22037else
bec39cab
AC
22038 echo "$as_me: program exited with status $ac_status" >&5
22039echo "$as_me: failed program was:" >&5
22040sed 's/^/| /' conftest.$ac_ext >&5
22041
22042( exit $ac_status )
22043gdb_cv_printf_has_long_double=no
c906108c 22044fi
b4e70030 22045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22046fi
c906108c 22047fi
b4e70030
JB
22048echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22049echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 22050if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
22051
22052cat >>confdefs.h <<\_ACEOF
97bf5e38 22053#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 22054_ACEOF
97bf5e38
MK
22055
22056fi
97bf5e38 22057
bc8bcb4b 22058# Check if the compiler and runtime support scanning long doubles.
97bf5e38 22059
b4e70030
JB
22060echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22061echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
22062if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22063 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22064else
22065 if test "$cross_compiling" = yes; then
22066 gdb_cv_scanf_has_long_double=no
22067else
bec39cab
AC
22068 cat >conftest.$ac_ext <<_ACEOF
22069/* confdefs.h. */
22070_ACEOF
22071cat confdefs.h >>conftest.$ac_ext
22072cat >>conftest.$ac_ext <<_ACEOF
22073/* end confdefs.h. */
bc8bcb4b
MK
22074#include <stdio.h>
22075int
22076main ()
22077{
22078char *buf = "3.141592653";
97bf5e38
MK
22079 long double f = 0;
22080 sscanf (buf, "%Lg", &f);
22081 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
22082 ;
22083 return 0;
97bf5e38 22084}
bec39cab
AC
22085_ACEOF
22086rm -f conftest$ac_exeext
22087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22088 (eval $ac_link) 2>&5
22089 ac_status=$?
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
97bf5e38
MK
22097 gdb_cv_scanf_has_long_double=yes
22098else
bec39cab
AC
22099 echo "$as_me: program exited with status $ac_status" >&5
22100echo "$as_me: failed program was:" >&5
22101sed 's/^/| /' conftest.$ac_ext >&5
22102
22103( exit $ac_status )
22104gdb_cv_scanf_has_long_double=no
97bf5e38 22105fi
b4e70030 22106rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22107fi
c906108c 22108fi
b4e70030
JB
22109echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
22110echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 22111if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
22112
22113cat >>confdefs.h <<\_ACEOF
97bf5e38 22114#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 22115_ACEOF
97bf5e38
MK
22116
22117fi
c906108c 22118
438013df
AO
22119case ${host_os} in
22120aix*)
b4e70030
JB
22121 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
22122echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
22123if test "${gdb_cv_bigtoc+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 22125else
bec39cab 22126
438013df
AO
22127 SAVE_LDFLAGS=$LDFLAGS
22128
22129 case $GCC in
22130 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
22131 *) gdb_cv_bigtoc=-bbigtoc ;;
22132 esac
22133
22134 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
22135 cat >conftest.$ac_ext <<_ACEOF
22136/* confdefs.h. */
22137_ACEOF
22138cat confdefs.h >>conftest.$ac_ext
22139cat >>conftest.$ac_ext <<_ACEOF
22140/* end confdefs.h. */
438013df 22141
bec39cab
AC
22142int
22143main ()
22144{
438013df 22145int i;
bec39cab
AC
22146 ;
22147 return 0;
22148}
22149_ACEOF
22150rm -f conftest.$ac_objext conftest$ac_exeext
22151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152 (eval $ac_link) 2>conftest.er1
22153 ac_status=$?
22154 grep -v '^ *+' conftest.er1 >conftest.err
22155 rm -f conftest.er1
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } &&
b4e70030
JB
22159 { ac_try='test -z "$ac_c_werror_flag"
22160 || test ! -s conftest.err'
bec39cab
AC
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } &&
22166 { ac_try='test -s conftest$ac_exeext'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
438013df
AO
22172 :
22173else
bec39cab
AC
22174 echo "$as_me: failed program was:" >&5
22175sed 's/^/| /' conftest.$ac_ext >&5
22176
b4e70030 22177gdb_cv_bigtoc=
438013df 22178fi
bec39cab
AC
22179rm -f conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
ec76baa5 22181 LDFLAGS="${SAVE_LDFLAGS}"
438013df 22182
bec39cab 22183fi
b4e70030
JB
22184echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
22185echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
22186 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
22187 ;;
22188esac
22189
c906108c
SS
22190
22191
22192if test ${build} = ${host} -a ${host} = ${target} ; then
22193 case ${host_os} in
22194 hpux*)
b4e70030
JB
22195 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
22196echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
22197 if test -f /usr/include/dce/cma_config.h ; then
22198 if test "$GCC" = "yes" ; then
b4e70030
JB
22199 echo "$as_me:$LINENO: result: yes" >&5
22200echo "${ECHO_T}yes" >&6
60ca704f
SE
22201
22202cat >>confdefs.h <<\_ACEOF
c906108c 22203#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 22204_ACEOF
c906108c 22205
3483b318 22206 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
22207 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
22208 else
b4e70030
JB
22209 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
22210echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
22211 fi
22212 else
b4e70030
JB
22213 echo "$as_me:$LINENO: result: no" >&5
22214echo "${ECHO_T}no" >&6
c906108c
SS
22215 fi
22216 ;;
22217 solaris*)
d92419e5
JB
22218 # See if thread_db library is around for Solaris thread debugging.
22219 # Note that we must explicitly test for version 1 of the library
22220 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
22221 # the same API.
b4e70030
JB
22222 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
22223echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 22224 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
22225 echo "$as_me:$LINENO: result: yes" >&5
22226echo "${ECHO_T}yes" >&6
60ca704f
SE
22227
22228cat >>confdefs.h <<\_ACEOF
c906108c 22229#define HAVE_THREAD_DB_LIB 1
bec39cab 22230_ACEOF
c906108c 22231
3483b318 22232 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 22233 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 22234
b4e70030
JB
22235echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22236echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
22237if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22238 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22239else
bec39cab 22240 ac_check_lib_save_LIBS=$LIBS
c906108c 22241LIBS="-ldl $LIBS"
bec39cab
AC
22242cat >conftest.$ac_ext <<_ACEOF
22243/* confdefs.h. */
22244_ACEOF
22245cat confdefs.h >>conftest.$ac_ext
22246cat >>conftest.$ac_ext <<_ACEOF
22247/* end confdefs.h. */
22248
b4e70030 22249/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22250#ifdef __cplusplus
22251extern "C"
22252#endif
b4e70030
JB
22253/* We use char because int might match the return type of a gcc2
22254 builtin and then its argument prototype would still apply. */
bec39cab
AC
22255char dlopen ();
22256int
22257main ()
22258{
b4e70030 22259dlopen ();
bec39cab
AC
22260 ;
22261 return 0;
22262}
22263_ACEOF
22264rm -f conftest.$ac_objext conftest$ac_exeext
22265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22266 (eval $ac_link) 2>conftest.er1
22267 ac_status=$?
22268 grep -v '^ *+' conftest.er1 >conftest.err
22269 rm -f conftest.er1
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } &&
b4e70030
JB
22273 { ac_try='test -z "$ac_c_werror_flag"
22274 || test ! -s conftest.err'
bec39cab
AC
22275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22276 (eval $ac_try) 2>&5
22277 ac_status=$?
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); }; } &&
22280 { ac_try='test -s conftest$ac_exeext'
22281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22282 (eval $ac_try) 2>&5
22283 ac_status=$?
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); }; }; then
22286 ac_cv_lib_dl_dlopen=yes
22287else
22288 echo "$as_me: failed program was:" >&5
22289sed 's/^/| /' conftest.$ac_ext >&5
22290
b4e70030 22291ac_cv_lib_dl_dlopen=no
bec39cab
AC
22292fi
22293rm -f conftest.err conftest.$ac_objext \
22294 conftest$ac_exeext conftest.$ac_ext
22295LIBS=$ac_check_lib_save_LIBS
22296fi
b4e70030
JB
22297echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22298echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
22299if test $ac_cv_lib_dl_dlopen = yes; then
22300 cat >>confdefs.h <<_ACEOF
22301#define HAVE_LIBDL 1
22302_ACEOF
c906108c
SS
22303
22304 LIBS="-ldl $LIBS"
22305
c906108c
SS
22306fi
22307
22308 if test "$GCC" = "yes" ; then
22309 # The GNU linker requires the -export-dynamic option to make
22310 # all symbols visible in the dynamic symbol table.
22311 hold_ldflags=$LDFLAGS
b4e70030
JB
22312 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
22313echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 22314 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
22315 cat >conftest.$ac_ext <<_ACEOF
22316/* confdefs.h. */
22317_ACEOF
22318cat confdefs.h >>conftest.$ac_ext
22319cat >>conftest.$ac_ext <<_ACEOF
22320/* end confdefs.h. */
c906108c 22321
bec39cab
AC
22322int
22323main ()
22324{
c906108c 22325int i;
bec39cab
AC
22326 ;
22327 return 0;
22328}
22329_ACEOF
22330rm -f conftest.$ac_objext conftest$ac_exeext
22331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22332 (eval $ac_link) 2>conftest.er1
22333 ac_status=$?
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } &&
b4e70030
JB
22339 { ac_try='test -z "$ac_c_werror_flag"
22340 || test ! -s conftest.err'
bec39cab
AC
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; } &&
22346 { ac_try='test -s conftest$ac_exeext'
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
c906108c
SS
22352 found=yes
22353else
bec39cab
AC
22354 echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
b4e70030 22357found=no
c906108c 22358fi
bec39cab
AC
22359rm -f conftest.err conftest.$ac_objext \
22360 conftest$ac_exeext conftest.$ac_ext
c906108c 22361 LDFLAGS=$hold_ldflags
b4e70030
JB
22362 echo "$as_me:$LINENO: result: $found" >&5
22363echo "${ECHO_T}$found" >&6
c906108c
SS
22364 if test $found = yes; then
22365 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
22366 fi
22367 fi
22368 # Sun randomly tweaked the prototypes in <proc_service.h>
22369 # at one point.
b4e70030
JB
22370 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
22371echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
22372 if test "${gdb_cv_proc_service_is_old+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22374else
bec39cab
AC
22375
22376 cat >conftest.$ac_ext <<_ACEOF
22377/* confdefs.h. */
22378_ACEOF
22379cat confdefs.h >>conftest.$ac_ext
22380cat >>conftest.$ac_ext <<_ACEOF
22381/* end confdefs.h. */
c906108c
SS
22382
22383 #include <proc_service.h>
22384 ps_err_e ps_pdwrite
22385 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 22386
bec39cab
AC
22387int
22388main ()
22389{
22390
22391 ;
22392 return 0;
22393}
22394_ACEOF
22395rm -f conftest.$ac_objext
22396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22397 (eval $ac_compile) 2>conftest.er1
22398 ac_status=$?
22399 grep -v '^ *+' conftest.er1 >conftest.err
22400 rm -f conftest.er1
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } &&
b4e70030
JB
22404 { ac_try='test -z "$ac_c_werror_flag"
22405 || test ! -s conftest.err'
bec39cab
AC
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; } &&
22411 { ac_try='test -s conftest.$ac_objext'
22412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413 (eval $ac_try) 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; }; then
c906108c
SS
22417 gdb_cv_proc_service_is_old=no
22418else
bec39cab
AC
22419 echo "$as_me: failed program was:" >&5
22420sed 's/^/| /' conftest.$ac_ext >&5
22421
b4e70030 22422gdb_cv_proc_service_is_old=yes
c906108c 22423fi
bec39cab
AC
22424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22425
c906108c
SS
22426fi
22427
b4e70030
JB
22428 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
22429echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 22430 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
22431
22432cat >>confdefs.h <<\_ACEOF
c906108c 22433#define PROC_SERVICE_IS_OLD 1
bec39cab 22434_ACEOF
c906108c
SS
22435
22436 fi
22437 else
b4e70030
JB
22438 echo "$as_me:$LINENO: result: no" >&5
22439echo "${ECHO_T}no" >&6
c906108c
SS
22440 fi
22441 ;;
d92419e5 22442 aix*)
b4e70030
JB
22443 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
22444echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
22445 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447else
22448 cat >conftest.$ac_ext <<_ACEOF
22449/* confdefs.h. */
22450_ACEOF
22451cat confdefs.h >>conftest.$ac_ext
22452cat >>conftest.$ac_ext <<_ACEOF
22453/* end confdefs.h. */
d92419e5 22454#include <sys/pthdebug.h>
bec39cab
AC
22455int
22456main ()
22457{
d92419e5
JB
22458#ifndef PTHDB_VERSION_3
22459 #error
22460 #endif
bec39cab
AC
22461 ;
22462 return 0;
22463}
22464_ACEOF
22465rm -f conftest.$ac_objext
22466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22467 (eval $ac_compile) 2>conftest.er1
22468 ac_status=$?
22469 grep -v '^ *+' conftest.er1 >conftest.err
22470 rm -f conftest.er1
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } &&
b4e70030
JB
22474 { ac_try='test -z "$ac_c_werror_flag"
22475 || test ! -s conftest.err'
bec39cab
AC
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; } &&
22481 { ac_try='test -s conftest.$ac_objext'
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; }; then
d92419e5
JB
22487 gdb_cv_have_aix_thread_debug=yes
22488else
bec39cab
AC
22489 echo "$as_me: failed program was:" >&5
22490sed 's/^/| /' conftest.$ac_ext >&5
22491
b4e70030 22492gdb_cv_have_aix_thread_debug=no
d92419e5 22493fi
bec39cab 22494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
22495fi
22496
b4e70030
JB
22497 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
22498echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
22499 if test $gdb_cv_have_aix_thread_debug = yes; then
22500 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 22501 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
22502 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
22503 fi
22504 ;;
c906108c 22505 esac
bec39cab 22506
c906108c
SS
22507fi
22508
3f47be5c 22509if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
22510 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
22511echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
22512if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22514else
22515 cat >conftest.$ac_ext <<_ACEOF
22516/* confdefs.h. */
22517_ACEOF
22518cat confdefs.h >>conftest.$ac_ext
22519cat >>conftest.$ac_ext <<_ACEOF
22520/* end confdefs.h. */
3f47be5c 22521#include <thread_db.h>
bec39cab
AC
22522int
22523main ()
22524{
3f47be5c 22525int i = TD_NOTALLOC;
bec39cab
AC
22526 ;
22527 return 0;
22528}
22529_ACEOF
22530rm -f conftest.$ac_objext
22531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22532 (eval $ac_compile) 2>conftest.er1
22533 ac_status=$?
22534 grep -v '^ *+' conftest.er1 >conftest.err
22535 rm -f conftest.er1
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } &&
b4e70030
JB
22539 { ac_try='test -z "$ac_c_werror_flag"
22540 || test ! -s conftest.err'
bec39cab
AC
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; } &&
22546 { ac_try='test -s conftest.$ac_objext'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22549 ac_status=$?
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
3f47be5c
EZ
22552 gdb_cv_thread_db_h_has_td_notalloc=yes
22553else
bec39cab
AC
22554 echo "$as_me: failed program was:" >&5
22555sed 's/^/| /' conftest.$ac_ext >&5
22556
b4e70030 22557gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 22558
3f47be5c 22559fi
bec39cab 22560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 22561
bec39cab 22562fi
b4e70030
JB
22563echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
22564echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
22565 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
22566echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
22567if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
22569else
22570 cat >conftest.$ac_ext <<_ACEOF
22571/* confdefs.h. */
22572_ACEOF
22573cat confdefs.h >>conftest.$ac_ext
22574cat >>conftest.$ac_ext <<_ACEOF
22575/* end confdefs.h. */
22576#include <thread_db.h>
22577int
22578main ()
22579{
22580int i = TD_VERSION;
22581 ;
22582 return 0;
22583}
22584_ACEOF
22585rm -f conftest.$ac_objext
22586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22587 (eval $ac_compile) 2>conftest.er1
22588 ac_status=$?
22589 grep -v '^ *+' conftest.er1 >conftest.err
22590 rm -f conftest.er1
22591 cat conftest.err >&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } &&
22594 { ac_try='test -z "$ac_c_werror_flag"
22595 || test ! -s conftest.err'
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; } &&
22601 { ac_try='test -s conftest.$ac_objext'
22602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603 (eval $ac_try) 2>&5
22604 ac_status=$?
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); }; }; then
22607 gdb_cv_thread_db_h_has_td_version=yes
22608else
22609 echo "$as_me: failed program was:" >&5
22610sed 's/^/| /' conftest.$ac_ext >&5
22611
22612gdb_cv_thread_db_h_has_td_version=no
22613
22614fi
22615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22616
22617fi
22618echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
22619echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
22620 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
22621echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
22622if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22624else
22625 cat >conftest.$ac_ext <<_ACEOF
22626/* confdefs.h. */
22627_ACEOF
22628cat confdefs.h >>conftest.$ac_ext
22629cat >>conftest.$ac_ext <<_ACEOF
22630/* end confdefs.h. */
22631#include <thread_db.h>
22632int
22633main ()
22634{
22635int i = TD_NOTLS;
22636 ;
22637 return 0;
22638}
22639_ACEOF
22640rm -f conftest.$ac_objext
22641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22642 (eval $ac_compile) 2>conftest.er1
22643 ac_status=$?
22644 grep -v '^ *+' conftest.er1 >conftest.err
22645 rm -f conftest.er1
22646 cat conftest.err >&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } &&
22649 { ac_try='test -z "$ac_c_werror_flag"
22650 || test ! -s conftest.err'
22651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652 (eval $ac_try) 2>&5
22653 ac_status=$?
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); }; } &&
22656 { ac_try='test -s conftest.$ac_objext'
22657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658 (eval $ac_try) 2>&5
22659 ac_status=$?
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); }; }; then
22662 gdb_cv_thread_db_h_has_td_notls=yes
22663else
22664 echo "$as_me: failed program was:" >&5
22665sed 's/^/| /' conftest.$ac_ext >&5
22666
22667gdb_cv_thread_db_h_has_td_notls=no
22668
22669fi
22670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22671
22672fi
22673echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
22674echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
22675fi
22676if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
22677
22678cat >>confdefs.h <<\_ACEOF
3f47be5c 22679#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 22680_ACEOF
3f47be5c 22681
59f80f10
DJ
22682fi
22683if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
22684
22685cat >>confdefs.h <<\_ACEOF
22686#define THREAD_DB_HAS_TD_VERSION 1
22687_ACEOF
22688
22689fi
22690if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
22691
22692cat >>confdefs.h <<\_ACEOF
22693#define THREAD_DB_HAS_TD_NOTLS 1
22694_ACEOF
22695
3f47be5c
EZ
22696fi
22697
b757528f 22698if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
22699 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
22700echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
22701if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703else
22704 cat >conftest.$ac_ext <<_ACEOF
22705/* confdefs.h. */
22706_ACEOF
22707cat confdefs.h >>conftest.$ac_ext
22708cat >>conftest.$ac_ext <<_ACEOF
22709/* end confdefs.h. */
b757528f 22710#include <sys/syscall.h>
bec39cab
AC
22711int
22712main ()
22713{
b757528f 22714int i = __NR_tkill;
bec39cab
AC
22715 ;
22716 return 0;
22717}
22718_ACEOF
22719rm -f conftest.$ac_objext
22720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22721 (eval $ac_compile) 2>conftest.er1
22722 ac_status=$?
22723 grep -v '^ *+' conftest.er1 >conftest.err
22724 rm -f conftest.er1
22725 cat conftest.err >&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } &&
b4e70030
JB
22728 { ac_try='test -z "$ac_c_werror_flag"
22729 || test ! -s conftest.err'
bec39cab
AC
22730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22731 (eval $ac_try) 2>&5
22732 ac_status=$?
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); }; } &&
22735 { ac_try='test -s conftest.$ac_objext'
22736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737 (eval $ac_try) 2>&5
22738 ac_status=$?
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); }; }; then
b757528f
JJ
22741 gdb_cv_sys_syscall_h_has_tkill=yes
22742else
bec39cab
AC
22743 echo "$as_me: failed program was:" >&5
22744sed 's/^/| /' conftest.$ac_ext >&5
22745
b4e70030 22746gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 22747
b757528f 22748fi
bec39cab 22749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 22750
bec39cab 22751fi
b4e70030
JB
22752echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
22753echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
22754fi
22755if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
22756
22757cat >>confdefs.h <<\_ACEOF
b757528f 22758#define HAVE_TKILL_SYSCALL 1
bec39cab 22759_ACEOF
b757528f
JJ
22760
22761fi
22762
fb40c209 22763
bec39cab 22764
b4e70030 22765# Check whether --with-sysroot or --without-sysroot was given.
030292b7 22766if test "${with_sysroot+set}" = set; then
b4e70030
JB
22767 withval="$with_sysroot"
22768
030292b7 22769 case ${with_sysroot} in
715d1656 22770 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
22771 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
22772 esac
22773
22774 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
22775
07abfebf
RS
22776 if test "x$prefix" = xNONE; then
22777 test_prefix=/usr/local
22778 else
22779 test_prefix=$prefix
22780 fi
aa28a74e 22781 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 22782 test_exec_prefix=$test_prefix
030292b7 22783 else
07abfebf 22784 test_exec_prefix=$exec_prefix
030292b7
DJ
22785 fi
22786 case ${TARGET_SYSTEM_ROOT} in
715d1656 22787 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
22788 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
22789 '${prefix}'|'${prefix}/'*|\
715d1656 22790 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
22791 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
22792 TARGET_SYSTEM_ROOT_DEFINE="$t"
22793 ;;
22794 esac
22795
22796else
bec39cab 22797
030292b7
DJ
22798 TARGET_SYSTEM_ROOT=
22799 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
22800
b4e70030 22801fi;
030292b7
DJ
22802
22803
22804
b4e70030 22805# Check whether --enable-werror or --disable-werror was given.
094a342e 22806if test "${enable_werror+set}" = set; then
b4e70030
JB
22807 enableval="$enable_werror"
22808 case "${enableval}" in
094a342e
MK
22809 yes | y) ERROR_ON_WARNING="yes" ;;
22810 no | n) ERROR_ON_WARNING="no" ;;
22811 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
22812echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
22813 { (exit 1); exit 1; }; } ;;
22814 esac
b4e70030 22815fi;
094a342e
MK
22816
22817# Enable -Werror by default when using gcc
22818if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
22819 ERROR_ON_WARNING=yes
22820fi
22821
22822WERROR_CFLAGS=""
22823if test "${ERROR_ON_WARNING}" = yes ; then
22824 WERROR_CFLAGS="-Werror"
22825fi
22826
aa79a185
DJ
22827# The entries after -Wno-pointer-sign are disabled warnings which may
22828# be enabled in the future, which can not currently be used to build
22829# GDB.
22830# NOTE: If you change this list, remember to update
3b851bce 22831# gdb/doc/gdbint.texinfo.
aa79a185
DJ
22832build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
22833-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 22834-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 22835
b4e70030 22836# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 22837if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
22838 enableval="$enable_build_warnings"
22839 case "${enableval}" in
c906108c
SS
22840 yes) ;;
22841 no) build_warnings="-w";;
22842 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22843 build_warnings="${build_warnings} ${t}";;
22844 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22845 build_warnings="${t} ${build_warnings}";;
22846 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22847esac
d4f3574e 22848if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 22849 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 22850fi
b4e70030 22851fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 22852if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
22853 enableval="$enable_gdb_build_warnings"
22854 case "${enableval}" in
3b851bce
AC
22855 yes) ;;
22856 no) build_warnings="-w";;
22857 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22858 build_warnings="${build_warnings} ${t}";;
22859 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22860 build_warnings="${t} ${build_warnings}";;
22861 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22862esac
22863if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22864 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
22865fi
b4e70030 22866fi; WARN_CFLAGS=""
c906108c
SS
22867if test "x${build_warnings}" != x -a "x$GCC" = xyes
22868then
b4e70030
JB
22869 echo "$as_me:$LINENO: checking compiler warning flags" >&5
22870echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
22871 # Separate out the -Werror flag as some files just cannot be
22872 # compiled with it enabled.
22873 for w in ${build_warnings}; do
22874 case $w in
22875 -Werr*) WERROR_CFLAGS=-Werror ;;
22876 *) # Check that GCC accepts it
4536bbc6
AC
22877 saved_CFLAGS="$CFLAGS"
22878 CFLAGS="$CFLAGS $w"
bec39cab
AC
22879 cat >conftest.$ac_ext <<_ACEOF
22880/* confdefs.h. */
22881_ACEOF
22882cat confdefs.h >>conftest.$ac_ext
22883cat >>conftest.$ac_ext <<_ACEOF
22884/* end confdefs.h. */
4536bbc6 22885
bec39cab
AC
22886int
22887main ()
22888{
4536bbc6 22889
bec39cab
AC
22890 ;
22891 return 0;
22892}
22893_ACEOF
22894rm -f conftest.$ac_objext
22895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22896 (eval $ac_compile) 2>conftest.er1
22897 ac_status=$?
22898 grep -v '^ *+' conftest.er1 >conftest.err
22899 rm -f conftest.er1
22900 cat conftest.err >&5
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); } &&
b4e70030
JB
22903 { ac_try='test -z "$ac_c_werror_flag"
22904 || test ! -s conftest.err'
bec39cab
AC
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; } &&
22910 { ac_try='test -s conftest.$ac_objext'
22911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912 (eval $ac_try) 2>&5
22913 ac_status=$?
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; }; then
4536bbc6
AC
22916 WARN_CFLAGS="${WARN_CFLAGS} $w"
22917else
bec39cab
AC
22918 echo "$as_me: failed program was:" >&5
22919sed 's/^/| /' conftest.$ac_ext >&5
22920
4536bbc6 22921fi
bec39cab 22922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 22923 CFLAGS="$saved_CFLAGS"
746a987d
AC
22924 esac
22925 done
aa79a185
DJ
22926 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
22927echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
22928fi
22929
22930
104c1213 22931
7a292a7a 22932# In the Cygwin environment, we need some additional flags.
b4e70030
JB
22933echo "$as_me:$LINENO: checking for cygwin" >&5
22934echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
22935if test "${gdb_cv_os_cygwin+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22937else
22938 cat >conftest.$ac_ext <<_ACEOF
22939/* confdefs.h. */
22940_ACEOF
22941cat confdefs.h >>conftest.$ac_ext
22942cat >>conftest.$ac_ext <<_ACEOF
22943/* end confdefs.h. */
7a292a7a
SS
22944
22945#if defined (__CYGWIN__) || defined (__CYGWIN32__)
22946lose
22947#endif
bec39cab 22948_ACEOF
7a292a7a 22949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 22950 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
22951 gdb_cv_os_cygwin=yes
22952else
7a292a7a
SS
22953 gdb_cv_os_cygwin=no
22954fi
22955rm -f conftest*
22956
22957fi
b4e70030
JB
22958echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
22959echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 22960
aff38e61 22961
3eb25fda 22962SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 22963case ${host} in
95cbc983
AC
22964 *go32* ) SER_HARDWIRE=ser-go32.o ;;
22965 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 22966 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
22967esac
22968
22969
cd0fc7c3
SS
22970# libreadline needs libuser32.a in a cygwin environment
22971WIN32LIBS=
22972if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
22973 WIN32LIBS="-luser32"
22974 case "${target}" in
22975 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
22976 ;;
22977 esac
cd0fc7c3 22978fi
c906108c 22979
b4505029
MM
22980# The ser-tcp.c module requires sockets.
22981case ${host} in
22982 *mingw32*)
22983
22984cat >>confdefs.h <<\_ACEOF
22985#define USE_WIN32API 1
22986_ACEOF
22987
22988 WIN32LIBS="$WIN32LIBS -lws2_32"
22989 ;;
22990esac
22991
7a292a7a 22992
31d99776
DJ
22993# Add ELF support to GDB, but only if BFD includes ELF support.
22994OLD_CFLAGS=$CFLAGS
22995OLD_LDFLAGS=$LDFLAGS
22996OLD_LIBS=$LIBS
cab58a69 22997CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 22998LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9
DJ
22999intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
23000LIBS="$LIBS -lbfd -liberty $intl"
31d99776
DJ
23001echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
23002echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
23003if test "${gdb_cv_var_elf+set}" = set; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23005else
23006 cat >conftest.$ac_ext <<_ACEOF
23007/* confdefs.h. */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h. */
23012#include <stdlib.h>
23013#include "bfd.h"
23014#include "elf-bfd.h"
23015
23016int
23017main ()
23018{
23019bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
23020 ;
23021 return 0;
23022}
23023_ACEOF
23024rm -f conftest.$ac_objext conftest$ac_exeext
23025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23026 (eval $ac_link) 2>conftest.er1
23027 ac_status=$?
23028 grep -v '^ *+' conftest.er1 >conftest.err
23029 rm -f conftest.er1
23030 cat conftest.err >&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } &&
23033 { ac_try='test -z "$ac_c_werror_flag"
23034 || test ! -s conftest.err'
23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036 (eval $ac_try) 2>&5
23037 ac_status=$?
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; } &&
23040 { ac_try='test -s conftest$ac_exeext'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23043 ac_status=$?
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; }; then
23046 gdb_cv_var_elf=yes
23047else
23048 echo "$as_me: failed program was:" >&5
23049sed 's/^/| /' conftest.$ac_ext >&5
23050
23051gdb_cv_var_elf=no
23052fi
23053rm -f conftest.err conftest.$ac_objext \
23054 conftest$ac_exeext conftest.$ac_ext
23055fi
23056echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
23057echo "${ECHO_T}$gdb_cv_var_elf" >&6
23058if test $gdb_cv_var_elf = yes; then
23059 CONFIG_OBS="$CONFIG_OBS elfread.o"
23060
23061cat >>confdefs.h <<\_ACEOF
23062#define HAVE_ELF 1
23063_ACEOF
23064
23065fi
23066CFLAGS=$OLD_CFLAGS
23067LDFLAGS=$OLD_LDFLAGS
23068LIBS=$OLD_LIBS
23069
121ce6e5
DJ
23070# Add any host-specific objects to GDB.
23071CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23072
3fc11d3e
JM
23073LIBGUI="../libgui/src/libgui.a"
23074GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23075
23076
7a292a7a 23077
3fc11d3e
JM
23078WIN32LDAPP=
23079
23080
23081
d91670b9 23082case "${host}" in
686a5eed 23083*-*-cygwin* | *-*-mingw* )
d91670b9
CV
23084 configdir="win"
23085 ;;
23086*)
23087 configdir="unix"
23088 ;;
23089esac
3fc11d3e
JM
23090
23091GDBTKLIBS=
23092if test "${enable_gdbtk}" = "yes"; then
23093
d1c3b63a
KS
23094 # Gdbtk must have an absolute path to srcdir in order to run
23095 # properly when not installed.
23096 here=`pwd`
23097 cd ${srcdir}
23098 GDBTK_SRC_DIR=`pwd`
23099 cd $here
23100
bec39cab 23101
3fc11d3e
JM
23102#
23103# Ok, lets find the tcl configuration
bec39cab 23104# First, look for one uninstalled.
3fc11d3e
JM
23105# the alternative search directory is invoked by --with-tclconfig
23106#
23107
23108if test x"${no_tcl}" = x ; then
23109 # we reset no_tcl in case something fails here
23110 no_tcl=true
bec39cab 23111
b4e70030 23112# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 23113if test "${with_tclconfig+set}" = set; then
b4e70030
JB
23114 withval="$with_tclconfig"
23115 with_tclconfig=${withval}
23116fi;
23117 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
23118echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
23119 if test "${ac_cv_c_tclconfig+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23121else
bec39cab 23122
3fc11d3e
JM
23123
23124 # First check to see if --with-tclconfig was specified.
23125 if test x"${with_tclconfig}" != x ; then
23126 if test -f "${with_tclconfig}/tclConfig.sh" ; then
23127 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
23128 else
bec39cab
AC
23129 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
23130echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
23131 { (exit 1); exit 1; }; }
3fc11d3e
JM
23132 fi
23133 fi
23134
23135 # then check for a private Tcl installation
23136 if test x"${ac_cv_c_tclconfig}" = x ; then
23137 for i in \
23138 ../tcl \
23139 `ls -dr ../tcl[7-9]* 2>/dev/null` \
23140 ../../tcl \
23141 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
23142 ../../../tcl \
23143 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
23144 if test -f "$i/${configdir}/tclConfig.sh" ; then
23145 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23146 break
23147 fi
23148 done
23149 fi
23150 # check in a few common install locations
23151 if test x"${ac_cv_c_tclconfig}" = x ; then
23152 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23153 if test -f "$i/tclConfig.sh" ; then
23154 ac_cv_c_tclconfig=`(cd $i; pwd)`
23155 break
23156 fi
23157 done
23158 fi
23159 # check in a few other private locations
23160 if test x"${ac_cv_c_tclconfig}" = x ; then
23161 for i in \
23162 ${srcdir}/../tcl \
23163 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
23164 if test -f "$i/${configdir}/tclConfig.sh" ; then
23165 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23166 break
23167 fi
23168 done
23169 fi
bec39cab 23170
3fc11d3e
JM
23171fi
23172
23173 if test x"${ac_cv_c_tclconfig}" = x ; then
23174 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
23175 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
23176echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
23177 else
23178 no_tcl=
23179 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
23180 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
23181echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
23182 fi
23183fi
23184
23185 if test -z "${no_tcl}"; then
bec39cab 23186
3fc11d3e
JM
23187 . $TCLCONFIG
23188
3fc11d3e
JM
23189
23190
23191
23192
3fc11d3e
JM
23193
23194
23195
bec39cab
AC
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
3fc11d3e
JM
23215#
23216# Ok, lets find the tk configuration
bec39cab 23217# First, look for one uninstalled.
3fc11d3e
JM
23218# the alternative search directory is invoked by --with-tkconfig
23219#
23220
23221if test x"${no_tk}" = x ; then
23222 # we reset no_tk in case something fails here
23223 no_tk=true
bec39cab 23224
b4e70030 23225# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 23226if test "${with_tkconfig+set}" = set; then
b4e70030
JB
23227 withval="$with_tkconfig"
23228 with_tkconfig=${withval}
23229fi;
23230 echo "$as_me:$LINENO: checking for Tk configuration" >&5
23231echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
23232 if test "${ac_cv_c_tkconfig+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23234else
bec39cab 23235
3fc11d3e
JM
23236
23237 # First check to see if --with-tkconfig was specified.
23238 if test x"${with_tkconfig}" != x ; then
23239 if test -f "${with_tkconfig}/tkConfig.sh" ; then
23240 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
23241 else
bec39cab
AC
23242 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
23243echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
23244 { (exit 1); exit 1; }; }
3fc11d3e
JM
23245 fi
23246 fi
23247
23248 # then check for a private Tk library
23249 if test x"${ac_cv_c_tkconfig}" = x ; then
23250 for i in \
23251 ../tk \
23252 `ls -dr ../tk[4-9]* 2>/dev/null` \
23253 ../../tk \
23254 `ls -dr ../../tk[4-9]* 2>/dev/null` \
23255 ../../../tk \
23256 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
23257 if test -f "$i/${configdir}/tkConfig.sh" ; then
23258 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23259 break
23260 fi
23261 done
23262 fi
23263 # check in a few common install locations
23264 if test x"${ac_cv_c_tkconfig}" = x ; then
23265 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23266 if test -f "$i/tkConfig.sh" ; then
23267 ac_cv_c_tkconfig=`(cd $i; pwd)`
23268 break
23269 fi
23270 done
23271 fi
23272 # check in a few other private locations
23273 if test x"${ac_cv_c_tkconfig}" = x ; then
23274 for i in \
23275 ${srcdir}/../tk \
23276 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
23277 if test -f "$i/${configdir}/tkConfig.sh" ; then
23278 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23279 break
23280 fi
23281 done
23282 fi
bec39cab 23283
3fc11d3e
JM
23284fi
23285
23286 if test x"${ac_cv_c_tkconfig}" = x ; then
23287 TKCONFIG="# no Tk configs found"
bec39cab
AC
23288 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
23289echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
23290 else
23291 no_tk=
23292 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
23293 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
23294echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
23295 fi
23296fi
23297
23298
23299
dd2504ab
JM
23300 # now look for Tcl library stuff
23301
d91670b9 23302 tcldir="../tcl/${configdir}/"
dd2504ab
JM
23303
23304 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
23305
3fc11d3e
JM
23306 # If $no_tk is nonempty, then we can't do Tk, and there is no
23307 # point to doing Tcl.
23308 if test -z "${no_tk}"; then
bec39cab 23309
3fc11d3e
JM
23310 if test -f "$TKCONFIG" ; then
23311 . $TKCONFIG
23312 fi
23313
3fc11d3e 23314
3fc11d3e
JM
23315
23316
3fc11d3e 23317
bec39cab
AC
23318
23319
23320
23321
23322
23323
23324
23325
23326
3fc11d3e
JM
23327#
23328# Ok, lets find the tcl source trees so we can use the headers
23329# Warning: transition of version 9 to 10 will break this algorithm
23330# because 10 sorts before 9. We also look for just tcl. We have to
23331# be careful that we don't match stuff like tclX by accident.
23332# the alternative search directory is involked by --with-tclinclude
23333#
23334
23335no_tcl=true
b4e70030
JB
23336echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
23337echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 23338
b4e70030 23339# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 23340if test "${with_tclinclude+set}" = set; then
b4e70030
JB
23341 withval="$with_tclinclude"
23342 with_tclinclude=${withval}
23343fi;
bec39cab
AC
23344if test "${ac_cv_c_tclh+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23346else
bec39cab 23347
3fc11d3e
JM
23348# first check to see if --with-tclinclude was specified
23349if test x"${with_tclinclude}" != x ; then
23350 if test -f ${with_tclinclude}/tclInt.h ; then
23351 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
23352 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
23353 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
23354 else
bec39cab
AC
23355 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
23356echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
23357 { (exit 1); exit 1; }; }
3fc11d3e
JM
23358 fi
23359fi
23360
23361# next check if it came with Tcl configuration file
23362if test x"${ac_cv_c_tclconfig}" = x ; then
23363 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
23364 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
23365 fi
23366fi
23367
23368# next check in private source directory
23369#
23370# since ls returns lowest version numbers first, reverse its output
23371if test x"${ac_cv_c_tclh}" = x ; then
23372 for i in \
23373 ${srcdir}/../tcl \
23374 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
23375 ${srcdir}/../../tcl \
23376 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
23377 ${srcdir}/../../../tcl \
23378 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
23379 if test -f $i/generic/tclInt.h ; then
23380 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23381 break
23382 fi
23383 done
23384fi
23385# finally check in a few common install locations
23386#
23387# since ls returns lowest version numbers first, reverse its output
23388if test x"${ac_cv_c_tclh}" = x ; then
23389 for i in \
23390 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
23391 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
23392 /usr/local/src/tcl \
23393 /usr/local/lib/tcl \
23394 ${prefix}/include ; do
23395 if test -f $i/generic/tclInt.h ; then
23396 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23397 break
23398 fi
23399 done
23400fi
23401# see if one is installed
23402if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 23403 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
23404 echo "$as_me:$LINENO: checking for tclInt.h" >&5
23405echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
23406if test "${ac_cv_header_tclInt_h+set}" = set; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23408fi
b4e70030
JB
23409echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23410echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
23411else
23412 # Is the header compilable?
b4e70030
JB
23413echo "$as_me:$LINENO: checking tclInt.h usability" >&5
23414echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
23415cat >conftest.$ac_ext <<_ACEOF
23416/* confdefs.h. */
23417_ACEOF
23418cat confdefs.h >>conftest.$ac_ext
23419cat >>conftest.$ac_ext <<_ACEOF
23420/* end confdefs.h. */
23421$ac_includes_default
23422#include <tclInt.h>
23423_ACEOF
23424rm -f conftest.$ac_objext
23425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23426 (eval $ac_compile) 2>conftest.er1
23427 ac_status=$?
23428 grep -v '^ *+' conftest.er1 >conftest.err
23429 rm -f conftest.er1
23430 cat conftest.err >&5
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } &&
b4e70030
JB
23433 { ac_try='test -z "$ac_c_werror_flag"
23434 || test ! -s conftest.err'
bec39cab
AC
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; } &&
23440 { ac_try='test -s conftest.$ac_objext'
23441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23442 (eval $ac_try) 2>&5
23443 ac_status=$?
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); }; }; then
23446 ac_header_compiler=yes
23447else
23448 echo "$as_me: failed program was:" >&5
23449sed 's/^/| /' conftest.$ac_ext >&5
23450
b4e70030 23451ac_header_compiler=no
bec39cab
AC
23452fi
23453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
23454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23455echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
23456
23457# Is the header present?
b4e70030
JB
23458echo "$as_me:$LINENO: checking tclInt.h presence" >&5
23459echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
23460cat >conftest.$ac_ext <<_ACEOF
23461/* confdefs.h. */
23462_ACEOF
23463cat confdefs.h >>conftest.$ac_ext
23464cat >>conftest.$ac_ext <<_ACEOF
23465/* end confdefs.h. */
3fc11d3e 23466#include <tclInt.h>
bec39cab
AC
23467_ACEOF
23468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23470 ac_status=$?
23471 grep -v '^ *+' conftest.er1 >conftest.err
23472 rm -f conftest.er1
23473 cat conftest.err >&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } >/dev/null; then
23476 if test -s conftest.err; then
23477 ac_cpp_err=$ac_c_preproc_warn_flag
23478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23479 else
23480 ac_cpp_err=
23481 fi
23482else
23483 ac_cpp_err=yes
3fc11d3e 23484fi
bec39cab
AC
23485if test -z "$ac_cpp_err"; then
23486 ac_header_preproc=yes
23487else
23488 echo "$as_me: failed program was:" >&5
23489sed 's/^/| /' conftest.$ac_ext >&5
23490
23491 ac_header_preproc=no
3fc11d3e 23492fi
bec39cab 23493rm -f conftest.err conftest.$ac_ext
b4e70030
JB
23494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23495echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
23496
23497# So? What about this header?
23498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23499 yes:no: )
23500 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23501echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23502 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
23503echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
23504 ac_header_preproc=yes
23505 ;;
23506 no:yes:* )
23507 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
23508echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
23509 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23510echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23511 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23512echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23513 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23514echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23515 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23516echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23517 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23518echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
23519 (
23520 cat <<\_ASBOX
23521## ------------------------------------------ ##
23522## Report this to the AC_PACKAGE_NAME lists. ##
23523## ------------------------------------------ ##
23524_ASBOX
23525 ) |
23526 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
23527 ;;
23528esac
b4e70030
JB
23529echo "$as_me:$LINENO: checking for tclInt.h" >&5
23530echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
23531if test "${ac_cv_header_tclInt_h+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533else
23534 ac_cv_header_tclInt_h=$ac_header_preproc
23535fi
b4e70030
JB
23536echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23537echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
23538
23539fi
23540if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
23541 ac_cv_c_tclh=installed
23542else
bec39cab 23543 ac_cv_c_tclh=""
3fc11d3e
JM
23544fi
23545
bec39cab 23546
3fc11d3e
JM
23547fi
23548
23549fi
23550
23551if test x"${ac_cv_c_tclh}" = x ; then
23552 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
23553 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23554echo "$as_me: error: Can't find Tcl private headers" >&2;}
23555 { (exit 1); exit 1; }; }
3fc11d3e
JM
23556fi
23557if test x"${ac_cv_c_tclh}" != x ; then
23558 no_tcl=""
23559 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
23560 echo "$as_me:$LINENO: result: is installed" >&5
23561echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
23562 TCLHDIR=""
23563 else
b4e70030
JB
23564 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23565echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
23566 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23567 TCLHDIR="-I${ac_cv_c_tclh}"
23568 fi
23569fi
23570
23571
23572
bec39cab 23573
3fc11d3e
JM
23574#
23575# Ok, lets find the tk source trees so we can use the headers
23576# If the directory (presumably symlink) named "tk" exists, use that one
23577# in preference to any others. Same logic is used when choosing library
23578# and again with Tcl. The search order is the best place to look first, then in
23579# decreasing significance. The loop breaks if the trigger file is found.
23580# Note the gross little conversion here of srcdir by cd'ing to the found
23581# directory. This converts the path from a relative to an absolute, so
23582# recursive cache variables for the path will work right. We check all
23583# the possible paths in one loop rather than many seperate loops to speed
23584# things up.
23585# the alternative search directory is involked by --with-tkinclude
23586#
23587no_tk=true
b4e70030
JB
23588echo "$as_me:$LINENO: checking for Tk private headers" >&5
23589echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 23590
b4e70030 23591# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 23592if test "${with_tkinclude+set}" = set; then
b4e70030
JB
23593 withval="$with_tkinclude"
23594 with_tkinclude=${withval}
23595fi;
bec39cab
AC
23596if test "${ac_cv_c_tkh+set}" = set; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23598else
bec39cab 23599
3fc11d3e
JM
23600# first check to see if --with-tkinclude was specified
23601if test x"${with_tkinclude}" != x ; then
23602 if test -f ${with_tkinclude}/tk.h ; then
23603 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23604 elif test -f ${with_tkinclude}/generic/tk.h ; then
23605 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23606 else
bec39cab
AC
23607 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23608echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23609 { (exit 1); exit 1; }; }
3fc11d3e
JM
23610 fi
23611fi
23612
23613# next check if it came with Tk configuration file
23614if test x"${ac_cv_c_tkconfig}" = x ; then
23615 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23616 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23617 fi
23618fi
23619
23620# next check in private source directory
23621#
23622# since ls returns lowest version numbers first, reverse its output
23623if test x"${ac_cv_c_tkh}" = x ; then
23624 for i in \
23625 ${srcdir}/../tk \
23626 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23627 ${srcdir}/../../tk \
23628 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23629 ${srcdir}/../../../tk \
23630 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23631 if test -f $i/generic/tk.h ; then
23632 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23633 break
23634 fi
23635 done
23636fi
23637# finally check in a few common install locations
23638#
23639# since ls returns lowest version numbers first, reverse its output
23640if test x"${ac_cv_c_tkh}" = x ; then
23641 for i in \
23642 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23643 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23644 /usr/local/src/tk \
23645 /usr/local/lib/tk \
23646 ${prefix}/include ; do
23647 if test -f $i/generic/tk.h ; then
23648 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23649 break
23650 fi
23651 done
23652fi
23653# see if one is installed
23654if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 23655 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
23656 echo "$as_me:$LINENO: checking for tk.h" >&5
23657echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
23658if test "${ac_cv_header_tk_h+set}" = set; then
23659 echo $ECHO_N "(cached) $ECHO_C" >&6
23660fi
b4e70030
JB
23661echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23662echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
23663else
23664 # Is the header compilable?
b4e70030
JB
23665echo "$as_me:$LINENO: checking tk.h usability" >&5
23666echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
23667cat >conftest.$ac_ext <<_ACEOF
23668/* confdefs.h. */
23669_ACEOF
23670cat confdefs.h >>conftest.$ac_ext
23671cat >>conftest.$ac_ext <<_ACEOF
23672/* end confdefs.h. */
23673$ac_includes_default
3fc11d3e 23674#include <tk.h>
bec39cab
AC
23675_ACEOF
23676rm -f conftest.$ac_objext
23677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23678 (eval $ac_compile) 2>conftest.er1
23679 ac_status=$?
23680 grep -v '^ *+' conftest.er1 >conftest.err
23681 rm -f conftest.er1
23682 cat conftest.err >&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } &&
b4e70030
JB
23685 { ac_try='test -z "$ac_c_werror_flag"
23686 || test ! -s conftest.err'
bec39cab
AC
23687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23688 (eval $ac_try) 2>&5
23689 ac_status=$?
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); }; } &&
23692 { ac_try='test -s conftest.$ac_objext'
23693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694 (eval $ac_try) 2>&5
23695 ac_status=$?
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; }; then
23698 ac_header_compiler=yes
23699else
23700 echo "$as_me: failed program was:" >&5
23701sed 's/^/| /' conftest.$ac_ext >&5
23702
b4e70030 23703ac_header_compiler=no
bec39cab
AC
23704fi
23705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
23706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23707echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
23708
23709# Is the header present?
b4e70030
JB
23710echo "$as_me:$LINENO: checking tk.h presence" >&5
23711echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
23712cat >conftest.$ac_ext <<_ACEOF
23713/* confdefs.h. */
23714_ACEOF
23715cat confdefs.h >>conftest.$ac_ext
23716cat >>conftest.$ac_ext <<_ACEOF
23717/* end confdefs.h. */
23718#include <tk.h>
23719_ACEOF
23720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23722 ac_status=$?
23723 grep -v '^ *+' conftest.er1 >conftest.err
23724 rm -f conftest.er1
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } >/dev/null; then
23728 if test -s conftest.err; then
23729 ac_cpp_err=$ac_c_preproc_warn_flag
23730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23731 else
23732 ac_cpp_err=
23733 fi
23734else
23735 ac_cpp_err=yes
3fc11d3e 23736fi
bec39cab
AC
23737if test -z "$ac_cpp_err"; then
23738 ac_header_preproc=yes
23739else
23740 echo "$as_me: failed program was:" >&5
23741sed 's/^/| /' conftest.$ac_ext >&5
23742
23743 ac_header_preproc=no
23744fi
23745rm -f conftest.err conftest.$ac_ext
b4e70030
JB
23746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23747echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
23748
23749# So? What about this header?
23750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23751 yes:no: )
23752 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
23753echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23754 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
23755echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
23756 ac_header_preproc=yes
23757 ;;
23758 no:yes:* )
23759 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
23760echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
23761 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
23762echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
23763 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
23764echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
23765 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
23766echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
23767 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
23768echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
23769 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
23770echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
23771 (
23772 cat <<\_ASBOX
23773## ------------------------------------------ ##
23774## Report this to the AC_PACKAGE_NAME lists. ##
23775## ------------------------------------------ ##
23776_ASBOX
23777 ) |
23778 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
23779 ;;
23780esac
b4e70030
JB
23781echo "$as_me:$LINENO: checking for tk.h" >&5
23782echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
23783if test "${ac_cv_header_tk_h+set}" = set; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23785else
23786 ac_cv_header_tk_h=$ac_header_preproc
23787fi
b4e70030
JB
23788echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23789echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 23790
3fc11d3e 23791fi
bec39cab 23792if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
23793 ac_cv_c_tkh=installed
23794else
bec39cab 23795 ac_cv_c_tkh=""
3fc11d3e
JM
23796fi
23797
bec39cab 23798
3fc11d3e
JM
23799fi
23800
23801fi
23802
23803if test x"${ac_cv_c_tkh}" != x ; then
23804 no_tk=""
23805 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
23806 echo "$as_me:$LINENO: result: is installed" >&5
23807echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
23808 TKHDIR=""
23809 else
b4e70030
JB
23810 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
23811echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
23812 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
23813 TKHDIR="-I${ac_cv_c_tkh}"
23814 fi
23815else
23816 TKHDIR="# no Tk directory found"
bec39cab
AC
23817 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
23818echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
23819 no_tk=true
23820fi
23821
23822
23823
bec39cab 23824
b4e70030
JB
23825echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
23826echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
23827if test x"${ac_cv_c_itclh}" = x ; then
23828 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
23829 if test -f $i/generic/itcl.h ; then
23830 ac_cv_c_itclh=`(cd $i/generic; pwd)`
23831 break
23832 fi
23833 done
23834fi
23835if test x"${ac_cv_c_itclh}" = x ; then
23836 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
23837 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
23838echo "$as_me: error: Can't find Itcl private headers" >&2;}
23839 { (exit 1); exit 1; }; }
3fc11d3e
JM
23840fi
23841if test x"${ac_cv_c_itclh}" != x ; then
23842 ITCLHDIR="-I${ac_cv_c_itclh}"
23843fi
23844# should always be here
23845# ITCLLIB="../itcl/itcl/unix/libitcl.a"
23846
23847#AC_SUBST(ITCLLIB)
23848
bec39cab 23849
b4e70030
JB
23850echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
23851echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
23852if test x"${ac_cv_c_itkh}" = x ; then
23853 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
23854 if test -f $i/generic/itk.h ; then
23855 ac_cv_c_itkh=`(cd $i/generic; pwd)`
23856 break
23857 fi
23858 done
23859fi
23860if test x"${ac_cv_c_itkh}" = x ; then
23861 ITKHDIR="# no Itk private headers found"
bec39cab
AC
23862 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
23863echo "$as_me: error: Can't find Itk private headers" >&2;}
23864 { (exit 1); exit 1; }; }
3fc11d3e
JM
23865fi
23866if test x"${ac_cv_c_itkh}" != x ; then
23867 ITKHDIR="-I${ac_cv_c_itkh}"
23868fi
23869# should always be here
23870# ITKLIB="../itcl/itk/unix/libitk.a"
23871
23872#AC_SUBST(ITKLIB)
23873
3fc11d3e 23874
dd2504ab
JM
23875
23876 # now look for Tk library stuff
23877
d91670b9 23878 tkdir="../tk/${configdir}/"
dd2504ab
JM
23879
23880 TK_DEPS="${tkdir}${TK_LIB_FILE}"
23881
3fc11d3e
JM
23882 # now look for Itcl library stuff
23883
bec39cab 23884
3fc11d3e
JM
23885#
23886# Ok, lets find the itcl configuration
bec39cab 23887# First, look for one uninstalled.
3fc11d3e
JM
23888# the alternative search directory is invoked by --with-itclconfig
23889#
23890
23891if test x"${no_itcl}" = x ; then
23892 # we reset no_itcl in case something fails here
23893 no_itcl=true
bec39cab 23894
b4e70030 23895# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 23896if test "${with_itclconfig+set}" = set; then
b4e70030
JB
23897 withval="$with_itclconfig"
23898 with_itclconfig=${withval}
23899fi;
23900 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
23901echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
23902 if test "${ac_cv_c_itclconfig+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23904else
bec39cab 23905
3fc11d3e
JM
23906
23907 # First check to see if --with-itclconfig was specified.
23908 if test x"${with_itclconfig}" != x ; then
23909 if test -f "${with_itclconfig}/itclConfig.sh" ; then
23910 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
23911 else
bec39cab
AC
23912 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
23913echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
23914 { (exit 1); exit 1; }; }
3fc11d3e
JM
23915 fi
23916 fi
23917
23918 # then check for a private Itcl library
23919 if test x"${ac_cv_c_itclconfig}" = x ; then
23920 for i in \
23921 ../itcl/itcl \
23922 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
23923 ../../itcl \
23924 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
23925 ../../../itcl \
23926 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
23927 if test -f "$i/itclConfig.sh" ; then
23928 ac_cv_c_itclconfig=`(cd $i; pwd)`
23929 break
23930 fi
23931 done
23932 fi
23933 # check in a few common install locations
23934 if test x"${ac_cv_c_itclconfig}" = x ; then
23935 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23936 if test -f "$i/itclConfig.sh" ; then
23937 ac_cv_c_itclconfig=`(cd $i; pwd)`
23938 break
23939 fi
23940 done
23941 fi
23942 # check in a few other private locations
23943 if test x"${ac_cv_c_itclconfig}" = x ; then
23944 for i in \
23945 ${srcdir}/../itcl/itcl \
23946 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
23947 if test -f "$i/itclConfig.sh" ; then
23948 ac_cv_c_itclconfig=`(cd $i; pwd)`
23949 break
23950 fi
23951 done
23952 fi
bec39cab 23953
3fc11d3e
JM
23954fi
23955
23956 if test x"${ac_cv_c_itclconfig}" = x ; then
23957 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
23958 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
23959echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
23960 else
23961 no_itcl=
23962 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
23963 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
23964echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
23965 fi
23966fi
23967
23968 if test -z "${no_itcl}"; then
bec39cab 23969
3fc11d3e
JM
23970 if test -f "$ITCLCONFIG" ; then
23971 . $ITCLCONFIG
23972 fi
23973
3fc11d3e 23974
3fc11d3e
JM
23975
23976
bec39cab
AC
23977
23978
23979
23980
23981
23982
23983
3fc11d3e
JM
23984
23985 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 23986 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
23987 fi
23988
bec39cab 23989
3fc11d3e 23990 # now look for Itk library stuff
bec39cab 23991
3fc11d3e
JM
23992#
23993# Ok, lets find the itk configuration
bec39cab 23994# First, look for one uninstalled.
3fc11d3e
JM
23995# the alternative search directory is invoked by --with-itkconfig
23996#
23997
23998if test x"${no_itk}" = x ; then
23999 # we reset no_itk in case something fails here
24000 no_itk=true
bec39cab 24001
b4e70030 24002# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 24003if test "${with_itkconfig+set}" = set; then
b4e70030
JB
24004 withval="$with_itkconfig"
24005 with_itkconfig=${withval}
24006fi;
24007 echo "$as_me:$LINENO: checking for Itk configuration" >&5
24008echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
24009 if test "${ac_cv_c_itkconfig+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24011else
bec39cab 24012
3fc11d3e
JM
24013
24014 # First check to see if --with-itkconfig was specified.
24015 if test x"${with_itkconfig}" != x ; then
24016 if test -f "${with_itkconfig}/itkConfig.sh" ; then
24017 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24018 else
bec39cab
AC
24019 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24020echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24021 { (exit 1); exit 1; }; }
3fc11d3e
JM
24022 fi
24023 fi
24024
24025 # then check for a private Itk library
24026 if test x"${ac_cv_c_itkconfig}" = x ; then
24027 for i in \
24028 ../itcl/itk \
24029 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24030 ../../itk \
24031 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24032 ../../../itk \
24033 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24034 if test -f "$i/itkConfig.sh" ; then
24035 ac_cv_c_itkconfig=`(cd $i; pwd)`
24036 break
24037 fi
24038 done
24039 fi
24040 # check in a few common install locations
24041 if test x"${ac_cv_c_itkconfig}" = x ; then
24042 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24043 if test -f "$i/itkConfig.sh" ; then
24044 ac_cv_c_itkconfig=`(cd $i; pwd)`
24045 break
24046 fi
24047 done
24048 fi
24049 # check in a few other private locations
24050 if test x"${ac_cv_c_itkconfig}" = x ; then
24051 for i in \
24052 ${srcdir}/../itcl/itk \
24053 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24054 if test -f "$i/itkConfig.sh" ; then
24055 ac_cv_c_itkconfig=`(cd $i; pwd)`
24056 break
24057 fi
24058 done
24059 fi
bec39cab 24060
3fc11d3e
JM
24061fi
24062
24063 if test x"${ac_cv_c_itkconfig}" = x ; then
24064 ITKCONFIG="# no Itk configs found"
bec39cab
AC
24065 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24066echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
24067 else
24068 no_itk=
24069 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
24070 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24071echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
24072 fi
24073fi
24074
24075
bec39cab
AC
24076 if test -z "${no_itcl}"; then
24077
24078 if test -f "$ITKCONFIG" ; then
24079 . $ITKCONFIG
24080 fi
24081
24082
24083
24084
24085
24086
3fc11d3e 24087
3fc11d3e 24088
3fc11d3e
JM
24089
24090
3fc11d3e
JM
24091
24092
3fc11d3e 24093 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 24094 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
24095 fi
24096
4226a5a5 24097 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
24098
24099 # Include some libraries that Tcl and Tk want.
b2a1bd4f 24100 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
24101 # Yes, the ordering seems wrong here. But it isn't.
24102 # TK_LIBS is the list of libraries that need to be linked
24103 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24104 # were in LIBS then any link tests after this point would
24105 # try to include things like `$(LIBGUI)', which wouldn't work.
24106 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
24107
24108 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24109 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24110 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
24111 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24112 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24113 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24114 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
24115
24116 if test x$gdb_cv_os_cygwin = xyes; then
24117 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24118 WIN32LDAPP="-Wl,--subsystem,console"
24119 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24120 fi
24121 fi
24122 fi
ffc6a242 24123
b4e70030
JB
24124
24125
24126subdirs="$subdirs gdbtk"
3ace7edb 24127
3fc11d3e
JM
24128fi
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
dd2504ab 24142
b4e70030
JB
24143echo "$as_me:$LINENO: checking for X" >&5
24144echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 24145
c906108c 24146
b4e70030 24147# Check whether --with-x or --without-x was given.
c906108c 24148if test "${with_x+set}" = set; then
b4e70030 24149 withval="$with_x"
c906108c 24150
b4e70030 24151fi;
c906108c
SS
24152# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24153if test "x$with_x" = xno; then
24154 # The user explicitly disabled X.
24155 have_x=disabled
24156else
24157 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24158 # Both variables are already set.
24159 have_x=yes
24160 else
bec39cab
AC
24161 if test "${ac_cv_have_x+set}" = set; then
24162 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
24163else
24164 # One or both of the vars are not set, and there is no cached value.
bec39cab 24165ac_x_includes=no ac_x_libraries=no
b4e70030 24166rm -fr conftest.dir
bec39cab
AC
24167if mkdir conftest.dir; then
24168 cd conftest.dir
c906108c 24169 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 24170 cat >Imakefile <<'_ACEOF'
c906108c
SS
24171acfindx:
24172 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 24173_ACEOF
b4e70030 24174 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
24175 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24176 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24177 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24178 for ac_extension in a so sl; do
24179 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
24180 test -f $ac_im_libdir/libX11.$ac_extension; then
24181 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
24182 fi
24183 done
24184 # Screen out bogus values from the imake configuration. They are
24185 # bogus both because they are the default anyway, and because
24186 # using them would break gcc on systems where it needs fixed includes.
bec39cab 24187 case $ac_im_incroot in
b4e70030 24188 /usr/include) ;;
bec39cab 24189 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 24190 esac
bec39cab 24191 case $ac_im_usrlibdir in
c906108c 24192 /usr/lib | /lib) ;;
bec39cab 24193 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
24194 esac
24195 fi
24196 cd ..
b4e70030 24197 rm -fr conftest.dir
c906108c
SS
24198fi
24199
bec39cab
AC
24200# Standard set of common directories for X headers.
24201# Check X11 before X11Rn because it is often a symlink to the current release.
24202ac_x_header_dirs='
24203/usr/X11/include
24204/usr/X11R6/include
24205/usr/X11R5/include
24206/usr/X11R4/include
24207
24208/usr/include/X11
24209/usr/include/X11R6
24210/usr/include/X11R5
24211/usr/include/X11R4
24212
24213/usr/local/X11/include
24214/usr/local/X11R6/include
24215/usr/local/X11R5/include
24216/usr/local/X11R4/include
24217
24218/usr/local/include/X11
24219/usr/local/include/X11R6
24220/usr/local/include/X11R5
24221/usr/local/include/X11R4
24222
24223/usr/X386/include
24224/usr/x386/include
24225/usr/XFree86/include/X11
24226
24227/usr/include
24228/usr/local/include
24229/usr/unsupported/include
24230/usr/athena/include
24231/usr/local/x11r5/include
24232/usr/lpp/Xamples/include
24233
24234/usr/openwin/include
24235/usr/openwin/share/include'
24236
24237if test "$ac_x_includes" = no; then
59f80f10 24238 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 24239 # First, try using that file with no special directory specified.
bec39cab
AC
24240 cat >conftest.$ac_ext <<_ACEOF
24241/* confdefs.h. */
24242_ACEOF
24243cat confdefs.h >>conftest.$ac_ext
24244cat >>conftest.$ac_ext <<_ACEOF
24245/* end confdefs.h. */
59f80f10 24246#include <X11/Intrinsic.h>
bec39cab
AC
24247_ACEOF
24248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24250 ac_status=$?
24251 grep -v '^ *+' conftest.er1 >conftest.err
24252 rm -f conftest.er1
24253 cat conftest.err >&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } >/dev/null; then
24256 if test -s conftest.err; then
24257 ac_cpp_err=$ac_c_preproc_warn_flag
24258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24259 else
24260 ac_cpp_err=
24261 fi
24262else
24263 ac_cpp_err=yes
24264fi
24265if test -z "$ac_cpp_err"; then
c906108c
SS
24266 # We can compile using X headers with no special include directory.
24267ac_x_includes=
24268else
bec39cab
AC
24269 echo "$as_me: failed program was:" >&5
24270sed 's/^/| /' conftest.$ac_ext >&5
24271
24272 for ac_dir in $ac_x_header_dirs; do
59f80f10 24273 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
24274 ac_x_includes=$ac_dir
24275 break
24276 fi
24277done
c906108c 24278fi
bec39cab
AC
24279rm -f conftest.err conftest.$ac_ext
24280fi # $ac_x_includes = no
c906108c 24281
bec39cab 24282if test "$ac_x_libraries" = no; then
c906108c 24283 # Check for the libraries.
c906108c
SS
24284 # See if we find them without any special options.
24285 # Don't add to $LIBS permanently.
bec39cab 24286 ac_save_LIBS=$LIBS
4e8d927d 24287 LIBS="-lXt $LIBS"
bec39cab
AC
24288 cat >conftest.$ac_ext <<_ACEOF
24289/* confdefs.h. */
24290_ACEOF
24291cat confdefs.h >>conftest.$ac_ext
24292cat >>conftest.$ac_ext <<_ACEOF
24293/* end confdefs.h. */
59f80f10 24294#include <X11/Intrinsic.h>
bec39cab
AC
24295int
24296main ()
24297{
59f80f10 24298XtMalloc (0)
bec39cab
AC
24299 ;
24300 return 0;
24301}
24302_ACEOF
24303rm -f conftest.$ac_objext conftest$ac_exeext
24304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24305 (eval $ac_link) 2>conftest.er1
24306 ac_status=$?
24307 grep -v '^ *+' conftest.er1 >conftest.err
24308 rm -f conftest.er1
24309 cat conftest.err >&5
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); } &&
b4e70030
JB
24312 { ac_try='test -z "$ac_c_werror_flag"
24313 || test ! -s conftest.err'
bec39cab
AC
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; } &&
24319 { ac_try='test -s conftest$ac_exeext'
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; }; then
24325 LIBS=$ac_save_LIBS
c906108c
SS
24326# We can link X programs with no special library path.
24327ac_x_libraries=
24328else
bec39cab
AC
24329 echo "$as_me: failed program was:" >&5
24330sed 's/^/| /' conftest.$ac_ext >&5
24331
b4e70030 24332LIBS=$ac_save_LIBS
bec39cab 24333for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 24334do
bec39cab 24335 # Don't even attempt the hair of trying to link an X program!
c906108c 24336 for ac_extension in a so sl; do
b4e70030 24337 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
24338 ac_x_libraries=$ac_dir
24339 break 2
24340 fi
24341 done
24342done
24343fi
bec39cab
AC
24344rm -f conftest.err conftest.$ac_objext \
24345 conftest$ac_exeext conftest.$ac_ext
24346fi # $ac_x_libraries = no
c906108c 24347
bec39cab 24348if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
24349 # Didn't find X anywhere. Cache the known absence of X.
24350 ac_cv_have_x="have_x=no"
24351else
24352 # Record where we found X for the cache.
24353 ac_cv_have_x="have_x=yes \
bec39cab 24354 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
24355fi
24356fi
bec39cab 24357
c906108c
SS
24358 fi
24359 eval "$ac_cv_have_x"
24360fi # $with_x != no
24361
24362if test "$have_x" != yes; then
b4e70030
JB
24363 echo "$as_me:$LINENO: result: $have_x" >&5
24364echo "${ECHO_T}$have_x" >&6
c906108c
SS
24365 no_x=yes
24366else
24367 # If each of the values was on the command line, it overrides each guess.
24368 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24369 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24370 # Update the cache value to reflect the command line values.
24371 ac_cv_have_x="have_x=yes \
24372 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
24373 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24374echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
24375fi
24376
24377
9cc52bde
MK
24378# Check whether we should enable the TUI, but only do so if we really
24379# can.
24380if test x"$enable_tui" = xyes; then
24381 if test -d $srcdir/tui; then
24382 if test "$ac_cv_search_waddstr" != no; then
24383 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
24384 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
24385 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
24386 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
24387 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
24388 CONFIG_ALL="${CONFIG_ALL} all-tui"
24389 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
24390 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
24391 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
24392 else
bec39cab
AC
24393 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
24394echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
24395 fi
24396 fi
24397fi
24398
bec39cab 24399# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 24400# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
24401# This code just checks for a few cases where we'd like to ignore those
24402# definitions, even when they're present in the '.mt' file. These cases
24403# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 24404# not part of the source tree.
7a292a7a 24405#
b4e70030 24406# Check whether --enable-sim or --disable-sim was given.
7a292a7a 24407if test "${enable_sim+set}" = set; then
b4e70030
JB
24408 enableval="$enable_sim"
24409 echo "enable_sim = $enable_sim";
7a292a7a
SS
24410 echo "enableval = ${enableval}";
24411 case "${enableval}" in
24412 yes) ignore_sim=false ;;
24413 no) ignore_sim=true ;;
24414 *) ignore_sim=false ;;
24415 esac
24416else
24417 ignore_sim=false
b4e70030 24418fi;
7a292a7a
SS
24419
24420if test ! -d "${srcdir}/../sim"; then
24421 ignore_sim=true
24422fi
24423
9b624dbe
UW
24424SIM=
24425SIM_OBS=
24426if test "${ignore_sim}" = "false"; then
24427 if test x"${gdb_sim}" != x ; then
24428 SIM="${gdb_sim}"
24429 SIM_OBS="remote-sim.o"
60ca704f
SE
24430
24431cat >>confdefs.h <<\_ACEOF
7a292a7a 24432#define WITH_SIM 1
bec39cab 24433_ACEOF
7a292a7a 24434
9b624dbe 24435 fi
7a292a7a
SS
24436fi
24437
24438
24439
c906108c
SS
24440
24441
24442
24443
24444
24445
dfcd3bfb 24446
e56ac5c3
AC
24447
24448
b3a90332
AC
24449
24450
c35f4ffc 24451# List of host floatformats.
bec39cab
AC
24452
24453cat >>confdefs.h <<_ACEOF
c35f4ffc 24454#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 24455_ACEOF
c35f4ffc 24456
bec39cab
AC
24457
24458cat >>confdefs.h <<_ACEOF
c35f4ffc 24459#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
24460_ACEOF
24461
c35f4ffc 24462
bec39cab 24463cat >>confdefs.h <<_ACEOF
c35f4ffc 24464#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 24465_ACEOF
c35f4ffc
AC
24466
24467
c906108c
SS
24468# target_subdir is used by the testsuite to find the target libraries.
24469target_subdir=
24470if test "${host}" != "${target}"; then
24471 target_subdir="${target_alias}/"
24472fi
24473
24474
24475frags=
771b4502 24476if test "${gdb_native}" = "yes"; then
0dad8a66
MK
24477 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
24478 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
24479 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
24480echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
24481 { (exit 1); exit 1; }; }
0dad8a66
MK
24482 fi
24483 frags="$frags $host_makefile_frag"
24484else
24485 host_makefile_frag=/dev/null
c906108c 24486fi
c906108c 24487
c906108c
SS
24488
24489
24490
771b4502 24491if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
24492# We pick this up from the host configuration file (.mh) because we
24493# do not have a native configuration Makefile fragment.
c906108c
SS
24494nativefile=`sed -n '
24495s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24496' ${host_makefile_frag}`
c906108c
SS
24497fi
24498
24499
b00a8037 24500if test x"${gdb_osabi}" != x ; then
bec39cab
AC
24501
24502cat >>confdefs.h <<_ACEOF
b00a8037 24503#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 24504_ACEOF
b00a8037
DJ
24505
24506fi
24507
8dcde887 24508# Enable multi-ice-gdb-server.
b4e70030 24509# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 24510if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
24511 enableval="$enable_multi_ice"
24512 case $enableval in
8dcde887
MK
24513 yes | no)
24514 ;;
bec39cab
AC
24515 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24516echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24517 { (exit 1); exit 1; }; } ;;
8dcde887 24518 esac
b4e70030 24519fi;
4e8d927d 24520if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
24521
24522
24523subdirs="$subdirs multi-ice"
3ace7edb 24524
a85f51e7
DJ
24525fi
24526
a13e2c95
UW
24527# We only build gdbserver automatically in a native configuration.
24528if test "$gdb_native" = "yes"; then
b4e70030
JB
24529 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24530echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 24531 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
24532 echo "$as_me:$LINENO: result: yes" >&5
24533echo "${ECHO_T}yes" >&6
24534
24535
24536subdirs="$subdirs gdbserver"
3ace7edb 24537
8dcde887 24538 else
b4e70030
JB
24539 echo "$as_me:$LINENO: result: no" >&5
24540echo "${ECHO_T}no" >&6
8dcde887
MK
24541 fi
24542fi
24543
db985757 24544# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 24545# to an empty version.
c906108c
SS
24546
24547files=
24548links=
5a2402b8 24549
c906108c 24550rm -f nm.h
5a2402b8 24551nm_h=""
c906108c 24552if test "${nativefile}" != ""; then
5a2402b8 24553 nm_h=nm.h
0f475e27
AC
24554 case "${nativefile}" in
24555 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24556 * ) GDB_NM_FILE="${nativefile}"
24557 esac
5a2402b8
AC
24558 files="${files} ${GDB_NM_FILE}"
24559 links="${links} nm.h"
60ca704f
SE
24560
24561cat >>confdefs.h <<_ACEOF
b78960be 24562#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 24563_ACEOF
5a2402b8 24564
c906108c 24565fi
5a2402b8
AC
24566
24567
bec39cab
AC
24568ac_sources="$files"
24569ac_dests="$links"
24570while test -n "$ac_sources"; do
24571 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24572 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24573 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24574done
b4e70030 24575 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
24576
24577
c906108c
SS
24578
24579
c906108c 24580
c906108c 24581
bec39cab
AC
24582cat >>confdefs.h <<\_ACEOF
24583#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24584_ACEOF
c906108c 24585
234b45d4 24586
234b45d4
KB
24587
24588
24589
b4e70030 24590# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 24591if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
24592 withval="$with_libiconv_prefix"
24593
234b45d4
KB
24594 for dir in `echo "$withval" | tr : ' '`; do
24595 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24596 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24597 done
234b45d4 24598
b4e70030 24599fi;
234b45d4 24600
b4e70030
JB
24601 echo "$as_me:$LINENO: checking for iconv" >&5
24602echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
24603if test "${am_cv_func_iconv+set}" = set; then
24604 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 24605else
bec39cab 24606
234b45d4
KB
24607 am_cv_func_iconv="no, consider installing GNU libiconv"
24608 am_cv_lib_iconv=no
bec39cab
AC
24609 cat >conftest.$ac_ext <<_ACEOF
24610/* confdefs.h. */
24611_ACEOF
24612cat confdefs.h >>conftest.$ac_ext
24613cat >>conftest.$ac_ext <<_ACEOF
24614/* end confdefs.h. */
234b45d4
KB
24615#include <stdlib.h>
24616#include <iconv.h>
bec39cab
AC
24617int
24618main ()
24619{
234b45d4
KB
24620iconv_t cd = iconv_open("","");
24621 iconv(cd,NULL,NULL,NULL,NULL);
24622 iconv_close(cd);
bec39cab
AC
24623 ;
24624 return 0;
24625}
24626_ACEOF
24627rm -f conftest.$ac_objext conftest$ac_exeext
24628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24629 (eval $ac_link) 2>conftest.er1
24630 ac_status=$?
24631 grep -v '^ *+' conftest.er1 >conftest.err
24632 rm -f conftest.er1
24633 cat conftest.err >&5
24634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); } &&
b4e70030
JB
24636 { ac_try='test -z "$ac_c_werror_flag"
24637 || test ! -s conftest.err'
bec39cab
AC
24638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639 (eval $ac_try) 2>&5
24640 ac_status=$?
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); }; } &&
24643 { ac_try='test -s conftest$ac_exeext'
24644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645 (eval $ac_try) 2>&5
24646 ac_status=$?
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; }; then
234b45d4
KB
24649 am_cv_func_iconv=yes
24650else
bec39cab
AC
24651 echo "$as_me: failed program was:" >&5
24652sed 's/^/| /' conftest.$ac_ext >&5
24653
234b45d4 24654fi
bec39cab
AC
24655rm -f conftest.err conftest.$ac_objext \
24656 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
24657 if test "$am_cv_func_iconv" != yes; then
24658 am_save_LIBS="$LIBS"
24659 LIBS="$LIBS -liconv"
bec39cab
AC
24660 cat >conftest.$ac_ext <<_ACEOF
24661/* confdefs.h. */
24662_ACEOF
24663cat confdefs.h >>conftest.$ac_ext
24664cat >>conftest.$ac_ext <<_ACEOF
24665/* end confdefs.h. */
234b45d4
KB
24666#include <stdlib.h>
24667#include <iconv.h>
bec39cab
AC
24668int
24669main ()
24670{
234b45d4
KB
24671iconv_t cd = iconv_open("","");
24672 iconv(cd,NULL,NULL,NULL,NULL);
24673 iconv_close(cd);
bec39cab
AC
24674 ;
24675 return 0;
24676}
24677_ACEOF
24678rm -f conftest.$ac_objext conftest$ac_exeext
24679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24680 (eval $ac_link) 2>conftest.er1
24681 ac_status=$?
24682 grep -v '^ *+' conftest.er1 >conftest.err
24683 rm -f conftest.er1
24684 cat conftest.err >&5
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); } &&
b4e70030
JB
24687 { ac_try='test -z "$ac_c_werror_flag"
24688 || test ! -s conftest.err'
bec39cab
AC
24689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24690 (eval $ac_try) 2>&5
24691 ac_status=$?
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); }; } &&
24694 { ac_try='test -s conftest$ac_exeext'
24695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24696 (eval $ac_try) 2>&5
24697 ac_status=$?
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); }; }; then
234b45d4
KB
24700 am_cv_lib_iconv=yes
24701 am_cv_func_iconv=yes
24702else
bec39cab
AC
24703 echo "$as_me: failed program was:" >&5
24704sed 's/^/| /' conftest.$ac_ext >&5
24705
234b45d4 24706fi
bec39cab
AC
24707rm -f conftest.err conftest.$ac_objext \
24708 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
24709 LIBS="$am_save_LIBS"
24710 fi
bec39cab
AC
24711
24712fi
b4e70030
JB
24713echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24714echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
24715 if test "$am_cv_func_iconv" = yes; then
24716
24717cat >>confdefs.h <<\_ACEOF
24718#define HAVE_ICONV 1
24719_ACEOF
24720
b4e70030
JB
24721 echo "$as_me:$LINENO: checking for iconv declaration" >&5
24722echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
24723 if test "${am_cv_proto_iconv+set}" = set; then
24724 echo $ECHO_N "(cached) $ECHO_C" >&6
24725else
24726
24727 cat >conftest.$ac_ext <<_ACEOF
24728/* confdefs.h. */
24729_ACEOF
24730cat confdefs.h >>conftest.$ac_ext
24731cat >>conftest.$ac_ext <<_ACEOF
24732/* end confdefs.h. */
24733
24734#include <stdlib.h>
24735#include <iconv.h>
24736extern
24737#ifdef __cplusplus
24738"C"
24739#endif
24740#if defined(__STDC__) || defined(__cplusplus)
24741size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
24742#else
24743size_t iconv();
24744#endif
24745
24746int
24747main ()
24748{
24749
24750 ;
24751 return 0;
24752}
24753_ACEOF
24754rm -f conftest.$ac_objext
24755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24756 (eval $ac_compile) 2>conftest.er1
24757 ac_status=$?
24758 grep -v '^ *+' conftest.er1 >conftest.err
24759 rm -f conftest.er1
24760 cat conftest.err >&5
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); } &&
b4e70030
JB
24763 { ac_try='test -z "$ac_c_werror_flag"
24764 || test ! -s conftest.err'
bec39cab
AC
24765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24766 (eval $ac_try) 2>&5
24767 ac_status=$?
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; } &&
24770 { ac_try='test -s conftest.$ac_objext'
24771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24772 (eval $ac_try) 2>&5
24773 ac_status=$?
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); }; }; then
24776 am_cv_proto_iconv_arg1=""
24777else
24778 echo "$as_me: failed program was:" >&5
24779sed 's/^/| /' conftest.$ac_ext >&5
24780
b4e70030 24781am_cv_proto_iconv_arg1="const"
bec39cab
AC
24782fi
24783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24784 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);"
24785fi
24786
24787 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 24788 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
24789 }$am_cv_proto_iconv" >&5
24790echo "${ECHO_T}${ac_t:-
b4e70030 24791 }$am_cv_proto_iconv" >&6
bec39cab
AC
24792
24793cat >>confdefs.h <<_ACEOF
24794#define ICONV_CONST $am_cv_proto_iconv_arg1
24795_ACEOF
24796
24797 fi
24798 LIBICONV=
24799 if test "$am_cv_lib_iconv" = yes; then
24800 LIBICONV="-liconv"
24801 fi
24802
24803
24804
b4e70030
JB
24805 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
24806 ac_config_commands="$ac_config_commands default"
bec39cab
AC
24807cat >confcache <<\_ACEOF
24808# This file is a shell script that caches the results of configure
24809# tests run on this system so they can be shared between configure
24810# scripts and configure runs, see configure's option --config-cache.
24811# It is not useful on other systems. If it contains results you don't
24812# want to keep, you may remove or edit it.
24813#
24814# config.status only pays attention to the cache file if you give it
24815# the --recheck option to rerun configure.
24816#
24817# `ac_cv_env_foo' variables (set or unset) will be overridden when
24818# loading this file, other *unset* `ac_cv_foo' will be assigned the
24819# following values.
24820
24821_ACEOF
24822
24823# The following way of writing the cache mishandles newlines in values,
24824# but we know of no workaround that is simple, portable, and efficient.
b4e70030 24825# So, don't put newlines in cache variables' values.
bec39cab
AC
24826# Ultrix sh set writes to stderr and can't be redirected directly,
24827# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 24828{
bec39cab 24829 (set) 2>&1 |
b4e70030
JB
24830 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24831 *ac_space=\ *)
bec39cab
AC
24832 # `set' does not quote correctly, so add quotes (double-quote
24833 # substitution turns \\\\ into \\, and sed turns \\ into \).
24834 sed -n \
24835 "s/'/'\\\\''/g;
24836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 24837 ;;
bec39cab
AC
24838 *)
24839 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
24840 sed -n \
24841 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 24842 ;;
b4e70030
JB
24843 esac;
24844} |
bec39cab
AC
24845 sed '
24846 t clear
b4e70030 24847 : clear
bec39cab
AC
24848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24849 t end
b4e70030
JB
24850 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24851 : end' >>confcache
bec39cab
AC
24852if diff $cache_file confcache >/dev/null 2>&1; then :; else
24853 if test -w $cache_file; then
b4e70030 24854 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
24855 cat confcache >$cache_file
24856 else
b4e70030 24857 echo "not updating unwritable cache $cache_file"
bec39cab
AC
24858 fi
24859fi
24860rm -f confcache
24861
24862test "x$prefix" = xNONE && prefix=$ac_default_prefix
24863# Let make expand exec_prefix.
24864test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24865
b4e70030
JB
24866# VPATH may cause trouble with some makes, so we remove $(srcdir),
24867# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24868# trailing colons and then remove the whole line if VPATH becomes empty
24869# (actually we leave an empty line to preserve line numbers).
24870if test "x$srcdir" = x.; then
24871 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24872s/:*\$(srcdir):*/:/;
24873s/:*\${srcdir}:*/:/;
24874s/:*@srcdir@:*/:/;
24875s/^\([^=]*=[ ]*\):*/\1/;
24876s/:*$//;
24877s/^[^=]*=[ ]*$//;
24878}'
24879fi
24880
bec39cab
AC
24881DEFS=-DHAVE_CONFIG_H
24882
24883ac_libobjs=
24884ac_ltlibobjs=
24885for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24886 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
24887 ac_i=`echo "$ac_i" |
24888 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24889 # 2. Add them.
24890 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24891 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
24892done
24893LIBOBJS=$ac_libobjs
24894
24895LTLIBOBJS=$ac_ltlibobjs
24896
24897
85981d60
AC
24898if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24899 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24900Usually this means the macro was only invoked conditionally." >&5
24901echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24902Usually this means the macro was only invoked conditionally." >&2;}
24903 { (exit 1); exit 1; }; }
24904fi
bec39cab
AC
24905
24906: ${CONFIG_STATUS=./config.status}
24907ac_clean_files_save=$ac_clean_files
24908ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24909{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24910echo "$as_me: creating $CONFIG_STATUS" >&6;}
24911cat >$CONFIG_STATUS <<_ACEOF
24912#! $SHELL
24913# Generated by $as_me.
24914# Run this file to recreate the current configuration.
24915# Compiler output produced by configure, useful for debugging
24916# configure, is in config.log if it exists.
24917
24918debug=false
24919ac_cs_recheck=false
24920ac_cs_silent=false
24921SHELL=\${CONFIG_SHELL-$SHELL}
24922_ACEOF
24923
24924cat >>$CONFIG_STATUS <<\_ACEOF
24925## --------------------- ##
24926## M4sh Initialization. ##
24927## --------------------- ##
24928
24929# Be Bourne compatible
24930if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24931 emulate sh
24932 NULLCMD=:
24933 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24934 # is contrary to our usage. Disable this feature.
24935 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
24936elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24937 set -o posix
bec39cab
AC
24938fi
24939DUALCASE=1; export DUALCASE # for MKS sh
24940
24941# Support unset when possible.
24942if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24943 as_unset=unset
24944else
24945 as_unset=false
24946fi
24947
24948
24949# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 24950$as_unset ENV MAIL MAILPATH
bec39cab
AC
24951PS1='$ '
24952PS2='> '
24953PS4='+ '
24954
24955# NLS nuisances.
24956for as_var in \
24957 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24958 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24959 LC_TELEPHONE LC_TIME
24960do
24961 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24962 eval $as_var=C; export $as_var
24963 else
b4e70030 24964 $as_unset $as_var
bec39cab
AC
24965 fi
24966done
24967
24968# Required to use basename.
b4e70030 24969if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
24970 as_expr=expr
24971else
24972 as_expr=false
24973fi
24974
b4e70030 24975if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
24976 as_basename=basename
24977else
24978 as_basename=false
24979fi
24980
24981
24982# Name of the executable.
b4e70030 24983as_me=`$as_basename "$0" ||
bec39cab
AC
24984$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24985 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
24986 X"$0" : 'X\(/\)$' \| \
24987 . : '\(.\)' 2>/dev/null ||
bec39cab 24988echo X/"$0" |
b4e70030
JB
24989 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24990 /^X\/\(\/\/\)$/{ s//\1/; q; }
24991 /^X\/\(\/\).*/{ s//\1/; q; }
24992 s/.*/./; q'`
bec39cab 24993
b4e70030
JB
24994
24995# PATH needs CR, and LINENO needs CR and PATH.
24996# Avoid depending upon Character Ranges.
24997as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24998as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24999as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25000as_cr_digits='0123456789'
25001as_cr_alnum=$as_cr_Letters$as_cr_digits
25002
25003# The user is always right.
25004if test "${PATH_SEPARATOR+set}" != set; then
25005 echo "#! /bin/sh" >conf$$.sh
25006 echo "exit 0" >>conf$$.sh
25007 chmod +x conf$$.sh
25008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25009 PATH_SEPARATOR=';'
25010 else
25011 PATH_SEPARATOR=:
25012 fi
25013 rm -f conf$$.sh
25014fi
bec39cab
AC
25015
25016
b4e70030
JB
25017 as_lineno_1=$LINENO
25018 as_lineno_2=$LINENO
25019 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25020 test "x$as_lineno_1" != "x$as_lineno_2" &&
25021 test "x$as_lineno_3" = "x$as_lineno_2" || {
25022 # Find who we are. Look in the path if we contain no path at all
25023 # relative or not.
25024 case $0 in
25025 *[\\/]* ) as_myself=$0 ;;
25026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25027for as_dir in $PATH
25028do
25029 IFS=$as_save_IFS
25030 test -z "$as_dir" && as_dir=.
25031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25032done
bec39cab 25033
b4e70030
JB
25034 ;;
25035 esac
25036 # We did not find ourselves, most probably we were run as `sh COMMAND'
25037 # in which case we are not to be found in the path.
25038 if test "x$as_myself" = x; then
25039 as_myself=$0
25040 fi
25041 if test ! -f "$as_myself"; then
25042 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25043echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25044 { (exit 1); exit 1; }; }
25045 fi
25046 case $CONFIG_SHELL in
25047 '')
25048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25049for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25050do
25051 IFS=$as_save_IFS
25052 test -z "$as_dir" && as_dir=.
25053 for as_base in sh bash ksh sh5; do
25054 case $as_dir in
25055 /*)
25056 if ("$as_dir/$as_base" -c '
bec39cab
AC
25057 as_lineno_1=$LINENO
25058 as_lineno_2=$LINENO
b4e70030 25059 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 25060 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
25061 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25062 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25063 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25064 CONFIG_SHELL=$as_dir/$as_base
25065 export CONFIG_SHELL
25066 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25067 fi;;
25068 esac
25069 done
25070done
25071;;
25072 esac
bec39cab
AC
25073
25074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25075 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
25076 # line-number line before each line; the second 'sed' does the real
25077 # work. The second script uses 'N' to pair each line-number line
25078 # with the numbered line, and appends trailing '-' during
25079 # substitution so that $LINENO is not a special case at line end.
bec39cab 25080 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
25081 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25082 sed '=' <$as_myself |
bec39cab
AC
25083 sed '
25084 N
b4e70030
JB
25085 s,$,-,
25086 : loop
25087 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 25088 t loop
b4e70030
JB
25089 s,-$,,
25090 s,^['$as_cr_digits']*\n,,
bec39cab 25091 ' >$as_me.lineno &&
b4e70030
JB
25092 chmod +x $as_me.lineno ||
25093 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25094echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
25095 { (exit 1); exit 1; }; }
25096
25097 # Don't try to exec as it changes $[0], causing all sort of problems
25098 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
25099 # original and so on. Autoconf is especially sensible to this).
25100 . ./$as_me.lineno
bec39cab
AC
25101 # Exit status is that of the last command.
25102 exit
25103}
25104
25105
b4e70030
JB
25106case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25107 *c*,-n*) ECHO_N= ECHO_C='
25108' ECHO_T=' ' ;;
25109 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25110 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
25111esac
25112
b4e70030 25113if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
25114 as_expr=expr
25115else
25116 as_expr=false
25117fi
25118
25119rm -f conf$$ conf$$.exe conf$$.file
25120echo >conf$$.file
25121if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
25122 # We could just check for DJGPP; but this test a) works b) is more generic
25123 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25124 if test -f conf$$.exe; then
25125 # Don't use ln at all; we don't have any links
bec39cab 25126 as_ln_s='cp -p'
b4e70030
JB
25127 else
25128 as_ln_s='ln -s'
25129 fi
bec39cab
AC
25130elif ln conf$$.file conf$$ 2>/dev/null; then
25131 as_ln_s=ln
25132else
25133 as_ln_s='cp -p'
25134fi
b4e70030 25135rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
25136
25137if mkdir -p . 2>/dev/null; then
25138 as_mkdir_p=:
25139else
25140 test -d ./-p && rmdir ./-p
25141 as_mkdir_p=false
25142fi
25143
b4e70030 25144as_executable_p="test -f"
bec39cab
AC
25145
25146# Sed expression to map a string onto a valid CPP name.
25147as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25148
25149# Sed expression to map a string onto a valid variable name.
25150as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25151
25152
b4e70030
JB
25153# IFS
25154# We need space, tab and new line, in precisely that order.
25155as_nl='
25156'
25157IFS=" $as_nl"
25158
25159# CDPATH.
25160$as_unset CDPATH
25161
bec39cab
AC
25162exec 6>&1
25163
b4e70030 25164# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 25165# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
25166# values after options handling. Logging --version etc. is OK.
25167exec 5>>config.log
25168{
25169 echo
25170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25171## Running $as_me. ##
25172_ASBOX
25173} >&5
25174cat >&5 <<_CSEOF
25175
bec39cab 25176This file was extended by $as_me, which was
b4e70030 25177generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
25178
25179 CONFIG_FILES = $CONFIG_FILES
25180 CONFIG_HEADERS = $CONFIG_HEADERS
25181 CONFIG_LINKS = $CONFIG_LINKS
25182 CONFIG_COMMANDS = $CONFIG_COMMANDS
25183 $ $0 $@
25184
b4e70030
JB
25185_CSEOF
25186echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25187echo >&5
bec39cab
AC
25188_ACEOF
25189
25190# Files that config.status was made for.
b4e70030
JB
25191if test -n "$ac_config_files"; then
25192 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25193fi
234b45d4 25194
b4e70030
JB
25195if test -n "$ac_config_headers"; then
25196 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25197fi
25198
25199if test -n "$ac_config_links"; then
25200 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25201fi
25202
25203if test -n "$ac_config_commands"; then
25204 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25205fi
234b45d4 25206
bec39cab 25207cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 25208
bec39cab
AC
25209ac_cs_usage="\
25210\`$as_me' instantiates files from templates according to the
25211current configuration.
234b45d4 25212
bec39cab 25213Usage: $0 [OPTIONS] [FILE]...
234b45d4 25214
bec39cab
AC
25215 -h, --help print this help, then exit
25216 -V, --version print version number, then exit
25217 -q, --quiet do not print progress messages
25218 -d, --debug don't remove temporary files
25219 --recheck update $as_me by reconfiguring in the same conditions
25220 --file=FILE[:TEMPLATE]
25221 instantiate the configuration file FILE
25222 --header=FILE[:TEMPLATE]
25223 instantiate the configuration header FILE
234b45d4 25224
bec39cab
AC
25225Configuration files:
25226$config_files
234b45d4 25227
bec39cab
AC
25228Configuration headers:
25229$config_headers
234b45d4 25230
bec39cab
AC
25231Configuration links:
25232$config_links
234b45d4 25233
bec39cab
AC
25234Configuration commands:
25235$config_commands
25236
25237Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 25238_ACEOF
b4e70030 25239
bec39cab
AC
25240cat >>$CONFIG_STATUS <<_ACEOF
25241ac_cs_version="\\
25242config.status
b4e70030 25243configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
25244 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25245
b4e70030 25246Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
25247This config.status script is free software; the Free Software Foundation
25248gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
25249srcdir=$srcdir
25250INSTALL="$INSTALL"
bec39cab
AC
25251_ACEOF
25252
25253cat >>$CONFIG_STATUS <<\_ACEOF
25254# If no file are specified by the user, then we need to provide default
25255# value. By we need to know if files were specified by the user.
25256ac_need_defaults=:
25257while test $# != 0
25258do
25259 case $1 in
25260 --*=*)
b4e70030
JB
25261 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25262 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 25263 ac_shift=:
c906108c 25264 ;;
b4e70030 25265 -*)
bec39cab
AC
25266 ac_option=$1
25267 ac_optarg=$2
25268 ac_shift=shift
c906108c 25269 ;;
b4e70030
JB
25270 *) # This is not an option, so the user has probably given explicit
25271 # arguments.
25272 ac_option=$1
25273 ac_need_defaults=false;;
bec39cab 25274 esac
c906108c 25275
bec39cab
AC
25276 case $ac_option in
25277 # Handling of the options.
b4e70030
JB
25278_ACEOF
25279cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25281 ac_cs_recheck=: ;;
b4e70030
JB
25282 --version | --vers* | -V )
25283 echo "$ac_cs_version"; exit 0 ;;
25284 --he | --h)
25285 # Conflict between --help and --header
25286 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25287Try \`$0 --help' for more information." >&5
25288echo "$as_me: error: ambiguous option: $1
25289Try \`$0 --help' for more information." >&2;}
25290 { (exit 1); exit 1; }; };;
25291 --help | --hel | -h )
25292 echo "$ac_cs_usage"; exit 0 ;;
25293 --debug | --d* | -d )
bec39cab
AC
25294 debug=: ;;
25295 --file | --fil | --fi | --f )
25296 $ac_shift
25297 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25298 ac_need_defaults=false;;
25299 --header | --heade | --head | --hea )
25300 $ac_shift
25301 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25302 ac_need_defaults=false;;
25303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25304 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25305 ac_cs_silent=: ;;
c906108c 25306
bec39cab 25307 # This is an error.
b4e70030
JB
25308 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25309Try \`$0 --help' for more information." >&5
25310echo "$as_me: error: unrecognized option: $1
25311Try \`$0 --help' for more information." >&2;}
bec39cab 25312 { (exit 1); exit 1; }; } ;;
c906108c 25313
b4e70030 25314 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 25315
bec39cab
AC
25316 esac
25317 shift
25318done
c906108c 25319
bec39cab 25320ac_configure_extra_args=
c906108c 25321
bec39cab
AC
25322if $ac_cs_silent; then
25323 exec 6>/dev/null
25324 ac_configure_extra_args="$ac_configure_extra_args --silent"
25325fi
c906108c 25326
bec39cab
AC
25327_ACEOF
25328cat >>$CONFIG_STATUS <<_ACEOF
25329if \$ac_cs_recheck; then
b4e70030
JB
25330 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25331 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
25332fi
25333
25334_ACEOF
25335
25336cat >>$CONFIG_STATUS <<_ACEOF
c906108c 25337#
b4e70030 25338# INIT-COMMANDS section.
c906108c 25339#
c906108c 25340
b4e70030 25341
4e8d927d
DJ
25342GCC="$GCC"
25343CC="$CC"
25344acx_cv_header_stdint="$acx_cv_header_stdint"
25345acx_cv_type_int8_t="$acx_cv_type_int8_t"
25346acx_cv_type_int16_t="$acx_cv_type_int16_t"
25347acx_cv_type_int32_t="$acx_cv_type_int32_t"
25348acx_cv_type_int64_t="$acx_cv_type_int64_t"
25349acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
25350ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
25351ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
25352ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25353ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25354ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
25355ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25356ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25357ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
25358
bec39cab
AC
25359
25360gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
25361nativefile=$nativefile
25362
25363
25364_ACEOF
25365
4e8d927d 25366
b4e70030
JB
25367
25368cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 25369for ac_config_target in $ac_config_targets
c906108c 25370do
b4e70030
JB
25371 case "$ac_config_target" in
25372 # Handling of arguments.
25373 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25374 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
25375 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25376 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
25377 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25378 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
25379 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25380echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25381 { (exit 1); exit 1; }; };;
c906108c
SS
25382 esac
25383done
25384
bec39cab
AC
25385# If the user did not use the arguments to specify the items to instantiate,
25386# then the envvar interface is used. Set only those that are not.
25387# We use the long form for the default assignment because of an extremely
25388# bizarre bug on SunOS 4.1.3.
25389if $ac_need_defaults; then
25390 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25391 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25392 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25393 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25394fi
25395
b4e70030
JB
25396# Have a temporary directory for convenience. Make it in the build tree
25397# simply because there is no reason to put it here, and in addition,
25398# creating and moving files from /tmp can sometimes cause problems.
25399# Create a temporary directory, and hook for its removal unless debugging.
25400$debug ||
25401{
25402 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25403 trap '{ (exit 1); exit 1; }' 1 2 13 15
25404}
4e8d927d 25405
b4e70030 25406# Create a (secure) tmp directory for tmp files.
4e8d927d 25407
b4e70030
JB
25408{
25409 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25410 test -n "$tmp" && test -d "$tmp"
25411} ||
25412{
25413 tmp=./confstat$$-$RANDOM
25414 (umask 077 && mkdir $tmp)
25415} ||
25416{
25417 echo "$me: cannot create a temporary directory in ." >&2
25418 { (exit 1); exit 1; }
25419}
4e8d927d 25420
b4e70030 25421_ACEOF
4e8d927d 25422
b4e70030 25423cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 25424
b4e70030
JB
25425#
25426# CONFIG_FILES section.
25427#
4e8d927d 25428
b4e70030
JB
25429# No need to generate the scripts if there are no CONFIG_FILES.
25430# This happens for instance when ./config.status config.h
25431if test -n "\$CONFIG_FILES"; then
25432 # Protect against being on the right side of a sed subst in config.status.
25433 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25434 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25435s,@SHELL@,$SHELL,;t t
25436s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25437s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25438s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25439s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25440s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25441s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25442s,@exec_prefix@,$exec_prefix,;t t
25443s,@prefix@,$prefix,;t t
25444s,@program_transform_name@,$program_transform_name,;t t
25445s,@bindir@,$bindir,;t t
25446s,@sbindir@,$sbindir,;t t
25447s,@libexecdir@,$libexecdir,;t t
25448s,@datadir@,$datadir,;t t
25449s,@sysconfdir@,$sysconfdir,;t t
25450s,@sharedstatedir@,$sharedstatedir,;t t
25451s,@localstatedir@,$localstatedir,;t t
25452s,@libdir@,$libdir,;t t
25453s,@includedir@,$includedir,;t t
25454s,@oldincludedir@,$oldincludedir,;t t
25455s,@infodir@,$infodir,;t t
25456s,@mandir@,$mandir,;t t
25457s,@build_alias@,$build_alias,;t t
25458s,@host_alias@,$host_alias,;t t
25459s,@target_alias@,$target_alias,;t t
25460s,@DEFS@,$DEFS,;t t
25461s,@ECHO_C@,$ECHO_C,;t t
25462s,@ECHO_N@,$ECHO_N,;t t
25463s,@ECHO_T@,$ECHO_T,;t t
25464s,@LIBS@,$LIBS,;t t
25465s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25466s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25467s,@MAINT@,$MAINT,;t t
25468s,@CC@,$CC,;t t
25469s,@CFLAGS@,$CFLAGS,;t t
25470s,@LDFLAGS@,$LDFLAGS,;t t
25471s,@CPPFLAGS@,$CPPFLAGS,;t t
25472s,@ac_ct_CC@,$ac_ct_CC,;t t
25473s,@EXEEXT@,$EXEEXT,;t t
25474s,@OBJEXT@,$OBJEXT,;t t
25475s,@CPP@,$CPP,;t t
25476s,@EGREP@,$EGREP,;t t
25477s,@build@,$build,;t t
25478s,@build_cpu@,$build_cpu,;t t
25479s,@build_vendor@,$build_vendor,;t t
25480s,@build_os@,$build_os,;t t
25481s,@host@,$host,;t t
25482s,@host_cpu@,$host_cpu,;t t
25483s,@host_vendor@,$host_vendor,;t t
25484s,@host_os@,$host_os,;t t
25485s,@target@,$target,;t t
25486s,@target_cpu@,$target_cpu,;t t
25487s,@target_vendor@,$target_vendor,;t t
25488s,@target_os@,$target_os,;t t
b4e70030 25489s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
25490s,@LIBINTL@,$LIBINTL,;t t
25491s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25492s,@INCINTL@,$INCINTL,;t t
b4e70030 25493s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
25494s,@GMSGFMT@,$GMSGFMT,;t t
25495s,@POSUB@,$POSUB,;t t
b4e70030 25496s,@CATALOGS@,$CATALOGS,;t t
b4e70030 25497s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 25498s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
25499s,@GENCAT@,$GENCAT,;t t
25500s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
25501s,@localedir@,$localedir,;t t
25502s,@PACKAGE@,$PACKAGE,;t t
25503s,@subdirs@,$subdirs,;t t
a4ce5b0d 25504s,@TARGET_OBS@,$TARGET_OBS,;t t
b4e70030
JB
25505s,@AWK@,$AWK,;t t
25506s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25507s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25508s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25509s,@LN_S@,$LN_S,;t t
20e95c23
DJ
25510s,@RANLIB@,$RANLIB,;t t
25511s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
25512s,@YACC@,$YACC,;t t
25513s,@AR@,$AR,;t t
25514s,@ac_ct_AR@,$ac_ct_AR,;t t
25515s,@DLLTOOL@,$DLLTOOL,;t t
25516s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
25517s,@WINDRES@,$WINDRES,;t t
25518s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
25519s,@MIG@,$MIG,;t t
25520s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
25521s,@READLINE@,$READLINE,;t t
25522s,@READLINE_DEPS@,$READLINE_DEPS,;t t
25523s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
25524s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
25525s,@LIBEXPAT@,$LIBEXPAT,;t t
25526s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 25527s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
25528s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
25529s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25530s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25531s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
25532s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
25533s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
25534s,@WIN32LIBS@,$WIN32LIBS,;t t
25535s,@LIBGUI@,$LIBGUI,;t t
25536s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
25537s,@WIN32LDAPP@,$WIN32LDAPP,;t t
25538s,@TCL_VERSION@,$TCL_VERSION,;t t
25539s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
25540s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
25541s,@TCL_CC@,$TCL_CC,;t t
25542s,@TCL_DEFS@,$TCL_DEFS,;t t
25543s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
25544s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
25545s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25546s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
25547s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
25548s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
25549s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
25550s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
25551s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
25552s,@TCL_RANLIB@,$TCL_RANLIB,;t t
25553s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
25554s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25555s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
25556s,@TK_VERSION@,$TK_VERSION,;t t
25557s,@TK_DEFS@,$TK_DEFS,;t t
25558s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
25559s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
25560s,@TK_XLIBSW@,$TK_XLIBSW,;t t
25561s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
25562s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
25563s,@TCLHDIR@,$TCLHDIR,;t t
25564s,@TKHDIR@,$TKHDIR,;t t
25565s,@ITCLHDIR@,$ITCLHDIR,;t t
25566s,@ITKHDIR@,$ITKHDIR,;t t
25567s,@ITCL_VERSION@,$ITCL_VERSION,;t t
25568s,@ITCL_DEFS@,$ITCL_DEFS,;t t
25569s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
25570s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
25571s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
25572s,@ITK_VERSION@,$ITK_VERSION,;t t
25573s,@ITK_DEFS@,$ITK_DEFS,;t t
25574s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
25575s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
25576s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
25577s,@X_CFLAGS@,$X_CFLAGS,;t t
25578s,@X_LDFLAGS@,$X_LDFLAGS,;t t
25579s,@X_LIBS@,$X_LIBS,;t t
25580s,@TCL_DEPS@,$TCL_DEPS,;t t
25581s,@TK_DEPS@,$TK_DEPS,;t t
25582s,@ITCLLIB@,$ITCLLIB,;t t
25583s,@ITCL_DEPS@,$ITCL_DEPS,;t t
25584s,@ITKLIB@,$ITKLIB,;t t
25585s,@ITK_DEPS@,$ITK_DEPS,;t t
25586s,@GDBTKLIBS@,$GDBTKLIBS,;t t
25587s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
25588s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
25589s,@SIM@,$SIM,;t t
25590s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
25591s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
25592s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
25593s,@CONFIG_OBS@,$CONFIG_OBS,;t t
25594s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
25595s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
25596s,@CONFIG_ALL@,$CONFIG_ALL,;t t
25597s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
25598s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
25599s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
25600s,@target_subdir@,$target_subdir,;t t
25601s,@frags@,$frags,;t t
b4e70030
JB
25602s,@nm_h@,$nm_h,;t t
25603s,@LIBICONV@,$LIBICONV,;t t
25604s,@LIBOBJS@,$LIBOBJS,;t t
25605s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25606/@host_makefile_frag@/r $host_makefile_frag
25607s,@host_makefile_frag@,,;t t
b4e70030
JB
25608CEOF
25609
25610_ACEOF
25611
25612 cat >>$CONFIG_STATUS <<\_ACEOF
25613 # Split the substitutions into bite-sized pieces for seds with
25614 # small command number limits, like on Digital OSF/1 and HP-UX.
25615 ac_max_sed_lines=48
25616 ac_sed_frag=1 # Number of current file.
25617 ac_beg=1 # First line for current file.
25618 ac_end=$ac_max_sed_lines # Line after last line for current file.
25619 ac_more_lines=:
25620 ac_sed_cmds=
25621 while $ac_more_lines; do
25622 if test $ac_beg -gt 1; then
25623 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25624 else
25625 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 25626 fi
b4e70030
JB
25627 if test ! -s $tmp/subs.frag; then
25628 ac_more_lines=false
25629 else
25630 # The purpose of the label and of the branching condition is to
25631 # speed up the sed processing (if there are no `@' at all, there
25632 # is no need to browse any of the substitutions).
25633 # These are the two extra sed commands mentioned above.
25634 (echo ':t
25635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25636 if test -z "$ac_sed_cmds"; then
25637 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25638 else
25639 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25640 fi
25641 ac_sed_frag=`expr $ac_sed_frag + 1`
25642 ac_beg=$ac_end
25643 ac_end=`expr $ac_end + $ac_max_sed_lines`
25644 fi
25645 done
25646 if test -z "$ac_sed_cmds"; then
25647 ac_sed_cmds=cat
25648 fi
25649fi # test -n "$CONFIG_FILES"
4e8d927d 25650
b4e70030
JB
25651_ACEOF
25652cat >>$CONFIG_STATUS <<\_ACEOF
25653for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25655 case $ac_file in
25656 - | *:- | *:-:* ) # input from stdin
25657 cat >$tmp/stdin
25658 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25660 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25662 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
25663 esac
25664
b4e70030
JB
25665 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25666 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
25667$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25668 X"$ac_file" : 'X\(//\)[^/]' \| \
25669 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
25670 X"$ac_file" : 'X\(/\)' \| \
25671 . : '\(.\)' 2>/dev/null ||
bec39cab 25672echo X"$ac_file" |
b4e70030
JB
25673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25675 /^X\(\/\/\)$/{ s//\1/; q; }
25676 /^X\(\/\).*/{ s//\1/; q; }
25677 s/.*/./; q'`
25678 { if $as_mkdir_p; then
25679 mkdir -p "$ac_dir"
25680 else
25681 as_dir="$ac_dir"
bec39cab 25682 as_dirs=
b4e70030
JB
25683 while test ! -d "$as_dir"; do
25684 as_dirs="$as_dir $as_dirs"
25685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25687 X"$as_dir" : 'X\(//\)[^/]' \| \
25688 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25689 X"$as_dir" : 'X\(/\)' \| \
25690 . : '\(.\)' 2>/dev/null ||
bec39cab 25691echo X"$as_dir" |
b4e70030
JB
25692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25694 /^X\(\/\/\)$/{ s//\1/; q; }
25695 /^X\(\/\).*/{ s//\1/; q; }
25696 s/.*/./; q'`
bec39cab 25697 done
b4e70030
JB
25698 test ! -n "$as_dirs" || mkdir $as_dirs
25699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25700echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25701 { (exit 1); exit 1; }; }; }
b4e70030 25702
bec39cab
AC
25703 ac_builddir=.
25704
b4e70030 25705if test "$ac_dir" != .; then
bec39cab 25706 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25707 # A "../" for each directory in $ac_dir_suffix.
25708 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25709else
25710 ac_dir_suffix= ac_top_builddir=
25711fi
bec39cab
AC
25712
25713case $srcdir in
b4e70030 25714 .) # No --srcdir option. We are building in place.
bec39cab 25715 ac_srcdir=.
b4e70030
JB
25716 if test -z "$ac_top_builddir"; then
25717 ac_top_srcdir=.
25718 else
25719 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25720 fi ;;
25721 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25722 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25723 ac_top_srcdir=$srcdir ;;
25724 *) # Relative path.
25725 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25726 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
25727esac
25728
b4e70030
JB
25729# Do not use `cd foo && pwd` to compute absolute paths, because
25730# the directories may not exist.
25731case `pwd` in
25732.) ac_abs_builddir="$ac_dir";;
25733*)
25734 case "$ac_dir" in
25735 .) ac_abs_builddir=`pwd`;;
25736 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25737 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25738 esac;;
25739esac
25740case $ac_abs_builddir in
25741.) ac_abs_top_builddir=${ac_top_builddir}.;;
25742*)
25743 case ${ac_top_builddir}. in
25744 .) ac_abs_top_builddir=$ac_abs_builddir;;
25745 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25746 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25747 esac;;
25748esac
25749case $ac_abs_builddir in
25750.) ac_abs_srcdir=$ac_srcdir;;
25751*)
25752 case $ac_srcdir in
25753 .) ac_abs_srcdir=$ac_abs_builddir;;
25754 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25755 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25756 esac;;
25757esac
25758case $ac_abs_builddir in
25759.) ac_abs_top_srcdir=$ac_top_srcdir;;
25760*)
25761 case $ac_top_srcdir in
25762 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25763 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25764 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25765 esac;;
25766esac
c906108c 25767
c906108c 25768
bec39cab
AC
25769 case $INSTALL in
25770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 25771 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 25772 esac
121ce6e5 25773
b4e70030
JB
25774 if test x"$ac_file" != x-; then
25775 { echo "$as_me:$LINENO: creating $ac_file" >&5
25776echo "$as_me: creating $ac_file" >&6;}
25777 rm -f "$ac_file"
25778 fi
25779 # Let's still pretend it is `configure' which instantiates (i.e., don't
25780 # use $as_me), people would be surprised to read:
25781 # /* config.h. Generated by config.status. */
25782 if test x"$ac_file" = x-; then
25783 configure_input=
25784 else
25785 configure_input="$ac_file. "
25786 fi
25787 configure_input=$configure_input"Generated from `echo $ac_file_in |
25788 sed 's,.*/,,'` by configure."
25789
25790 # First look for the input files in the build tree, otherwise in the
25791 # src tree.
25792 ac_file_inputs=`IFS=:
25793 for f in $ac_file_in; do
25794 case $f in
25795 -) echo $tmp/stdin ;;
25796 [\\/$]*)
25797 # Absolute (can't be DOS-style, as IFS=:)
25798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25799echo "$as_me: error: cannot find input file: $f" >&2;}
25800 { (exit 1); exit 1; }; }
25801 echo "$f";;
25802 *) # Relative
25803 if test -f "$f"; then
25804 # Build tree
25805 echo "$f"
25806 elif test -f "$srcdir/$f"; then
25807 # Source tree
25808 echo "$srcdir/$f"
25809 else
25810 # /dev/null tree
25811 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25812echo "$as_me: error: cannot find input file: $f" >&2;}
25813 { (exit 1); exit 1; }; }
25814 fi;;
25815 esac
25816 done` || { (exit 1); exit 1; }
4e8d927d 25817_ACEOF
bec39cab
AC
25818cat >>$CONFIG_STATUS <<_ACEOF
25819 sed "$ac_vpsub
25820$extrasub
25821_ACEOF
25822cat >>$CONFIG_STATUS <<\_ACEOF
25823:t
25824/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
25825s,@configure_input@,$configure_input,;t t
25826s,@srcdir@,$ac_srcdir,;t t
25827s,@abs_srcdir@,$ac_abs_srcdir,;t t
25828s,@top_srcdir@,$ac_top_srcdir,;t t
25829s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25830s,@builddir@,$ac_builddir,;t t
25831s,@abs_builddir@,$ac_abs_builddir,;t t
25832s,@top_builddir@,$ac_top_builddir,;t t
25833s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25834s,@INSTALL@,$ac_INSTALL,;t t
25835" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25836 rm -f $tmp/stdin
25837 if test x"$ac_file" != x-; then
25838 mv $tmp/out $ac_file
25839 else
25840 cat $tmp/out
25841 rm -f $tmp/out
25842 fi
25843
25844done
25845_ACEOF
25846cat >>$CONFIG_STATUS <<\_ACEOF
25847
25848#
25849# CONFIG_HEADER section.
25850#
25851
25852# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25853# NAME is the cpp macro being defined and VALUE is the value it is being given.
25854#
25855# ac_d sets the value in "#define NAME VALUE" lines.
25856ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25857ac_dB='[ ].*$,\1#\2'
25858ac_dC=' '
25859ac_dD=',;t'
25860# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25861ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25862ac_uB='$,\1#\2define\3'
25863ac_uC=' '
25864ac_uD=',;t'
25865
25866for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 25868 case $ac_file in
b4e70030
JB
25869 - | *:- | *:-:* ) # input from stdin
25870 cat >$tmp/stdin
25871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25875 * ) ac_file_in=$ac_file.in ;;
c906108c 25876 esac
b4e70030
JB
25877
25878 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25879echo "$as_me: creating $ac_file" >&6;}
25880
25881 # First look for the input files in the build tree, otherwise in the
25882 # src tree.
25883 ac_file_inputs=`IFS=:
25884 for f in $ac_file_in; do
25885 case $f in
25886 -) echo $tmp/stdin ;;
25887 [\\/$]*)
25888 # Absolute (can't be DOS-style, as IFS=:)
25889 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25890echo "$as_me: error: cannot find input file: $f" >&2;}
25891 { (exit 1); exit 1; }; }
25892 # Do quote $f, to prevent DOS paths from being IFS'd.
25893 echo "$f";;
25894 *) # Relative
25895 if test -f "$f"; then
25896 # Build tree
25897 echo "$f"
25898 elif test -f "$srcdir/$f"; then
25899 # Source tree
25900 echo "$srcdir/$f"
25901 else
25902 # /dev/null tree
25903 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25904echo "$as_me: error: cannot find input file: $f" >&2;}
25905 { (exit 1); exit 1; }; }
25906 fi;;
25907 esac
25908 done` || { (exit 1); exit 1; }
25909 # Remove the trailing spaces.
25910 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25911
25912_ACEOF
25913
25914# Transform confdefs.h into two sed scripts, `conftest.defines' and
25915# `conftest.undefs', that substitutes the proper values into
25916# config.h.in to produce config.h. The first handles `#define'
25917# templates, and the second `#undef' templates.
25918# And first: Protect against being on the right side of a sed subst in
25919# config.status. Protect against being in an unquoted here document
25920# in config.status.
25921rm -f conftest.defines conftest.undefs
25922# Using a here document instead of a string reduces the quoting nightmare.
25923# Putting comments in sed scripts is not portable.
25924#
25925# `end' is used to avoid that the second main sed command (meant for
25926# 0-ary CPP macros) applies to n-ary macro definitions.
25927# See the Autoconf documentation for `clear'.
25928cat >confdef2sed.sed <<\_ACEOF
25929s/[\\&,]/\\&/g
25930s,[\\$`],\\&,g
25931t clear
25932: clear
25933s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25934t end
25935s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25936: end
25937_ACEOF
25938# If some macros were called several times there might be several times
25939# the same #defines, which is useless. Nevertheless, we may not want to
25940# sort them, since we want the *last* AC-DEFINE to be honored.
25941uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25942sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25943rm -f confdef2sed.sed
25944
25945# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
25946# example, in the case of _POSIX_SOURCE, which is predefined and required
25947# on some systems where configure will not decide to define it.
b4e70030
JB
25948cat >>conftest.undefs <<\_ACEOF
25949s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25950_ACEOF
25951
25952# Break up conftest.defines because some shells have a limit on the size
25953# of here documents, and old seds have small limits too (100 cmds).
25954echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25955echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25956echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25957echo ' :' >>$CONFIG_STATUS
25958rm -f conftest.tail
25959while grep . conftest.defines >/dev/null
bec39cab 25960do
b4e70030
JB
25961 # Write a limited-size here document to $tmp/defines.sed.
25962 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25963 # Speed up: don't consider the non `#define' lines.
25964 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25965 # Work around the forget-to-reset-the-flag bug.
25966 echo 't clr' >>$CONFIG_STATUS
25967 echo ': clr' >>$CONFIG_STATUS
25968 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 25969 echo 'CEOF
b4e70030
JB
25970 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25971 rm -f $tmp/in
25972 mv $tmp/out $tmp/in
25973' >>$CONFIG_STATUS
25974 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
25975 rm -f conftest.defines
25976 mv conftest.tail conftest.defines
25977done
b4e70030
JB
25978rm -f conftest.defines
25979echo ' fi # grep' >>$CONFIG_STATUS
25980echo >>$CONFIG_STATUS
25981
25982# Break up conftest.undefs because some shells have a limit on the size
25983# of here documents, and old seds have small limits too (100 cmds).
25984echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25985rm -f conftest.tail
25986while grep . conftest.undefs >/dev/null
25987do
25988 # Write a limited-size here document to $tmp/undefs.sed.
25989 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25990 # Speed up: don't consider the non `#undef'
25991 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25992 # Work around the forget-to-reset-the-flag bug.
25993 echo 't clr' >>$CONFIG_STATUS
25994 echo ': clr' >>$CONFIG_STATUS
25995 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25996 echo 'CEOF
25997 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25998 rm -f $tmp/in
25999 mv $tmp/out $tmp/in
26000' >>$CONFIG_STATUS
26001 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26002 rm -f conftest.undefs
26003 mv conftest.tail conftest.undefs
26004done
26005rm -f conftest.undefs
bec39cab
AC
26006
26007cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
26008 # Let's still pretend it is `configure' which instantiates (i.e., don't
26009 # use $as_me), people would be surprised to read:
26010 # /* config.h. Generated by config.status. */
26011 if test x"$ac_file" = x-; then
26012 echo "/* Generated by configure. */" >$tmp/config.h
26013 else
26014 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26015 fi
26016 cat $tmp/in >>$tmp/config.h
26017 rm -f $tmp/in
bec39cab 26018 if test x"$ac_file" != x-; then
b4e70030 26019 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
26020 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26021echo "$as_me: $ac_file is unchanged" >&6;}
26022 else
b4e70030
JB
26023 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26025 X"$ac_file" : 'X\(//\)[^/]' \| \
26026 X"$ac_file" : 'X\(//\)$' \| \
26027 X"$ac_file" : 'X\(/\)' \| \
26028 . : '\(.\)' 2>/dev/null ||
26029echo X"$ac_file" |
26030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26032 /^X\(\/\/\)$/{ s//\1/; q; }
26033 /^X\(\/\).*/{ s//\1/; q; }
26034 s/.*/./; q'`
26035 { if $as_mkdir_p; then
26036 mkdir -p "$ac_dir"
26037 else
26038 as_dir="$ac_dir"
26039 as_dirs=
26040 while test ! -d "$as_dir"; do
26041 as_dirs="$as_dir $as_dirs"
26042 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26044 X"$as_dir" : 'X\(//\)[^/]' \| \
26045 X"$as_dir" : 'X\(//\)$' \| \
26046 X"$as_dir" : 'X\(/\)' \| \
26047 . : '\(.\)' 2>/dev/null ||
26048echo X"$as_dir" |
26049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26051 /^X\(\/\/\)$/{ s//\1/; q; }
26052 /^X\(\/\).*/{ s//\1/; q; }
26053 s/.*/./; q'`
26054 done
26055 test ! -n "$as_dirs" || mkdir $as_dirs
26056 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26057echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26058 { (exit 1); exit 1; }; }; }
26059
bec39cab 26060 rm -f $ac_file
b4e70030 26061 mv $tmp/config.h $ac_file
bec39cab
AC
26062 fi
26063 else
b4e70030
JB
26064 cat $tmp/config.h
26065 rm -f $tmp/config.h
bec39cab 26066 fi
b4e70030
JB
26067done
26068_ACEOF
26069cat >>$CONFIG_STATUS <<\_ACEOF
26070
26071#
26072# CONFIG_LINKS section.
26073#
26074
26075for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26076 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26077 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 26078
b4e70030
JB
26079 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26080echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
26081
26082 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
26083 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26084echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26085 { (exit 1); exit 1; }; }
c906108c 26086 fi
b4e70030
JB
26087 rm -f $ac_dest
26088
26089 # Make relative symlinks.
26090 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26091$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26092 X"$ac_dest" : 'X\(//\)[^/]' \| \
26093 X"$ac_dest" : 'X\(//\)$' \| \
26094 X"$ac_dest" : 'X\(/\)' \| \
26095 . : '\(.\)' 2>/dev/null ||
26096echo X"$ac_dest" |
26097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26099 /^X\(\/\/\)$/{ s//\1/; q; }
26100 /^X\(\/\).*/{ s//\1/; q; }
26101 s/.*/./; q'`
26102 { if $as_mkdir_p; then
26103 mkdir -p "$ac_dest_dir"
26104 else
26105 as_dir="$ac_dest_dir"
26106 as_dirs=
26107 while test ! -d "$as_dir"; do
26108 as_dirs="$as_dir $as_dirs"
26109 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26110$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26111 X"$as_dir" : 'X\(//\)[^/]' \| \
26112 X"$as_dir" : 'X\(//\)$' \| \
26113 X"$as_dir" : 'X\(/\)' \| \
26114 . : '\(.\)' 2>/dev/null ||
26115echo X"$as_dir" |
26116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26118 /^X\(\/\/\)$/{ s//\1/; q; }
26119 /^X\(\/\).*/{ s//\1/; q; }
26120 s/.*/./; q'`
26121 done
26122 test ! -n "$as_dirs" || mkdir $as_dirs
26123 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26124echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26125 { (exit 1); exit 1; }; }; }
26126
26127 ac_builddir=.
26128
26129if test "$ac_dest_dir" != .; then
26130 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26131 # A "../" for each directory in $ac_dir_suffix.
26132 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26133else
26134 ac_dir_suffix= ac_top_builddir=
26135fi
26136
26137case $srcdir in
26138 .) # No --srcdir option. We are building in place.
26139 ac_srcdir=.
26140 if test -z "$ac_top_builddir"; then
26141 ac_top_srcdir=.
26142 else
26143 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26144 fi ;;
26145 [\\/]* | ?:[\\/]* ) # Absolute path.
26146 ac_srcdir=$srcdir$ac_dir_suffix;
26147 ac_top_srcdir=$srcdir ;;
26148 *) # Relative path.
26149 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26150 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26151esac
26152
26153# Do not use `cd foo && pwd` to compute absolute paths, because
26154# the directories may not exist.
26155case `pwd` in
26156.) ac_abs_builddir="$ac_dest_dir";;
26157*)
26158 case "$ac_dest_dir" in
26159 .) ac_abs_builddir=`pwd`;;
26160 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26161 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26162 esac;;
26163esac
26164case $ac_abs_builddir in
26165.) ac_abs_top_builddir=${ac_top_builddir}.;;
26166*)
26167 case ${ac_top_builddir}. in
26168 .) ac_abs_top_builddir=$ac_abs_builddir;;
26169 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26170 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26171 esac;;
26172esac
26173case $ac_abs_builddir in
26174.) ac_abs_srcdir=$ac_srcdir;;
26175*)
26176 case $ac_srcdir in
26177 .) ac_abs_srcdir=$ac_abs_builddir;;
26178 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26179 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26180 esac;;
26181esac
26182case $ac_abs_builddir in
26183.) ac_abs_top_srcdir=$ac_top_srcdir;;
26184*)
26185 case $ac_top_srcdir in
26186 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26187 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26188 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26189 esac;;
26190esac
26191
bec39cab
AC
26192
26193 case $srcdir in
26194 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 26195 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 26196 esac
b4e70030
JB
26197
26198 # Try a symlink, then a hard link, then a copy.
26199 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26200 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26201 cp -p $srcdir/$ac_source $ac_dest ||
26202 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26203echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 26204 { (exit 1); exit 1; }; }
b4e70030
JB
26205done
26206_ACEOF
26207cat >>$CONFIG_STATUS <<\_ACEOF
26208
26209#
26210# CONFIG_COMMANDS section.
26211#
26212for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26213 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26214 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26215 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26216$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26217 X"$ac_dest" : 'X\(//\)[^/]' \| \
26218 X"$ac_dest" : 'X\(//\)$' \| \
26219 X"$ac_dest" : 'X\(/\)' \| \
26220 . : '\(.\)' 2>/dev/null ||
26221echo X"$ac_dest" |
26222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26224 /^X\(\/\/\)$/{ s//\1/; q; }
26225 /^X\(\/\).*/{ s//\1/; q; }
26226 s/.*/./; q'`
26227 { if $as_mkdir_p; then
26228 mkdir -p "$ac_dir"
26229 else
26230 as_dir="$ac_dir"
26231 as_dirs=
26232 while test ! -d "$as_dir"; do
26233 as_dirs="$as_dir $as_dirs"
26234 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26236 X"$as_dir" : 'X\(//\)[^/]' \| \
26237 X"$as_dir" : 'X\(//\)$' \| \
26238 X"$as_dir" : 'X\(/\)' \| \
26239 . : '\(.\)' 2>/dev/null ||
26240echo X"$as_dir" |
26241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26243 /^X\(\/\/\)$/{ s//\1/; q; }
26244 /^X\(\/\).*/{ s//\1/; q; }
26245 s/.*/./; q'`
26246 done
26247 test ! -n "$as_dirs" || mkdir $as_dirs
26248 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26249echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26250 { (exit 1); exit 1; }; }; }
26251
26252 ac_builddir=.
26253
26254if test "$ac_dir" != .; then
26255 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26256 # A "../" for each directory in $ac_dir_suffix.
26257 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26258else
26259 ac_dir_suffix= ac_top_builddir=
26260fi
26261
26262case $srcdir in
26263 .) # No --srcdir option. We are building in place.
26264 ac_srcdir=.
26265 if test -z "$ac_top_builddir"; then
26266 ac_top_srcdir=.
26267 else
26268 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26269 fi ;;
26270 [\\/]* | ?:[\\/]* ) # Absolute path.
26271 ac_srcdir=$srcdir$ac_dir_suffix;
26272 ac_top_srcdir=$srcdir ;;
26273 *) # Relative path.
26274 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26275 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26276esac
26277
26278# Do not use `cd foo && pwd` to compute absolute paths, because
26279# the directories may not exist.
26280case `pwd` in
26281.) ac_abs_builddir="$ac_dir";;
26282*)
26283 case "$ac_dir" in
26284 .) ac_abs_builddir=`pwd`;;
26285 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26286 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26287 esac;;
26288esac
26289case $ac_abs_builddir in
26290.) ac_abs_top_builddir=${ac_top_builddir}.;;
26291*)
26292 case ${ac_top_builddir}. in
26293 .) ac_abs_top_builddir=$ac_abs_builddir;;
26294 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26295 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26296 esac;;
26297esac
26298case $ac_abs_builddir in
26299.) ac_abs_srcdir=$ac_srcdir;;
26300*)
26301 case $ac_srcdir in
26302 .) ac_abs_srcdir=$ac_abs_builddir;;
26303 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26304 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26305 esac;;
26306esac
26307case $ac_abs_builddir in
26308.) ac_abs_top_srcdir=$ac_top_srcdir;;
26309*)
26310 case $ac_top_srcdir in
26311 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26312 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26313 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26314 esac;;
26315esac
bec39cab 26316
bec39cab 26317
b4e70030
JB
26318 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26319echo "$as_me: executing $ac_dest commands" >&6;}
26320 case $ac_dest in
26321 gdb_stdint.h )
4e8d927d
DJ
26322if test "$GCC" = yes; then
26323 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
26324else
26325 echo "/* generated for $CC */" > tmp-stdint.h
26326fi
26327
26328sed 's/^ *//' >> tmp-stdint.h <<EOF
26329
26330 #ifndef GCC_GENERATED_STDINT_H
26331 #define GCC_GENERATED_STDINT_H 1
26332
26333 #include <sys/types.h>
26334EOF
26335
26336if test "$acx_cv_header_stdint" != stdint.h; then
26337 echo "#include <stddef.h>" >> tmp-stdint.h
26338fi
26339if test "$acx_cv_header_stdint" != stddef.h; then
26340 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
26341fi
26342
26343sed 's/^ *//' >> tmp-stdint.h <<EOF
26344 /* glibc uses these symbols as guards to prevent redefinitions. */
26345 #ifdef __int8_t_defined
26346 #define _INT8_T
26347 #define _INT16_T
26348 #define _INT32_T
26349 #endif
26350 #ifdef __uint32_t_defined
26351 #define _UINT32_T
26352 #endif
26353
26354EOF
26355
26356# ----------------- done header, emit basic int types -------------
26357if test "$acx_cv_header_stdint" = stddef.h; then
26358 sed 's/^ *//' >> tmp-stdint.h <<EOF
26359
26360 #ifndef _UINT8_T
26361 #define _UINT8_T
07abfebf
RS
26362 #ifndef __uint8_t_defined
26363 #define __uint8_t_defined
4e8d927d
DJ
26364 typedef unsigned $acx_cv_type_int8_t uint8_t;
26365 #endif
07abfebf 26366 #endif
4e8d927d
DJ
26367
26368 #ifndef _UINT16_T
26369 #define _UINT16_T
07abfebf
RS
26370 #ifndef __uint16_t_defined
26371 #define __uint16_t_defined
4e8d927d
DJ
26372 typedef unsigned $acx_cv_type_int16_t uint16_t;
26373 #endif
07abfebf 26374 #endif
4e8d927d
DJ
26375
26376 #ifndef _UINT32_T
26377 #define _UINT32_T
07abfebf
RS
26378 #ifndef __uint32_t_defined
26379 #define __uint32_t_defined
4e8d927d
DJ
26380 typedef unsigned $acx_cv_type_int32_t uint32_t;
26381 #endif
07abfebf 26382 #endif
4e8d927d
DJ
26383
26384 #ifndef _INT8_T
26385 #define _INT8_T
07abfebf
RS
26386 #ifndef __int8_t_defined
26387 #define __int8_t_defined
4e8d927d
DJ
26388 typedef $acx_cv_type_int8_t int8_t;
26389 #endif
07abfebf 26390 #endif
4e8d927d
DJ
26391
26392 #ifndef _INT16_T
26393 #define _INT16_T
07abfebf
RS
26394 #ifndef __int16_t_defined
26395 #define __int16_t_defined
4e8d927d
DJ
26396 typedef $acx_cv_type_int16_t int16_t;
26397 #endif
07abfebf 26398 #endif
4e8d927d
DJ
26399
26400 #ifndef _INT32_T
26401 #define _INT32_T
07abfebf
RS
26402 #ifndef __int32_t_defined
26403 #define __int32_t_defined
4e8d927d
DJ
26404 typedef $acx_cv_type_int32_t int32_t;
26405 #endif
07abfebf 26406 #endif
4e8d927d
DJ
26407EOF
26408elif test "$ac_cv_type_u_int32_t" = yes; then
26409 sed 's/^ *//' >> tmp-stdint.h <<EOF
26410
26411 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
26412 #ifndef _INT8_T
26413 #define _INT8_T
26414 #endif
26415 #ifndef _INT16_T
26416 #define _INT16_T
26417 #endif
26418 #ifndef _INT32_T
26419 #define _INT32_T
26420 #endif
26421
26422 #ifndef _UINT8_T
26423 #define _UINT8_T
07abfebf
RS
26424 #ifndef __uint8_t_defined
26425 #define __uint8_t_defined
4e8d927d
DJ
26426 typedef u_int8_t uint8_t;
26427 #endif
07abfebf 26428 #endif
4e8d927d
DJ
26429
26430 #ifndef _UINT16_T
26431 #define _UINT16_T
07abfebf
RS
26432 #ifndef __uint16_t_defined
26433 #define __uint16_t_defined
4e8d927d
DJ
26434 typedef u_int16_t uint16_t;
26435 #endif
07abfebf 26436 #endif
4e8d927d
DJ
26437
26438 #ifndef _UINT32_T
26439 #define _UINT32_T
07abfebf
RS
26440 #ifndef __uint32_t_defined
26441 #define __uint32_t_defined
4e8d927d
DJ
26442 typedef u_int32_t uint32_t;
26443 #endif
07abfebf 26444 #endif
4e8d927d
DJ
26445EOF
26446else
26447 sed 's/^ *//' >> tmp-stdint.h <<EOF
26448
26449 /* Some systems have guard macros to prevent redefinitions, define them. */
26450 #ifndef _INT8_T
26451 #define _INT8_T
26452 #endif
26453 #ifndef _INT16_T
26454 #define _INT16_T
26455 #endif
26456 #ifndef _INT32_T
26457 #define _INT32_T
26458 #endif
26459 #ifndef _UINT8_T
26460 #define _UINT8_T
26461 #endif
26462 #ifndef _UINT16_T
26463 #define _UINT16_T
26464 #endif
26465 #ifndef _UINT32_T
26466 #define _UINT32_T
26467 #endif
26468EOF
26469fi
26470
26471# ------------- done basic int types, emit int64_t types ------------
26472if test "$ac_cv_type_uint64_t" = yes; then
26473 sed 's/^ *//' >> tmp-stdint.h <<EOF
26474
26475 /* system headers have good uint64_t and int64_t */
26476 #ifndef _INT64_T
26477 #define _INT64_T
26478 #endif
26479 #ifndef _UINT64_T
26480 #define _UINT64_T
26481 #endif
26482EOF
26483elif test "$ac_cv_type_u_int64_t" = yes; then
26484 sed 's/^ *//' >> tmp-stdint.h <<EOF
26485
26486 /* system headers have an u_int64_t (and int64_t) */
26487 #ifndef _INT64_T
26488 #define _INT64_T
26489 #endif
26490 #ifndef _UINT64_T
26491 #define _UINT64_T
07abfebf
RS
26492 #ifndef __uint64_t_defined
26493 #define __uint64_t_defined
4e8d927d
DJ
26494 typedef u_int64_t uint64_t;
26495 #endif
07abfebf 26496 #endif
4e8d927d
DJ
26497EOF
26498elif test -n "$acx_cv_type_int64_t"; then
26499 sed 's/^ *//' >> tmp-stdint.h <<EOF
26500
26501 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26502 #ifndef _INT64_T
26503 #define _INT64_T
26504 typedef $acx_cv_type_int64_t int64_t;
26505 #endif
26506 #ifndef _UINT64_T
26507 #define _UINT64_T
07abfebf
RS
26508 #ifndef __uint64_t_defined
26509 #define __uint64_t_defined
4e8d927d
DJ
26510 typedef unsigned $acx_cv_type_int64_t uint64_t;
26511 #endif
07abfebf 26512 #endif
4e8d927d
DJ
26513EOF
26514else
26515 sed 's/^ *//' >> tmp-stdint.h <<EOF
26516
26517 /* some common heuristics for int64_t, using compiler-specific tests */
26518 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26519 #ifndef _INT64_T
26520 #define _INT64_T
07abfebf 26521 #ifndef __int64_t_defined
4e8d927d
DJ
26522 typedef long long int64_t;
26523 #endif
07abfebf 26524 #endif
4e8d927d
DJ
26525 #ifndef _UINT64_T
26526 #define _UINT64_T
26527 typedef unsigned long long uint64_t;
26528 #endif
26529
26530 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26531 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26532 does not implement __extension__. But that compiler doesn't define
26533 __GNUC_MINOR__. */
26534 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26535 # define __extension__
26536 # endif
26537
26538 # ifndef _INT64_T
26539 # define _INT64_T
26540 __extension__ typedef long long int64_t;
26541 # endif
26542 # ifndef _UINT64_T
26543 # define _UINT64_T
26544 __extension__ typedef unsigned long long uint64_t;
26545 # endif
26546
26547 #elif !defined __STRICT_ANSI__
26548 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26549
26550 # ifndef _INT64_T
26551 # define _INT64_T
26552 typedef __int64 int64_t;
26553 # endif
26554 # ifndef _UINT64_T
26555 # define _UINT64_T
26556 typedef unsigned __int64 uint64_t;
26557 # endif
26558 # endif /* compiler */
26559
26560 #endif /* ANSI version */
26561EOF
26562fi
26563
26564# ------------- done int64_t types, emit intptr types ------------
26565if test "$ac_cv_type_uintptr_t" != yes; then
26566 sed 's/^ *//' >> tmp-stdint.h <<EOF
26567
26568 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 26569 #ifndef __uintptr_t_defined
4e8d927d 26570 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
26571 #endif
26572 #ifndef __intptr_t_defined
4e8d927d 26573 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 26574 #endif
4e8d927d
DJ
26575EOF
26576fi
26577
26578# ------------- done intptr types, emit int_least types ------------
26579if test "$ac_cv_type_int_least32_t" != yes; then
26580 sed 's/^ *//' >> tmp-stdint.h <<EOF
26581
26582 /* Define int_least types */
26583 typedef int8_t int_least8_t;
26584 typedef int16_t int_least16_t;
26585 typedef int32_t int_least32_t;
26586 #ifdef _INT64_T
26587 typedef int64_t int_least64_t;
26588 #endif
26589
26590 typedef uint8_t uint_least8_t;
26591 typedef uint16_t uint_least16_t;
26592 typedef uint32_t uint_least32_t;
26593 #ifdef _UINT64_T
26594 typedef uint64_t uint_least64_t;
26595 #endif
26596EOF
26597fi
26598
26599# ------------- done intptr types, emit int_fast types ------------
26600if test "$ac_cv_type_int_fast32_t" != yes; then
26601 sed 's/^ *//' >> tmp-stdint.h <<EOF
26602
26603 /* Define int_fast types. short is often slow */
26604 typedef int8_t int_fast8_t;
26605 typedef int int_fast16_t;
26606 typedef int32_t int_fast32_t;
26607 #ifdef _INT64_T
26608 typedef int64_t int_fast64_t;
26609 #endif
26610
26611 typedef uint8_t uint_fast8_t;
26612 typedef unsigned int uint_fast16_t;
26613 typedef uint32_t uint_fast32_t;
26614 #ifdef _UINT64_T
26615 typedef uint64_t uint_fast64_t;
26616 #endif
26617EOF
26618fi
26619
26620if test "$ac_cv_type_uintmax_t" != yes; then
26621 sed 's/^ *//' >> tmp-stdint.h <<EOF
26622
26623 /* Define intmax based on what we found */
26624 #ifdef _INT64_T
26625 typedef int64_t intmax_t;
26626 #else
26627 typedef long intmax_t;
26628 #endif
26629 #ifdef _UINT64_T
26630 typedef uint64_t uintmax_t;
26631 #else
26632 typedef unsigned long uintmax_t;
26633 #endif
26634EOF
26635fi
26636
26637sed 's/^ *//' >> tmp-stdint.h <<EOF
26638
26639 #endif /* GCC_GENERATED_STDINT_H */
26640EOF
26641
26642if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26643 rm -f tmp-stdint.h
26644else
26645 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
26646fi
26647
4e8d927d 26648 ;;
b4e70030 26649 default )
c906108c 26650
db985757 26651sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
26652mv -f Makefile.tmp Makefile
26653
2acceee2 26654
c906108c
SS
26655case x$CONFIG_HEADERS in
26656xconfig.h:config.in)
26657echo > stamp-h ;;
26658esac
bec39cab
AC
26659 ;;
26660 esac
b4e70030
JB
26661done
26662_ACEOF
c906108c 26663
b4e70030 26664cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
26665
26666{ (exit 0); exit 0; }
26667_ACEOF
c906108c 26668chmod +x $CONFIG_STATUS
bec39cab
AC
26669ac_clean_files=$ac_clean_files_save
26670
26671
26672# configure is writing to config.log, and then calls config.status.
26673# config.status does its own redirection, appending to config.log.
26674# Unfortunately, on DOS this fails, as config.log is still kept open
26675# by configure, so config.status won't be able to write to it; its
26676# output is simply discarded. So we exec the FD to /dev/null,
26677# effectively closing config.log, so it can be properly (re)opened and
26678# appended to by config.status. When coming back to configure, we
26679# need to make the FD available again.
26680if test "$no_create" != yes; then
26681 ac_cs_success=:
26682 ac_config_status_args=
26683 test "$silent" = yes &&
26684 ac_config_status_args="$ac_config_status_args --quiet"
26685 exec 5>/dev/null
26686 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26687 exec 5>>config.log
26688 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26689 # would make configure fail if this is the last instruction.
26690 $ac_cs_success || { (exit 1); exit 1; }
26691fi
c906108c 26692
bec39cab
AC
26693#
26694# CONFIG_SUBDIRS section.
26695#
c906108c
SS
26696if test "$no_recursion" != yes; then
26697
26698 # Remove --cache-file and --srcdir arguments so they do not pile up.
26699 ac_sub_configure_args=
26700 ac_prev=
b4e70030 26701 for ac_arg in $ac_configure_args; do
c906108c
SS
26702 if test -n "$ac_prev"; then
26703 ac_prev=
26704 continue
26705 fi
bec39cab 26706 case $ac_arg in
c906108c
SS
26707 -cache-file | --cache-file | --cache-fil | --cache-fi \
26708 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26709 ac_prev=cache_file ;;
26710 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
26711 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26712 | --c=*)
26713 ;;
26714 --config-cache | -C)
c906108c
SS
26715 ;;
26716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26717 ac_prev=srcdir ;;
26718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26719 ;;
bec39cab
AC
26720 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26721 ac_prev=prefix ;;
26722 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26723 ;;
b4e70030 26724 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
26725 esac
26726 done
26727
bec39cab
AC
26728 # Always prepend --prefix to ensure using the same prefix
26729 # in subdir configurations.
26730 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26731
b4e70030 26732 ac_popdir=`pwd`
bec39cab 26733 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
26734
26735 # Do not complain, so a configure script can configure whichever
26736 # parts of a large source tree are present.
bec39cab 26737 test -d $srcdir/$ac_dir || continue
c906108c 26738
b4e70030
JB
26739 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26740echo "$as_me: configuring in $ac_dir" >&6;}
26741 { if $as_mkdir_p; then
26742 mkdir -p "$ac_dir"
26743 else
26744 as_dir="$ac_dir"
bec39cab 26745 as_dirs=
b4e70030
JB
26746 while test ! -d "$as_dir"; do
26747 as_dirs="$as_dir $as_dirs"
26748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
26749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26750 X"$as_dir" : 'X\(//\)[^/]' \| \
26751 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
26752 X"$as_dir" : 'X\(/\)' \| \
26753 . : '\(.\)' 2>/dev/null ||
bec39cab 26754echo X"$as_dir" |
b4e70030
JB
26755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26757 /^X\(\/\/\)$/{ s//\1/; q; }
26758 /^X\(\/\).*/{ s//\1/; q; }
26759 s/.*/./; q'`
bec39cab 26760 done
b4e70030
JB
26761 test ! -n "$as_dirs" || mkdir $as_dirs
26762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26763echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 26764 { (exit 1); exit 1; }; }; }
b4e70030 26765
bec39cab
AC
26766 ac_builddir=.
26767
b4e70030 26768if test "$ac_dir" != .; then
bec39cab 26769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
26770 # A "../" for each directory in $ac_dir_suffix.
26771 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26772else
26773 ac_dir_suffix= ac_top_builddir=
26774fi
bec39cab
AC
26775
26776case $srcdir in
b4e70030 26777 .) # No --srcdir option. We are building in place.
bec39cab 26778 ac_srcdir=.
b4e70030
JB
26779 if test -z "$ac_top_builddir"; then
26780 ac_top_srcdir=.
26781 else
26782 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26783 fi ;;
26784 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 26785 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
26786 ac_top_srcdir=$srcdir ;;
26787 *) # Relative path.
26788 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26789 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26790esac
26791
26792# Do not use `cd foo && pwd` to compute absolute paths, because
26793# the directories may not exist.
26794case `pwd` in
26795.) ac_abs_builddir="$ac_dir";;
26796*)
26797 case "$ac_dir" in
26798 .) ac_abs_builddir=`pwd`;;
26799 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26800 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26801 esac;;
26802esac
26803case $ac_abs_builddir in
26804.) ac_abs_top_builddir=${ac_top_builddir}.;;
26805*)
26806 case ${ac_top_builddir}. in
26807 .) ac_abs_top_builddir=$ac_abs_builddir;;
26808 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26809 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26810 esac;;
26811esac
26812case $ac_abs_builddir in
26813.) ac_abs_srcdir=$ac_srcdir;;
26814*)
26815 case $ac_srcdir in
26816 .) ac_abs_srcdir=$ac_abs_builddir;;
26817 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26818 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26819 esac;;
26820esac
26821case $ac_abs_builddir in
26822.) ac_abs_top_srcdir=$ac_top_srcdir;;
26823*)
26824 case $ac_top_srcdir in
26825 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26826 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26827 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26828 esac;;
bec39cab 26829esac
c906108c 26830
c906108c 26831
b4e70030 26832 cd $ac_dir
c906108c
SS
26833
26834 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
26835 if test -f $ac_srcdir/configure.gnu; then
26836 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26837 elif test -f $ac_srcdir/configure; then
26838 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26839 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
26840 ac_sub_configure=$ac_configure
26841 else
bec39cab
AC
26842 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26843echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
26844 ac_sub_configure=
26845 fi
26846
26847 # The recursion is here.
26848 if test -n "$ac_sub_configure"; then
c906108c 26849 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
26850 case $cache_file in
26851 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
26852 *) # Relative path.
26853 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 26854 esac
c906108c 26855
bec39cab
AC
26856 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26857echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 26858 # The eval makes quoting arguments work.
b4e70030
JB
26859 eval $ac_sub_configure $ac_sub_configure_args \
26860 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
26861 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26862echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26863 { (exit 1); exit 1; }; }
c906108c
SS
26864 fi
26865
b4e70030 26866 cd $ac_popdir
c906108c
SS
26867 done
26868fi
26869
26870
26871exit 0
This page took 2.098041 seconds and 4 git commands to generate.