*** empty log message ***
[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"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
b4e70030
JB
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
bec39cab
AC
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
b4e70030
JB
312ac_subdirs_all="$ac_subdirs_all doc testsuite"
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
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 SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
317ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
318
319# Initialize some variables set by options.
bec39cab
AC
320ac_init_help=
321ac_init_version=false
c906108c
SS
322# The variables have the same names as the options, with
323# dashes changed to underlines.
bec39cab 324cache_file=/dev/null
c906108c 325exec_prefix=NONE
c906108c 326no_create=
c906108c
SS
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
c906108c
SS
335verbose=
336x_includes=NONE
337x_libraries=NONE
bec39cab
AC
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
b4e70030 347datadir='${prefix}/share'
c906108c
SS
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
b4e70030 351libdir='${exec_prefix}/lib'
c906108c
SS
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
b4e70030
JB
354infodir='${prefix}/info'
355mandir='${prefix}/man'
c906108c 356
c906108c
SS
357ac_prev=
358for ac_option
359do
c906108c
SS
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
b4e70030 362 eval "$ac_prev=\$ac_option"
c906108c
SS
363 ac_prev=
364 continue
365 fi
366
b4e70030 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
b4e70030 371 case $ac_option in
c906108c
SS
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 376 bindir=$ac_optarg ;;
c906108c
SS
377
378 -build | --build | --buil | --bui | --bu)
bec39cab 379 ac_prev=build_alias ;;
c906108c 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 381 build_alias=$ac_optarg ;;
c906108c
SS
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
c906108c 392
b4e70030 393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 394 ac_prev=datadir ;;
b4e70030
JB
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
bec39cab 397 datadir=$ac_optarg ;;
c906108c
SS
398
399 -disable-* | --disable-*)
bec39cab 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 401 # Reject names that are not valid shell variable names.
bec39cab
AC
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 406 eval "enable_$ac_feature=no" ;;
c906108c
SS
407
408 -enable-* | --enable-*)
bec39cab 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 410 # Reject names that are not valid shell variable names.
bec39cab
AC
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
bec39cab 428 exec_prefix=$ac_optarg ;;
c906108c
SS
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
bec39cab
AC
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
c906108c
SS
440
441 -host | --host | --hos | --ho)
bec39cab 442 ac_prev=host_alias ;;
c906108c 443 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 444 host_alias=$ac_optarg ;;
c906108c
SS
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 451 includedir=$ac_optarg ;;
c906108c
SS
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 456 infodir=$ac_optarg ;;
c906108c
SS
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 461 libdir=$ac_optarg ;;
c906108c
SS
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
bec39cab 468 libexecdir=$ac_optarg ;;
c906108c
SS
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 477 localstatedir=$ac_optarg ;;
c906108c
SS
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 482 mandir=$ac_optarg ;;
c906108c
SS
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 489 | --no-cr | --no-c | -n)
c906108c
SS
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 503 oldincludedir=$ac_optarg ;;
c906108c
SS
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 508 prefix=$ac_optarg ;;
c906108c
SS
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 515 program_prefix=$ac_optarg ;;
c906108c
SS
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 522 program_suffix=$ac_optarg ;;
c906108c
SS
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 539 program_transform_name=$ac_optarg ;;
c906108c
SS
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
bec39cab 549 sbindir=$ac_optarg ;;
c906108c
SS
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
bec39cab 560 sharedstatedir=$ac_optarg ;;
c906108c
SS
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
bec39cab 565 site=$ac_optarg ;;
3ace7edb 566
c906108c
SS
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 570 srcdir=$ac_optarg ;;
c906108c
SS
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 577 sysconfdir=$ac_optarg ;;
c906108c
SS
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 580 ac_prev=target_alias ;;
c906108c 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 582 target_alias=$ac_optarg ;;
c906108c
SS
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
bec39cab
AC
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
c906108c
SS
589
590 -with-* | --with-*)
bec39cab 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 592 # Reject names that are not valid shell variable names.
bec39cab
AC
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
c906108c 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
602
603 -without-* | --without-*)
bec39cab 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 605 # Reject names that are not valid shell variable names.
bec39cab
AC
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 610 eval "with_$ac_package=no" ;;
c906108c
SS
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 621 x_includes=$ac_optarg ;;
c906108c
SS
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 628 x_libraries=$ac_optarg ;;
c906108c 629
bec39cab
AC
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
c906108c
SS
633 ;;
634
bec39cab
AC
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
b4e70030
JB
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
643 export $ac_envvar ;;
644
c906108c 645 *)
bec39cab
AC
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
bec39cab
AC
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
c906108c 660fi
c906108c 661
b4e70030
JB
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
c906108c 664do
b4e70030 665 eval ac_val=$`echo $ac_var`
bec39cab 666 case $ac_val in
b4e70030
JB
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
c906108c
SS
682 esac
683done
684
bec39cab
AC
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
c906108c 702
bec39cab
AC
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
c906108c 707
c906108c
SS
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
b4e70030
JB
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
bec39cab 719echo X"$0" |
b4e70030
JB
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
c906108c 725 srcdir=$ac_confdir
b4e70030 726 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
b4e70030
JB
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 738 { (exit 1); exit 1; }; }
b4e70030 739 fi
c906108c 740fi
b4e70030
JB
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 743 { (exit 1); exit 1; }; }
b4e70030
JB
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
c906108c 777
bec39cab
AC
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
b4e70030
JB
805_ACEOF
806
807 cat <<_ACEOF
bec39cab
AC
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
bec39cab
AC
863 --disable-nls do not use Native Language Support
864 --disable-gdbcli disable command-line interface (CLI)
865 --disable-gdbmi disable machine-interface (MI)
866 --enable-tui enable full-screen terminal user interface (TUI)
867 --enable-gdbtk enable gdbtk graphical user interface (GUI)
868 --enable-profiling enable profiling of GDB
094a342e 869 --enable-werror treat compile warnings as errors
bec39cab
AC
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
874
875Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-included-gettext use the GNU gettext library included here
879 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
880 --with-libunwind Use libunwind frame unwinding support
881 --without-included-regex don't use included regex; this is the default
882 on systems with version 2 of the GNU C library
883 (use with caution on other system)
884 --with-sysroot=DIR Search for usr/lib et al within DIR.
885 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
886 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
887 --with-tclinclude=DIR Directory where tcl private headers are
888 --with-tkinclude=DIR Directory where tk private headers are
889 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
890 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
893
894Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
b4e70030
JB
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
bec39cab
AC
901 CPP C preprocessor
902
903Use these variables to override the choices made by `configure' or to help
904it to find libraries and programs with nonstandard names/locations.
905
906_ACEOF
907fi
908
909if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
b4e70030 911 ac_popdir=`pwd`
bec39cab
AC
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
914 ac_builddir=.
915
b4e70030 916if test "$ac_dir" != .; then
bec39cab 917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920else
921 ac_dir_suffix= ac_top_builddir=
922fi
bec39cab
AC
923
924case $srcdir in
b4e70030 925 .) # No --srcdir option. We are building in place.
bec39cab 926 ac_srcdir=.
b4e70030
JB
927 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=.
929 else
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 fi ;;
932 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 933 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
934 ac_top_srcdir=$srcdir ;;
935 *) # Relative path.
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
938esac
939
940# Do not use `cd foo && pwd` to compute absolute paths, because
941# the directories may not exist.
942case `pwd` in
943.) ac_abs_builddir="$ac_dir";;
944*)
945 case "$ac_dir" in
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_builddir=${ac_top_builddir}.;;
953*)
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_srcdir=$ac_srcdir;;
962*)
963 case $ac_srcdir in
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967 esac;;
968esac
969case $ac_abs_builddir in
970.) ac_abs_top_srcdir=$ac_top_srcdir;;
971*)
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976 esac;;
bec39cab
AC
977esac
978
b4e70030
JB
979 cd $ac_dir
980 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 981 if test -f $ac_srcdir/configure.gnu; then
b4e70030 982 echo
bec39cab
AC
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
b4e70030 985 echo
bec39cab 986 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
989 echo
990 $ac_configure --help
3ace7edb 991 else
bec39cab 992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
993 fi
994 cd $ac_popdir
bec39cab
AC
995 done
996fi
997
b4e70030 998test -n "$ac_init_help" && exit 0
bec39cab
AC
999if $ac_init_version; then
1000 cat <<\_ACEOF
1001
b4e70030 1002Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1003This configure script is free software; the Free Software Foundation
1004gives unlimited permission to copy, distribute and modify it.
1005_ACEOF
b4e70030 1006 exit 0
bec39cab 1007fi
b4e70030
JB
1008exec 5>config.log
1009cat >&5 <<_ACEOF
bec39cab
AC
1010This file contains any messages produced by compilers while
1011running configure, to aid debugging if configure makes a mistake.
1012
1013It was created by $as_me, which was
b4e70030 1014generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1015
1016 $ $0 $@
1017
1018_ACEOF
1019{
1020cat <<_ASUNAME
1021## --------- ##
1022## Platform. ##
1023## --------- ##
1024
1025hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030
1031/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1033
1034/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1037hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1038/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1041
1042_ASUNAME
1043
1044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045for as_dir in $PATH
1046do
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050done
1051
1052} >&5
1053
1054cat >&5 <<_ACEOF
1055
1056
1057## ----------- ##
1058## Core tests. ##
1059## ----------- ##
1060
1061_ACEOF
1062
1063
1064# Keep a trace of the command line.
1065# Strip out --no-create and --no-recursion so they do not pile up.
1066# Strip out --silent because we don't want to record it for future runs.
1067# Also quote any args containing shell meta-characters.
1068# Make two passes to allow for proper duplicate-argument suppression.
1069ac_configure_args=
1070ac_configure_args0=
1071ac_configure_args1=
1072ac_sep=
1073ac_must_keep_next=false
1074for ac_pass in 1 2
1075do
1076 for ac_arg
1077 do
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
b4e70030 1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088 2)
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1101 ;;
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1104 fi
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1108 ;;
1109 esac
1110 done
1111done
1112$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114
1115# When interrupted or exit'd, cleanup temporary files, and complete
1116# config.log. We remove comments because anyway the quotes in there
1117# would cause problems or look ugly.
b4e70030
JB
1118# WARNING: Be sure not to use single quotes in there, as some shells,
1119# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1120trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1122 {
1123 echo
1124
1125 cat <<\_ASBOX
1126## ---------------- ##
1127## Cache variables. ##
1128## ---------------- ##
1129_ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
b4e70030 1132{
bec39cab 1133 (set) 2>&1 |
b4e70030
JB
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
bec39cab 1136 sed -n \
b4e70030
JB
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 ;;
bec39cab 1140 *)
b4e70030
JB
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1143 ;;
b4e70030
JB
1144 esac;
1145}
bec39cab
AC
1146 echo
1147
1148 cat <<\_ASBOX
1149## ----------------- ##
1150## Output variables. ##
1151## ----------------- ##
1152_ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1155 do
b4e70030
JB
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1158 done | sort
1159 echo
1160
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
b4e70030
JB
1163## ------------- ##
1164## Output files. ##
1165## ------------- ##
bec39cab
AC
1166_ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1169 do
b4e70030
JB
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1172 done | sort
1173 echo
1174 fi
1175
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178## ----------- ##
1179## confdefs.h. ##
1180## ----------- ##
1181_ASBOX
1182 echo
b4e70030 1183 sed "/^$/d" confdefs.h | sort
bec39cab 1184 echo
3ace7edb 1185 fi
bec39cab
AC
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
b4e70030
JB
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1192 exit $exit_status
b4e70030 1193 ' 0
bec39cab
AC
1194for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196done
1197ac_signal=0
1198
1199# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1200rm -rf conftest* confdefs.h
1201# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202echo >confdefs.h
bec39cab
AC
1203
1204# Predefined preprocessor variables.
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_NAME "$PACKAGE_NAME"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_VERSION "$PACKAGE_VERSION"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_STRING "$PACKAGE_STRING"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228_ACEOF
1229
1230
1231# Let the site file select an alternate cache file if it wants to.
1232# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1233if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1238 fi
c906108c 1239fi
b4e70030 1240for ac_site_file in $CONFIG_SITE; do
c906108c 1241 if test -r "$ac_site_file"; then
bec39cab
AC
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1245 . "$ac_site_file"
1246 fi
1247done
1248
1249if test -r "$cache_file"; then
bec39cab
AC
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1259 fi
c906108c 1260else
bec39cab
AC
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1264fi
1265
1266# Check that the precious variables saved in the cache have kept the same
1267# value.
1268ac_cache_corrupted=false
b4e70030
JB
1269for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1285 *)
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1294 fi;;
1295 esac
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1298 case $ac_new_val in
b4e70030
JB
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1302 esac
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 esac
1307 fi
1308done
1309if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
c906108c
SS
1315fi
1316
b4e70030
JB
1317ac_ext=c
1318ac_cpp='$CPP $CPPFLAGS'
1319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1322
1323
bec39cab
AC
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
bec39cab 1340
b4e70030
JB
1341 ac_config_headers="$ac_config_headers config.h:config.in"
1342
1343echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1344echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1345 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1346if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1347 enableval="$enable_maintainer_mode"
1348 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1349else
1350 USE_MAINTAINER_MODE=no
b4e70030
JB
1351fi;
1352 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1353echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1354
413ccac7
AC
1355
1356if test $USE_MAINTAINER_MODE = yes; then
1357 MAINTAINER_MODE_TRUE=
1358 MAINTAINER_MODE_FALSE='#'
1359else
1360 MAINTAINER_MODE_TRUE='#'
1361 MAINTAINER_MODE_FALSE=
1362fi
85981d60 1363
413ccac7 1364 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1365
c906108c 1366
bec39cab
AC
1367
1368ac_ext=c
1369ac_cpp='$CPP $CPPFLAGS'
1370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1376echo "$as_me:$LINENO: checking for $ac_word" >&5
1377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1378if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1383else
1384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 break 2
1394 fi
1395done
1396done
1397
1398fi
1399fi
1400CC=$ac_cv_prog_CC
1401if test -n "$CC"; then
b4e70030
JB
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403echo "${ECHO_T}$CC" >&6
bec39cab 1404else
b4e70030
JB
1405 echo "$as_me:$LINENO: result: no" >&5
1406echo "${ECHO_T}no" >&6
bec39cab
AC
1407fi
1408
1409fi
1410if test -z "$ac_cv_prog_CC"; then
1411 ac_ct_CC=$CC
1412 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1413set dummy gcc; ac_word=$2
b4e70030
JB
1414echo "$as_me:$LINENO: checking for $ac_word" >&5
1415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1416if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1421else
1422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423for as_dir in $PATH
1424do
1425 IFS=$as_save_IFS
1426 test -z "$as_dir" && as_dir=.
1427 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1429 ac_cv_prog_ac_ct_CC="gcc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431 break 2
1432 fi
1433done
1434done
1435
1436fi
1437fi
1438ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439if test -n "$ac_ct_CC"; then
b4e70030
JB
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1442else
b4e70030
JB
1443 echo "$as_me:$LINENO: result: no" >&5
1444echo "${ECHO_T}no" >&6
bec39cab
AC
1445fi
1446
b4e70030 1447 CC=$ac_ct_CC
bec39cab
AC
1448else
1449 CC="$ac_cv_prog_CC"
1450fi
1451
1452if test -z "$CC"; then
b4e70030
JB
1453 if test -n "$ac_tool_prefix"; then
1454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1455set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1456echo "$as_me:$LINENO: checking for $ac_word" >&5
1457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1458if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1460else
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1463else
bec39cab
AC
1464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465for as_dir in $PATH
1466do
1467 IFS=$as_save_IFS
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1471 ac_cv_prog_CC="${ac_tool_prefix}cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 break 2
1474 fi
1475done
1476done
1477
c906108c
SS
1478fi
1479fi
bec39cab 1480CC=$ac_cv_prog_CC
c906108c 1481if test -n "$CC"; then
b4e70030
JB
1482 echo "$as_me:$LINENO: result: $CC" >&5
1483echo "${ECHO_T}$CC" >&6
c906108c 1484else
b4e70030
JB
1485 echo "$as_me:$LINENO: result: no" >&5
1486echo "${ECHO_T}no" >&6
c906108c
SS
1487fi
1488
b4e70030
JB
1489fi
1490if test -z "$ac_cv_prog_CC"; then
1491 ac_ct_CC=$CC
1492 # Extract the first word of "cc", so it can be a program name with args.
1493set dummy cc; ac_word=$2
1494echo "$as_me:$LINENO: checking for $ac_word" >&5
1495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498else
1499 if test -n "$ac_ct_CC"; then
1500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1501else
1502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503for as_dir in $PATH
1504do
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_ac_ct_CC="cc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511 break 2
4e8d927d 1512 fi
b4e70030
JB
1513done
1514done
1515
1516fi
1517fi
1518ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519if test -n "$ac_ct_CC"; then
1520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1521echo "${ECHO_T}$ac_ct_CC" >&6
1522else
1523 echo "$as_me:$LINENO: result: no" >&5
1524echo "${ECHO_T}no" >&6
1525fi
1526
1527 CC=$ac_ct_CC
1528else
1529 CC="$ac_cv_prog_CC"
1530fi
1531
bec39cab 1532fi
c906108c
SS
1533if test -z "$CC"; then
1534 # Extract the first word of "cc", so it can be a program name with args.
1535set dummy cc; ac_word=$2
b4e70030
JB
1536echo "$as_me:$LINENO: checking for $ac_word" >&5
1537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1538if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1540else
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1543else
c906108c 1544 ac_prog_rejected=no
bec39cab
AC
1545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546for as_dir in $PATH
1547do
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1553 ac_prog_rejected=yes
1554 continue
1555 fi
1556 ac_cv_prog_CC="cc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1559 fi
1560done
1561done
1562
c906108c
SS
1563if test $ac_prog_rejected = yes; then
1564 # We found a bogon in the path, so make sure we never use it.
1565 set dummy $ac_cv_prog_CC
1566 shift
bec39cab 1567 if test $# != 0; then
c906108c
SS
1568 # We chose a different compiler from the bogus one.
1569 # However, it has the same basename, so the bogon will be chosen
1570 # first if we set CC to just the basename; use the full file name.
1571 shift
bec39cab 1572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1573 fi
1574fi
1575fi
1576fi
bec39cab 1577CC=$ac_cv_prog_CC
c906108c 1578if test -n "$CC"; then
b4e70030
JB
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580echo "${ECHO_T}$CC" >&6
c906108c 1581else
b4e70030
JB
1582 echo "$as_me:$LINENO: result: no" >&5
1583echo "${ECHO_T}no" >&6
c906108c
SS
1584fi
1585
bec39cab
AC
1586fi
1587if test -z "$CC"; then
1588 if test -n "$ac_tool_prefix"; then
b4e70030 1589 for ac_prog in cl
bec39cab
AC
1590 do
1591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1593echo "$as_me:$LINENO: checking for $ac_word" >&5
1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1595if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1597else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600else
bec39cab
AC
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612done
1613done
1614
c906108c
SS
1615fi
1616fi
bec39cab 1617CC=$ac_cv_prog_CC
c906108c 1618if test -n "$CC"; then
b4e70030
JB
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620echo "${ECHO_T}$CC" >&6
c906108c 1621else
b4e70030
JB
1622 echo "$as_me:$LINENO: result: no" >&5
1623echo "${ECHO_T}no" >&6
c906108c 1624fi
bec39cab
AC
1625
1626 test -n "$CC" && break
1627 done
1628fi
1629if test -z "$CC"; then
1630 ac_ct_CC=$CC
b4e70030 1631 for ac_prog in cl
bec39cab
AC
1632do
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
b4e70030
JB
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1650 ac_cv_prog_ac_ct_CC="$ac_prog"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
c906108c 1653 fi
bec39cab
AC
1654done
1655done
1656
1657fi
1658fi
1659ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660if test -n "$ac_ct_CC"; then
b4e70030
JB
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1663else
b4e70030
JB
1664 echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
c906108c
SS
1666fi
1667
bec39cab
AC
1668 test -n "$ac_ct_CC" && break
1669done
c906108c 1670
b4e70030 1671 CC=$ac_ct_CC
bec39cab
AC
1672fi
1673
1674fi
1675
1676
1677test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1678See \`config.log' for more details." >&5
1679echo "$as_me: error: no acceptable C compiler found in \$PATH
1680See \`config.log' for more details." >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683# Provide some information about the compiler.
b4e70030
JB
1684echo "$as_me:$LINENO:" \
1685 "checking for C compiler version" >&5
bec39cab 1686ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1687{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1688 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1689 ac_status=$?
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }
b4e70030
JB
1692{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1693 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1694 ac_status=$?
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
b4e70030
JB
1697{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1698 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702
1703cat >conftest.$ac_ext <<_ACEOF
1704/* confdefs.h. */
1705_ACEOF
1706cat confdefs.h >>conftest.$ac_ext
1707cat >>conftest.$ac_ext <<_ACEOF
1708/* end confdefs.h. */
1709
1710int
1711main ()
1712{
1713
1714 ;
1715 return 0;
1716}
1717_ACEOF
1718ac_clean_files_save=$ac_clean_files
b4e70030 1719ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1720# Try to create an executable without -o first, disregard a.out.
1721# It will help us diagnose broken compilers, and finding out an intuition
1722# of exeext.
b4e70030
JB
1723echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1724echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1725ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1727 (eval $ac_link_default) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }; then
b4e70030
JB
1731 # Find the output, starting from the most likely. This scheme is
1732# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733# resort.
1734
1735# Be careful to initialize this variable, since it used to be cached.
1736# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1737ac_cv_exeext=
1738# b.out is created by i960 compilers.
1739for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1740do
1741 test -f "$ac_file" || continue
1742 case $ac_file in
b4e70030
JB
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1744 ;;
1745 conftest.$ac_ext )
1746 # This is the source file.
1747 ;;
1748 [ab].out )
1749 # We found the default executable, but exeext='' is most
1750 # certainly right.
1751 break;;
1752 *.* )
1753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 # FIXME: I believe we export ac_cv_exeext for Libtool,
1755 # but it would be cool to find out if it's true. Does anybody
1756 # maintain Libtool? --akim.
1757 export ac_cv_exeext
1758 break;;
1759 * )
1760 break;;
bec39cab
AC
1761 esac
1762done
1763else
1764 echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1768See \`config.log' for more details." >&5
1769echo "$as_me: error: C compiler cannot create executables
1770See \`config.log' for more details." >&2;}
1771 { (exit 77); exit 77; }; }
1772fi
1773
b4e70030
JB
1774ac_exeext=$ac_cv_exeext
1775echo "$as_me:$LINENO: result: $ac_file" >&5
1776echo "${ECHO_T}$ac_file" >&6
1777
1778# Check the compiler produces executables we can run. If not, either
bec39cab 1779# the compiler is broken, or we cross compile.
b4e70030
JB
1780echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1781echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1782# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783# If not cross compiling, check that we can run a simple program.
1784if test "$cross_compiling" != yes; then
1785 if { ac_try='./$ac_file'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1787 (eval $ac_try) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1791 cross_compiling=no
c906108c 1792 else
bec39cab
AC
1793 if test "$cross_compiling" = maybe; then
1794 cross_compiling=yes
1795 else
1796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1797If you meant to cross compile, use \`--host'.
1798See \`config.log' for more details." >&5
1799echo "$as_me: error: cannot run C compiled programs.
1800If you meant to cross compile, use \`--host'.
1801See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1803 fi
c906108c 1804 fi
bec39cab 1805fi
b4e70030
JB
1806echo "$as_me:$LINENO: result: yes" >&5
1807echo "${ECHO_T}yes" >&6
bec39cab 1808
b4e70030
JB
1809rm -f a.out a.exe conftest$ac_cv_exeext b.out
1810ac_clean_files=$ac_clean_files_save
1811# Check the compiler produces executables we can run. If not, either
1812# the compiler is broken, or we cross compile.
1813echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1814echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815echo "$as_me:$LINENO: result: $cross_compiling" >&5
1816echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1817
b4e70030
JB
1818echo "$as_me:$LINENO: checking for suffix of executables" >&5
1819echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1821 (eval $ac_link) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
b4e70030
JB
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827# work properly (i.e., refer to `conftest.exe'), while it won't with
1828# `rm'.
1829for ac_file in conftest.exe conftest conftest.*; do
1830 test -f "$ac_file" || continue
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 export ac_cv_exeext
1835 break;;
1836 * ) break;;
1837 esac
1838done
c906108c 1839else
bec39cab
AC
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1841See \`config.log' for more details." >&5
1842echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1843See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
c906108c 1845fi
c906108c 1846
b4e70030
JB
1847rm -f conftest$ac_cv_exeext
1848echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1849echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1850
b4e70030 1851rm -f conftest.$ac_ext
bec39cab
AC
1852EXEEXT=$ac_cv_exeext
1853ac_exeext=$EXEEXT
b4e70030
JB
1854echo "$as_me:$LINENO: checking for suffix of object files" >&5
1855echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1856if test "${ac_cv_objext+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
b4e70030
JB
1859 cat >conftest.$ac_ext <<_ACEOF
1860/* confdefs.h. */
1861_ACEOF
1862cat confdefs.h >>conftest.$ac_ext
1863cat >>conftest.$ac_ext <<_ACEOF
1864/* end confdefs.h. */
1865
1866int
1867main ()
1868{
1869
1870 ;
1871 return 0;
1872}
1873_ACEOF
1874rm -f conftest.o conftest.obj
bec39cab
AC
1875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
b4e70030 1880 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1881 case $ac_file in
b4e70030 1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1883 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1884 break;;
1885 esac
1886done
c906108c 1887else
bec39cab
AC
1888 echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1892See \`config.log' for more details." >&5
1893echo "$as_me: error: cannot compute suffix of object files: cannot compile
1894See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
c906108c
SS
1896fi
1897
b4e70030 1898rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1899fi
b4e70030
JB
1900echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1901echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1902OBJEXT=$ac_cv_objext
1903ac_objext=$OBJEXT
b4e70030
JB
1904echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1905echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1906if test "${ac_cv_c_compiler_gnu+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1908else
bec39cab
AC
1909 cat >conftest.$ac_ext <<_ACEOF
1910/* confdefs.h. */
1911_ACEOF
1912cat confdefs.h >>conftest.$ac_ext
1913cat >>conftest.$ac_ext <<_ACEOF
1914/* end confdefs.h. */
1915
1916int
1917main ()
1918{
1919#ifndef __GNUC__
1920 choke me
1921#endif
1922
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927rm -f conftest.$ac_objext
1928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1930 ac_status=$?
1931 grep -v '^ *+' conftest.er1 >conftest.err
1932 rm -f conftest.er1
1933 cat conftest.err >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
b4e70030
JB
1936 { ac_try='test -z "$ac_c_werror_flag"
1937 || test ! -s conftest.err'
bec39cab
AC
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; } &&
1943 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
1949 ac_compiler_gnu=yes
1950else
1951 echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
b4e70030 1954ac_compiler_gnu=no
bec39cab
AC
1955fi
1956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957ac_cv_c_compiler_gnu=$ac_compiler_gnu
1958
1959fi
b4e70030
JB
1960echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1961echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1962GCC=`test $ac_compiler_gnu = yes && echo yes`
1963ac_test_CFLAGS=${CFLAGS+set}
1964ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1965CFLAGS="-g"
1966echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1967echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1968if test "${ac_cv_prog_cc_g+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
b4e70030 1971 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1972/* confdefs.h. */
1973_ACEOF
1974cat confdefs.h >>conftest.$ac_ext
1975cat >>conftest.$ac_ext <<_ACEOF
1976/* end confdefs.h. */
1977
1978int
1979main ()
1980{
1981
1982 ;
1983 return 0;
1984}
1985_ACEOF
1986rm -f conftest.$ac_objext
1987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>conftest.er1
1989 ac_status=$?
1990 grep -v '^ *+' conftest.er1 >conftest.err
1991 rm -f conftest.er1
1992 cat conftest.err >&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
b4e70030
JB
1995 { ac_try='test -z "$ac_c_werror_flag"
1996 || test ! -s conftest.err'
bec39cab
AC
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 (eval $ac_try) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; } &&
2002 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
c906108c
SS
2008 ac_cv_prog_cc_g=yes
2009else
bec39cab
AC
2010 echo "$as_me: failed program was:" >&5
2011sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2012
b4e70030 2013ac_cv_prog_cc_g=no
4e8d927d 2014fi
bec39cab
AC
2015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2016fi
b4e70030
JB
2017echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2018echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2019if test "$ac_test_CFLAGS" = set; then
bec39cab 2020 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2021elif test $ac_cv_prog_cc_g = yes; then
2022 if test "$GCC" = yes; then
2023 CFLAGS="-g -O2"
2024 else
2025 CFLAGS="-g"
2026 fi
2027else
2028 if test "$GCC" = yes; then
2029 CFLAGS="-O2"
2030 else
2031 CFLAGS=
2032 fi
2033fi
b4e70030
JB
2034echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2035echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2036if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
b4e70030 2039 ac_cv_prog_cc_stdc=no
bec39cab
AC
2040ac_save_CC=$CC
2041cat >conftest.$ac_ext <<_ACEOF
2042/* confdefs.h. */
2043_ACEOF
2044cat confdefs.h >>conftest.$ac_ext
2045cat >>conftest.$ac_ext <<_ACEOF
2046/* end confdefs.h. */
c906108c
SS
2047#include <stdarg.h>
2048#include <stdio.h>
2049#include <sys/types.h>
2050#include <sys/stat.h>
2051/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2052struct buf { int x; };
2053FILE * (*rcsopen) (struct buf *, struct stat *, int);
2054static char *e (p, i)
2055 char **p;
2056 int i;
2057{
2058 return p[i];
2059}
2060static char *f (char * (*g) (char **, int), char **p, ...)
2061{
2062 char *s;
2063 va_list v;
2064 va_start (v,p);
2065 s = g (p, va_arg (v,int));
2066 va_end (v);
2067 return s;
2068}
bec39cab
AC
2069
2070/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2071 function prototypes and stuff, but not '\xHH' hex character constants.
2072 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2073 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2075 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2076 that's true only with -std1. */
bec39cab
AC
2077int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2078
c906108c
SS
2079int test (int i, double x);
2080struct s1 {int (*f) (int a);};
2081struct s2 {int (*f) (double a);};
2082int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2083int argc;
2084char **argv;
bec39cab
AC
2085int
2086main ()
2087{
c906108c 2088return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2089 ;
2090 return 0;
2091}
2092_ACEOF
b4e70030
JB
2093# Don't try gcc -ansi; that turns off useful extensions and
2094# breaks some systems' header files.
2095# AIX -qlanglvl=ansi
2096# Ultrix and OSF/1 -std1
2097# HP-UX 10.20 and later -Ae
2098# HP-UX older versions -Aa -D_HPUX_SOURCE
2099# SVR4 -Xc -D__EXTENSIONS__
2100for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2101do
2102 CC="$ac_save_CC $ac_arg"
2103 rm -f conftest.$ac_objext
2104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>conftest.er1
2106 ac_status=$?
2107 grep -v '^ *+' conftest.er1 >conftest.err
2108 rm -f conftest.er1
2109 cat conftest.err >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
b4e70030
JB
2112 { ac_try='test -z "$ac_c_werror_flag"
2113 || test ! -s conftest.err'
bec39cab
AC
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 (eval $ac_try) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; } &&
2119 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
b4e70030
JB
2125 ac_cv_prog_cc_stdc=$ac_arg
2126break
c906108c 2127else
bec39cab
AC
2128 echo "$as_me: failed program was:" >&5
2129sed 's/^/| /' conftest.$ac_ext >&5
2130
c906108c 2131fi
bec39cab 2132rm -f conftest.err conftest.$ac_objext
c906108c 2133done
b4e70030 2134rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2135CC=$ac_save_CC
c906108c
SS
2136
2137fi
b4e70030
JB
2138
2139case "x$ac_cv_prog_cc_stdc" in
2140 x|xno)
2141 echo "$as_me:$LINENO: result: none needed" >&5
2142echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2143 *)
b4e70030
JB
2144 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2145echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2146 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2147esac
2148
b4e70030
JB
2149# Some people use a C++ compiler to compile C. Since we use `exit',
2150# in C++ we need to declare it. In case someone uses the same compiler
2151# for both compiling C and C++ we need to have the C++ compiler decide
2152# the declaration of exit, since it's the most demanding environment.
2153cat >conftest.$ac_ext <<_ACEOF
2154#ifndef __cplusplus
2155 choke me
2156#endif
2157_ACEOF
2158rm -f conftest.$ac_objext
2159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2161 ac_status=$?
2162 grep -v '^ *+' conftest.er1 >conftest.err
2163 rm -f conftest.er1
2164 cat conftest.err >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -z "$ac_c_werror_flag"
2168 || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2180 for ac_declaration in \
2181 '' \
2182 'extern "C" void std::exit (int) throw (); using std::exit;' \
2183 'extern "C" void std::exit (int); using std::exit;' \
2184 'extern "C" void exit (int) throw ();' \
2185 'extern "C" void exit (int);' \
2186 'void exit (int);'
2187do
2188 cat >conftest.$ac_ext <<_ACEOF
2189/* confdefs.h. */
2190_ACEOF
2191cat confdefs.h >>conftest.$ac_ext
2192cat >>conftest.$ac_ext <<_ACEOF
2193/* end confdefs.h. */
2194$ac_declaration
2195#include <stdlib.h>
2196int
2197main ()
2198{
2199exit (42);
2200 ;
2201 return 0;
2202}
2203_ACEOF
2204rm -f conftest.$ac_objext
2205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>conftest.er1
2207 ac_status=$?
2208 grep -v '^ *+' conftest.er1 >conftest.err
2209 rm -f conftest.er1
2210 cat conftest.err >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try='test -z "$ac_c_werror_flag"
2214 || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2226 :
2227else
2228 echo "$as_me: failed program was:" >&5
2229sed 's/^/| /' conftest.$ac_ext >&5
2230
2231continue
2232fi
2233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2234 cat >conftest.$ac_ext <<_ACEOF
2235/* confdefs.h. */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h. */
2240$ac_declaration
2241int
2242main ()
2243{
2244exit (42);
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249rm -f conftest.$ac_objext
2250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>conftest.er1
2252 ac_status=$?
2253 grep -v '^ *+' conftest.er1 >conftest.err
2254 rm -f conftest.er1
2255 cat conftest.err >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -z "$ac_c_werror_flag"
2259 || test ! -s conftest.err'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; } &&
2265 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2271 break
2272else
2273 echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276fi
2277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278done
2279rm -f conftest*
2280if test -n "$ac_declaration"; then
2281 echo '#ifdef __cplusplus' >>confdefs.h
2282 echo $ac_declaration >>confdefs.h
2283 echo '#endif' >>confdefs.h
2284fi
2285
2286else
2287 echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2289
b4e70030
JB
2290fi
2291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2292ac_ext=c
2293ac_cpp='$CPP $CPPFLAGS'
2294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2297
60ca704f 2298
bec39cab
AC
2299cat >>confdefs.h <<\_ACEOF
2300#define _GNU_SOURCE 1
2301_ACEOF
c906108c
SS
2302
2303
8bb2c122 2304
bec39cab
AC
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2310echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2312# On Suns, sometimes $CPP names a directory.
2313if test -n "$CPP" && test -d "$CPP"; then
2314 CPP=
8bb2c122 2315fi
bec39cab
AC
2316if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320 # Double quotes because CPP needs to be expanded
2321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2322 do
2323 ac_preproc_ok=false
2324for ac_c_preproc_warn_flag in '' yes
2325do
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h. */
2338#ifdef __STDC__
2339# include <limits.h>
2340#else
2341# include <assert.h>
2342#endif
2343 Syntax error
2344_ACEOF
2345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_c_preproc_warn_flag
2355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 else
2357 ac_cpp_err=
2358 fi
8bb2c122 2359else
bec39cab 2360 ac_cpp_err=yes
8bb2c122 2361fi
bec39cab
AC
2362if test -z "$ac_cpp_err"; then
2363 :
8bb2c122 2364else
bec39cab
AC
2365 echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 # Broken: fails on valid input.
2369continue
2370fi
2371rm -f conftest.err conftest.$ac_ext
2372
b4e70030 2373 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381#include <ac_nonexistent.h>
2382_ACEOF
2383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 else
2395 ac_cpp_err=
2396 fi
8bb2c122 2397else
bec39cab 2398 ac_cpp_err=yes
8bb2c122 2399fi
bec39cab
AC
2400if test -z "$ac_cpp_err"; then
2401 # Broken: success on invalid input.
2402continue
8bb2c122 2403else
bec39cab
AC
2404 echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2406
bec39cab
AC
2407 # Passes both tests.
2408ac_preproc_ok=:
2409break
8bb2c122 2410fi
bec39cab 2411rm -f conftest.err conftest.$ac_ext
8bb2c122 2412
bec39cab
AC
2413done
2414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415rm -f conftest.err conftest.$ac_ext
2416if $ac_preproc_ok; then
2417 break
2418fi
8bb2c122 2419
bec39cab
AC
2420 done
2421 ac_cv_prog_CPP=$CPP
ddc9cd0f 2422
c906108c 2423fi
bec39cab
AC
2424 CPP=$ac_cv_prog_CPP
2425else
2426 ac_cv_prog_CPP=$CPP
c906108c 2427fi
b4e70030
JB
2428echo "$as_me:$LINENO: result: $CPP" >&5
2429echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2430ac_preproc_ok=false
2431for ac_c_preproc_warn_flag in '' yes
2432do
2433 # Use a header file that comes with gcc, so configuring glibc
2434 # with a fresh cross-compiler works.
2435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436 # <limits.h> exists even on freestanding compilers.
2437 # On the NeXT, cc -E runs the code through the compiler's parser,
2438 # not just through cpp. "Syntax error" is here to catch this case.
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445#ifdef __STDC__
2446# include <limits.h>
2447#else
2448# include <assert.h>
2449#endif
2450 Syntax error
2451_ACEOF
2452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463 else
2464 ac_cpp_err=
2465 fi
c906108c 2466else
bec39cab 2467 ac_cpp_err=yes
c906108c 2468fi
bec39cab
AC
2469if test -z "$ac_cpp_err"; then
2470 :
c906108c 2471else
bec39cab
AC
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 # Broken: fails on valid input.
2476continue
2477fi
2478rm -f conftest.err conftest.$ac_ext
2479
b4e70030 2480 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488#include <ac_nonexistent.h>
2489_ACEOF
2490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev/null; then
2498 if test -s conftest.err; then
2499 ac_cpp_err=$ac_c_preproc_warn_flag
2500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501 else
2502 ac_cpp_err=
2503 fi
c906108c 2504else
bec39cab 2505 ac_cpp_err=yes
c906108c 2506fi
bec39cab
AC
2507if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2509continue
c906108c 2510else
bec39cab
AC
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2513
bec39cab
AC
2514 # Passes both tests.
2515ac_preproc_ok=:
2516break
c906108c 2517fi
bec39cab 2518rm -f conftest.err conftest.$ac_ext
c906108c 2519
bec39cab
AC
2520done
2521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522rm -f conftest.err conftest.$ac_ext
2523if $ac_preproc_ok; then
c906108c
SS
2524 :
2525else
bec39cab
AC
2526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
c906108c 2531fi
c906108c 2532
bec39cab
AC
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
b4e70030
JB
2540echo "$as_me:$LINENO: checking for egrep" >&5
2541echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
b4e70030
JB
2545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2546 then ac_cv_prog_egrep='grep -E'
2547 else ac_cv_prog_egrep='egrep'
bec39cab 2548 fi
4e8d927d 2549fi
b4e70030
JB
2550echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552 EGREP=$ac_cv_prog_egrep
c906108c 2553
bec39cab
AC
2554
2555
b4e70030
JB
2556echo "$as_me:$LINENO: checking for AIX" >&5
2557echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2558cat >conftest.$ac_ext <<_ACEOF
2559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
2564#ifdef _AIX
2565 yes
2566#endif
2567
2568_ACEOF
c906108c 2569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2570 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2571 echo "$as_me:$LINENO: result: yes" >&5
2572echo "${ECHO_T}yes" >&6
bec39cab
AC
2573cat >>confdefs.h <<\_ACEOF
2574#define _ALL_SOURCE 1
2575_ACEOF
2576
c906108c 2577else
b4e70030
JB
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
c906108c
SS
2580fi
2581rm -f conftest*
2582
c906108c 2583
b4e70030
JB
2584echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2586if test "${ac_cv_search_strerror+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2588else
bec39cab 2589 ac_func_search_save_LIBS=$LIBS
b4e70030 2590ac_cv_search_strerror=no
bec39cab
AC
2591cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
c906108c 2597
b4e70030 2598/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2599#ifdef __cplusplus
2600extern "C"
2601#endif
b4e70030
JB
2602/* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
bec39cab
AC
2604char strerror ();
2605int
2606main ()
2607{
b4e70030 2608strerror ();
bec39cab
AC
2609 ;
2610 return 0;
2611}
2612_ACEOF
b4e70030 2613rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
b4e70030
JB
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
bec39cab
AC
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
b4e70030 2635 ac_cv_search_strerror="none required"
c906108c 2636else
bec39cab
AC
2637 echo "$as_me: failed program was:" >&5
2638sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2639
2640fi
bec39cab 2641rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2642 conftest$ac_exeext conftest.$ac_ext
2643if test "$ac_cv_search_strerror" = no; then
2644 for ac_lib in cposix; do
2645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2646 cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h. */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h. */
2652
2653/* Override any gcc2 internal prototype to avoid an error. */
2654#ifdef __cplusplus
2655extern "C"
2656#endif
2657/* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659char strerror ();
2660int
2661main ()
2662{
2663strerror ();
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2690 ac_cv_search_strerror="-l$ac_lib"
2691break
4e8d927d 2692else
b4e70030
JB
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
2695
2696fi
2697rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 done
c906108c 2700fi
bec39cab 2701LIBS=$ac_func_search_save_LIBS
c906108c 2702fi
b4e70030
JB
2703echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2707
c906108c
SS
2708fi
2709
c906108c 2710
c906108c 2711
bec39cab 2712
b4e70030
JB
2713echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2715if test "${am_cv_prog_cc_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2717else
bec39cab
AC
2718 am_cv_prog_cc_stdc=no
2719ac_save_CC="$CC"
2720# Don't try gcc -ansi; that turns off useful extensions and
2721# breaks some systems' header files.
2722# AIX -qlanglvl=ansi
2723# Ultrix and OSF/1 -std1
2724# HP-UX 10.20 and later -Ae
2725# HP-UX older versions -Aa -D_HPUX_SOURCE
2726# SVR4 -Xc -D__EXTENSIONS__
2727for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728do
2729 CC="$ac_save_CC $ac_arg"
2730 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
2736#include <stdarg.h>
2737#include <stdio.h>
2738#include <sys/types.h>
2739#include <sys/stat.h>
2740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741struct buf { int x; };
2742FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743static char *e (p, i)
2744 char **p;
2745 int i;
2746{
2747 return p[i];
2748}
2749static char *f (char * (*g) (char **, int), char **p, ...)
2750{
2751 char *s;
2752 va_list v;
2753 va_start (v,p);
2754 s = g (p, va_arg (v,int));
2755 va_end (v);
2756 return s;
2757}
2758int test (int i, double x);
2759struct s1 {int (*f) (int a);};
2760struct s2 {int (*f) (double a);};
2761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762int argc;
2763char **argv;
c906108c 2764
bec39cab
AC
2765int
2766main ()
2767{
c906108c 2768
bec39cab 2769return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2770
bec39cab
AC
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext
2776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
b4e70030
JB
2784 { ac_try='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
bec39cab
AC
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2797 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2798else
bec39cab
AC
2799 echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2801
2802fi
bec39cab
AC
2803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804done
2805CC="$ac_save_CC"
c906108c
SS
2806
2807fi
2808
bec39cab 2809if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811echo "${ECHO_T}none needed" >&6
c906108c 2812else
b4e70030
JB
2813 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2815fi
bec39cab
AC
2816case "x$am_cv_prog_cc_stdc" in
2817 x|xno) ;;
2818 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2819esac
c906108c 2820
c906108c 2821
bec39cab
AC
2822ac_aux_dir=
2823for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2824 if test -f $ac_dir/install-sh; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/install-sh -c"
2827 break
2828 elif test -f $ac_dir/install.sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install.sh -c"
2831 break
2832 elif test -f $ac_dir/shtool; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/shtool install -c"
2835 break
2836 fi
2837done
2838if test -z "$ac_aux_dir"; then
2839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841 { (exit 1); exit 1; }; }
c906108c 2842fi
bec39cab
AC
2843ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2844ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2845ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2846
bec39cab
AC
2847# Make sure we can run config.sub.
2848$ac_config_sub sun4 >/dev/null 2>&1 ||
2849 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851 { (exit 1); exit 1; }; }
2852
b4e70030
JB
2853echo "$as_me:$LINENO: checking build system type" >&5
2854echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2855if test "${ac_cv_build+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
b4e70030
JB
2858 ac_cv_build_alias=$build_alias
2859test -z "$ac_cv_build_alias" &&
2860 ac_cv_build_alias=`$ac_config_guess`
2861test -z "$ac_cv_build_alias" &&
bec39cab
AC
2862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864 { (exit 1); exit 1; }; }
b4e70030
JB
2865ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2866 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2868 { (exit 1); exit 1; }; }
2869
2870fi
b4e70030
JB
2871echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2873build=$ac_cv_build
b4e70030
JB
2874build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2877
2878
b4e70030
JB
2879echo "$as_me:$LINENO: checking host system type" >&5
2880echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2881if test "${ac_cv_host+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
b4e70030
JB
2884 ac_cv_host_alias=$host_alias
2885test -z "$ac_cv_host_alias" &&
2886 ac_cv_host_alias=$ac_cv_build_alias
2887ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2890 { (exit 1); exit 1; }; }
2891
2892fi
b4e70030
JB
2893echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2895host=$ac_cv_host
b4e70030
JB
2896host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2899
2900
b4e70030
JB
2901echo "$as_me:$LINENO: checking target system type" >&5
2902echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2903if test "${ac_cv_target+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905else
b4e70030
JB
2906 ac_cv_target_alias=$target_alias
2907test "x$ac_cv_target_alias" = "x" &&
2908 ac_cv_target_alias=$ac_cv_host_alias
2909ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2912 { (exit 1); exit 1; }; }
2913
2914fi
b4e70030
JB
2915echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2917target=$ac_cv_target
b4e70030
JB
2918target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2921
c906108c 2922
bec39cab
AC
2923# The aliases save the names the user supplied, while $host etc.
2924# will get canonicalized.
2925test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2927 NONENONEs,x,x, &&
2928 program_prefix=${target_alias}-
c906108c 2929
c906108c 2930
bec39cab
AC
2931CONFIG_OBS=
2932CONFIG_DEPS=
2933CONFIG_SRCS=
2934ENABLE_CFLAGS=
c906108c 2935
bec39cab
AC
2936CONFIG_ALL=
2937CONFIG_CLEAN=
2938CONFIG_INSTALL=
2939CONFIG_UNINSTALL=
2940
2941
b4e70030
JB
2942echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
bec39cab 2944set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
b4e70030 2945if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
bec39cab
AC
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947else
2948 cat >conftest.make <<\_ACEOF
2949all:
b4e70030 2950 @echo 'ac_maketemp="$(MAKE)"'
bec39cab
AC
2951_ACEOF
2952# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2953eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
b4e70030 2954if test -n "$ac_maketemp"; then
bec39cab 2955 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 2956else
bec39cab 2957 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 2958fi
bec39cab
AC
2959rm -f conftest.make
2960fi
2961if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
b4e70030
JB
2962 echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6
bec39cab
AC
2964 SET_MAKE=
2965else
b4e70030
JB
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
bec39cab 2968 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
2969fi
2970
bec39cab
AC
2971if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2973set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
2974echo "$as_me:$LINENO: checking for $ac_word" >&5
2975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
2976if test "${ac_cv_prog_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 if test -n "$RANLIB"; then
2980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
2989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993done
2994done
c906108c 2995
bec39cab
AC
2996fi
2997fi
2998RANLIB=$ac_cv_prog_RANLIB
2999if test -n "$RANLIB"; then
b4e70030
JB
3000 echo "$as_me:$LINENO: result: $RANLIB" >&5
3001echo "${ECHO_T}$RANLIB" >&6
c906108c 3002else
b4e70030
JB
3003 echo "$as_me:$LINENO: result: no" >&5
3004echo "${ECHO_T}no" >&6
c906108c
SS
3005fi
3006
bec39cab
AC
3007fi
3008if test -z "$ac_cv_prog_RANLIB"; then
3009 ac_ct_RANLIB=$RANLIB
3010 # Extract the first word of "ranlib", so it can be a program name with args.
3011set dummy ranlib; ac_word=$2
b4e70030
JB
3012echo "$as_me:$LINENO: checking for $ac_word" >&5
3013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
3014if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017 if test -n "$ac_ct_RANLIB"; then
3018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
3027 ac_cv_prog_ac_ct_RANLIB="ranlib"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031done
c906108c 3032done
bec39cab 3033
b4e70030 3034 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
3035fi
3036fi
3037ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3038if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
3039 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3040echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 3041else
b4e70030
JB
3042 echo "$as_me:$LINENO: result: no" >&5
3043echo "${ECHO_T}no" >&6
c906108c
SS
3044fi
3045
b4e70030 3046 RANLIB=$ac_ct_RANLIB
c906108c 3047else
bec39cab
AC
3048 RANLIB="$ac_cv_prog_RANLIB"
3049fi
3050
b4e70030
JB
3051echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
3053if test "${ac_cv_header_stdc+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3055else
bec39cab
AC
3056 cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
3062#include <stdlib.h>
3063#include <stdarg.h>
3064#include <string.h>
3065#include <float.h>
3066
3067int
c906108c
SS
3068main ()
3069{
bec39cab
AC
3070
3071 ;
3072 return 0;
c906108c 3073}
bec39cab
AC
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
b4e70030
JB
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
bec39cab
AC
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_header_stdc=yes
c906108c 3098else
bec39cab
AC
3099 echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3101
b4e70030 3102ac_cv_header_stdc=no
c906108c 3103fi
bec39cab 3104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3105
bec39cab
AC
3106if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h. */
3114#include <string.h>
c906108c 3115
bec39cab
AC
3116_ACEOF
3117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 $EGREP "memchr" >/dev/null 2>&1; then
3119 :
c906108c 3120else
bec39cab 3121 ac_cv_header_stdc=no
c906108c 3122fi
bec39cab 3123rm -f conftest*
c906108c 3124
bec39cab 3125fi
c906108c 3126
bec39cab
AC
3127if test $ac_cv_header_stdc = yes; then
3128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129 cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
3135#include <stdlib.h>
c906108c 3136
bec39cab
AC
3137_ACEOF
3138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "free" >/dev/null 2>&1; then
3140 :
c906108c 3141else
bec39cab 3142 ac_cv_header_stdc=no
c906108c
SS
3143fi
3144rm -f conftest*
c906108c 3145
c906108c 3146fi
c906108c 3147
bec39cab
AC
3148if test $ac_cv_header_stdc = yes; then
3149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3150 if test "$cross_compiling" = yes; then
bec39cab 3151 :
c906108c 3152else
bec39cab
AC
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
3159#include <ctype.h>
3160#if ((' ' & 0x0FF) == 0x020)
3161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3163#else
3164# define ISLOWER(c) \
3165 (('a' <= (c) && (c) <= 'i') \
3166 || ('j' <= (c) && (c) <= 'r') \
3167 || ('s' <= (c) && (c) <= 'z'))
3168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3169#endif
c906108c 3170
bec39cab
AC
3171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3172int
3173main ()
3174{
3175 int i;
3176 for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i))
3178 || toupper (i) != TOUPPER (i))
b4e70030
JB
3179 exit(2);
3180 exit (0);
bec39cab
AC
3181}
3182_ACEOF
3183rm -f conftest$ac_exeext
3184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 :
3195else
3196 echo "$as_me: program exited with status $ac_status" >&5
3197echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3199
bec39cab
AC
3200( exit $ac_status )
3201ac_cv_header_stdc=no
3202fi
b4e70030 3203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
3204fi
3205fi
3206fi
b4e70030
JB
3207echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 3209if test $ac_cv_header_stdc = yes; then
c906108c 3210
bec39cab
AC
3211cat >>confdefs.h <<\_ACEOF
3212#define STDC_HEADERS 1
3213_ACEOF
c906108c 3214
bec39cab 3215fi
c906108c 3216
b4e70030
JB
3217echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
bec39cab
AC
3219if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222 cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
c906108c 3228
bec39cab
AC
3229int
3230main ()
3231{
3232/* FIXME: Include the comments suggested by Paul. */
3233#ifndef __cplusplus
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3236 const charset x;
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3239 char **p;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3246 expression */
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3250 ++ccp;
3251 p = (char**) ccp;
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3254 char *t;
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3256
3257 *t++ = 0;
3258 }
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3260 int x[] = {25, 17};
3261 const int *foo = &x[0];
3262 ++foo;
3263 }
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3266 iptr p = 0;
3267 ++p;
3268 }
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3273 }
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275 const int foo = 10;
3276 }
3277#endif
c906108c 3278
bec39cab
AC
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext
3284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
b4e70030
JB
3292 { ac_try='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
bec39cab
AC
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_c_const=yes
c906108c 3306else
bec39cab
AC
3307 echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3309
b4e70030 3310ac_cv_c_const=no
bec39cab
AC
3311fi
3312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3313fi
b4e70030
JB
3314echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315echo "${ECHO_T}$ac_cv_c_const" >&6
bec39cab 3316if test $ac_cv_c_const = no; then
c906108c 3317
bec39cab
AC
3318cat >>confdefs.h <<\_ACEOF
3319#define const
3320_ACEOF
c906108c
SS
3321
3322fi
3323
b4e70030
JB
3324echo "$as_me:$LINENO: checking for inline" >&5
3325echo $ECHO_N "checking for inline... $ECHO_C" >&6
bec39cab
AC
3326if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3328else
bec39cab
AC
3329 ac_cv_c_inline=no
3330for ac_kw in inline __inline__ __inline; do
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#ifndef __cplusplus
3338typedef int foo_t;
3339static $ac_kw foo_t static_foo () {return 0; }
3340$ac_kw foo_t foo () {return 0; }
c906108c
SS
3341#endif
3342
bec39cab
AC
3343_ACEOF
3344rm -f conftest.$ac_objext
3345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
b4e70030
JB
3353 { ac_try='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
bec39cab
AC
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
b4e70030 3366 ac_cv_c_inline=$ac_kw; break
c906108c 3367else
bec39cab
AC
3368 echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3370
c906108c 3371fi
bec39cab 3372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3373done
3374
bec39cab 3375fi
b4e70030
JB
3376echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3378
c906108c 3379
bec39cab
AC
3380case $ac_cv_c_inline in
3381 inline | yes) ;;
3382 *)
3383 case $ac_cv_c_inline in
3384 no) ac_val=;;
3385 *) ac_val=$ac_cv_c_inline;;
3386 esac
3387 cat >>confdefs.h <<_ACEOF
3388#ifndef __cplusplus
3389#define inline $ac_val
c906108c 3390#endif
bec39cab
AC
3391_ACEOF
3392 ;;
3393esac
c906108c 3394
bec39cab 3395# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3396
c906108c 3397
c906108c 3398
c906108c 3399
c906108c 3400
c906108c 3401
c906108c 3402
c906108c 3403
c906108c 3404
bec39cab
AC
3405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3407do
3408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3409echo "$as_me:$LINENO: checking for $ac_header" >&5
3410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420$ac_includes_default
3421
3422#include <$ac_header>
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
b4e70030
JB
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
bec39cab
AC
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3447else
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
b4e70030 3451eval "$as_ac_Header=no"
bec39cab
AC
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454fi
b4e70030
JB
3455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3457if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460_ACEOF
c906108c 3461
c906108c
SS
3462fi
3463
bec39cab 3464done
c906108c 3465
c906108c 3466
b4e70030
JB
3467echo "$as_me:$LINENO: checking for off_t" >&5
3468echo $ECHO_N "checking for off_t... $ECHO_C" >&6
bec39cab
AC
3469if test "${ac_cv_type_off_t+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3471else
bec39cab
AC
3472 cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h. */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h. */
3478$ac_includes_default
3479int
3480main ()
3481{
b4e70030 3482if ((off_t *) 0)
bec39cab 3483 return 0;
b4e70030 3484if (sizeof (off_t))
bec39cab
AC
3485 return 0;
3486 ;
3487 return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
b4e70030
JB
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
bec39cab
AC
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_type_off_t=yes
3513else
3514 echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
b4e70030 3517ac_cv_type_off_t=no
c906108c 3518fi
bec39cab 3519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3520fi
b4e70030
JB
3521echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3522echo "${ECHO_T}$ac_cv_type_off_t" >&6
bec39cab
AC
3523if test $ac_cv_type_off_t = yes; then
3524 :
c906108c 3525else
bec39cab
AC
3526
3527cat >>confdefs.h <<_ACEOF
b4e70030 3528#define off_t long
bec39cab
AC
3529_ACEOF
3530
3531fi
3532
b4e70030
JB
3533echo "$as_me:$LINENO: checking for size_t" >&5
3534echo $ECHO_N "checking for size_t... $ECHO_C" >&6
bec39cab
AC
3535if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
3538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
3544$ac_includes_default
3545int
3546main ()
3547{
b4e70030 3548if ((size_t *) 0)
bec39cab 3549 return 0;
b4e70030 3550if (sizeof (size_t))
bec39cab
AC
3551 return 0;
3552 ;
3553 return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
b4e70030
JB
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
bec39cab
AC
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_type_size_t=yes
c906108c 3579else
bec39cab
AC
3580 echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
b4e70030 3583ac_cv_type_size_t=no
c906108c 3584fi
bec39cab 3585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3586fi
b4e70030
JB
3587echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3588echo "${ECHO_T}$ac_cv_type_size_t" >&6
bec39cab
AC
3589if test $ac_cv_type_size_t = yes; then
3590 :
3591else
c906108c 3592
bec39cab 3593cat >>confdefs.h <<_ACEOF
b4e70030 3594#define size_t unsigned
bec39cab 3595_ACEOF
c906108c 3596
c906108c 3597fi
bec39cab
AC
3598
3599# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3600# for constant arguments. Useless!
b4e70030
JB
3601echo "$as_me:$LINENO: checking for working alloca.h" >&5
3602echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
bec39cab
AC
3603if test "${ac_cv_working_alloca_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612#include <alloca.h>
3613int
3614main ()
3615{
3616char *p = (char *) alloca (2 * sizeof (int));
3617 ;
3618 return 0;
3619}
3620_ACEOF
3621rm -f conftest.$ac_objext conftest$ac_exeext
3622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
b4e70030
JB
3630 { ac_try='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
bec39cab
AC
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h=yes
3644else
3645 echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
b4e70030 3648ac_cv_working_alloca_h=no
bec39cab
AC
3649fi
3650rm -f conftest.err conftest.$ac_objext \
3651 conftest$ac_exeext conftest.$ac_ext
3652fi
b4e70030
JB
3653echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3654echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
bec39cab
AC
3655if test $ac_cv_working_alloca_h = yes; then
3656
3657cat >>confdefs.h <<\_ACEOF
3658#define HAVE_ALLOCA_H 1
3659_ACEOF
c906108c
SS
3660
3661fi
bec39cab 3662
b4e70030
JB
3663echo "$as_me:$LINENO: checking for alloca" >&5
3664echo $ECHO_N "checking for alloca... $ECHO_C" >&6
bec39cab
AC
3665if test "${ac_cv_func_alloca_works+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3667else
bec39cab
AC
3668 cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h. */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h. */
3674#ifdef __GNUC__
3675# define alloca __builtin_alloca
3676#else
3677# ifdef _MSC_VER
3678# include <malloc.h>
3679# define alloca _alloca
3680# else
3681# if HAVE_ALLOCA_H
3682# include <alloca.h>
3683# else
3684# ifdef _AIX
3685 #pragma alloca
3686# else
3687# ifndef alloca /* predefined by HP cc +Olibcalls */
3688char *alloca ();
3689# endif
3690# endif
3691# endif
3692# endif
3693#endif
c906108c 3694
bec39cab
AC
3695int
3696main ()
3697{
3698char *p = (char *) alloca (1);
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext conftest$ac_exeext
3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
b4e70030
JB
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
bec39cab
AC
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_func_alloca_works=yes
c906108c 3726else
bec39cab
AC
3727 echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
b4e70030 3730ac_cv_func_alloca_works=no
c906108c 3731fi
bec39cab
AC
3732rm -f conftest.err conftest.$ac_objext \
3733 conftest$ac_exeext conftest.$ac_ext
c906108c 3734fi
b4e70030
JB
3735echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3736echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab
AC
3737
3738if test $ac_cv_func_alloca_works = yes; then
3739
3740cat >>confdefs.h <<\_ACEOF
3741#define HAVE_ALLOCA 1
3742_ACEOF
c906108c 3743
c906108c 3744else
bec39cab
AC
3745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3746# that cause trouble. Some versions do not even contain alloca or
3747# contain a buggy version. If you still want to use their alloca,
3748# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3749
b4e70030 3750ALLOCA=alloca.$ac_objext
c906108c 3751
bec39cab
AC
3752cat >>confdefs.h <<\_ACEOF
3753#define C_ALLOCA 1
3754_ACEOF
c906108c 3755
bec39cab 3756
b4e70030
JB
3757echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3758echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
bec39cab
AC
3759if test "${ac_cv_os_cray+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3761else
bec39cab
AC
3762 cat >conftest.$ac_ext <<_ACEOF
3763/* confdefs.h. */
3764_ACEOF
3765cat confdefs.h >>conftest.$ac_ext
3766cat >>conftest.$ac_ext <<_ACEOF
3767/* end confdefs.h. */
b4e70030 3768#if defined(CRAY) && ! defined(CRAY2)
bec39cab
AC
3769webecray
3770#else
3771wenotbecray
3772#endif
3773
3774_ACEOF
3775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "webecray" >/dev/null 2>&1; then
3777 ac_cv_os_cray=yes
c906108c 3778else
bec39cab 3779 ac_cv_os_cray=no
c906108c 3780fi
bec39cab
AC
3781rm -f conftest*
3782
3783fi
b4e70030
JB
3784echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3785echo "${ECHO_T}$ac_cv_os_cray" >&6
bec39cab
AC
3786if test $ac_cv_os_cray = yes; then
3787 for ac_func in _getb67 GETB67 getb67; do
3788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
3789echo "$as_me:$LINENO: checking for $ac_func" >&5
3790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3791if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
3800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3802#define $ac_func innocuous_$ac_func
3803
c906108c 3804/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3805 which can conflict with char $ac_func (); below.
3806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 <limits.h> exists even on freestanding compilers. */
3808
3809#ifdef __STDC__
3810# include <limits.h>
3811#else
3812# include <assert.h>
3813#endif
c906108c 3814
bec39cab 3815#undef $ac_func
c906108c 3816
b4e70030 3817/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
3818#ifdef __cplusplus
3819extern "C"
b4e70030 3820{
bec39cab 3821#endif
b4e70030
JB
3822/* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
bec39cab 3824char $ac_func ();
c906108c
SS
3825/* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
b4e70030 3828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
c906108c 3829choke me
b4e70030
JB
3830#else
3831char (*f) () = $ac_func;
3832#endif
3833#ifdef __cplusplus
3834}
c906108c
SS
3835#endif
3836
bec39cab
AC
3837int
3838main ()
3839{
b4e70030 3840return f != $ac_func;
bec39cab
AC
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext conftest$ac_exeext
3846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
b4e70030
JB
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
bec39cab
AC
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 eval "$as_ac_var=yes"
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
b4e70030 3872eval "$as_ac_var=no"
bec39cab
AC
3873fi
3874rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3876fi
b4e70030
JB
3877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
3879if test `eval echo '${'$as_ac_var'}'` = yes; then
3880
3881cat >>confdefs.h <<_ACEOF
3882#define CRAY_STACKSEG_END $ac_func
3883_ACEOF
c906108c 3884
bec39cab 3885 break
c906108c 3886fi
c906108c 3887
c906108c 3888 done
c906108c 3889fi
bec39cab 3890
b4e70030
JB
3891echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3892echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
bec39cab
AC
3893if test "${ac_cv_c_stack_direction+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3895else
bec39cab
AC
3896 if test "$cross_compiling" = yes; then
3897 ac_cv_c_stack_direction=0
3898else
3899 cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h. */
3905int
3906find_stack_direction ()
3907{
3908 static char *addr = 0;
3909 auto char dummy;
3910 if (addr == 0)
3911 {
3912 addr = &dummy;
3913 return find_stack_direction ();
3914 }
3915 else
3916 return (&dummy > addr) ? 1 : -1;
3917}
c906108c 3918
bec39cab
AC
3919int
3920main ()
3921{
b4e70030 3922 exit (find_stack_direction () < 0);
bec39cab
AC
3923}
3924_ACEOF
3925rm -f conftest$ac_exeext
3926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_c_stack_direction=1
c906108c 3937else
bec39cab
AC
3938 echo "$as_me: program exited with status $ac_status" >&5
3939echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942( exit $ac_status )
3943ac_cv_c_stack_direction=-1
3944fi
b4e70030 3945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3946fi
c906108c 3947fi
b4e70030
JB
3948echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3949echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
bec39cab
AC
3950
3951cat >>confdefs.h <<_ACEOF
3952#define STACK_DIRECTION $ac_cv_c_stack_direction
3953_ACEOF
c906108c 3954
c906108c 3955
c906108c
SS
3956fi
3957
3958
c906108c 3959
bec39cab
AC
3960for ac_header in stdlib.h unistd.h
3961do
3962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3963if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
3965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968fi
b4e70030
JB
3969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3971else
3972 # Is the header compilable?
b4e70030
JB
3973echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3975cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h. */
3981$ac_includes_default
3982#include <$ac_header>
3983_ACEOF
3984rm -f conftest.$ac_objext
3985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
b4e70030
JB
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
bec39cab
AC
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_header_compiler=yes
4007else
4008 echo "$as_me: failed program was:" >&5
4009sed 's/^/| /' conftest.$ac_ext >&5
4010
b4e70030 4011ac_header_compiler=no
bec39cab
AC
4012fi
4013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4016
4017# Is the header present?
b4e70030
JB
4018echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4020cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h. */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h. */
4026#include <$ac_header>
4027_ACEOF
4028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null; then
4036 if test -s conftest.err; then
4037 ac_cpp_err=$ac_c_preproc_warn_flag
4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 else
4040 ac_cpp_err=
4041 fi
c906108c 4042else
bec39cab 4043 ac_cpp_err=yes
c906108c 4044fi
bec39cab
AC
4045if test -z "$ac_cpp_err"; then
4046 ac_header_preproc=yes
c906108c 4047else
bec39cab
AC
4048 echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 ac_header_preproc=no
c906108c 4052fi
bec39cab 4053rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4055echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4056
bec39cab
AC
4057# So? What about this header?
4058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4059 yes:no: )
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4061echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4063echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4064 ac_header_preproc=yes
4065 ;;
4066 no:yes:* )
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4068echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4070echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4072echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4074echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4076echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4078echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4079 (
4080 cat <<\_ASBOX
4081## ------------------------------------------ ##
4082## Report this to the AC_PACKAGE_NAME lists. ##
4083## ------------------------------------------ ##
4084_ASBOX
4085 ) |
4086 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4087 ;;
4088esac
b4e70030
JB
4089echo "$as_me:$LINENO: checking for $ac_header" >&5
4090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4091if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094 eval "$as_ac_Header=\$ac_header_preproc"
4095fi
b4e70030
JB
4096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4098
4099fi
4100if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103_ACEOF
4104
4105fi
4106
4107done
4108
4109
4110for ac_func in getpagesize
4111do
4112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4113echo "$as_me:$LINENO: checking for $ac_func" >&5
4114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117else
4118 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h. */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h. */
4124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126#define $ac_func innocuous_$ac_func
4127
4128/* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char $ac_func (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4132
4133#ifdef __STDC__
4134# include <limits.h>
4135#else
4136# include <assert.h>
4137#endif
4138
4139#undef $ac_func
4140
b4e70030 4141/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4142#ifdef __cplusplus
4143extern "C"
b4e70030 4144{
bec39cab 4145#endif
b4e70030
JB
4146/* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
bec39cab
AC
4148char $ac_func ();
4149/* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
b4e70030 4152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4153choke me
b4e70030
JB
4154#else
4155char (*f) () = $ac_func;
4156#endif
4157#ifdef __cplusplus
4158}
bec39cab
AC
4159#endif
4160
4161int
4162main ()
4163{
b4e70030 4164return f != $ac_func;
bec39cab
AC
4165 ;
4166 return 0;
4167}
4168_ACEOF
4169rm -f conftest.$ac_objext conftest$ac_exeext
4170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
b4e70030
JB
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
bec39cab
AC
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 eval "$as_ac_var=yes"
4192else
4193 echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
b4e70030 4196eval "$as_ac_var=no"
bec39cab
AC
4197fi
4198rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4200fi
b4e70030
JB
4201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4203if test `eval echo '${'$as_ac_var'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4206_ACEOF
4207
4208fi
4209done
4210
b4e70030
JB
4211echo "$as_me:$LINENO: checking for working mmap" >&5
4212echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
bec39cab
AC
4213if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216 if test "$cross_compiling" = yes; then
4217 ac_cv_func_mmap_fixed_mapped=no
4218else
4219 cat >conftest.$ac_ext <<_ACEOF
4220/* confdefs.h. */
4221_ACEOF
4222cat confdefs.h >>conftest.$ac_ext
4223cat >>conftest.$ac_ext <<_ACEOF
4224/* end confdefs.h. */
4225$ac_includes_default
4226/* malloc might have been renamed as rpl_malloc. */
4227#undef malloc
4228
4229/* Thanks to Mike Haertel and Jim Avera for this test.
4230 Here is a matrix of mmap possibilities:
4231 mmap private not fixed
4232 mmap private fixed at somewhere currently unmapped
4233 mmap private fixed at somewhere already mapped
4234 mmap shared not fixed
4235 mmap shared fixed at somewhere currently unmapped
4236 mmap shared fixed at somewhere already mapped
4237 For private mappings, we should verify that changes cannot be read()
4238 back from the file, nor mmap's back from the file at a different
4239 address. (There have been systems where private was not correctly
4240 implemented like the infamous i386 svr4.0, and systems where the
4241 VM page cache was not coherent with the file system buffer cache
4242 like early versions of FreeBSD and possibly contemporary NetBSD.)
4243 For shared mappings, we should conversely verify that changes get
4244 propagated back to all the places they're supposed to be.
4245
4246 Grep wants private fixed already mapped.
4247 The main things grep needs to know about mmap are:
4248 * does it exist and is it safe to write into the mmap'd area
4249 * how to use it (BSD variants) */
4250
4251#include <fcntl.h>
4252#include <sys/mman.h>
4253
4254#if !STDC_HEADERS && !HAVE_STDLIB_H
4255char *malloc ();
4256#endif
4257
4258/* This mess was copied from the GNU getpagesize.h. */
4259#if !HAVE_GETPAGESIZE
4260/* Assume that all systems that can run configure have sys/param.h. */
4261# if !HAVE_SYS_PARAM_H
4262# define HAVE_SYS_PARAM_H 1
4263# endif
4264
4265# ifdef _SC_PAGESIZE
4266# define getpagesize() sysconf(_SC_PAGESIZE)
4267# else /* no _SC_PAGESIZE */
4268# if HAVE_SYS_PARAM_H
4269# include <sys/param.h>
4270# ifdef EXEC_PAGESIZE
4271# define getpagesize() EXEC_PAGESIZE
4272# else /* no EXEC_PAGESIZE */
4273# ifdef NBPG
4274# define getpagesize() NBPG * CLSIZE
4275# ifndef CLSIZE
4276# define CLSIZE 1
4277# endif /* no CLSIZE */
4278# else /* no NBPG */
4279# ifdef NBPC
4280# define getpagesize() NBPC
4281# else /* no NBPC */
4282# ifdef PAGESIZE
4283# define getpagesize() PAGESIZE
4284# endif /* PAGESIZE */
4285# endif /* no NBPC */
4286# endif /* no NBPG */
4287# endif /* no EXEC_PAGESIZE */
4288# else /* no HAVE_SYS_PARAM_H */
4289# define getpagesize() 8192 /* punt totally */
4290# endif /* no HAVE_SYS_PARAM_H */
4291# endif /* no _SC_PAGESIZE */
4292
4293#endif /* no HAVE_GETPAGESIZE */
4294
4295int
4296main ()
4297{
4298 char *data, *data2, *data3;
4299 int i, pagesize;
4300 int fd;
4301
4302 pagesize = getpagesize ();
4303
4304 /* First, make a file with some known garbage in it. */
4305 data = (char *) malloc (pagesize);
4306 if (!data)
b4e70030 4307 exit (1);
bec39cab
AC
4308 for (i = 0; i < pagesize; ++i)
4309 *(data + i) = rand ();
4310 umask (0);
4311 fd = creat ("conftest.mmap", 0600);
4312 if (fd < 0)
b4e70030 4313 exit (1);
bec39cab 4314 if (write (fd, data, pagesize) != pagesize)
b4e70030 4315 exit (1);
bec39cab
AC
4316 close (fd);
4317
4318 /* Next, try to mmap the file at a fixed address which already has
4319 something else allocated at it. If we can, also make sure that
4320 we see the same garbage. */
4321 fd = open ("conftest.mmap", O_RDWR);
4322 if (fd < 0)
b4e70030 4323 exit (1);
bec39cab
AC
4324 data2 = (char *) malloc (2 * pagesize);
4325 if (!data2)
b4e70030
JB
4326 exit (1);
4327 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
bec39cab
AC
4328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 4330 exit (1);
bec39cab
AC
4331 for (i = 0; i < pagesize; ++i)
4332 if (*(data + i) != *(data2 + i))
b4e70030 4333 exit (1);
bec39cab
AC
4334
4335 /* Finally, make sure that changes to the mapped area do not
4336 percolate back to the file as seen by read(). (This is a bug on
4337 some variants of i386 svr4.0.) */
4338 for (i = 0; i < pagesize; ++i)
4339 *(data2 + i) = *(data2 + i) + 1;
4340 data3 = (char *) malloc (pagesize);
4341 if (!data3)
b4e70030 4342 exit (1);
bec39cab 4343 if (read (fd, data3, pagesize) != pagesize)
b4e70030 4344 exit (1);
bec39cab
AC
4345 for (i = 0; i < pagesize; ++i)
4346 if (*(data + i) != *(data3 + i))
b4e70030 4347 exit (1);
bec39cab 4348 close (fd);
b4e70030 4349 exit (0);
bec39cab
AC
4350}
4351_ACEOF
4352rm -f conftest$ac_exeext
4353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_mmap_fixed_mapped=yes
4364else
4365 echo "$as_me: program exited with status $ac_status" >&5
4366echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369( exit $ac_status )
4370ac_cv_func_mmap_fixed_mapped=no
4371fi
b4e70030 4372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
4373fi
4374fi
b4e70030
JB
4375echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4376echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
bec39cab
AC
4377if test $ac_cv_func_mmap_fixed_mapped = yes; then
4378
4379cat >>confdefs.h <<\_ACEOF
4380#define HAVE_MMAP 1
4381_ACEOF
4382
4383fi
4384rm -f conftest.mmap
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4397unistd.h values.h sys/param.h
4398do
4399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
4400if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405fi
b4e70030
JB
4406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4408else
4409 # Is the header compilable?
b4e70030
JB
4410echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
4412cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418$ac_includes_default
4419#include <$ac_header>
4420_ACEOF
4421rm -f conftest.$ac_objext
4422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
b4e70030
JB
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
bec39cab
AC
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_header_compiler=yes
4444else
4445 echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
b4e70030 4448ac_header_compiler=no
bec39cab
AC
4449fi
4450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4453
4454# Is the header present?
b4e70030
JB
4455echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4457cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h. */
4463#include <$ac_header>
4464_ACEOF
4465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null; then
4473 if test -s conftest.err; then
4474 ac_cpp_err=$ac_c_preproc_warn_flag
4475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476 else
4477 ac_cpp_err=
4478 fi
4479else
4480 ac_cpp_err=yes
4481fi
4482if test -z "$ac_cpp_err"; then
4483 ac_header_preproc=yes
4484else
4485 echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_header_preproc=no
4489fi
4490rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4493
4494# So? What about this header?
4495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496 yes:no: )
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501 ac_header_preproc=yes
4502 ;;
4503 no:yes:* )
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4516 (
4517 cat <<\_ASBOX
4518## ------------------------------------------ ##
4519## Report this to the AC_PACKAGE_NAME lists. ##
4520## ------------------------------------------ ##
4521_ASBOX
4522 ) |
4523 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4524 ;;
4525esac
b4e70030
JB
4526echo "$as_me:$LINENO: checking for $ac_header" >&5
4527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 eval "$as_ac_Header=\$ac_header_preproc"
4532fi
b4e70030
JB
4533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4535
4536fi
4537if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540_ACEOF
4541
4542fi
4543
4544done
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4557__argz_count __argz_stringify __argz_next
4558do
4559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4560echo "$as_me:$LINENO: checking for $ac_func" >&5
4561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565 cat >conftest.$ac_ext <<_ACEOF
4566/* confdefs.h. */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h. */
4571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573#define $ac_func innocuous_$ac_func
4574
4575/* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4579
4580#ifdef __STDC__
4581# include <limits.h>
4582#else
4583# include <assert.h>
4584#endif
4585
4586#undef $ac_func
4587
b4e70030 4588/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4589#ifdef __cplusplus
4590extern "C"
b4e70030 4591{
bec39cab 4592#endif
b4e70030
JB
4593/* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
bec39cab
AC
4595char $ac_func ();
4596/* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
b4e70030 4599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4600choke me
b4e70030
JB
4601#else
4602char (*f) () = $ac_func;
4603#endif
4604#ifdef __cplusplus
4605}
bec39cab
AC
4606#endif
4607
4608int
4609main ()
4610{
b4e70030 4611return f != $ac_func;
bec39cab
AC
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext conftest$ac_exeext
4617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
b4e70030
JB
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
bec39cab
AC
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 eval "$as_ac_var=yes"
4639else
4640 echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
b4e70030 4643eval "$as_ac_var=no"
bec39cab
AC
4644fi
4645rm -f conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext conftest.$ac_ext
4647fi
b4e70030
JB
4648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4650if test `eval echo '${'$as_ac_var'}'` = yes; then
4651 cat >>confdefs.h <<_ACEOF
4652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4653_ACEOF
4654
4655fi
4656done
4657
4658
4659 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4660
4661for ac_func in stpcpy
4662do
4663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4664echo "$as_me:$LINENO: checking for $ac_func" >&5
4665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669 cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h. */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h. */
4675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4677#define $ac_func innocuous_$ac_func
4678
4679/* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func (); below.
4681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 <limits.h> exists even on freestanding compilers. */
4683
4684#ifdef __STDC__
4685# include <limits.h>
4686#else
4687# include <assert.h>
4688#endif
4689
4690#undef $ac_func
4691
b4e70030 4692/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4693#ifdef __cplusplus
4694extern "C"
b4e70030 4695{
bec39cab 4696#endif
b4e70030
JB
4697/* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
bec39cab
AC
4699char $ac_func ();
4700/* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
b4e70030 4703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4704choke me
b4e70030
JB
4705#else
4706char (*f) () = $ac_func;
4707#endif
4708#ifdef __cplusplus
4709}
bec39cab
AC
4710#endif
4711
4712int
4713main ()
4714{
b4e70030 4715return f != $ac_func;
bec39cab
AC
4716 ;
4717 return 0;
4718}
4719_ACEOF
4720rm -f conftest.$ac_objext conftest$ac_exeext
4721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
b4e70030
JB
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
bec39cab
AC
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 eval "$as_ac_var=yes"
4743else
4744 echo "$as_me: failed program was:" >&5
4745sed 's/^/| /' conftest.$ac_ext >&5
4746
b4e70030 4747eval "$as_ac_var=no"
bec39cab
AC
4748fi
4749rm -f conftest.err conftest.$ac_objext \
4750 conftest$ac_exeext conftest.$ac_ext
4751fi
b4e70030
JB
4752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4754if test `eval echo '${'$as_ac_var'}'` = yes; then
4755 cat >>confdefs.h <<_ACEOF
4756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4757_ACEOF
4758
4759fi
4760done
4761
4762 fi
4763 if test "${ac_cv_func_stpcpy}" = "yes"; then
4764
4765cat >>confdefs.h <<\_ACEOF
4766#define HAVE_STPCPY 1
4767_ACEOF
4768
4769 fi
4770
4771 if test $ac_cv_header_locale_h = yes; then
b4e70030
JB
4772 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4773echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
bec39cab
AC
4774if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777 cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h. */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h. */
4783#include <locale.h>
4784int
4785main ()
4786{
4787return LC_MESSAGES
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext conftest$ac_exeext
4793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
b4e70030
JB
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
bec39cab
AC
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 am_cv_val_LC_MESSAGES=yes
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
b4e70030 4819am_cv_val_LC_MESSAGES=no
bec39cab
AC
4820fi
4821rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823fi
b4e70030
JB
4824echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4825echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
bec39cab
AC
4826 if test $am_cv_val_LC_MESSAGES = yes; then
4827
4828cat >>confdefs.h <<\_ACEOF
4829#define HAVE_LC_MESSAGES 1
4830_ACEOF
4831
4832 fi
4833 fi
b4e70030
JB
4834 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4835echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4836 # Check whether --enable-nls or --disable-nls was given.
bec39cab 4837if test "${enable_nls+set}" = set; then
b4e70030
JB
4838 enableval="$enable_nls"
4839 USE_NLS=$enableval
bec39cab
AC
4840else
4841 USE_NLS=yes
b4e70030
JB
4842fi;
4843 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4844echo "${ECHO_T}$USE_NLS" >&6
bec39cab
AC
4845
4846
4847 USE_INCLUDED_LIBINTL=no
4848
4849 if test "$USE_NLS" = "yes"; then
b4e70030
JB
4850 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4851echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
bec39cab 4852
b4e70030 4853# Check whether --with-included-gettext or --without-included-gettext was given.
bec39cab 4854if test "${with_included_gettext+set}" = set; then
b4e70030
JB
4855 withval="$with_included_gettext"
4856 nls_cv_force_use_gnu_gettext=$withval
bec39cab
AC
4857else
4858 nls_cv_force_use_gnu_gettext=no
b4e70030
JB
4859fi;
4860 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4861echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
bec39cab
AC
4862
4863 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4864 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4865 nls_cv_header_intl=
4866 nls_cv_header_libgt=
a53bf506 4867 CATOBJEXT=
bec39cab
AC
4868
4869 if test "${ac_cv_header_libintl_h+set}" = set; then
b4e70030
JB
4870 echo "$as_me:$LINENO: checking for libintl.h" >&5
4871echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
bec39cab
AC
4872if test "${ac_cv_header_libintl_h+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874fi
b4e70030
JB
4875echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4876echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
bec39cab
AC
4877else
4878 # Is the header compilable?
b4e70030
JB
4879echo "$as_me:$LINENO: checking libintl.h usability" >&5
4880echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
bec39cab
AC
4881cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887$ac_includes_default
4888#include <libintl.h>
4889_ACEOF
4890rm -f conftest.$ac_objext
4891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
b4e70030
JB
4899 { ac_try='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_header_compiler=yes
4913else
4914 echo "$as_me: failed program was:" >&5
4915sed 's/^/| /' conftest.$ac_ext >&5
4916
b4e70030 4917ac_header_compiler=no
bec39cab
AC
4918fi
4919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
4920echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4921echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
4922
4923# Is the header present?
b4e70030
JB
4924echo "$as_me:$LINENO: checking libintl.h presence" >&5
4925echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
bec39cab
AC
4926cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932#include <libintl.h>
4933_ACEOF
4934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null; then
4942 if test -s conftest.err; then
4943 ac_cpp_err=$ac_c_preproc_warn_flag
4944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4945 else
4946 ac_cpp_err=
4947 fi
4948else
4949 ac_cpp_err=yes
4950fi
4951if test -z "$ac_cpp_err"; then
4952 ac_header_preproc=yes
4953else
4954 echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 ac_header_preproc=no
4958fi
4959rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4960echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4962
4963# So? What about this header?
4964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4965 yes:no: )
4966 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4967echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4969echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4970 ac_header_preproc=yes
4971 ;;
4972 no:yes:* )
4973 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4974echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4975 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4976echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4978echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4980echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4982echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4984echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4985 (
4986 cat <<\_ASBOX
4987## ------------------------------------------ ##
4988## Report this to the AC_PACKAGE_NAME lists. ##
4989## ------------------------------------------ ##
4990_ASBOX
4991 ) |
4992 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4993 ;;
4994esac
b4e70030
JB
4995echo "$as_me:$LINENO: checking for libintl.h" >&5
4996echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
bec39cab
AC
4997if test "${ac_cv_header_libintl_h+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000 ac_cv_header_libintl_h=$ac_header_preproc
5001fi
b4e70030
JB
5002echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5003echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
bec39cab
AC
5004
5005fi
5006if test $ac_cv_header_libintl_h = yes; then
b4e70030
JB
5007 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5008echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
bec39cab
AC
5009if test "${gt_cv_func_gettext_libc+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
5018#include <libintl.h>
5019int
5020main ()
5021{
5022return (int) gettext ("")
5023 ;
5024 return 0;
5025}
5026_ACEOF
5027rm -f conftest.$ac_objext conftest$ac_exeext
5028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
b4e70030
JB
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
bec39cab
AC
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 gt_cv_func_gettext_libc=yes
5050else
5051 echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
b4e70030 5054gt_cv_func_gettext_libc=no
bec39cab
AC
5055fi
5056rm -f conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058fi
b4e70030
JB
5059echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5060echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
bec39cab
AC
5061
5062 if test "$gt_cv_func_gettext_libc" != "yes"; then
b4e70030
JB
5063 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5064echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
bec39cab
AC
5065if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068 ac_check_lib_save_LIBS=$LIBS
5069LIBS="-lintl $LIBS"
5070cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076
b4e70030 5077/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5078#ifdef __cplusplus
5079extern "C"
5080#endif
b4e70030
JB
5081/* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
bec39cab
AC
5083char bindtextdomain ();
5084int
5085main ()
5086{
b4e70030 5087bindtextdomain ();
bec39cab
AC
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092rm -f conftest.$ac_objext conftest$ac_exeext
5093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
b4e70030
JB
5101 { ac_try='test -z "$ac_c_werror_flag"
5102 || test ! -s conftest.err'
bec39cab
AC
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_lib_intl_bindtextdomain=yes
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
b4e70030 5119ac_cv_lib_intl_bindtextdomain=no
bec39cab
AC
5120fi
5121rm -f conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5123LIBS=$ac_check_lib_save_LIBS
5124fi
b4e70030
JB
5125echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5126echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
bec39cab 5127if test $ac_cv_lib_intl_bindtextdomain = yes; then
b4e70030
JB
5128 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5129echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
bec39cab
AC
5130if test "${gt_cv_func_gettext_libintl+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133 cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h. */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h. */
5139
5140int
5141main ()
5142{
5143return (int) gettext ("")
5144 ;
5145 return 0;
5146}
5147_ACEOF
5148rm -f conftest.$ac_objext conftest$ac_exeext
5149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
b4e70030
JB
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
bec39cab
AC
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 gt_cv_func_gettext_libintl=yes
5171else
5172 echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
b4e70030 5175gt_cv_func_gettext_libintl=no
bec39cab
AC
5176fi
5177rm -f conftest.err conftest.$ac_objext \
5178 conftest$ac_exeext conftest.$ac_ext
5179fi
b4e70030
JB
5180echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5181echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
bec39cab
AC
5182fi
5183
5184 fi
5185
5186 if test "$gt_cv_func_gettext_libc" = "yes" \
5187 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5188
5189cat >>confdefs.h <<\_ACEOF
5190#define HAVE_GETTEXT 1
5191_ACEOF
5192
5193 # Extract the first word of "msgfmt", so it can be a program name with args.
5194set dummy msgfmt; ac_word=$2
b4e70030
JB
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5197if test "${ac_cv_path_MSGFMT+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200 case "$MSGFMT" in
5201 /*)
5202 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5203 ;;
5204 *)
5205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5206 for ac_dir in $PATH; do
5207 test -z "$ac_dir" && ac_dir=.
5208 if test -f $ac_dir/$ac_word; then
5209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5210 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5211 break
5212 fi
5213 fi
5214 done
5215 IFS="$ac_save_ifs"
5216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5217 ;;
5218esac
5219fi
5220MSGFMT="$ac_cv_path_MSGFMT"
5221if test -n "$MSGFMT"; then
b4e70030
JB
5222 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5223echo "${ECHO_T}$MSGFMT" >&6
bec39cab 5224else
b4e70030
JB
5225 echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
bec39cab
AC
5227fi
5228 if test "$MSGFMT" != "no"; then
5229
5230for ac_func in dcgettext
5231do
5232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
5233echo "$as_me:$LINENO: checking for $ac_func" >&5
5234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5235if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
5244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5246#define $ac_func innocuous_$ac_func
5247
5248/* System header to define __stub macros and hopefully few prototypes,
5249 which can conflict with char $ac_func (); below.
5250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5251 <limits.h> exists even on freestanding compilers. */
5252
5253#ifdef __STDC__
5254# include <limits.h>
5255#else
5256# include <assert.h>
5257#endif
5258
5259#undef $ac_func
5260
b4e70030 5261/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5262#ifdef __cplusplus
5263extern "C"
b4e70030 5264{
bec39cab 5265#endif
b4e70030
JB
5266/* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
bec39cab
AC
5268char $ac_func ();
5269/* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
b4e70030 5272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 5273choke me
b4e70030
JB
5274#else
5275char (*f) () = $ac_func;
5276#endif
5277#ifdef __cplusplus
5278}
bec39cab
AC
5279#endif
5280
5281int
5282main ()
5283{
b4e70030 5284return f != $ac_func;
bec39cab
AC
5285 ;
5286 return 0;
5287}
5288_ACEOF
5289rm -f conftest.$ac_objext conftest$ac_exeext
5290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
b4e70030
JB
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
bec39cab
AC
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 eval "$as_ac_var=yes"
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
b4e70030 5316eval "$as_ac_var=no"
bec39cab
AC
5317fi
5318rm -f conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5320fi
b4e70030
JB
5321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
5323if test `eval echo '${'$as_ac_var'}'` = yes; then
5324 cat >>confdefs.h <<_ACEOF
5325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5326_ACEOF
5327
5328fi
5329done
5330
5331 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5332set dummy gmsgfmt; ac_word=$2
b4e70030
JB
5333echo "$as_me:$LINENO: checking for $ac_word" >&5
5334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5335if test "${ac_cv_path_GMSGFMT+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338 case $GMSGFMT in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5341 ;;
5342 *)
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5350 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354done
5355done
5356
5357 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5358 ;;
5359esac
5360fi
5361GMSGFMT=$ac_cv_path_GMSGFMT
b4e70030 5362
bec39cab 5363if test -n "$GMSGFMT"; then
b4e70030
JB
5364 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5365echo "${ECHO_T}$GMSGFMT" >&6
bec39cab 5366else
b4e70030
JB
5367 echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
bec39cab
AC
5369fi
5370
5371 # Extract the first word of "xgettext", so it can be a program name with args.
5372set dummy xgettext; ac_word=$2
b4e70030
JB
5373echo "$as_me:$LINENO: checking for $ac_word" >&5
5374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5375if test "${ac_cv_path_XGETTEXT+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378 case "$XGETTEXT" in
5379 /*)
5380 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5381 ;;
5382 *)
5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5384 for ac_dir in $PATH; do
5385 test -z "$ac_dir" && ac_dir=.
5386 if test -f $ac_dir/$ac_word; then
5387 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5388 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5389 break
5390 fi
5391 fi
5392 done
5393 IFS="$ac_save_ifs"
5394 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5395 ;;
5396esac
5397fi
5398XGETTEXT="$ac_cv_path_XGETTEXT"
5399if test -n "$XGETTEXT"; then
b4e70030
JB
5400 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5401echo "${ECHO_T}$XGETTEXT" >&6
bec39cab 5402else
b4e70030
JB
5403 echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6
bec39cab
AC
5405fi
5406
5407 cat >conftest.$ac_ext <<_ACEOF
5408/* confdefs.h. */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413
5414int
5415main ()
5416{
5417extern int _nl_msg_cat_cntr;
5418 return _nl_msg_cat_cntr
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423rm -f conftest.$ac_objext conftest$ac_exeext
5424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
b4e70030
JB
5432 { ac_try='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
bec39cab
AC
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 CATOBJEXT=.gmo
5446 DATADIRNAME=share
5447else
5448 echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
b4e70030 5451CATOBJEXT=.mo
bec39cab
AC
5452 DATADIRNAME=lib
5453fi
5454rm -f conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
5456 INSTOBJEXT=.mo
5457 fi
5458 fi
5459
5460fi
5461
5462
5463
5464
a53bf506 5465 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
5466 # Neither gettext nor catgets in included in the C library.
5467 # Fall back on GNU gettext library (assuming it is present).
5468 nls_cv_use_gnu_gettext=yes
bec39cab
AC
5469 fi
5470 fi
5471
5472 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5473 INTLOBJS="\$(GETTOBJS)"
5474 # Extract the first word of "msgfmt", so it can be a program name with args.
5475set dummy msgfmt; ac_word=$2
b4e70030
JB
5476echo "$as_me:$LINENO: checking for $ac_word" >&5
5477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5478if test "${ac_cv_path_MSGFMT+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481 case "$MSGFMT" in
5482 /*)
5483 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5484 ;;
5485 *)
5486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5487 for ac_dir in $PATH; do
5488 test -z "$ac_dir" && ac_dir=.
5489 if test -f $ac_dir/$ac_word; then
5490 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5491 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5492 break
5493 fi
5494 fi
5495 done
5496 IFS="$ac_save_ifs"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5498 ;;
5499esac
5500fi
5501MSGFMT="$ac_cv_path_MSGFMT"
5502if test -n "$MSGFMT"; then
b4e70030
JB
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504echo "${ECHO_T}$MSGFMT" >&6
bec39cab 5505else
b4e70030
JB
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
bec39cab
AC
5508fi
5509
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5511set dummy gmsgfmt; ac_word=$2
b4e70030
JB
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5514if test "${ac_cv_path_GMSGFMT+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 case $GMSGFMT in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
5529 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5537 ;;
5538esac
5539fi
5540GMSGFMT=$ac_cv_path_GMSGFMT
b4e70030 5541
bec39cab 5542if test -n "$GMSGFMT"; then
b4e70030
JB
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544echo "${ECHO_T}$GMSGFMT" >&6
bec39cab 5545else
b4e70030
JB
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
bec39cab
AC
5548fi
5549
5550 # Extract the first word of "xgettext", so it can be a program name with args.
5551set dummy xgettext; ac_word=$2
b4e70030
JB
5552echo "$as_me:$LINENO: checking for $ac_word" >&5
5553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
5554if test "${ac_cv_path_XGETTEXT+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557 case "$XGETTEXT" in
5558 /*)
5559 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5560 ;;
5561 *)
5562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5563 for ac_dir in $PATH; do
5564 test -z "$ac_dir" && ac_dir=.
5565 if test -f $ac_dir/$ac_word; then
5566 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5567 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5568 break
5569 fi
5570 fi
5571 done
5572 IFS="$ac_save_ifs"
5573 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5574 ;;
5575esac
5576fi
5577XGETTEXT="$ac_cv_path_XGETTEXT"
5578if test -n "$XGETTEXT"; then
b4e70030
JB
5579 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5580echo "${ECHO_T}$XGETTEXT" >&6
bec39cab 5581else
b4e70030
JB
5582 echo "$as_me:$LINENO: result: no" >&5
5583echo "${ECHO_T}no" >&6
bec39cab
AC
5584fi
5585
5586
5587 USE_INCLUDED_LIBINTL=yes
5588 CATOBJEXT=.gmo
5589 INSTOBJEXT=.mo
5590 DATADIRNAME=share
5591 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5592 INTLLIBS=$INTLDEPS
5593 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5594 nls_cv_header_intl=libintl.h
5595 nls_cv_header_libgt=libgettext.h
5596 fi
5597
5598 if test "$XGETTEXT" != ":"; then
5599 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5600 : ;
5601 else
b4e70030
JB
5602 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5603echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
bec39cab
AC
5604 XGETTEXT=":"
5605 fi
5606 fi
5607
5608 # We need to process the po/ directory.
5609 POSUB=po
5610 else
5611 DATADIRNAME=share
5612 nls_cv_header_intl=libintl.h
5613 nls_cv_header_libgt=libgettext.h
5614 fi
5615
5616 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5617 # because some of the sources are only built for this goal.
5618 if test "$PACKAGE" = gettext; then
5619 USE_NLS=yes
5620 USE_INCLUDED_LIBINTL=yes
5621 fi
5622
5623 for lang in $ALL_LINGUAS; do
5624 GMOFILES="$GMOFILES $lang.gmo"
5625 POFILES="$POFILES $lang.po"
5626 done
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
c46f8c51
AC
5639 if test "x$CATOBJEXT" != "x"; then
5640
5641cat >>confdefs.h <<\_ACEOF
5642#define ENABLE_NLS 1
5643_ACEOF
5644
5645 fi
bec39cab
AC
5646
5647
5648 if test "x$CATOBJEXT" != "x"; then
5649 if test "x$ALL_LINGUAS" = "x"; then
5650 LINGUAS=
5651 else
b4e70030
JB
5652 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5653echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
bec39cab
AC
5654 NEW_LINGUAS=
5655 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5656 case "$ALL_LINGUAS" in
5657 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5658 esac
5659 done
5660 LINGUAS=$NEW_LINGUAS
b4e70030
JB
5661 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5662echo "${ECHO_T}$LINGUAS" >&6
bec39cab
AC
5663 fi
5664
5665 if test -n "$LINGUAS"; then
5666 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5667 fi
5668 fi
5669
5670 if test $ac_cv_header_locale_h = yes; then
5671 INCLUDE_LOCALE_H="#include <locale.h>"
5672 else
5673 INCLUDE_LOCALE_H="\
5674/* The system does not provide the header <locale.h>. Take care yourself. */"
5675 fi
5676
5677
5678 if test -f $srcdir/po2tbl.sed.in; then
5679 if test "$CATOBJEXT" = ".cat"; then
5680 if test "${ac_cv_header_linux_version_h+set}" = set; then
b4e70030
JB
5681 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5682echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
bec39cab
AC
5683if test "${ac_cv_header_linux_version_h+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685fi
b4e70030
JB
5686echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5687echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
bec39cab
AC
5688else
5689 # Is the header compilable?
b4e70030
JB
5690echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5691echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
bec39cab
AC
5692cat >conftest.$ac_ext <<_ACEOF
5693/* confdefs.h. */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h. */
5698$ac_includes_default
5699#include <linux/version.h>
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
b4e70030
JB
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
bec39cab
AC
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_header_compiler=yes
5724else
5725 echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
b4e70030 5728ac_header_compiler=no
bec39cab
AC
5729fi
5730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
5731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5732echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
5733
5734# Is the header present?
b4e70030
JB
5735echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5736echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
bec39cab
AC
5737cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743#include <linux/version.h>
5744_ACEOF
5745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } >/dev/null; then
5753 if test -s conftest.err; then
5754 ac_cpp_err=$ac_c_preproc_warn_flag
5755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5756 else
5757 ac_cpp_err=
5758 fi
5759else
5760 ac_cpp_err=yes
5761fi
5762if test -z "$ac_cpp_err"; then
5763 ac_header_preproc=yes
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_header_preproc=no
5769fi
5770rm -f conftest.err conftest.$ac_ext
b4e70030
JB
5771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5772echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
5773
5774# So? What about this header?
5775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5776 yes:no: )
5777 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5778echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5780echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5781 ac_header_preproc=yes
5782 ;;
5783 no:yes:* )
5784 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5785echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5787echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5789echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5791echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5793echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5794 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5795echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
5796 (
5797 cat <<\_ASBOX
5798## ------------------------------------------ ##
5799## Report this to the AC_PACKAGE_NAME lists. ##
5800## ------------------------------------------ ##
5801_ASBOX
5802 ) |
5803 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
5804 ;;
5805esac
b4e70030
JB
5806echo "$as_me:$LINENO: checking for linux/version.h" >&5
5807echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
bec39cab
AC
5808if test "${ac_cv_header_linux_version_h+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 ac_cv_header_linux_version_h=$ac_header_preproc
5812fi
b4e70030
JB
5813echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5814echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
bec39cab
AC
5815
5816fi
5817if test $ac_cv_header_linux_version_h = yes; then
5818 msgformat=linux
5819else
5820 msgformat=xopen
5821fi
5822
5823
5824
5825 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5826 fi
5827 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5828 $srcdir/po2tbl.sed.in > po2tbl.sed
5829 fi
5830
5831 if test "$PACKAGE" = "gettext"; then
5832 GT_NO="#NO#"
5833 GT_YES=
5834 else
5835 GT_NO=
5836 GT_YES="#YES#"
5837 fi
5838
5839
5840
5841 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5842
5843
5844 l=
5845
5846
5847 if test -f $srcdir/po/POTFILES.in; then
5848 test -d po || mkdir po
5849 if test "x$srcdir" != "x."; then
5850 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5851 posrcprefix="$srcdir/"
5852 else
5853 posrcprefix="../$srcdir/"
5854 fi
5855 else
5856 posrcprefix="../"
5857 fi
5858 rm -f po/POTFILES
5859 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5860 < $srcdir/po/POTFILES.in > po/POTFILES
5861 fi
5862
5863
5864localedir='${datadir}/locale'
5865
5866
5867if test "x$POSUB" != x; then
5868
b4e70030
JB
5869 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5870echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
bec39cab
AC
5871 # Look for .po and .gmo files in the source directory.
5872 CATALOGS=
5873 XLINGUAS=
5874 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5875 # If there aren't any .gmo files the shell will give us the
5876 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5877 # weeded out.
5878 case "$cat" in *\**)
5879 continue;;
5880 esac
5881 # The quadruple backslash is collapsed to a double backslash
5882 # by the backticks, then collapsed again by the double quotes,
5883 # leaving us with one backslash in the sed expression (right
5884 # before the dot that mustn't act as a wildcard).
5885 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5886 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5887 # The user is allowed to set LINGUAS to a list of languages to
5888 # install catalogs for. If it's empty that means "all of them."
5889 if test "x$LINGUAS" = x; then
5890 CATALOGS="$CATALOGS $cat"
5891 XLINGUAS="$XLINGUAS $lang"
5892 else
5893 case "$LINGUAS" in *$lang*)
5894 CATALOGS="$CATALOGS $cat"
5895 XLINGUAS="$XLINGUAS $lang"
5896 ;;
5897 esac
5898 fi
5899 done
5900 LINGUAS="$XLINGUAS"
b4e70030
JB
5901 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5902echo "${ECHO_T}$LINGUAS" >&6
bec39cab
AC
5903
5904 CONFIG_ALL="$CONFIG_ALL all-po"
5905 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5906 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5907 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5908fi
5909
5910PACKAGE=gdb
5911
5912cat >>confdefs.h <<_ACEOF
5913#define PACKAGE "$PACKAGE"
5914_ACEOF
5915
5916
5917
5918debugdir=${libdir}/debug
5919
5920
b4e70030 5921# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 5922if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
5923 withval="$with_separate_debug_dir"
5924 debugdir="${withval}"
5925fi;
bec39cab
AC
5926
5927
5928 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5930 ac_define_dir=`eval echo $debugdir`
5931 ac_define_dir=`eval echo $ac_define_dir`
5932
5933cat >>confdefs.h <<_ACEOF
5934#define DEBUGDIR "$ac_define_dir"
5935_ACEOF
5936
5937
5938#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5939
b4e70030
JB
5940
5941
bec39cab
AC
5942subdirs="$subdirs doc testsuite"
5943
5944
121ce6e5
DJ
5945# Provide defaults for some variables set by the per-host and per-target
5946# configuration.
5947gdb_host_obs=posix-hdep.o
5948
bec39cab
AC
5949. $srcdir/configure.host
5950
5951. $srcdir/configure.tgt
5952
5953# Fetch the default architecture and default target vector from BFD.
5954targ=$target; . $srcdir/../bfd/config.bfd
5955
5956# We only want the first architecture, so strip off the others if
5957# there is more than one.
5958targ_archs=`echo $targ_archs | sed 's/ .*//'`
5959
5960if test "x$targ_archs" != x; then
5961
5962cat >>confdefs.h <<_ACEOF
5963#define DEFAULT_BFD_ARCH $targ_archs
5964_ACEOF
5965
5966fi
5967if test "x$targ_defvec" != x; then
5968
5969cat >>confdefs.h <<_ACEOF
5970#define DEFAULT_BFD_VEC $targ_defvec
5971_ACEOF
5972
5973fi
5974
5975test "$program_prefix" != NONE &&
b4e70030 5976 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
5977# Use a double $ so make ignores it.
5978test "$program_suffix" != NONE &&
b4e70030 5979 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
5980# Double any \ or $. echo might interpret backslashes.
5981# By default was `s,x,x', remove it if useless.
5982cat <<\_ACEOF >conftest.sed
5983s/[\\$]/&&/g;s/;s,x,x,$//
5984_ACEOF
5985program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 5986rm conftest.sed
bec39cab
AC
5987
5988
5989# The CLI cannot be disabled yet, but may be in the future.
5990
5991# Enable CLI.
b4e70030 5992# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 5993if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
5994 enableval="$enable_gdbcli"
5995 case $enableval in
bec39cab
AC
5996 yes)
5997 ;;
5998 no)
5999 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6000echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6001 { (exit 1); exit 1; }; } ;;
6002 *)
6003 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6004echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6005 { (exit 1); exit 1; }; } ;;
6006 esac
6007else
6008 enable_gdbcli=yes
b4e70030 6009fi;
bec39cab
AC
6010if test x"$enable_gdbcli" = xyes; then
6011 if test -d $srcdir/cli; then
6012 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6013 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6014 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6015 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6016 fi
6017fi
6018
6019# Enable MI.
b4e70030 6020# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 6021if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
6022 enableval="$enable_gdbmi"
6023 case $enableval in
bec39cab
AC
6024 yes | no)
6025 ;;
6026 *)
6027 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6028echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6029 { (exit 1); exit 1; }; } ;;
6030 esac
6031else
6032 enable_gdbmi=yes
b4e70030 6033fi;
bec39cab
AC
6034if test x"$enable_gdbmi" = xyes; then
6035 if test -d $srcdir/mi; then
6036 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6037 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6038 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6039 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6040 fi
6041fi
6042
6043# Enable TUI.
b4e70030 6044# Check whether --enable-tui or --disable-tui was given.
bec39cab 6045if test "${enable_tui+set}" = set; then
b4e70030
JB
6046 enableval="$enable_tui"
6047 case $enableval in
bec39cab
AC
6048 yes | no)
6049 ;;
6050 *)
6051 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6052echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6053 { (exit 1); exit 1; }; } ;;
6054 esac
6055else
6056 enable_tui=yes
b4e70030 6057fi;
bec39cab
AC
6058
6059# Enable gdbtk.
b4e70030 6060# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 6061if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
6062 enableval="$enable_gdbtk"
6063 case $enableval in
bec39cab
AC
6064 yes | no)
6065 ;;
6066 *)
6067 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6068echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6069 { (exit 1); exit 1; }; } ;;
6070 esac
6071else
04ac69aa 6072 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
6073 enable_gdbtk=yes
6074 else
6075 enable_gdbtk=no
6076 fi
b4e70030 6077fi;
bec39cab
AC
6078# We unconditionally disable gdbtk tests on selected platforms.
6079case $host_os in
6080 go32* | windows*)
6081 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6082echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6083 enable_gdbtk=no ;;
6084esac
6085
6086# Libunwind support.
6087
b4e70030 6088# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 6089if test "${with_libunwind+set}" = set; then
b4e70030
JB
6090 withval="$with_libunwind"
6091 case "${withval}" in
bec39cab
AC
6092 yes) enable_libunwind=yes ;;
6093 no) enable_libunwind=no ;;
6094 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6095echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6096 { (exit 1); exit 1; }; } ;;
6097esac
6098else
6099
6100
6101for ac_header in libunwind.h
6102do
6103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
6104if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109fi
b4e70030
JB
6110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6112else
6113 # Is the header compilable?
b4e70030
JB
6114echo "$as_me:$LINENO: checking $ac_header usability" >&5
6115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
6116cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h. */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */
6122$ac_includes_default
6123#include <$ac_header>
6124_ACEOF
6125rm -f conftest.$ac_objext
6126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
b4e70030
JB
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
bec39cab
AC
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_header_compiler=yes
6148else
6149 echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
b4e70030 6152ac_header_compiler=no
bec39cab
AC
6153fi
6154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
6155echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6156echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
6157
6158# Is the header present?
b4e70030
JB
6159echo "$as_me:$LINENO: checking $ac_header presence" >&5
6160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
6161cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167#include <$ac_header>
6168_ACEOF
6169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } >/dev/null; then
6177 if test -s conftest.err; then
6178 ac_cpp_err=$ac_c_preproc_warn_flag
6179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6180 else
6181 ac_cpp_err=
6182 fi
6183else
6184 ac_cpp_err=yes
6185fi
6186if test -z "$ac_cpp_err"; then
6187 ac_header_preproc=yes
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ac_header_preproc=no
6193fi
6194rm -f conftest.err conftest.$ac_ext
b4e70030
JB
6195echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6196echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
6197
6198# So? What about this header?
6199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6200 yes:no: )
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6205 ac_header_preproc=yes
6206 ;;
6207 no:yes:* )
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6215echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
6220 (
6221 cat <<\_ASBOX
6222## ------------------------------------------ ##
6223## Report this to the AC_PACKAGE_NAME lists. ##
6224## ------------------------------------------ ##
6225_ASBOX
6226 ) |
6227 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
6228 ;;
6229esac
b4e70030
JB
6230echo "$as_me:$LINENO: checking for $ac_header" >&5
6231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235 eval "$as_ac_Header=\$ac_header_preproc"
6236fi
b4e70030
JB
6237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6239
6240fi
6241if test `eval echo '${'$as_ac_Header'}'` = yes; then
6242 cat >>confdefs.h <<_ACEOF
6243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6244_ACEOF
6245
6246fi
6247
6248done
6249
6250
6251for ac_header in libunwind-ia64.h
6252do
6253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
6254if eval "test \"\${$as_ac_Header+set}\" = set"; then
6255 echo "$as_me:$LINENO: checking for $ac_header" >&5
6256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6257if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259fi
b4e70030
JB
6260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6262else
6263 # Is the header compilable?
b4e70030
JB
6264echo "$as_me:$LINENO: checking $ac_header usability" >&5
6265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
6266cat >conftest.$ac_ext <<_ACEOF
6267/* confdefs.h. */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h. */
6272$ac_includes_default
6273#include <$ac_header>
6274_ACEOF
6275rm -f conftest.$ac_objext
6276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
b4e70030
JB
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
bec39cab
AC
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_header_compiler=yes
6298else
6299 echo "$as_me: failed program was:" >&5
6300sed 's/^/| /' conftest.$ac_ext >&5
6301
b4e70030 6302ac_header_compiler=no
bec39cab
AC
6303fi
6304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
6305echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6306echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
6307
6308# Is the header present?
b4e70030
JB
6309echo "$as_me:$LINENO: checking $ac_header presence" >&5
6310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
6311cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h. */
6317#include <$ac_header>
6318_ACEOF
6319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } >/dev/null; then
6327 if test -s conftest.err; then
6328 ac_cpp_err=$ac_c_preproc_warn_flag
6329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6330 else
6331 ac_cpp_err=
6332 fi
6333else
6334 ac_cpp_err=yes
6335fi
6336if test -z "$ac_cpp_err"; then
6337 ac_header_preproc=yes
6338else
6339 echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342 ac_header_preproc=no
6343fi
6344rm -f conftest.err conftest.$ac_ext
b4e70030
JB
6345echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6346echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
6347
6348# So? What about this header?
6349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6350 yes:no: )
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6355 ac_header_preproc=yes
6356 ;;
6357 no:yes:* )
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
6370 (
6371 cat <<\_ASBOX
6372## ------------------------------------------ ##
6373## Report this to the AC_PACKAGE_NAME lists. ##
6374## ------------------------------------------ ##
6375_ASBOX
6376 ) |
6377 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
6378 ;;
6379esac
b4e70030
JB
6380echo "$as_me:$LINENO: checking for $ac_header" >&5
6381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6382if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384else
6385 eval "$as_ac_Header=\$ac_header_preproc"
6386fi
b4e70030
JB
6387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6389
6390fi
6391if test `eval echo '${'$as_ac_Header'}'` = yes; then
6392 cat >>confdefs.h <<_ACEOF
6393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394_ACEOF
6395
6396fi
6397
6398done
6399
6400 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6401 enable_libunwind=yes;
6402 fi
6403
b4e70030 6404fi;
bec39cab
AC
6405
6406if test x"$enable_libunwind" = xyes; then
6407
6408for ac_header in libunwind.h
6409do
6410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
6411if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412 echo "$as_me:$LINENO: checking for $ac_header" >&5
6413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6414if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416fi
b4e70030
JB
6417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6419else
6420 # Is the header compilable?
b4e70030
JB
6421echo "$as_me:$LINENO: checking $ac_header usability" >&5
6422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
6423cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h. */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h. */
6429$ac_includes_default
6430#include <$ac_header>
6431_ACEOF
6432rm -f conftest.$ac_objext
6433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
b4e70030
JB
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
bec39cab
AC
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_header_compiler=yes
6455else
6456 echo "$as_me: failed program was:" >&5
6457sed 's/^/| /' conftest.$ac_ext >&5
6458
b4e70030 6459ac_header_compiler=no
bec39cab
AC
6460fi
6461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
6462echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6463echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
6464
6465# Is the header present?
b4e70030
JB
6466echo "$as_me:$LINENO: checking $ac_header presence" >&5
6467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
6468cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h. */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h. */
6474#include <$ac_header>
6475_ACEOF
6476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } >/dev/null; then
6484 if test -s conftest.err; then
6485 ac_cpp_err=$ac_c_preproc_warn_flag
6486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6487 else
6488 ac_cpp_err=
6489 fi
6490else
6491 ac_cpp_err=yes
6492fi
6493if test -z "$ac_cpp_err"; then
6494 ac_header_preproc=yes
6495else
6496 echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6498
6499 ac_header_preproc=no
6500fi
6501rm -f conftest.err conftest.$ac_ext
b4e70030
JB
6502echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6503echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
6504
6505# So? What about this header?
6506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6507 yes:no: )
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6509echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6511echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6512 ac_header_preproc=yes
6513 ;;
6514 no:yes:* )
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6518echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6520echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6522echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6526echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
6527 (
6528 cat <<\_ASBOX
6529## ------------------------------------------ ##
6530## Report this to the AC_PACKAGE_NAME lists. ##
6531## ------------------------------------------ ##
6532_ASBOX
6533 ) |
6534 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
6535 ;;
6536esac
b4e70030
JB
6537echo "$as_me:$LINENO: checking for $ac_header" >&5
6538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6539if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
6542 eval "$as_ac_Header=\$ac_header_preproc"
6543fi
b4e70030
JB
6544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6546
6547fi
6548if test `eval echo '${'$as_ac_Header'}'` = yes; then
6549 cat >>confdefs.h <<_ACEOF
6550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551_ACEOF
6552
6553fi
6554
6555done
6556
6557
6558for ac_header in libunwind-ia64.h
6559do
6560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
6561if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566fi
b4e70030
JB
6567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6569else
6570 # Is the header compilable?
b4e70030
JB
6571echo "$as_me:$LINENO: checking $ac_header usability" >&5
6572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
6573cat >conftest.$ac_ext <<_ACEOF
6574/* confdefs.h. */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h. */
6579$ac_includes_default
6580#include <$ac_header>
6581_ACEOF
6582rm -f conftest.$ac_objext
6583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
b4e70030
JB
6591 { ac_try='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
bec39cab
AC
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_header_compiler=yes
6605else
6606 echo "$as_me: failed program was:" >&5
6607sed 's/^/| /' conftest.$ac_ext >&5
6608
b4e70030 6609ac_header_compiler=no
bec39cab
AC
6610fi
6611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
6612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6613echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
6614
6615# Is the header present?
b4e70030
JB
6616echo "$as_me:$LINENO: checking $ac_header presence" >&5
6617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
6618cat >conftest.$ac_ext <<_ACEOF
6619/* confdefs.h. */
6620_ACEOF
6621cat confdefs.h >>conftest.$ac_ext
6622cat >>conftest.$ac_ext <<_ACEOF
6623/* end confdefs.h. */
6624#include <$ac_header>
6625_ACEOF
6626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } >/dev/null; then
6634 if test -s conftest.err; then
6635 ac_cpp_err=$ac_c_preproc_warn_flag
6636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6637 else
6638 ac_cpp_err=
6639 fi
6640else
6641 ac_cpp_err=yes
6642fi
6643if test -z "$ac_cpp_err"; then
6644 ac_header_preproc=yes
6645else
6646 echo "$as_me: failed program was:" >&5
6647sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_header_preproc=no
6650fi
6651rm -f conftest.err conftest.$ac_ext
b4e70030
JB
6652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6653echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
6654
6655# So? What about this header?
6656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6657 yes:no: )
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6662 ac_header_preproc=yes
6663 ;;
6664 no:yes:* )
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
6677 (
6678 cat <<\_ASBOX
6679## ------------------------------------------ ##
6680## Report this to the AC_PACKAGE_NAME lists. ##
6681## ------------------------------------------ ##
6682_ASBOX
6683 ) |
6684 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
6685 ;;
6686esac
b4e70030
JB
6687echo "$as_me:$LINENO: checking for $ac_header" >&5
6688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6689if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692 eval "$as_ac_Header=\$ac_header_preproc"
6693fi
b4e70030
JB
6694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6696
6697fi
6698if test `eval echo '${'$as_ac_Header'}'` = yes; then
6699 cat >>confdefs.h <<_ACEOF
6700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6701_ACEOF
6702
6703fi
6704
6705done
6706
60ca704f
SE
6707
6708cat >>confdefs.h <<\_ACEOF
bec39cab
AC
6709#define HAVE_LIBUNWIND 1
6710_ACEOF
6711
6712 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6713 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6714 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6715fi
6716
6717# Profiling support.
b4e70030 6718# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 6719if test "${enable_profiling+set}" = set; then
b4e70030
JB
6720 enableval="$enable_profiling"
6721 case $enableval in
bec39cab
AC
6722 yes | no)
6723 ;;
6724 *)
6725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6726echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6727 { (exit 1); exit 1; }; } ;;
6728 esac
6729else
6730 enable_profiling=no
b4e70030 6731fi;
bec39cab
AC
6732
6733
6734
6735for ac_func in monstartup _mcleanup
6736do
6737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
6738echo "$as_me:$LINENO: checking for $ac_func" >&5
6739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6740if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743 cat >conftest.$ac_ext <<_ACEOF
6744/* confdefs.h. */
6745_ACEOF
6746cat confdefs.h >>conftest.$ac_ext
6747cat >>conftest.$ac_ext <<_ACEOF
6748/* end confdefs.h. */
6749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6751#define $ac_func innocuous_$ac_func
6752
6753/* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char $ac_func (); below.
6755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6756 <limits.h> exists even on freestanding compilers. */
6757
6758#ifdef __STDC__
6759# include <limits.h>
6760#else
6761# include <assert.h>
6762#endif
6763
6764#undef $ac_func
6765
b4e70030 6766/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6767#ifdef __cplusplus
6768extern "C"
b4e70030 6769{
bec39cab 6770#endif
b4e70030
JB
6771/* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
bec39cab
AC
6773char $ac_func ();
6774/* The GNU C library defines this for functions which it implements
6775 to always fail with ENOSYS. Some functions are actually named
6776 something starting with __ and the normal name is an alias. */
b4e70030 6777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 6778choke me
b4e70030
JB
6779#else
6780char (*f) () = $ac_func;
6781#endif
6782#ifdef __cplusplus
6783}
bec39cab
AC
6784#endif
6785
6786int
6787main ()
6788{
b4e70030 6789return f != $ac_func;
bec39cab
AC
6790 ;
6791 return 0;
6792}
6793_ACEOF
6794rm -f conftest.$ac_objext conftest$ac_exeext
6795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6796 (eval $ac_link) 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
b4e70030
JB
6803 { ac_try='test -z "$ac_c_werror_flag"
6804 || test ! -s conftest.err'
bec39cab
AC
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; } &&
6810 { ac_try='test -s conftest$ac_exeext'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 eval "$as_ac_var=yes"
6817else
6818 echo "$as_me: failed program was:" >&5
6819sed 's/^/| /' conftest.$ac_ext >&5
6820
b4e70030 6821eval "$as_ac_var=no"
bec39cab
AC
6822fi
6823rm -f conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6825fi
b4e70030
JB
6826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
6828if test `eval echo '${'$as_ac_var'}'` = yes; then
6829 cat >>confdefs.h <<_ACEOF
6830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6831_ACEOF
6832
6833fi
6834done
6835
b4e70030
JB
6836echo "$as_me:$LINENO: checking for _etext" >&5
6837echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
6838if test "${ac_cv_var__etext+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840else
6841 cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h. */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h. */
6847#include <stdlib.h>
6848extern char _etext;
6849
6850int
6851main ()
6852{
6853free (&_etext);
6854 ;
6855 return 0;
6856}
6857_ACEOF
6858rm -f conftest.$ac_objext conftest$ac_exeext
6859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860 (eval $ac_link) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
b4e70030
JB
6867 { ac_try='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
bec39cab
AC
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try='test -s conftest$ac_exeext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_cv_var__etext=yes
6881else
6882 echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
b4e70030 6885ac_cv_var__etext=no
bec39cab
AC
6886fi
6887rm -f conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6889fi
b4e70030
JB
6890echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6891echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
6892if test $ac_cv_var__etext = yes; then
6893
6894cat >>confdefs.h <<\_ACEOF
6895#define HAVE__ETEXT 1
6896_ACEOF
6897
6898fi
6899if test "$enable_profiling" = yes ; then
6900 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6901 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6902echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6903 { (exit 1); exit 1; }; }
6904 fi
6905 PROFILE_CFLAGS=-pg
6906 OLD_CFLAGS="$CFLAGS"
6907 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6908
b4e70030
JB
6909 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6910echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
6911if test "${ac_cv_cc_supports_pg+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6913else
bec39cab
AC
6914 cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h. */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h. */
6920
6921int
6922main ()
6923{
6924int x;
6925 ;
6926 return 0;
6927}
6928_ACEOF
6929rm -f conftest.$ac_objext
6930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
b4e70030
JB
6938 { ac_try='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
bec39cab
AC
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_cv_cc_supports_pg=yes
6952else
6953 echo "$as_me: failed program was:" >&5
6954sed 's/^/| /' conftest.$ac_ext >&5
6955
b4e70030 6956ac_cv_cc_supports_pg=no
bec39cab
AC
6957fi
6958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6959fi
b4e70030
JB
6960echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6961echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
6962
6963 if test $ac_cv_cc_supports_pg = no; then
6964 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6965echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6966 { (exit 1); exit 1; }; }
6967 fi
6968
6969 CFLAGS="$OLD_CFLAGS"
6970fi
6971
6972# --------------------- #
6973# Checks for programs. #
6974# --------------------- #
6975
6976for ac_prog in gawk mawk nawk awk
6977do
6978 # Extract the first word of "$ac_prog", so it can be a program name with args.
6979set dummy $ac_prog; ac_word=$2
b4e70030
JB
6980echo "$as_me:$LINENO: checking for $ac_word" >&5
6981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
6982if test "${ac_cv_prog_AWK+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
6985 if test -n "$AWK"; then
6986 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 6994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
6995 ac_cv_prog_AWK="$ac_prog"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000done
7001
7002fi
7003fi
7004AWK=$ac_cv_prog_AWK
7005if test -n "$AWK"; then
b4e70030
JB
7006 echo "$as_me:$LINENO: result: $AWK" >&5
7007echo "${ECHO_T}$AWK" >&6
bec39cab 7008else
b4e70030
JB
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
bec39cab
AC
7011fi
7012
7013 test -n "$AWK" && break
7014done
7015
7016# Find a good install program. We prefer a C program (faster),
7017# so one script is as good as another. But avoid the broken or
7018# incompatible versions:
7019# SysV /etc/install, /usr/sbin/install
7020# SunOS /usr/etc/install
7021# IRIX /sbin/install
7022# AIX /bin/install
7023# AmigaOS /C/install, which installs bootblocks on floppy discs
7024# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7025# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7026# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7027# OS/2's system install, which has a completely different semantic
7028# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
7029echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7030echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
7031if test -z "$INSTALL"; then
7032if test "${ac_cv_path_install+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 # Account for people who put trailing slashes in PATH elements.
7041case $as_dir/ in
7042 ./ | .// | /cC/* | \
7043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7045 /usr/ucb/* ) ;;
c906108c 7046 *)
bec39cab
AC
7047 # OSF1 and SCO ODT 3.0 have their own names for install.
7048 # Don't use installbsd from OSF since it installs stuff as root
7049 # by default.
7050 for ac_prog in ginstall scoinst install; do
7051 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7052 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
7053 if test $ac_prog = install &&
7054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7055 # AIX install. It has an incompatible calling convention.
7056 :
7057 elif test $ac_prog = install &&
7058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7059 # program-specific install script used by HP pwplus--don't use.
7060 :
7061 else
7062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7063 break 3
7064 fi
7065 fi
7066 done
7067 done
7068 ;;
c906108c 7069esac
bec39cab
AC
7070done
7071
7072
7073fi
7074 if test "${ac_cv_path_install+set}" = set; then
7075 INSTALL=$ac_cv_path_install
7076 else
b4e70030
JB
7077 # As a last resort, use the slow shell script. We don't cache a
7078 # path for INSTALL within a source directory, because that will
bec39cab 7079 # break other packages using the cache if that directory is
b4e70030 7080 # removed, or if the path is relative.
bec39cab
AC
7081 INSTALL=$ac_install_sh
7082 fi
7083fi
b4e70030
JB
7084echo "$as_me:$LINENO: result: $INSTALL" >&5
7085echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
7086
7087# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7088# It thinks the first close brace ends the variable substitution.
7089test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7090
7091test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7092
7093test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7094
b4e70030
JB
7095echo "$as_me:$LINENO: checking whether ln -s works" >&5
7096echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
7097LN_S=$as_ln_s
7098if test "$LN_S" = "ln -s"; then
b4e70030
JB
7099 echo "$as_me:$LINENO: result: yes" >&5
7100echo "${ECHO_T}yes" >&6
bec39cab 7101else
b4e70030
JB
7102 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7103echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
7104fi
7105
7106if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7108set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
7109echo "$as_me:$LINENO: checking for $ac_word" >&5
7110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7111if test "${ac_cv_prog_RANLIB+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113else
7114 if test -n "$RANLIB"; then
7115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7116else
7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128done
7129done
7130
7131fi
7132fi
7133RANLIB=$ac_cv_prog_RANLIB
7134if test -n "$RANLIB"; then
b4e70030
JB
7135 echo "$as_me:$LINENO: result: $RANLIB" >&5
7136echo "${ECHO_T}$RANLIB" >&6
bec39cab 7137else
b4e70030
JB
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
bec39cab
AC
7140fi
7141
7142fi
7143if test -z "$ac_cv_prog_RANLIB"; then
7144 ac_ct_RANLIB=$RANLIB
7145 # Extract the first word of "ranlib", so it can be a program name with args.
7146set dummy ranlib; ac_word=$2
b4e70030
JB
7147echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7149if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 if test -n "$ac_ct_RANLIB"; then
7153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7162 ac_cv_prog_ac_ct_RANLIB="ranlib"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167done
7168
b4e70030 7169 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
7170fi
7171fi
7172ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7173if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
7174 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7175echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 7176else
b4e70030
JB
7177 echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6
bec39cab
AC
7179fi
7180
b4e70030 7181 RANLIB=$ac_ct_RANLIB
bec39cab
AC
7182else
7183 RANLIB="$ac_cv_prog_RANLIB"
7184fi
7185
7186for ac_prog in 'bison -y' byacc
7187do
7188 # Extract the first word of "$ac_prog", so it can be a program name with args.
7189set dummy $ac_prog; ac_word=$2
b4e70030
JB
7190echo "$as_me:$LINENO: checking for $ac_word" >&5
7191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7192if test "${ac_cv_prog_YACC+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195 if test -n "$YACC"; then
7196 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7205 ac_cv_prog_YACC="$ac_prog"
7206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209done
7210done
7211
7212fi
7213fi
7214YACC=$ac_cv_prog_YACC
7215if test -n "$YACC"; then
b4e70030
JB
7216 echo "$as_me:$LINENO: result: $YACC" >&5
7217echo "${ECHO_T}$YACC" >&6
bec39cab 7218else
b4e70030
JB
7219 echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
bec39cab
AC
7221fi
7222
7223 test -n "$YACC" && break
7224done
7225test -n "$YACC" || YACC="yacc"
7226
7227
7228if test -n "$ac_tool_prefix"; then
7229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7230set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
7231echo "$as_me:$LINENO: checking for $ac_word" >&5
7232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7233if test "${ac_cv_prog_AR+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236 if test -n "$AR"; then
7237 ac_cv_prog_AR="$AR" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7246 ac_cv_prog_AR="${ac_tool_prefix}ar"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250done
7251done
7252
7253fi
7254fi
7255AR=$ac_cv_prog_AR
7256if test -n "$AR"; then
b4e70030
JB
7257 echo "$as_me:$LINENO: result: $AR" >&5
7258echo "${ECHO_T}$AR" >&6
bec39cab 7259else
b4e70030
JB
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
bec39cab
AC
7262fi
7263
7264fi
7265if test -z "$ac_cv_prog_AR"; then
7266 ac_ct_AR=$AR
7267 # Extract the first word of "ar", so it can be a program name with args.
7268set dummy ar; ac_word=$2
b4e70030
JB
7269echo "$as_me:$LINENO: checking for $ac_word" >&5
7270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7271if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273else
7274 if test -n "$ac_ct_AR"; then
7275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7276else
7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7284 ac_cv_prog_ac_ct_AR="ar"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288done
7289done
7290
7291fi
7292fi
7293ac_ct_AR=$ac_cv_prog_ac_ct_AR
7294if test -n "$ac_ct_AR"; then
b4e70030
JB
7295 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7296echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 7297else
b4e70030
JB
7298 echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6
bec39cab
AC
7300fi
7301
b4e70030 7302 AR=$ac_ct_AR
bec39cab
AC
7303else
7304 AR="$ac_cv_prog_AR"
7305fi
7306
7307if test -n "$ac_tool_prefix"; then
7308 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7309set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
7310echo "$as_me:$LINENO: checking for $ac_word" >&5
7311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7312if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315 if test -n "$DLLTOOL"; then
7316 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7317else
7318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH
7320do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7325 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329done
7330done
7331
7332fi
7333fi
7334DLLTOOL=$ac_cv_prog_DLLTOOL
7335if test -n "$DLLTOOL"; then
b4e70030
JB
7336 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7337echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 7338else
b4e70030
JB
7339 echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6
bec39cab
AC
7341fi
7342
7343fi
7344if test -z "$ac_cv_prog_DLLTOOL"; then
7345 ac_ct_DLLTOOL=$DLLTOOL
7346 # Extract the first word of "dlltool", so it can be a program name with args.
7347set dummy dlltool; ac_word=$2
b4e70030
JB
7348echo "$as_me:$LINENO: checking for $ac_word" >&5
7349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7350if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352else
7353 if test -n "$ac_ct_DLLTOOL"; then
7354 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7355else
7356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7363 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367done
7368done
7369
7370fi
7371fi
7372ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7373if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
7374 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7375echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 7376else
b4e70030
JB
7377 echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
bec39cab
AC
7379fi
7380
b4e70030 7381 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
7382else
7383 DLLTOOL="$ac_cv_prog_DLLTOOL"
7384fi
7385
7386if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7388set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
7389echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7391if test "${ac_cv_prog_WINDRES+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 if test -n "$WINDRES"; then
7395 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7404 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408done
7409done
7410
7411fi
7412fi
7413WINDRES=$ac_cv_prog_WINDRES
7414if test -n "$WINDRES"; then
b4e70030
JB
7415 echo "$as_me:$LINENO: result: $WINDRES" >&5
7416echo "${ECHO_T}$WINDRES" >&6
bec39cab 7417else
b4e70030
JB
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
bec39cab
AC
7420fi
7421
7422fi
7423if test -z "$ac_cv_prog_WINDRES"; then
7424 ac_ct_WINDRES=$WINDRES
7425 # Extract the first word of "windres", so it can be a program name with args.
7426set dummy windres; ac_word=$2
b4e70030
JB
7427echo "$as_me:$LINENO: checking for $ac_word" >&5
7428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7429if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432 if test -n "$ac_ct_WINDRES"; then
7433 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7442 ac_cv_prog_ac_ct_WINDRES="windres"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446done
7447done
7448
7449fi
7450fi
7451ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7452if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
7453 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7454echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 7455else
b4e70030
JB
7456 echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
c906108c 7458fi
bec39cab 7459
b4e70030 7460 WINDRES=$ac_ct_WINDRES
c906108c 7461else
bec39cab 7462 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7463fi
7464
bec39cab
AC
7465
7466# Needed for GNU/Hurd.
7467if test -n "$ac_tool_prefix"; then
7468 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7469set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
7470echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7472if test "${ac_cv_prog_MIG+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7474else
bec39cab
AC
7475 if test -n "$MIG"; then
7476 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7477else
7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7485 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489done
7490done
7491
c906108c 7492fi
bec39cab
AC
7493fi
7494MIG=$ac_cv_prog_MIG
7495if test -n "$MIG"; then
b4e70030
JB
7496 echo "$as_me:$LINENO: result: $MIG" >&5
7497echo "${ECHO_T}$MIG" >&6
c906108c 7498else
b4e70030
JB
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
c906108c
SS
7501fi
7502
bec39cab
AC
7503fi
7504if test -z "$ac_cv_prog_MIG"; then
7505 ac_ct_MIG=$MIG
7506 # Extract the first word of "mig", so it can be a program name with args.
7507set dummy mig; ac_word=$2
b4e70030
JB
7508echo "$as_me:$LINENO: checking for $ac_word" >&5
7509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
7510if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513 if test -n "$ac_ct_MIG"; then
7514 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7515else
7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 7522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
7523 ac_cv_prog_ac_ct_MIG="mig"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
c906108c 7529
bec39cab
AC
7530fi
7531fi
7532ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7533if test -n "$ac_ct_MIG"; then
b4e70030
JB
7534 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7535echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 7536else
b4e70030
JB
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
bec39cab 7539fi
c906108c 7540
b4e70030 7541 MIG=$ac_ct_MIG
bec39cab
AC
7542else
7543 MIG="$ac_cv_prog_MIG"
7544fi
c906108c 7545
c906108c 7546
bec39cab
AC
7547# ---------------------- #
7548# Checks for libraries. #
7549# ---------------------- #
c906108c 7550
bec39cab 7551# We might need to link with -lm; most simulators need it.
c906108c 7552
b4e70030
JB
7553echo "$as_me:$LINENO: checking for main in -lm" >&5
7554echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
7555if test "${ac_cv_lib_m_main+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558 ac_check_lib_save_LIBS=$LIBS
7559LIBS="-lm $LIBS"
7560cat >conftest.$ac_ext <<_ACEOF
7561/* confdefs.h. */
7562_ACEOF
7563cat confdefs.h >>conftest.$ac_ext
7564cat >>conftest.$ac_ext <<_ACEOF
7565/* end confdefs.h. */
c906108c 7566
c906108c 7567
bec39cab
AC
7568int
7569main ()
7570{
b4e70030 7571main ();
bec39cab
AC
7572 ;
7573 return 0;
7574}
7575_ACEOF
7576rm -f conftest.$ac_objext conftest$ac_exeext
7577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578 (eval $ac_link) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
b4e70030
JB
7585 { ac_try='test -z "$ac_c_werror_flag"
7586 || test ! -s conftest.err'
bec39cab
AC
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try='test -s conftest$ac_exeext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 ac_cv_lib_m_main=yes
7599else
7600 echo "$as_me: failed program was:" >&5
7601sed 's/^/| /' conftest.$ac_ext >&5
7602
b4e70030 7603ac_cv_lib_m_main=no
bec39cab
AC
7604fi
7605rm -f conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7607LIBS=$ac_check_lib_save_LIBS
7608fi
b4e70030
JB
7609echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7610echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
7611if test $ac_cv_lib_m_main = yes; then
7612 cat >>confdefs.h <<_ACEOF
7613#define HAVE_LIBM 1
7614_ACEOF
7615
7616 LIBS="-lm $LIBS"
c906108c 7617
c906108c 7618fi
bec39cab
AC
7619
7620
7621# We need to link with -lw to get `wctype' on Solaris before Solaris
7622# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7623# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7624# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
7625echo "$as_me:$LINENO: checking for wctype" >&5
7626echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
7627if test "${ac_cv_func_wctype+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630 cat >conftest.$ac_ext <<_ACEOF
7631/* confdefs.h. */
7632_ACEOF
7633cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h. */
7636/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7638#define wctype innocuous_wctype
7639
7640/* System header to define __stub macros and hopefully few prototypes,
7641 which can conflict with char wctype (); below.
7642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7643 <limits.h> exists even on freestanding compilers. */
7644
7645#ifdef __STDC__
7646# include <limits.h>
7647#else
7648# include <assert.h>
7649#endif
7650
7651#undef wctype
7652
b4e70030 7653/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
7654#ifdef __cplusplus
7655extern "C"
b4e70030 7656{
bec39cab 7657#endif
b4e70030
JB
7658/* We use char because int might match the return type of a gcc2
7659 builtin and then its argument prototype would still apply. */
bec39cab
AC
7660char wctype ();
7661/* The GNU C library defines this for functions which it implements
7662 to always fail with ENOSYS. Some functions are actually named
7663 something starting with __ and the normal name is an alias. */
b4e70030 7664#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 7665choke me
b4e70030
JB
7666#else
7667char (*f) () = wctype;
7668#endif
7669#ifdef __cplusplus
7670}
bec39cab
AC
7671#endif
7672
7673int
7674main ()
7675{
b4e70030 7676return f != wctype;
bec39cab
AC
7677 ;
7678 return 0;
7679}
7680_ACEOF
7681rm -f conftest.$ac_objext conftest$ac_exeext
7682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7683 (eval $ac_link) 2>conftest.er1
7684 ac_status=$?
7685 grep -v '^ *+' conftest.er1 >conftest.err
7686 rm -f conftest.er1
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
b4e70030
JB
7690 { ac_try='test -z "$ac_c_werror_flag"
7691 || test ! -s conftest.err'
bec39cab
AC
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_func_wctype=yes
7704else
7705 echo "$as_me: failed program was:" >&5
7706sed 's/^/| /' conftest.$ac_ext >&5
7707
b4e70030 7708ac_cv_func_wctype=no
bec39cab
AC
7709fi
7710rm -f conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7712fi
b4e70030
JB
7713echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7714echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
7715if test $ac_cv_func_wctype = yes; then
7716 :
c906108c 7717else
c906108c 7718
b4e70030
JB
7719echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7720echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
7721if test "${ac_cv_lib_w_wctype+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724 ac_check_lib_save_LIBS=$LIBS
7725LIBS="-lw $LIBS"
7726cat >conftest.$ac_ext <<_ACEOF
7727/* confdefs.h. */
7728_ACEOF
7729cat confdefs.h >>conftest.$ac_ext
7730cat >>conftest.$ac_ext <<_ACEOF
7731/* end confdefs.h. */
c906108c 7732
b4e70030 7733/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
7734#ifdef __cplusplus
7735extern "C"
7736#endif
b4e70030
JB
7737/* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
bec39cab
AC
7739char wctype ();
7740int
7741main ()
7742{
b4e70030 7743wctype ();
bec39cab
AC
7744 ;
7745 return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext conftest$ac_exeext
7749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>conftest.er1
7751 ac_status=$?
7752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
b4e70030
JB
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
bec39cab
AC
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest$ac_exeext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_cv_lib_w_wctype=yes
7771else
7772 echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
b4e70030 7775ac_cv_lib_w_wctype=no
bec39cab
AC
7776fi
7777rm -f conftest.err conftest.$ac_objext \
7778 conftest$ac_exeext conftest.$ac_ext
7779LIBS=$ac_check_lib_save_LIBS
7780fi
b4e70030
JB
7781echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7782echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
7783if test $ac_cv_lib_w_wctype = yes; then
7784 cat >>confdefs.h <<_ACEOF
7785#define HAVE_LIBW 1
7786_ACEOF
c906108c 7787
bec39cab 7788 LIBS="-lw $LIBS"
c906108c 7789
bec39cab 7790fi
c906108c 7791
bec39cab 7792fi
c906108c 7793
ddc9cd0f 7794
bec39cab 7795# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
7796echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7797echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
7798if test "${ac_cv_search_gethostbyname+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801 ac_func_search_save_LIBS=$LIBS
b4e70030 7802ac_cv_search_gethostbyname=no
bec39cab
AC
7803cat >conftest.$ac_ext <<_ACEOF
7804/* confdefs.h. */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h. */
ddc9cd0f 7809
b4e70030 7810/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
7811#ifdef __cplusplus
7812extern "C"
7813#endif
b4e70030
JB
7814/* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
bec39cab
AC
7816char gethostbyname ();
7817int
7818main ()
7819{
b4e70030 7820gethostbyname ();
bec39cab
AC
7821 ;
7822 return 0;
7823}
7824_ACEOF
b4e70030 7825rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
7826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
b4e70030
JB
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
bec39cab
AC
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
b4e70030 7847 ac_cv_search_gethostbyname="none required"
bec39cab
AC
7848else
7849 echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7851
bec39cab
AC
7852fi
7853rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
7854 conftest$ac_exeext conftest.$ac_ext
7855if test "$ac_cv_search_gethostbyname" = no; then
7856 for ac_lib in nsl; do
7857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7858 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7859/* confdefs.h. */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h. */
ddc9cd0f 7864
b4e70030 7865/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
7866#ifdef __cplusplus
7867extern "C"
7868#endif
b4e70030
JB
7869/* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871char gethostbyname ();
bec39cab
AC
7872int
7873main ()
7874{
b4e70030 7875gethostbyname ();
bec39cab
AC
7876 ;
7877 return 0;
7878}
7879_ACEOF
b4e70030 7880rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
7881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
b4e70030
JB
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
bec39cab
AC
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
b4e70030
JB
7902 ac_cv_search_gethostbyname="-l$ac_lib"
7903break
bec39cab
AC
7904else
7905 echo "$as_me: failed program was:" >&5
7906sed 's/^/| /' conftest.$ac_ext >&5
7907
7908fi
7909rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
7910 conftest$ac_exeext conftest.$ac_ext
7911 done
bec39cab
AC
7912fi
7913LIBS=$ac_func_search_save_LIBS
7914fi
b4e70030
JB
7915echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7916echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7917if test "$ac_cv_search_gethostbyname" != no; then
7918 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 7919
bec39cab 7920fi
96baa820 7921
c906108c 7922
b4e70030
JB
7923# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7924echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7925echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7926if test "${ac_cv_search_socketpair+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929 ac_func_search_save_LIBS=$LIBS
7930ac_cv_search_socketpair=no
7931cat >conftest.$ac_ext <<_ACEOF
7932/* confdefs.h. */
7933_ACEOF
7934cat confdefs.h >>conftest.$ac_ext
7935cat >>conftest.$ac_ext <<_ACEOF
7936/* end confdefs.h. */
7937
7938/* Override any gcc2 internal prototype to avoid an error. */
7939#ifdef __cplusplus
7940extern "C"
7941#endif
7942/* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7944char socketpair ();
7945int
7946main ()
7947{
7948socketpair ();
7949 ;
7950 return 0;
7951}
7952_ACEOF
7953rm -f conftest.$ac_objext conftest$ac_exeext
7954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_search_socketpair="none required"
7976else
7977 echo "$as_me: failed program was:" >&5
7978sed 's/^/| /' conftest.$ac_ext >&5
7979
7980fi
7981rm -f conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983if test "$ac_cv_search_socketpair" = no; then
7984 for ac_lib in socket; do
7985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7986 cat >conftest.$ac_ext <<_ACEOF
7987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
7992
7993/* Override any gcc2 internal prototype to avoid an error. */
7994#ifdef __cplusplus
7995extern "C"
7996#endif
7997/* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
7999char socketpair ();
8000int
8001main ()
8002{
8003socketpair ();
8004 ;
8005 return 0;
8006}
8007_ACEOF
8008rm -f conftest.$ac_objext conftest$ac_exeext
8009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -z "$ac_c_werror_flag"
8018 || test ! -s conftest.err'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 (eval $ac_try) 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try='test -s conftest$ac_exeext'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_search_socketpair="-l$ac_lib"
8031break
8032else
8033 echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036fi
8037rm -f conftest.err conftest.$ac_objext \
8038 conftest$ac_exeext conftest.$ac_ext
8039 done
8040fi
8041LIBS=$ac_func_search_save_LIBS
8042fi
8043echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8044echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8045if test "$ac_cv_search_socketpair" != no; then
8046 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8047
8048fi
8049
8050
8051# For the TUI, we need enhanced curses functionality.
bec39cab
AC
8052#
8053# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8054# curses library because the latter might not provide all the
8055# functionality we need. However, this leads to problems on systems
8056# where the linker searches /usr/local/lib, but the compiler doesn't
8057# search /usr/local/include, if ncurses is installed in /usr/local. A
8058# default installation of ncurses on alpha*-dec-osf* will lead to such
8059# a situation.
b4e70030
JB
8060echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8061echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
8062if test "${ac_cv_search_waddstr+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064else
8065 ac_func_search_save_LIBS=$LIBS
b4e70030 8066ac_cv_search_waddstr=no
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. */
c906108c 8073
b4e70030 8074/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8075#ifdef __cplusplus
8076extern "C"
8077#endif
b4e70030
JB
8078/* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
bec39cab
AC
8080char waddstr ();
8081int
8082main ()
8083{
b4e70030 8084waddstr ();
bec39cab
AC
8085 ;
8086 return 0;
8087}
8088_ACEOF
b4e70030 8089rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
b4e70030
JB
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
bec39cab
AC
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
b4e70030 8111 ac_cv_search_waddstr="none required"
bec39cab
AC
8112else
8113 echo "$as_me: failed program was:" >&5
8114sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8115
8116fi
bec39cab 8117rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
8118 conftest$ac_exeext conftest.$ac_ext
8119if test "$ac_cv_search_waddstr" = no; then
8120 for ac_lib in ncurses cursesX curses; do
8121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8122 cat >conftest.$ac_ext <<_ACEOF
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
8128
8129/* Override any gcc2 internal prototype to avoid an error. */
8130#ifdef __cplusplus
8131extern "C"
8132#endif
8133/* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8135char waddstr ();
8136int
8137main ()
8138{
8139waddstr ();
8140 ;
8141 return 0;
8142}
8143_ACEOF
8144rm -f conftest.$ac_objext conftest$ac_exeext
8145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146 (eval $ac_link) 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest$ac_exeext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_cv_search_waddstr="-l$ac_lib"
8167break
4e8d927d 8168else
b4e70030
JB
8169 echo "$as_me: failed program was:" >&5
8170sed 's/^/| /' conftest.$ac_ext >&5
8171
8172fi
8173rm -f conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 done
1ba607ad 8176fi
bec39cab
AC
8177LIBS=$ac_func_search_save_LIBS
8178fi
b4e70030
JB
8179echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8180echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8181if test "$ac_cv_search_waddstr" != no; then
8182 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8183
8bb2c122 8184fi
8bb2c122 8185
8bb2c122 8186
bec39cab
AC
8187# Since GDB uses Readline, we need termcap functionality. In many
8188# cases this will be provided by the curses library, but some systems
8189# have a seperate termcap library, or no curses library at all.
8bb2c122 8190
bec39cab
AC
8191case $host_os in
8192 cygwin*)
8193 if test -d $srcdir/libtermcap; then
8194 LIBS="../libtermcap/libtermcap.a $LIBS"
8195 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8196 fi ;;
8197 go32* | *djgpp*)
8198 ac_cv_search_tgetent="none required"
8199 ;;
7ef34f2c
MM
8200 *mingw32*)
8201 ac_cv_search_tgetent="none required"
8202 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8203 ;;
bec39cab 8204esac
627af7ea 8205
bec39cab 8206# These are the libraries checked by Readline.
b4e70030
JB
8207echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8208echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
8209if test "${ac_cv_search_tgetent+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211else
8212 ac_func_search_save_LIBS=$LIBS
b4e70030 8213ac_cv_search_tgetent=no
bec39cab
AC
8214cat >conftest.$ac_ext <<_ACEOF
8215/* confdefs.h. */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h. */
8220
b4e70030 8221/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8222#ifdef __cplusplus
8223extern "C"
8224#endif
b4e70030
JB
8225/* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
bec39cab
AC
8227char tgetent ();
8228int
8229main ()
8230{
b4e70030 8231tgetent ();
bec39cab
AC
8232 ;
8233 return 0;
8234}
8235_ACEOF
b4e70030 8236rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238 (eval $ac_link) 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
b4e70030
JB
8245 { ac_try='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
bec39cab
AC
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 (eval $ac_try) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
b4e70030 8258 ac_cv_search_tgetent="none required"
627af7ea 8259else
bec39cab
AC
8260 echo "$as_me: failed program was:" >&5
8261sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8262
627af7ea 8263fi
bec39cab 8264rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
8265 conftest$ac_exeext conftest.$ac_ext
8266if test "$ac_cv_search_tgetent" = no; then
8267 for ac_lib in termcap tinfo curses ncurses; do
8268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8269 cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h. */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
8274/* end confdefs.h. */
8275
8276/* Override any gcc2 internal prototype to avoid an error. */
8277#ifdef __cplusplus
8278extern "C"
8279#endif
8280/* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8282char tgetent ();
8283int
8284main ()
8285{
8286tgetent ();
8287 ;
8288 return 0;
8289}
8290_ACEOF
8291rm -f conftest.$ac_objext conftest$ac_exeext
8292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8293 (eval $ac_link) 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -z "$ac_c_werror_flag"
8301 || test ! -s conftest.err'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } &&
8307 { ac_try='test -s conftest$ac_exeext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 ac_cv_search_tgetent="-l$ac_lib"
8314break
4e8d927d 8315else
b4e70030
JB
8316 echo "$as_me: failed program was:" >&5
8317sed 's/^/| /' conftest.$ac_ext >&5
8318
8319fi
8320rm -f conftest.err conftest.$ac_objext \
8321 conftest$ac_exeext conftest.$ac_ext
8322 done
bec39cab
AC
8323fi
8324LIBS=$ac_func_search_save_LIBS
8325fi
b4e70030
JB
8326echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8327echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8328if test "$ac_cv_search_tgetent" != no; then
8329 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8330
06825bd1
MK
8331fi
8332
06825bd1 8333
bec39cab
AC
8334if test "$ac_cv_search_tgetent" = no; then
8335 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8336echo "$as_me: error: no termcap library found" >&2;}
8337 { (exit 1); exit 1; }; }
8ee53726
MK
8338fi
8339
bec39cab
AC
8340# ------------------------- #
8341# Checks for header files. #
8342# ------------------------- #
8ee53726 8343
0e5d83e3 8344
bec39cab
AC
8345
8346
8347
8348
8349ac_header_dirent=no
8350for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8351 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
8352echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8353echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8354if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357 cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h. */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h. */
8363#include <sys/types.h>
0e5d83e3 8364#include <$ac_hdr>
bec39cab
AC
8365
8366int
8367main ()
8368{
8369if ((DIR *) 0)
8370return 0;
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375rm -f conftest.$ac_objext
8376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
b4e70030
JB
8384 { ac_try='test -z "$ac_c_werror_flag"
8385 || test ! -s conftest.err'
bec39cab
AC
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 eval "$as_ac_Header=yes"
8398else
8399 echo "$as_me: failed program was:" >&5
8400sed 's/^/| /' conftest.$ac_ext >&5
8401
b4e70030 8402eval "$as_ac_Header=no"
bec39cab
AC
8403fi
8404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8405fi
b4e70030
JB
8406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8408if test `eval echo '${'$as_ac_Header'}'` = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8411_ACEOF
8412
8413ac_header_dirent=$ac_hdr; break
0e5d83e3 8414fi
0e5d83e3 8415
bec39cab
AC
8416done
8417# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8418if test $ac_header_dirent = dirent.h; then
b4e70030
JB
8419 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8420echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
8421if test "${ac_cv_search_opendir+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423else
8424 ac_func_search_save_LIBS=$LIBS
b4e70030 8425ac_cv_search_opendir=no
bec39cab
AC
8426cat >conftest.$ac_ext <<_ACEOF
8427/* confdefs.h. */
8428_ACEOF
8429cat confdefs.h >>conftest.$ac_ext
8430cat >>conftest.$ac_ext <<_ACEOF
8431/* end confdefs.h. */
0e5d83e3 8432
b4e70030 8433/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8434#ifdef __cplusplus
8435extern "C"
8436#endif
b4e70030
JB
8437/* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
bec39cab
AC
8439char opendir ();
8440int
8441main ()
8442{
b4e70030 8443opendir ();
bec39cab
AC
8444 ;
8445 return 0;
8446}
8447_ACEOF
b4e70030 8448rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
b4e70030
JB
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
bec39cab
AC
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
b4e70030 8470 ac_cv_search_opendir="none required"
bec39cab
AC
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475fi
bec39cab 8476rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
8477 conftest$ac_exeext conftest.$ac_ext
8478if test "$ac_cv_search_opendir" = no; then
8479 for ac_lib in dir; do
8480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8481 cat >conftest.$ac_ext <<_ACEOF
8482/* confdefs.h. */
8483_ACEOF
8484cat confdefs.h >>conftest.$ac_ext
8485cat >>conftest.$ac_ext <<_ACEOF
8486/* end confdefs.h. */
8487
8488/* Override any gcc2 internal prototype to avoid an error. */
8489#ifdef __cplusplus
8490extern "C"
8491#endif
8492/* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494char opendir ();
8495int
8496main ()
8497{
8498opendir ();
8499 ;
8500 return 0;
8501}
8502_ACEOF
8503rm -f conftest.$ac_objext conftest$ac_exeext
8504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8505 (eval $ac_link) 2>conftest.er1
8506 ac_status=$?
8507 grep -v '^ *+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } &&
8512 { ac_try='test -z "$ac_c_werror_flag"
8513 || test ! -s conftest.err'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 (eval $ac_try) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try='test -s conftest$ac_exeext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 ac_cv_search_opendir="-l$ac_lib"
8526break
4e8d927d 8527else
b4e70030
JB
8528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
8531fi
8532rm -f conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8534 done
0e5d83e3 8535fi
bec39cab 8536LIBS=$ac_func_search_save_LIBS
0e5d83e3 8537fi
b4e70030
JB
8538echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8539echo "${ECHO_T}$ac_cv_search_opendir" >&6
8540if test "$ac_cv_search_opendir" != no; then
8541 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8542
0e5d83e3
JJ
8543fi
8544
d28f9cdf 8545else
b4e70030
JB
8546 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8547echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
8548if test "${ac_cv_search_opendir+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551 ac_func_search_save_LIBS=$LIBS
b4e70030 8552ac_cv_search_opendir=no
bec39cab
AC
8553cat >conftest.$ac_ext <<_ACEOF
8554/* confdefs.h. */
8555_ACEOF
8556cat confdefs.h >>conftest.$ac_ext
8557cat >>conftest.$ac_ext <<_ACEOF
8558/* end confdefs.h. */
d28f9cdf 8559
b4e70030 8560/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8561#ifdef __cplusplus
8562extern "C"
d28f9cdf 8563#endif
b4e70030
JB
8564/* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
bec39cab
AC
8566char opendir ();
8567int
8568main ()
8569{
b4e70030 8570opendir ();
bec39cab
AC
8571 ;
8572 return 0;
8573}
8574_ACEOF
b4e70030 8575rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
8576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
b4e70030
JB
8584 { ac_try='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
bec39cab
AC
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
b4e70030 8597 ac_cv_search_opendir="none required"
d28f9cdf 8598else
bec39cab
AC
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
d28f9cdf 8602fi
bec39cab 8603rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
8604 conftest$ac_exeext conftest.$ac_ext
8605if test "$ac_cv_search_opendir" = no; then
8606 for ac_lib in x; do
8607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8608 cat >conftest.$ac_ext <<_ACEOF
8609/* confdefs.h. */
8610_ACEOF
8611cat confdefs.h >>conftest.$ac_ext
8612cat >>conftest.$ac_ext <<_ACEOF
8613/* end confdefs.h. */
8614
8615/* Override any gcc2 internal prototype to avoid an error. */
8616#ifdef __cplusplus
8617extern "C"
8618#endif
8619/* We use char because int might match the return type of a gcc2
8620 builtin and then its argument prototype would still apply. */
8621char opendir ();
8622int
8623main ()
8624{
8625opendir ();
8626 ;
8627 return 0;
8628}
8629_ACEOF
8630rm -f conftest.$ac_objext conftest$ac_exeext
8631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632 (eval $ac_link) 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag"
8640 || test ! -s conftest.err'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 (eval $ac_try) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_cv_search_opendir="-l$ac_lib"
8653break
4e8d927d 8654else
b4e70030
JB
8655 echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658fi
8659rm -f conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 done
bec39cab
AC
8662fi
8663LIBS=$ac_func_search_save_LIBS
d28f9cdf 8664fi
b4e70030
JB
8665echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8666echo "${ECHO_T}$ac_cv_search_opendir" >&6
8667if test "$ac_cv_search_opendir" != no; then
8668 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8669
d28f9cdf
DJ
8670fi
8671
bec39cab 8672fi
b0b1c2c0 8673
b4e70030
JB
8674echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8675echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
8676if test "${ac_cv_header_stat_broken+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8678else
bec39cab
AC
8679 cat >conftest.$ac_ext <<_ACEOF
8680/* confdefs.h. */
8681_ACEOF
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h. */
8685#include <sys/types.h>
8686#include <sys/stat.h>
b0b1c2c0 8687
b4e70030 8688#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
8689# if S_ISBLK (S_IFDIR)
8690You lose.
8691# endif
8692#endif
b0b1c2c0 8693
b4e70030 8694#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
8695# if S_ISBLK (S_IFCHR)
8696You lose.
8697# endif
8698#endif
d28f9cdf 8699
b4e70030 8700#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
8701# if S_ISLNK (S_IFREG)
8702You lose.
8703# endif
8704#endif
d28f9cdf 8705
b4e70030 8706#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
8707# if S_ISSOCK (S_IFREG)
8708You lose.
8709# endif
8710#endif
8711
8712_ACEOF
8713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 $EGREP "You lose" >/dev/null 2>&1; then
8715 ac_cv_header_stat_broken=yes
d28f9cdf 8716else
bec39cab 8717 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8718fi
8719rm -f conftest*
d28f9cdf 8720
d28f9cdf 8721fi
b4e70030
JB
8722echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8723echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 8724if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8725
bec39cab
AC
8726cat >>confdefs.h <<\_ACEOF
8727#define STAT_MACROS_BROKEN 1
8728_ACEOF
8bb2c122 8729
7a292a7a 8730fi
bec39cab 8731
b4e70030
JB
8732echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8733echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
8734if test "${ac_cv_header_stdc+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8736else
bec39cab
AC
8737 cat >conftest.$ac_ext <<_ACEOF
8738/* confdefs.h. */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
8742/* end confdefs.h. */
8743#include <stdlib.h>
8744#include <stdarg.h>
8745#include <string.h>
8746#include <float.h>
7a292a7a 8747
bec39cab
AC
8748int
8749main ()
8750{
7a292a7a 8751
bec39cab
AC
8752 ;
8753 return 0;
8754}
8755_ACEOF
8756rm -f conftest.$ac_objext
8757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
b4e70030
JB
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
bec39cab
AC
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_header_stdc=yes
c906108c 8779else
bec39cab
AC
8780 echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8782
b4e70030 8783ac_cv_header_stdc=no
c906108c 8784fi
bec39cab 8785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8786
bec39cab
AC
8787if test $ac_cv_header_stdc = yes; then
8788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8789 cat >conftest.$ac_ext <<_ACEOF
8790/* confdefs.h. */
8791_ACEOF
8792cat confdefs.h >>conftest.$ac_ext
8793cat >>conftest.$ac_ext <<_ACEOF
8794/* end confdefs.h. */
8795#include <string.h>
c906108c 8796
bec39cab
AC
8797_ACEOF
8798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8799 $EGREP "memchr" >/dev/null 2>&1; then
8800 :
8bb2c122 8801else
bec39cab 8802 ac_cv_header_stdc=no
8bb2c122 8803fi
bec39cab
AC
8804rm -f conftest*
8805
c906108c
SS
8806fi
8807
bec39cab
AC
8808if test $ac_cv_header_stdc = yes; then
8809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8810 cat >conftest.$ac_ext <<_ACEOF
8811/* confdefs.h. */
8812_ACEOF
8813cat confdefs.h >>conftest.$ac_ext
8814cat >>conftest.$ac_ext <<_ACEOF
8815/* end confdefs.h. */
8816#include <stdlib.h>
8817
8818_ACEOF
8819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8820 $EGREP "free" >/dev/null 2>&1; then
8821 :
c906108c 8822else
bec39cab 8823 ac_cv_header_stdc=no
c906108c 8824fi
bec39cab
AC
8825rm -f conftest*
8826
c906108c
SS
8827fi
8828
bec39cab
AC
8829if test $ac_cv_header_stdc = yes; then
8830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8831 if test "$cross_compiling" = yes; then
8832 :
c906108c 8833else
bec39cab
AC
8834 cat >conftest.$ac_ext <<_ACEOF
8835/* confdefs.h. */
8836_ACEOF
8837cat confdefs.h >>conftest.$ac_ext
8838cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h. */
8840#include <ctype.h>
8841#if ((' ' & 0x0FF) == 0x020)
8842# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8843# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8844#else
8845# define ISLOWER(c) \
8846 (('a' <= (c) && (c) <= 'i') \
8847 || ('j' <= (c) && (c) <= 'r') \
8848 || ('s' <= (c) && (c) <= 'z'))
8849# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8850#endif
8851
8852#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8853int
8854main ()
8855{
8856 int i;
8857 for (i = 0; i < 256; i++)
8858 if (XOR (islower (i), ISLOWER (i))
8859 || toupper (i) != TOUPPER (i))
b4e70030
JB
8860 exit(2);
8861 exit (0);
bec39cab
AC
8862}
8863_ACEOF
8864rm -f conftest$ac_exeext
8865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8866 (eval $ac_link) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8875 :
8876else
8877 echo "$as_me: program exited with status $ac_status" >&5
8878echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881( exit $ac_status )
8882ac_cv_header_stdc=no
c906108c 8883fi
b4e70030 8884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8885fi
c906108c 8886fi
bec39cab 8887fi
b4e70030
JB
8888echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8889echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 8890if test $ac_cv_header_stdc = yes; then
c906108c 8891
bec39cab
AC
8892cat >>confdefs.h <<\_ACEOF
8893#define STDC_HEADERS 1
8894_ACEOF
c906108c 8895
bec39cab 8896fi
8bb2c122 8897
bec39cab 8898
7cb9022a 8899for ac_header in nlist.h
bec39cab
AC
8900do
8901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8902if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo "$as_me:$LINENO: checking for $ac_header" >&5
8904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8905if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907fi
b4e70030
JB
8908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8910else
8911 # Is the header compilable?
b4e70030
JB
8912echo "$as_me:$LINENO: checking $ac_header usability" >&5
8913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8914cat >conftest.$ac_ext <<_ACEOF
8915/* confdefs.h. */
8916_ACEOF
8917cat confdefs.h >>conftest.$ac_ext
8918cat >>conftest.$ac_ext <<_ACEOF
8919/* end confdefs.h. */
8920$ac_includes_default
8921#include <$ac_header>
8922_ACEOF
8923rm -f conftest.$ac_objext
8924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
b4e70030
JB
8932 { ac_try='test -z "$ac_c_werror_flag"
8933 || test ! -s conftest.err'
bec39cab
AC
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest.$ac_objext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 (eval $ac_try) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 ac_header_compiler=yes
8946else
8947 echo "$as_me: failed program was:" >&5
8948sed 's/^/| /' conftest.$ac_ext >&5
8949
b4e70030 8950ac_header_compiler=no
bec39cab
AC
8951fi
8952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8954echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8955
8956# Is the header present?
b4e70030
JB
8957echo "$as_me:$LINENO: checking $ac_header presence" >&5
8958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8959cat >conftest.$ac_ext <<_ACEOF
8960/* confdefs.h. */
8961_ACEOF
8962cat confdefs.h >>conftest.$ac_ext
8963cat >>conftest.$ac_ext <<_ACEOF
8964/* end confdefs.h. */
8965#include <$ac_header>
8966_ACEOF
8967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } >/dev/null; then
8975 if test -s conftest.err; then
8976 ac_cpp_err=$ac_c_preproc_warn_flag
8977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8978 else
8979 ac_cpp_err=
8980 fi
c906108c 8981else
bec39cab 8982 ac_cpp_err=yes
c906108c 8983fi
bec39cab
AC
8984if test -z "$ac_cpp_err"; then
8985 ac_header_preproc=yes
c906108c 8986else
bec39cab
AC
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 8989
bec39cab
AC
8990 ac_header_preproc=no
8991fi
8992rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8994echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8995
bec39cab
AC
8996# So? What about this header?
8997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8998 yes:no: )
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9003 ac_header_preproc=yes
9004 ;;
9005 no:yes:* )
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9009echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9013echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9018 (
9019 cat <<\_ASBOX
9020## ------------------------------------------ ##
9021## Report this to the AC_PACKAGE_NAME lists. ##
9022## ------------------------------------------ ##
9023_ASBOX
9024 ) |
9025 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9026 ;;
9027esac
b4e70030
JB
9028echo "$as_me:$LINENO: checking for $ac_header" >&5
9029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9030if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9031 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9032else
bec39cab 9033 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9034fi
b4e70030
JB
9035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9037
95ca63c4 9038fi
bec39cab
AC
9039if test `eval echo '${'$as_ac_Header'}'` = yes; then
9040 cat >>confdefs.h <<_ACEOF
9041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9042_ACEOF
9043
95ca63c4
CF
9044fi
9045
bec39cab 9046done
95ca63c4
CF
9047
9048
7cb9022a 9049for ac_header in link.h
bec39cab
AC
9050do
9051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9052echo "$as_me:$LINENO: checking for $ac_header" >&5
9053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9055 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9056else
7cb9022a 9057 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9058/* confdefs.h. */
9059_ACEOF
9060cat confdefs.h >>conftest.$ac_ext
9061cat >>conftest.$ac_ext <<_ACEOF
9062/* end confdefs.h. */
7cb9022a
MK
9063#if HAVE_SYS_TYPES_H
9064# include <sys/types.h>
9065#endif
9066#if HAVE_NLIST_H
9067# include <nlist.h>
9068#endif
9069
9070
bec39cab
AC
9071#include <$ac_header>
9072_ACEOF
9073rm -f conftest.$ac_objext
9074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9075 (eval $ac_compile) 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
b4e70030
JB
9082 { ac_try='test -z "$ac_c_werror_flag"
9083 || test ! -s conftest.err'
bec39cab
AC
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 (eval $ac_try) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest.$ac_objext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
7cb9022a 9095 eval "$as_ac_Header=yes"
bec39cab
AC
9096else
9097 echo "$as_me: failed program was:" >&5
9098sed 's/^/| /' conftest.$ac_ext >&5
9099
b4e70030 9100eval "$as_ac_Header=no"
bec39cab
AC
9101fi
9102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 9103fi
b4e70030
JB
9104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9106if test `eval echo '${'$as_ac_Header'}'` = yes; then
9107 cat >>confdefs.h <<_ACEOF
9108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9109_ACEOF
95ca63c4 9110
bec39cab 9111fi
95ca63c4 9112
bec39cab 9113done
95ca63c4 9114
c906108c 9115
7cb9022a 9116for ac_header in machine/reg.h
bec39cab
AC
9117do
9118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9119if eval "test \"\${$as_ac_Header+set}\" = set"; then
9120 echo "$as_me:$LINENO: checking for $ac_header" >&5
9121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124fi
b4e70030
JB
9125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9127else
9128 # Is the header compilable?
b4e70030
JB
9129echo "$as_me:$LINENO: checking $ac_header usability" >&5
9130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9131cat >conftest.$ac_ext <<_ACEOF
9132/* confdefs.h. */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
9136/* end confdefs.h. */
9137$ac_includes_default
9138#include <$ac_header>
9139_ACEOF
9140rm -f conftest.$ac_objext
9141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142 (eval $ac_compile) 2>conftest.er1
9143 ac_status=$?
9144 grep -v '^ *+' conftest.er1 >conftest.err
9145 rm -f conftest.er1
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } &&
b4e70030
JB
9149 { ac_try='test -z "$ac_c_werror_flag"
9150 || test ! -s conftest.err'
bec39cab
AC
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest.$ac_objext'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 (eval $ac_try) 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9162 ac_header_compiler=yes
9163else
9164 echo "$as_me: failed program was:" >&5
9165sed 's/^/| /' conftest.$ac_ext >&5
9166
b4e70030 9167ac_header_compiler=no
bec39cab
AC
9168fi
9169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9171echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9172
9173# Is the header present?
b4e70030
JB
9174echo "$as_me:$LINENO: checking $ac_header presence" >&5
9175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9176cat >conftest.$ac_ext <<_ACEOF
9177/* confdefs.h. */
9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h. */
9182#include <$ac_header>
9183_ACEOF
9184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9186 ac_status=$?
9187 grep -v '^ *+' conftest.er1 >conftest.err
9188 rm -f conftest.er1
9189 cat conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } >/dev/null; then
9192 if test -s conftest.err; then
9193 ac_cpp_err=$ac_c_preproc_warn_flag
9194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9195 else
9196 ac_cpp_err=
9197 fi
75c6e08a 9198else
bec39cab 9199 ac_cpp_err=yes
75c6e08a 9200fi
bec39cab
AC
9201if test -z "$ac_cpp_err"; then
9202 ac_header_preproc=yes
9203else
9204 echo "$as_me: failed program was:" >&5
9205sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 ac_header_preproc=no
75c6e08a 9208fi
bec39cab 9209rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9211echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9212
9213# So? What about this header?
9214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9215 yes:no: )
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9220 ac_header_preproc=yes
9221 ;;
9222 no:yes:* )
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9235 (
9236 cat <<\_ASBOX
9237## ------------------------------------------ ##
9238## Report this to the AC_PACKAGE_NAME lists. ##
9239## ------------------------------------------ ##
9240_ASBOX
9241 ) |
9242 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9243 ;;
9244esac
b4e70030
JB
9245echo "$as_me:$LINENO: checking for $ac_header" >&5
9246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9247if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9248 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9249else
bec39cab
AC
9250 eval "$as_ac_Header=\$ac_header_preproc"
9251fi
b4e70030
JB
9252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9254
75c6e08a 9255fi
bec39cab
AC
9256if test `eval echo '${'$as_ac_Header'}'` = yes; then
9257 cat >>confdefs.h <<_ACEOF
9258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9259_ACEOF
75c6e08a 9260
bec39cab 9261fi
75c6e08a 9262
bec39cab 9263done
75c6e08a
MK
9264
9265
9a156167 9266
bec39cab
AC
9267for ac_header in poll.h sys/poll.h
9268do
9269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9270if eval "test \"\${$as_ac_Header+set}\" = set"; then
9271 echo "$as_me:$LINENO: checking for $ac_header" >&5
9272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9273if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275fi
b4e70030
JB
9276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9278else
9279 # Is the header compilable?
b4e70030
JB
9280echo "$as_me:$LINENO: checking $ac_header usability" >&5
9281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9282cat >conftest.$ac_ext <<_ACEOF
9283/* confdefs.h. */
9284_ACEOF
9285cat confdefs.h >>conftest.$ac_ext
9286cat >>conftest.$ac_ext <<_ACEOF
9287/* end confdefs.h. */
9288$ac_includes_default
9289#include <$ac_header>
9290_ACEOF
9291rm -f conftest.$ac_objext
9292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9293 (eval $ac_compile) 2>conftest.er1
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
b4e70030
JB
9300 { ac_try='test -z "$ac_c_werror_flag"
9301 || test ! -s conftest.err'
bec39cab
AC
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 (eval $ac_try) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; } &&
9307 { ac_try='test -s conftest.$ac_objext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_header_compiler=yes
9314else
9315 echo "$as_me: failed program was:" >&5
9316sed 's/^/| /' conftest.$ac_ext >&5
9317
b4e70030 9318ac_header_compiler=no
bec39cab
AC
9319fi
9320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9322echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9323
9324# Is the header present?
b4e70030
JB
9325echo "$as_me:$LINENO: checking $ac_header presence" >&5
9326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9327cat >conftest.$ac_ext <<_ACEOF
9328/* confdefs.h. */
9329_ACEOF
9330cat confdefs.h >>conftest.$ac_ext
9331cat >>conftest.$ac_ext <<_ACEOF
9332/* end confdefs.h. */
9333#include <$ac_header>
9334_ACEOF
9335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } >/dev/null; then
9343 if test -s conftest.err; then
9344 ac_cpp_err=$ac_c_preproc_warn_flag
9345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9346 else
9347 ac_cpp_err=
9348 fi
9a156167 9349else
bec39cab 9350 ac_cpp_err=yes
9a156167 9351fi
bec39cab
AC
9352if test -z "$ac_cpp_err"; then
9353 ac_header_preproc=yes
9354else
9355 echo "$as_me: failed program was:" >&5
9356sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9357
bec39cab 9358 ac_header_preproc=no
9a156167 9359fi
bec39cab 9360rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9362echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9363
bec39cab
AC
9364# So? What about this header?
9365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9366 yes:no: )
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9371 ac_header_preproc=yes
9372 ;;
9373 no:yes:* )
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9381echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9386 (
9387 cat <<\_ASBOX
9388## ------------------------------------------ ##
9389## Report this to the AC_PACKAGE_NAME lists. ##
9390## ------------------------------------------ ##
9391_ASBOX
9392 ) |
9393 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9394 ;;
9395esac
b4e70030
JB
9396echo "$as_me:$LINENO: checking for $ac_header" >&5
9397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9398if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9400else
bec39cab 9401 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9402fi
b4e70030
JB
9403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9405
bec39cab
AC
9406fi
9407if test `eval echo '${'$as_ac_Header'}'` = yes; then
9408 cat >>confdefs.h <<_ACEOF
9409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9410_ACEOF
9a156167 9411
bec39cab 9412fi
9a156167 9413
bec39cab 9414done
9a156167 9415
9a156167 9416
9a156167 9417
bec39cab
AC
9418
9419for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9420do
9421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9422if eval "test \"\${$as_ac_Header+set}\" = set"; then
9423 echo "$as_me:$LINENO: checking for $ac_header" >&5
9424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9425if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427fi
b4e70030
JB
9428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9430else
9431 # Is the header compilable?
b4e70030
JB
9432echo "$as_me:$LINENO: checking $ac_header usability" >&5
9433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9434cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h. */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h. */
9440$ac_includes_default
9441#include <$ac_header>
9442_ACEOF
9443rm -f conftest.$ac_objext
9444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
b4e70030
JB
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
bec39cab
AC
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_header_compiler=yes
9466else
9467 echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
9469
b4e70030 9470ac_header_compiler=no
bec39cab
AC
9471fi
9472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9473echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9474echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9475
9476# Is the header present?
b4e70030
JB
9477echo "$as_me:$LINENO: checking $ac_header presence" >&5
9478echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9479cat >conftest.$ac_ext <<_ACEOF
9480/* confdefs.h. */
9481_ACEOF
9482cat confdefs.h >>conftest.$ac_ext
9483cat >>conftest.$ac_ext <<_ACEOF
9484/* end confdefs.h. */
9485#include <$ac_header>
9486_ACEOF
9487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } >/dev/null; then
9495 if test -s conftest.err; then
9496 ac_cpp_err=$ac_c_preproc_warn_flag
9497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9498 else
9499 ac_cpp_err=
9500 fi
9a156167 9501else
bec39cab 9502 ac_cpp_err=yes
9a156167 9503fi
bec39cab
AC
9504if test -z "$ac_cpp_err"; then
9505 ac_header_preproc=yes
9506else
9507 echo "$as_me: failed program was:" >&5
9508sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9509
bec39cab 9510 ac_header_preproc=no
9a156167 9511fi
bec39cab 9512rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9513echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9514echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9515
bec39cab
AC
9516# So? What about this header?
9517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9518 yes:no: )
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9523 ac_header_preproc=yes
9524 ;;
9525 no:yes:* )
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9533echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9538 (
9539 cat <<\_ASBOX
9540## ------------------------------------------ ##
9541## Report this to the AC_PACKAGE_NAME lists. ##
9542## ------------------------------------------ ##
9543_ASBOX
9544 ) |
9545 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9546 ;;
9547esac
b4e70030
JB
9548echo "$as_me:$LINENO: checking for $ac_header" >&5
9549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9550if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9552else
bec39cab 9553 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9554fi
b4e70030
JB
9555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9557
9558fi
bec39cab
AC
9559if test `eval echo '${'$as_ac_Header'}'` = yes; then
9560 cat >>confdefs.h <<_ACEOF
9561#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9562_ACEOF
9a156167 9563
bec39cab
AC
9564fi
9565
9566done
9a156167 9567
c890192f 9568
bec39cab
AC
9569for ac_header in stddef.h
9570do
9571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9572if eval "test \"\${$as_ac_Header+set}\" = set"; then
9573 echo "$as_me:$LINENO: checking for $ac_header" >&5
9574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9575if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577fi
b4e70030
JB
9578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9580else
9581 # Is the header compilable?
b4e70030
JB
9582echo "$as_me:$LINENO: checking $ac_header usability" >&5
9583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9584cat >conftest.$ac_ext <<_ACEOF
9585/* confdefs.h. */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h. */
9590$ac_includes_default
9591#include <$ac_header>
9592_ACEOF
9593rm -f conftest.$ac_objext
9594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
b4e70030
JB
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
bec39cab
AC
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_header_compiler=yes
9616else
9617 echo "$as_me: failed program was:" >&5
9618sed 's/^/| /' conftest.$ac_ext >&5
9619
b4e70030 9620ac_header_compiler=no
bec39cab
AC
9621fi
9622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9624echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9625
9626# Is the header present?
b4e70030
JB
9627echo "$as_me:$LINENO: checking $ac_header presence" >&5
9628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9629cat >conftest.$ac_ext <<_ACEOF
9630/* confdefs.h. */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h. */
9635#include <$ac_header>
9636_ACEOF
9637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } >/dev/null; then
9645 if test -s conftest.err; then
9646 ac_cpp_err=$ac_c_preproc_warn_flag
9647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9648 else
9649 ac_cpp_err=
9650 fi
c890192f 9651else
bec39cab
AC
9652 ac_cpp_err=yes
9653fi
9654if test -z "$ac_cpp_err"; then
9655 ac_header_preproc=yes
c890192f 9656else
bec39cab
AC
9657 echo "$as_me: failed program was:" >&5
9658sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_header_preproc=no
c890192f 9661fi
bec39cab 9662rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9665
9666# So? What about this header?
9667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668 yes:no: )
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9673 ac_header_preproc=yes
9674 ;;
9675 no:yes:* )
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9688 (
9689 cat <<\_ASBOX
9690## ------------------------------------------ ##
9691## Report this to the AC_PACKAGE_NAME lists. ##
9692## ------------------------------------------ ##
9693_ASBOX
9694 ) |
9695 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9696 ;;
9697esac
b4e70030
JB
9698echo "$as_me:$LINENO: checking for $ac_header" >&5
9699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9700if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9701 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9702else
bec39cab 9703 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9704fi
b4e70030
JB
9705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9707
c890192f 9708fi
bec39cab
AC
9709if test `eval echo '${'$as_ac_Header'}'` = yes; then
9710 cat >>confdefs.h <<_ACEOF
9711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9712_ACEOF
c890192f 9713
c890192f
MK
9714fi
9715
bec39cab 9716done
9a156167 9717
bec39cab
AC
9718
9719for ac_header in stdlib.h
9720do
9721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9722if eval "test \"\${$as_ac_Header+set}\" = set"; then
9723 echo "$as_me:$LINENO: checking for $ac_header" >&5
9724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9725if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727fi
b4e70030
JB
9728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9730else
9731 # Is the header compilable?
b4e70030
JB
9732echo "$as_me:$LINENO: checking $ac_header usability" >&5
9733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9734cat >conftest.$ac_ext <<_ACEOF
9735/* confdefs.h. */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h. */
9740$ac_includes_default
9741#include <$ac_header>
9742_ACEOF
9743rm -f conftest.$ac_objext
9744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
b4e70030
JB
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
bec39cab
AC
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_header_compiler=yes
9766else
9767 echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
b4e70030 9770ac_header_compiler=no
bec39cab
AC
9771fi
9772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9775
9776# Is the header present?
b4e70030
JB
9777echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9779cat >conftest.$ac_ext <<_ACEOF
9780/* confdefs.h. */
9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
9785#include <$ac_header>
9786_ACEOF
9787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9789 ac_status=$?
9790 grep -v '^ *+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev/null; then
9795 if test -s conftest.err; then
9796 ac_cpp_err=$ac_c_preproc_warn_flag
9797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9798 else
9799 ac_cpp_err=
9800 fi
9a156167 9801else
bec39cab
AC
9802 ac_cpp_err=yes
9803fi
9804if test -z "$ac_cpp_err"; then
9805 ac_header_preproc=yes
9a156167 9806else
bec39cab
AC
9807 echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_header_preproc=no
9a156167 9811fi
bec39cab 9812rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9815
9816# So? What about this header?
9817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9818 yes:no: )
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc=yes
9824 ;;
9825 no:yes:* )
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9838 (
9839 cat <<\_ASBOX
9840## ------------------------------------------ ##
9841## Report this to the AC_PACKAGE_NAME lists. ##
9842## ------------------------------------------ ##
9843_ASBOX
9844 ) |
9845 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9846 ;;
9847esac
b4e70030
JB
9848echo "$as_me:$LINENO: checking for $ac_header" >&5
9849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9850if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9852else
bec39cab 9853 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9854fi
b4e70030
JB
9855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9857
9a156167 9858fi
bec39cab
AC
9859if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860 cat >>confdefs.h <<_ACEOF
9861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9862_ACEOF
9a156167 9863
9a156167
MK
9864fi
9865
bec39cab
AC
9866done
9867
06825bd1 9868
bec39cab
AC
9869for ac_header in stdint.h
9870do
9871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9872if eval "test \"\${$as_ac_Header+set}\" = set"; then
9873 echo "$as_me:$LINENO: checking for $ac_header" >&5
9874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9875if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877fi
b4e70030
JB
9878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9880else
9881 # Is the header compilable?
b4e70030
JB
9882echo "$as_me:$LINENO: checking $ac_header usability" >&5
9883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9884cat >conftest.$ac_ext <<_ACEOF
9885/* confdefs.h. */
9886_ACEOF
9887cat confdefs.h >>conftest.$ac_ext
9888cat >>conftest.$ac_ext <<_ACEOF
9889/* end confdefs.h. */
9890$ac_includes_default
9891#include <$ac_header>
9892_ACEOF
9893rm -f conftest.$ac_objext
9894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
b4e70030
JB
9902 { ac_try='test -z "$ac_c_werror_flag"
9903 || test ! -s conftest.err'
bec39cab
AC
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; } &&
9909 { ac_try='test -s conftest.$ac_objext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_header_compiler=yes
9916else
9917 echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
9919
b4e70030 9920ac_header_compiler=no
bec39cab
AC
9921fi
9922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9923echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9924echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9925
9926# Is the header present?
b4e70030
JB
9927echo "$as_me:$LINENO: checking $ac_header presence" >&5
9928echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9929cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h. */
9935#include <$ac_header>
9936_ACEOF
9937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } >/dev/null; then
9945 if test -s conftest.err; then
9946 ac_cpp_err=$ac_c_preproc_warn_flag
9947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9948 else
9949 ac_cpp_err=
9950 fi
06825bd1 9951else
bec39cab
AC
9952 ac_cpp_err=yes
9953fi
9954if test -z "$ac_cpp_err"; then
9955 ac_header_preproc=yes
06825bd1 9956else
bec39cab
AC
9957 echo "$as_me: failed program was:" >&5
9958sed 's/^/| /' conftest.$ac_ext >&5
9959
9960 ac_header_preproc=no
06825bd1 9961fi
bec39cab 9962rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9963echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9964echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9965
9966# So? What about this header?
9967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9968 yes:no: )
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9973 ac_header_preproc=yes
9974 ;;
9975 no:yes:* )
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9983echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9988 (
9989 cat <<\_ASBOX
9990## ------------------------------------------ ##
9991## Report this to the AC_PACKAGE_NAME lists. ##
9992## ------------------------------------------ ##
9993_ASBOX
9994 ) |
9995 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9996 ;;
9997esac
b4e70030
JB
9998echo "$as_me:$LINENO: checking for $ac_header" >&5
9999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10000if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10001 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 10002else
bec39cab 10003 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10004fi
b4e70030
JB
10005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10007
06825bd1 10008fi
bec39cab
AC
10009if test `eval echo '${'$as_ac_Header'}'` = yes; then
10010 cat >>confdefs.h <<_ACEOF
10011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10012_ACEOF
06825bd1 10013
06825bd1 10014fi
4f0be353 10015
bec39cab 10016done
4f0be353 10017
06825bd1 10018
06825bd1 10019
bec39cab
AC
10020
10021for ac_header in string.h memory.h strings.h
10022do
10023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10024if eval "test \"\${$as_ac_Header+set}\" = set"; then
10025 echo "$as_me:$LINENO: checking for $ac_header" >&5
10026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10027if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029fi
b4e70030
JB
10030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10032else
10033 # Is the header compilable?
b4e70030
JB
10034echo "$as_me:$LINENO: checking $ac_header usability" >&5
10035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10036cat >conftest.$ac_ext <<_ACEOF
10037/* confdefs.h. */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
10041/* end confdefs.h. */
10042$ac_includes_default
10043#include <$ac_header>
10044_ACEOF
10045rm -f conftest.$ac_objext
10046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
b4e70030
JB
10054 { ac_try='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
bec39cab
AC
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_header_compiler=yes
10068else
10069 echo "$as_me: failed program was:" >&5
10070sed 's/^/| /' conftest.$ac_ext >&5
10071
b4e70030 10072ac_header_compiler=no
bec39cab
AC
10073fi
10074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10076echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10077
10078# Is the header present?
b4e70030
JB
10079echo "$as_me:$LINENO: checking $ac_header presence" >&5
10080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10081cat >conftest.$ac_ext <<_ACEOF
10082/* confdefs.h. */
10083_ACEOF
10084cat confdefs.h >>conftest.$ac_ext
10085cat >>conftest.$ac_ext <<_ACEOF
10086/* end confdefs.h. */
10087#include <$ac_header>
10088_ACEOF
10089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } >/dev/null; then
10097 if test -s conftest.err; then
10098 ac_cpp_err=$ac_c_preproc_warn_flag
10099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10100 else
10101 ac_cpp_err=
10102 fi
06825bd1 10103else
bec39cab
AC
10104 ac_cpp_err=yes
10105fi
10106if test -z "$ac_cpp_err"; then
10107 ac_header_preproc=yes
06825bd1 10108else
bec39cab
AC
10109 echo "$as_me: failed program was:" >&5
10110sed 's/^/| /' conftest.$ac_ext >&5
10111
10112 ac_header_preproc=no
06825bd1 10113fi
bec39cab 10114rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10116echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10117
10118# So? What about this header?
10119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10120 yes:no: )
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10125 ac_header_preproc=yes
10126 ;;
10127 no:yes:* )
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10140 (
10141 cat <<\_ASBOX
10142## ------------------------------------------ ##
10143## Report this to the AC_PACKAGE_NAME lists. ##
10144## ------------------------------------------ ##
10145_ASBOX
10146 ) |
10147 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10148 ;;
10149esac
b4e70030
JB
10150echo "$as_me:$LINENO: checking for $ac_header" >&5
10151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10152if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10156fi
b4e70030
JB
10157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10159
06825bd1 10160fi
bec39cab
AC
10161if test `eval echo '${'$as_ac_Header'}'` = yes; then
10162 cat >>confdefs.h <<_ACEOF
10163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10164_ACEOF
06825bd1 10165
06825bd1
MK
10166fi
10167
bec39cab 10168done
5ee754fc 10169
bec39cab
AC
10170
10171for ac_header in sys/fault.h
5ee754fc 10172do
bec39cab 10173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10174if eval "test \"\${$as_ac_Header+set}\" = set"; then
10175 echo "$as_me:$LINENO: checking for $ac_header" >&5
10176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10177if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179fi
b4e70030
JB
10180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10182else
10183 # Is the header compilable?
b4e70030
JB
10184echo "$as_me:$LINENO: checking $ac_header usability" >&5
10185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10186cat >conftest.$ac_ext <<_ACEOF
10187/* confdefs.h. */
10188_ACEOF
10189cat confdefs.h >>conftest.$ac_ext
10190cat >>conftest.$ac_ext <<_ACEOF
10191/* end confdefs.h. */
10192$ac_includes_default
10193#include <$ac_header>
10194_ACEOF
10195rm -f conftest.$ac_objext
10196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
b4e70030
JB
10204 { ac_try='test -z "$ac_c_werror_flag"
10205 || test ! -s conftest.err'
bec39cab
AC
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest.$ac_objext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 ac_header_compiler=yes
10218else
10219 echo "$as_me: failed program was:" >&5
10220sed 's/^/| /' conftest.$ac_ext >&5
10221
b4e70030 10222ac_header_compiler=no
bec39cab
AC
10223fi
10224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10225echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10226echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10227
10228# Is the header present?
b4e70030
JB
10229echo "$as_me:$LINENO: checking $ac_header presence" >&5
10230echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10231cat >conftest.$ac_ext <<_ACEOF
10232/* confdefs.h. */
10233_ACEOF
10234cat confdefs.h >>conftest.$ac_ext
10235cat >>conftest.$ac_ext <<_ACEOF
10236/* end confdefs.h. */
10237#include <$ac_header>
10238_ACEOF
10239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } >/dev/null; then
10247 if test -s conftest.err; then
10248 ac_cpp_err=$ac_c_preproc_warn_flag
10249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10250 else
10251 ac_cpp_err=
10252 fi
5ee754fc 10253else
bec39cab 10254 ac_cpp_err=yes
5ee754fc 10255fi
bec39cab
AC
10256if test -z "$ac_cpp_err"; then
10257 ac_header_preproc=yes
10258else
10259 echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10261
bec39cab 10262 ac_header_preproc=no
5ee754fc 10263fi
bec39cab 10264rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10265echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10266echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10267
10268# So? What about this header?
10269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10270 yes:no: )
10271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10275 ac_header_preproc=yes
10276 ;;
10277 no:yes:* )
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10290 (
10291 cat <<\_ASBOX
10292## ------------------------------------------ ##
10293## Report this to the AC_PACKAGE_NAME lists. ##
10294## ------------------------------------------ ##
10295_ASBOX
10296 ) |
10297 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10298 ;;
10299esac
b4e70030
JB
10300echo "$as_me:$LINENO: checking for $ac_header" >&5
10301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10302if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10303 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10304else
bec39cab 10305 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10306fi
b4e70030
JB
10307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10309
5ee754fc 10310fi
bec39cab
AC
10311if test `eval echo '${'$as_ac_Header'}'` = yes; then
10312 cat >>confdefs.h <<_ACEOF
10313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10314_ACEOF
c906108c 10315
5ee754fc 10316fi
bec39cab
AC
10317
10318done
10319
10320
10321for ac_header in sys/file.h
10322do
10323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10324if eval "test \"\${$as_ac_Header+set}\" = set"; then
10325 echo "$as_me:$LINENO: checking for $ac_header" >&5
10326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10327if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329fi
b4e70030
JB
10330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10331echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10332else
10333 # Is the header compilable?
b4e70030
JB
10334echo "$as_me:$LINENO: checking $ac_header usability" >&5
10335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10336cat >conftest.$ac_ext <<_ACEOF
10337/* confdefs.h. */
10338_ACEOF
10339cat confdefs.h >>conftest.$ac_ext
10340cat >>conftest.$ac_ext <<_ACEOF
10341/* end confdefs.h. */
10342$ac_includes_default
10343#include <$ac_header>
10344_ACEOF
10345rm -f conftest.$ac_objext
10346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10347 (eval $ac_compile) 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
b4e70030
JB
10354 { ac_try='test -z "$ac_c_werror_flag"
10355 || test ! -s conftest.err'
bec39cab
AC
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; } &&
10361 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10367 ac_header_compiler=yes
10368else
10369 echo "$as_me: failed program was:" >&5
10370sed 's/^/| /' conftest.$ac_ext >&5
10371
b4e70030 10372ac_header_compiler=no
bec39cab
AC
10373fi
10374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10376echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10377
10378# Is the header present?
b4e70030
JB
10379echo "$as_me:$LINENO: checking $ac_header presence" >&5
10380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10381cat >conftest.$ac_ext <<_ACEOF
10382/* confdefs.h. */
10383_ACEOF
10384cat confdefs.h >>conftest.$ac_ext
10385cat >>conftest.$ac_ext <<_ACEOF
10386/* end confdefs.h. */
10387#include <$ac_header>
10388_ACEOF
10389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } >/dev/null; then
10397 if test -s conftest.err; then
10398 ac_cpp_err=$ac_c_preproc_warn_flag
10399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10400 else
10401 ac_cpp_err=
10402 fi
5ee754fc 10403else
bec39cab 10404 ac_cpp_err=yes
5ee754fc 10405fi
bec39cab
AC
10406if test -z "$ac_cpp_err"; then
10407 ac_header_preproc=yes
10408else
10409 echo "$as_me: failed program was:" >&5
10410sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10411
bec39cab 10412 ac_header_preproc=no
5ee754fc 10413fi
bec39cab 10414rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10416echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10417
bec39cab
AC
10418# So? What about this header?
10419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10420 yes:no: )
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10425 ac_header_preproc=yes
10426 ;;
10427 no:yes:* )
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10440 (
10441 cat <<\_ASBOX
10442## ------------------------------------------ ##
10443## Report this to the AC_PACKAGE_NAME lists. ##
10444## ------------------------------------------ ##
10445_ASBOX
10446 ) |
10447 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10448 ;;
10449esac
b4e70030
JB
10450echo "$as_me:$LINENO: checking for $ac_header" >&5
10451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10452if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10453 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10454else
bec39cab
AC
10455 eval "$as_ac_Header=\$ac_header_preproc"
10456fi
b4e70030
JB
10457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10459
bec39cab
AC
10460fi
10461if test `eval echo '${'$as_ac_Header'}'` = yes; then
10462 cat >>confdefs.h <<_ACEOF
10463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10464_ACEOF
5ee754fc 10465
bec39cab 10466fi
5ee754fc 10467
bec39cab 10468done
5ee754fc 10469
5ee754fc 10470
bec39cab
AC
10471for ac_header in sys/filio.h
10472do
10473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10474if eval "test \"\${$as_ac_Header+set}\" = set"; then
10475 echo "$as_me:$LINENO: checking for $ac_header" >&5
10476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10477if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10479fi
b4e70030
JB
10480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10482else
10483 # Is the header compilable?
b4e70030
JB
10484echo "$as_me:$LINENO: checking $ac_header usability" >&5
10485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10486cat >conftest.$ac_ext <<_ACEOF
10487/* confdefs.h. */
10488_ACEOF
10489cat confdefs.h >>conftest.$ac_ext
10490cat >>conftest.$ac_ext <<_ACEOF
10491/* end confdefs.h. */
10492$ac_includes_default
10493#include <$ac_header>
10494_ACEOF
10495rm -f conftest.$ac_objext
10496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>conftest.er1
10498 ac_status=$?
10499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -f conftest.er1
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } &&
b4e70030
JB
10504 { ac_try='test -z "$ac_c_werror_flag"
10505 || test ! -s conftest.err'
bec39cab
AC
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest.$ac_objext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_header_compiler=yes
10518else
10519 echo "$as_me: failed program was:" >&5
10520sed 's/^/| /' conftest.$ac_ext >&5
10521
b4e70030 10522ac_header_compiler=no
bec39cab
AC
10523fi
10524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10525echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10526echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10527
10528# Is the header present?
b4e70030
JB
10529echo "$as_me:$LINENO: checking $ac_header presence" >&5
10530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10531cat >conftest.$ac_ext <<_ACEOF
10532/* confdefs.h. */
10533_ACEOF
10534cat confdefs.h >>conftest.$ac_ext
10535cat >>conftest.$ac_ext <<_ACEOF
10536/* end confdefs.h. */
10537#include <$ac_header>
10538_ACEOF
10539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } >/dev/null; then
10547 if test -s conftest.err; then
10548 ac_cpp_err=$ac_c_preproc_warn_flag
10549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10550 else
10551 ac_cpp_err=
10552 fi
5ee754fc 10553else
bec39cab 10554 ac_cpp_err=yes
5ee754fc 10555fi
bec39cab
AC
10556if test -z "$ac_cpp_err"; then
10557 ac_header_preproc=yes
10558else
10559 echo "$as_me: failed program was:" >&5
10560sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10561
bec39cab 10562 ac_header_preproc=no
5ee754fc 10563fi
bec39cab 10564rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10566echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10567
bec39cab
AC
10568# So? What about this header?
10569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10570 yes:no: )
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10575 ac_header_preproc=yes
10576 ;;
10577 no:yes:* )
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10590 (
10591 cat <<\_ASBOX
10592## ------------------------------------------ ##
10593## Report this to the AC_PACKAGE_NAME lists. ##
10594## ------------------------------------------ ##
10595_ASBOX
10596 ) |
10597 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10598 ;;
10599esac
b4e70030
JB
10600echo "$as_me:$LINENO: checking for $ac_header" >&5
10601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10602if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10603 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10604else
bec39cab 10605 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10606fi
b4e70030
JB
10607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10609
5ee754fc 10610fi
bec39cab
AC
10611if test `eval echo '${'$as_ac_Header'}'` = yes; then
10612 cat >>confdefs.h <<_ACEOF
10613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10614_ACEOF
5ee754fc
MK
10615
10616fi
10617
bec39cab
AC
10618done
10619
10620
10621for ac_header in sys/ioctl.h
10622do
10623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10624if eval "test \"\${$as_ac_Header+set}\" = set"; then
10625 echo "$as_me:$LINENO: checking for $ac_header" >&5
10626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10627if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629fi
b4e70030
JB
10630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10632else
10633 # Is the header compilable?
b4e70030
JB
10634echo "$as_me:$LINENO: checking $ac_header usability" >&5
10635echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10636cat >conftest.$ac_ext <<_ACEOF
10637/* confdefs.h. */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */
10642$ac_includes_default
10643#include <$ac_header>
10644_ACEOF
10645rm -f conftest.$ac_objext
10646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10647 (eval $ac_compile) 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
b4e70030
JB
10654 { ac_try='test -z "$ac_c_werror_flag"
10655 || test ! -s conftest.err'
bec39cab
AC
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest.$ac_objext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_header_compiler=yes
10668else
10669 echo "$as_me: failed program was:" >&5
10670sed 's/^/| /' conftest.$ac_ext >&5
10671
b4e70030 10672ac_header_compiler=no
bec39cab
AC
10673fi
10674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10675echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10676echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10677
10678# Is the header present?
b4e70030
JB
10679echo "$as_me:$LINENO: checking $ac_header presence" >&5
10680echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10681cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h. */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */
10687#include <$ac_header>
10688_ACEOF
10689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } >/dev/null; then
10697 if test -s conftest.err; then
10698 ac_cpp_err=$ac_c_preproc_warn_flag
10699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10700 else
10701 ac_cpp_err=
10702 fi
5ee754fc 10703else
bec39cab 10704 ac_cpp_err=yes
5ee754fc 10705fi
bec39cab
AC
10706if test -z "$ac_cpp_err"; then
10707 ac_header_preproc=yes
10708else
10709 echo "$as_me: failed program was:" >&5
10710sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10711
bec39cab 10712 ac_header_preproc=no
5ee754fc 10713fi
bec39cab 10714rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10715echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10716echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10717
bec39cab
AC
10718# So? What about this header?
10719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10720 yes:no: )
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10722echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10724echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10725 ac_header_preproc=yes
10726 ;;
10727 no:yes:* )
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10729echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10731echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10733echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10735echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10739echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10740 (
10741 cat <<\_ASBOX
10742## ------------------------------------------ ##
10743## Report this to the AC_PACKAGE_NAME lists. ##
10744## ------------------------------------------ ##
10745_ASBOX
10746 ) |
10747 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10748 ;;
10749esac
b4e70030
JB
10750echo "$as_me:$LINENO: checking for $ac_header" >&5
10751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10752if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10753 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10754else
bec39cab 10755 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10756fi
b4e70030
JB
10757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10759
10760fi
bec39cab
AC
10761if test `eval echo '${'$as_ac_Header'}'` = yes; then
10762 cat >>confdefs.h <<_ACEOF
10763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10764_ACEOF
10765
5ee754fc
MK
10766fi
10767
bec39cab 10768done
5ee754fc 10769
5ee754fc 10770
bec39cab 10771for ac_header in sys/param.h
5ee754fc 10772do
bec39cab 10773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10774if eval "test \"\${$as_ac_Header+set}\" = set"; then
10775 echo "$as_me:$LINENO: checking for $ac_header" >&5
10776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10777if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779fi
b4e70030
JB
10780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10782else
10783 # Is the header compilable?
b4e70030
JB
10784echo "$as_me:$LINENO: checking $ac_header usability" >&5
10785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10786cat >conftest.$ac_ext <<_ACEOF
10787/* confdefs.h. */
10788_ACEOF
10789cat confdefs.h >>conftest.$ac_ext
10790cat >>conftest.$ac_ext <<_ACEOF
10791/* end confdefs.h. */
10792$ac_includes_default
10793#include <$ac_header>
10794_ACEOF
10795rm -f conftest.$ac_objext
10796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10797 (eval $ac_compile) 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
b4e70030
JB
10804 { ac_try='test -z "$ac_c_werror_flag"
10805 || test ! -s conftest.err'
bec39cab
AC
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_header_compiler=yes
10818else
10819 echo "$as_me: failed program was:" >&5
10820sed 's/^/| /' conftest.$ac_ext >&5
10821
b4e70030 10822ac_header_compiler=no
bec39cab
AC
10823fi
10824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10826echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10827
10828# Is the header present?
b4e70030
JB
10829echo "$as_me:$LINENO: checking $ac_header presence" >&5
10830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10831cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
10837#include <$ac_header>
10838_ACEOF
10839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } >/dev/null; then
10847 if test -s conftest.err; then
10848 ac_cpp_err=$ac_c_preproc_warn_flag
10849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10850 else
10851 ac_cpp_err=
10852 fi
5ee754fc 10853else
bec39cab 10854 ac_cpp_err=yes
5ee754fc 10855fi
bec39cab
AC
10856if test -z "$ac_cpp_err"; then
10857 ac_header_preproc=yes
10858else
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10861
bec39cab 10862 ac_header_preproc=no
5ee754fc 10863fi
bec39cab 10864rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10866echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10867
10868# So? What about this header?
10869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10870 yes:no: )
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10875 ac_header_preproc=yes
10876 ;;
10877 no:yes:* )
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10890 (
10891 cat <<\_ASBOX
10892## ------------------------------------------ ##
10893## Report this to the AC_PACKAGE_NAME lists. ##
10894## ------------------------------------------ ##
10895_ASBOX
10896 ) |
10897 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10898 ;;
10899esac
b4e70030
JB
10900echo "$as_me:$LINENO: checking for $ac_header" >&5
10901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10902if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10903 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10904else
bec39cab 10905 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10906fi
b4e70030
JB
10907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10909
5ee754fc 10910fi
bec39cab
AC
10911if test `eval echo '${'$as_ac_Header'}'` = yes; then
10912 cat >>confdefs.h <<_ACEOF
10913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10914_ACEOF
10915
5ee754fc 10916fi
bec39cab 10917
5ee754fc
MK
10918done
10919
bec39cab
AC
10920
10921for ac_header in sys/proc.h
5ee754fc 10922do
bec39cab 10923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10924echo "$as_me:$LINENO: checking for $ac_header" >&5
10925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10926if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10927 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10928else
7cb9022a 10929 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10930/* confdefs.h. */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h. */
7cb9022a
MK
10935#if HAVE_SYS_PARAM_H
10936# include <sys/param.h>
10937#endif
10938
10939
bec39cab
AC
10940#include <$ac_header>
10941_ACEOF
10942rm -f conftest.$ac_objext
10943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10945 ac_status=$?
10946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
b4e70030
JB
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
bec39cab
AC
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
7cb9022a 10964 eval "$as_ac_Header=yes"
bec39cab
AC
10965else
10966 echo "$as_me: failed program was:" >&5
10967sed 's/^/| /' conftest.$ac_ext >&5
10968
b4e70030 10969eval "$as_ac_Header=no"
bec39cab
AC
10970fi
10971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10972fi
b4e70030
JB
10973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10975if test `eval echo '${'$as_ac_Header'}'` = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10978_ACEOF
10979
5ee754fc 10980fi
bec39cab 10981
5ee754fc
MK
10982done
10983
bec39cab
AC
10984
10985for ac_header in sys/procfs.h
5ee754fc 10986do
bec39cab 10987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10988if eval "test \"\${$as_ac_Header+set}\" = set"; then
10989 echo "$as_me:$LINENO: checking for $ac_header" >&5
10990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10991if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993fi
b4e70030
JB
10994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10996else
10997 # Is the header compilable?
b4e70030
JB
10998echo "$as_me:$LINENO: checking $ac_header usability" >&5
10999echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11000cat >conftest.$ac_ext <<_ACEOF
11001/* confdefs.h. */
11002_ACEOF
11003cat confdefs.h >>conftest.$ac_ext
11004cat >>conftest.$ac_ext <<_ACEOF
11005/* end confdefs.h. */
11006$ac_includes_default
11007#include <$ac_header>
11008_ACEOF
11009rm -f conftest.$ac_objext
11010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
b4e70030
JB
11018 { ac_try='test -z "$ac_c_werror_flag"
11019 || test ! -s conftest.err'
bec39cab
AC
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_header_compiler=yes
11032else
11033 echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
b4e70030 11036ac_header_compiler=no
bec39cab
AC
11037fi
11038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11039echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11040echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11041
11042# Is the header present?
b4e70030
JB
11043echo "$as_me:$LINENO: checking $ac_header presence" >&5
11044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11045cat >conftest.$ac_ext <<_ACEOF
11046/* confdefs.h. */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
11050/* end confdefs.h. */
11051#include <$ac_header>
11052_ACEOF
11053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } >/dev/null; then
11061 if test -s conftest.err; then
11062 ac_cpp_err=$ac_c_preproc_warn_flag
11063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11064 else
11065 ac_cpp_err=
11066 fi
11067else
11068 ac_cpp_err=yes
5ee754fc 11069fi
bec39cab
AC
11070if test -z "$ac_cpp_err"; then
11071 ac_header_preproc=yes
5ee754fc 11072else
bec39cab
AC
11073 echo "$as_me: failed program was:" >&5
11074sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 ac_header_preproc=no
5ee754fc 11077fi
bec39cab 11078rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11080echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11081
bec39cab
AC
11082# So? What about this header?
11083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11084 yes:no: )
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11089 ac_header_preproc=yes
11090 ;;
11091 no:yes:* )
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11095echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11099echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11104 (
11105 cat <<\_ASBOX
11106## ------------------------------------------ ##
11107## Report this to the AC_PACKAGE_NAME lists. ##
11108## ------------------------------------------ ##
11109_ASBOX
11110 ) |
11111 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11112 ;;
11113esac
b4e70030
JB
11114echo "$as_me:$LINENO: checking for $ac_header" >&5
11115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11116if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118else
11119 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11120fi
b4e70030
JB
11121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11123
5ee754fc 11124fi
bec39cab
AC
11125if test `eval echo '${'$as_ac_Header'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128_ACEOF
11129
5ee754fc 11130fi
bec39cab 11131
5ee754fc
MK
11132done
11133
bec39cab
AC
11134
11135
11136for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11137do
bec39cab 11138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11139if eval "test \"\${$as_ac_Header+set}\" = set"; then
11140 echo "$as_me:$LINENO: checking for $ac_header" >&5
11141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11142if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144fi
b4e70030
JB
11145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11147else
11148 # Is the header compilable?
b4e70030
JB
11149echo "$as_me:$LINENO: checking $ac_header usability" >&5
11150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11151cat >conftest.$ac_ext <<_ACEOF
11152/* confdefs.h. */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
11156/* end confdefs.h. */
11157$ac_includes_default
11158#include <$ac_header>
11159_ACEOF
11160rm -f conftest.$ac_objext
11161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
b4e70030
JB
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
bec39cab
AC
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_header_compiler=yes
11183else
11184 echo "$as_me: failed program was:" >&5
11185sed 's/^/| /' conftest.$ac_ext >&5
11186
b4e70030 11187ac_header_compiler=no
bec39cab
AC
11188fi
11189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11191echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11192
11193# Is the header present?
b4e70030
JB
11194echo "$as_me:$LINENO: checking $ac_header presence" >&5
11195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11196cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202#include <$ac_header>
11203_ACEOF
11204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } >/dev/null; then
11212 if test -s conftest.err; then
11213 ac_cpp_err=$ac_c_preproc_warn_flag
11214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11215 else
11216 ac_cpp_err=
11217 fi
11218else
11219 ac_cpp_err=yes
5ee754fc 11220fi
bec39cab
AC
11221if test -z "$ac_cpp_err"; then
11222 ac_header_preproc=yes
5ee754fc 11223else
bec39cab
AC
11224 echo "$as_me: failed program was:" >&5
11225sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 ac_header_preproc=no
5ee754fc 11228fi
bec39cab 11229rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11231echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11232
bec39cab
AC
11233# So? What about this header?
11234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11235 yes:no: )
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11240 ac_header_preproc=yes
11241 ;;
11242 no:yes:* )
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11255 (
11256 cat <<\_ASBOX
11257## ------------------------------------------ ##
11258## Report this to the AC_PACKAGE_NAME lists. ##
11259## ------------------------------------------ ##
11260_ASBOX
11261 ) |
11262 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11263 ;;
11264esac
b4e70030
JB
11265echo "$as_me:$LINENO: checking for $ac_header" >&5
11266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11267if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269else
11270 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11271fi
b4e70030
JB
11272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11274
5ee754fc 11275fi
bec39cab
AC
11276if test `eval echo '${'$as_ac_Header'}'` = yes; then
11277 cat >>confdefs.h <<_ACEOF
11278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279_ACEOF
11280
5ee754fc 11281fi
bec39cab 11282
5ee754fc
MK
11283done
11284
bec39cab
AC
11285
11286
11287for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11288do
bec39cab 11289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11290if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo "$as_me:$LINENO: checking for $ac_header" >&5
11292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11293if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295fi
b4e70030
JB
11296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11298else
11299 # Is the header compilable?
b4e70030
JB
11300echo "$as_me:$LINENO: checking $ac_header usability" >&5
11301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11302cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h. */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h. */
11308$ac_includes_default
11309#include <$ac_header>
11310_ACEOF
11311rm -f conftest.$ac_objext
11312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313 (eval $ac_compile) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
b4e70030
JB
11320 { ac_try='test -z "$ac_c_werror_flag"
11321 || test ! -s conftest.err'
bec39cab
AC
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest.$ac_objext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 ac_header_compiler=yes
11334else
11335 echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
b4e70030 11338ac_header_compiler=no
bec39cab
AC
11339fi
11340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11343
11344# Is the header present?
b4e70030
JB
11345echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11347cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
11353#include <$ac_header>
11354_ACEOF
11355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } >/dev/null; then
11363 if test -s conftest.err; then
11364 ac_cpp_err=$ac_c_preproc_warn_flag
11365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366 else
11367 ac_cpp_err=
11368 fi
11369else
11370 ac_cpp_err=yes
5ee754fc 11371fi
bec39cab
AC
11372if test -z "$ac_cpp_err"; then
11373 ac_header_preproc=yes
5ee754fc 11374else
bec39cab
AC
11375 echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 ac_header_preproc=no
5ee754fc 11379fi
bec39cab 11380rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11382echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11383
bec39cab
AC
11384# So? What about this header?
11385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386 yes:no: )
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11391 ac_header_preproc=yes
11392 ;;
11393 no:yes:* )
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11406 (
11407 cat <<\_ASBOX
11408## ------------------------------------------ ##
11409## Report this to the AC_PACKAGE_NAME lists. ##
11410## ------------------------------------------ ##
11411_ASBOX
11412 ) |
11413 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11414 ;;
11415esac
b4e70030
JB
11416echo "$as_me:$LINENO: checking for $ac_header" >&5
11417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11418if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420else
11421 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11422fi
b4e70030
JB
11423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11425
5ee754fc 11426fi
bec39cab
AC
11427if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430_ACEOF
11431
5ee754fc 11432fi
bec39cab 11433
5ee754fc
MK
11434done
11435
bec39cab
AC
11436
11437for ac_header in sys/select.h
5ee754fc 11438do
bec39cab 11439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11440if eval "test \"\${$as_ac_Header+set}\" = set"; then
11441 echo "$as_me:$LINENO: checking for $ac_header" >&5
11442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11443if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445fi
b4e70030
JB
11446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11448else
11449 # Is the header compilable?
b4e70030
JB
11450echo "$as_me:$LINENO: checking $ac_header usability" >&5
11451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11452cat >conftest.$ac_ext <<_ACEOF
11453/* confdefs.h. */
11454_ACEOF
11455cat confdefs.h >>conftest.$ac_ext
11456cat >>conftest.$ac_ext <<_ACEOF
11457/* end confdefs.h. */
11458$ac_includes_default
11459#include <$ac_header>
11460_ACEOF
11461rm -f conftest.$ac_objext
11462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
b4e70030
JB
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
bec39cab
AC
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest.$ac_objext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_header_compiler=yes
11484else
11485 echo "$as_me: failed program was:" >&5
11486sed 's/^/| /' conftest.$ac_ext >&5
11487
b4e70030 11488ac_header_compiler=no
bec39cab
AC
11489fi
11490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11491echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11493
11494# Is the header present?
b4e70030
JB
11495echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11497cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503#include <$ac_header>
11504_ACEOF
11505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } >/dev/null; then
11513 if test -s conftest.err; then
11514 ac_cpp_err=$ac_c_preproc_warn_flag
11515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11516 else
11517 ac_cpp_err=
11518 fi
11519else
11520 ac_cpp_err=yes
5ee754fc 11521fi
bec39cab
AC
11522if test -z "$ac_cpp_err"; then
11523 ac_header_preproc=yes
5ee754fc 11524else
bec39cab
AC
11525 echo "$as_me: failed program was:" >&5
11526sed 's/^/| /' conftest.$ac_ext >&5
11527
11528 ac_header_preproc=no
5ee754fc 11529fi
bec39cab 11530rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11531echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11532echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11533
bec39cab
AC
11534# So? What about this header?
11535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11536 yes:no: )
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11540echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11541 ac_header_preproc=yes
11542 ;;
11543 no:yes:* )
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11547echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11549echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11551echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11555echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11556 (
11557 cat <<\_ASBOX
11558## ------------------------------------------ ##
11559## Report this to the AC_PACKAGE_NAME lists. ##
11560## ------------------------------------------ ##
11561_ASBOX
11562 ) |
11563 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11564 ;;
11565esac
b4e70030
JB
11566echo "$as_me:$LINENO: checking for $ac_header" >&5
11567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11568if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570else
11571 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11572fi
b4e70030
JB
11573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11575
5ee754fc 11576fi
bec39cab
AC
11577if test `eval echo '${'$as_ac_Header'}'` = yes; then
11578 cat >>confdefs.h <<_ACEOF
11579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11580_ACEOF
11581
5ee754fc 11582fi
bec39cab 11583
5ee754fc
MK
11584done
11585
bec39cab
AC
11586
11587for ac_header in sys/syscall.h
5ee754fc 11588do
bec39cab 11589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11590if eval "test \"\${$as_ac_Header+set}\" = set"; then
11591 echo "$as_me:$LINENO: checking for $ac_header" >&5
11592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11593if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595fi
b4e70030
JB
11596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11598else
11599 # Is the header compilable?
b4e70030
JB
11600echo "$as_me:$LINENO: checking $ac_header usability" >&5
11601echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11602cat >conftest.$ac_ext <<_ACEOF
11603/* confdefs.h. */
11604_ACEOF
11605cat confdefs.h >>conftest.$ac_ext
11606cat >>conftest.$ac_ext <<_ACEOF
11607/* end confdefs.h. */
11608$ac_includes_default
11609#include <$ac_header>
11610_ACEOF
11611rm -f conftest.$ac_objext
11612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11613 (eval $ac_compile) 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
b4e70030
JB
11620 { ac_try='test -z "$ac_c_werror_flag"
11621 || test ! -s conftest.err'
bec39cab
AC
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest.$ac_objext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_header_compiler=yes
11634else
11635 echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
11637
b4e70030 11638ac_header_compiler=no
bec39cab
AC
11639fi
11640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11643
11644# Is the header present?
b4e70030
JB
11645echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11647cat >conftest.$ac_ext <<_ACEOF
11648/* confdefs.h. */
11649_ACEOF
11650cat confdefs.h >>conftest.$ac_ext
11651cat >>conftest.$ac_ext <<_ACEOF
11652/* end confdefs.h. */
11653#include <$ac_header>
11654_ACEOF
11655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } >/dev/null; then
11663 if test -s conftest.err; then
11664 ac_cpp_err=$ac_c_preproc_warn_flag
11665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11666 else
11667 ac_cpp_err=
11668 fi
11669else
11670 ac_cpp_err=yes
5ee754fc 11671fi
bec39cab
AC
11672if test -z "$ac_cpp_err"; then
11673 ac_header_preproc=yes
5ee754fc 11674else
bec39cab
AC
11675 echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 ac_header_preproc=no
5ee754fc 11679fi
bec39cab 11680rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11682echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11683
bec39cab
AC
11684# So? What about this header?
11685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 yes:no: )
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11691 ac_header_preproc=yes
11692 ;;
11693 no:yes:* )
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11701echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11706 (
11707 cat <<\_ASBOX
11708## ------------------------------------------ ##
11709## Report this to the AC_PACKAGE_NAME lists. ##
11710## ------------------------------------------ ##
11711_ASBOX
11712 ) |
11713 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11714 ;;
11715esac
b4e70030
JB
11716echo "$as_me:$LINENO: checking for $ac_header" >&5
11717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11718if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11722fi
b4e70030
JB
11723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11725
5ee754fc 11726fi
bec39cab
AC
11727if test `eval echo '${'$as_ac_Header'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11730_ACEOF
11731
5ee754fc 11732fi
bec39cab 11733
5ee754fc
MK
11734done
11735
bec39cab
AC
11736
11737for ac_header in sys/types.h
5ee754fc 11738do
bec39cab 11739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11740if eval "test \"\${$as_ac_Header+set}\" = set"; then
11741 echo "$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
AC
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745fi
b4e70030
JB
11746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11748else
11749 # Is the header compilable?
b4e70030
JB
11750echo "$as_me:$LINENO: checking $ac_header usability" >&5
11751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11752cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758$ac_includes_default
11759#include <$ac_header>
11760_ACEOF
11761rm -f conftest.$ac_objext
11762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
b4e70030
JB
11770 { ac_try='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
bec39cab
AC
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_header_compiler=yes
11784else
11785 echo "$as_me: failed program was:" >&5
11786sed 's/^/| /' conftest.$ac_ext >&5
11787
b4e70030 11788ac_header_compiler=no
bec39cab
AC
11789fi
11790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11792echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11793
11794# Is the header present?
b4e70030
JB
11795echo "$as_me:$LINENO: checking $ac_header presence" >&5
11796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11797cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
11803#include <$ac_header>
11804_ACEOF
11805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } >/dev/null; then
11813 if test -s conftest.err; then
11814 ac_cpp_err=$ac_c_preproc_warn_flag
11815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11816 else
11817 ac_cpp_err=
11818 fi
11819else
11820 ac_cpp_err=yes
5ee754fc 11821fi
bec39cab
AC
11822if test -z "$ac_cpp_err"; then
11823 ac_header_preproc=yes
5ee754fc 11824else
bec39cab
AC
11825 echo "$as_me: failed program was:" >&5
11826sed 's/^/| /' conftest.$ac_ext >&5
11827
11828 ac_header_preproc=no
5ee754fc 11829fi
bec39cab 11830rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11832echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11833
bec39cab
AC
11834# So? What about this header?
11835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11836 yes:no: )
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11841 ac_header_preproc=yes
11842 ;;
11843 no:yes:* )
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11851echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11856 (
11857 cat <<\_ASBOX
11858## ------------------------------------------ ##
11859## Report this to the AC_PACKAGE_NAME lists. ##
11860## ------------------------------------------ ##
11861_ASBOX
11862 ) |
11863 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11864 ;;
11865esac
b4e70030
JB
11866echo "$as_me:$LINENO: checking for $ac_header" >&5
11867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11868if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870else
11871 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11872fi
b4e70030
JB
11873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11875
5ee754fc 11876fi
bec39cab
AC
11877if test `eval echo '${'$as_ac_Header'}'` = yes; then
11878 cat >>confdefs.h <<_ACEOF
11879#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11880_ACEOF
11881
5ee754fc 11882fi
bec39cab 11883
5ee754fc
MK
11884done
11885
bec39cab
AC
11886
11887for ac_header in sys/user.h
5ee754fc 11888do
bec39cab 11889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11890echo "$as_me:$LINENO: checking for $ac_header" >&5
11891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11892if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11893 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11894else
7cb9022a 11895 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11896/* confdefs.h. */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h. */
7cb9022a
MK
11901#if HAVE_SYS_PARAM_H
11902# include <sys/param.h>
11903#endif
11904
11905
bec39cab
AC
11906#include <$ac_header>
11907_ACEOF
11908rm -f conftest.$ac_objext
11909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11910 (eval $ac_compile) 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
b4e70030
JB
11917 { ac_try='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
bec39cab
AC
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
7cb9022a 11930 eval "$as_ac_Header=yes"
bec39cab
AC
11931else
11932 echo "$as_me: failed program was:" >&5
11933sed 's/^/| /' conftest.$ac_ext >&5
11934
b4e70030 11935eval "$as_ac_Header=no"
bec39cab
AC
11936fi
11937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11938fi
b4e70030
JB
11939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11941if test `eval echo '${'$as_ac_Header'}'` = yes; then
11942 cat >>confdefs.h <<_ACEOF
11943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11944_ACEOF
11945
5ee754fc 11946fi
bec39cab 11947
5ee754fc
MK
11948done
11949
bec39cab
AC
11950
11951
11952for ac_header in sys/wait.h wait.h
5ee754fc 11953do
bec39cab 11954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11955if eval "test \"\${$as_ac_Header+set}\" = set"; then
11956 echo "$as_me:$LINENO: checking for $ac_header" >&5
11957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11958if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960fi
b4e70030
JB
11961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11963else
11964 # Is the header compilable?
b4e70030
JB
11965echo "$as_me:$LINENO: checking $ac_header usability" >&5
11966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11967cat >conftest.$ac_ext <<_ACEOF
11968/* confdefs.h. */
11969_ACEOF
11970cat confdefs.h >>conftest.$ac_ext
11971cat >>conftest.$ac_ext <<_ACEOF
11972/* end confdefs.h. */
11973$ac_includes_default
11974#include <$ac_header>
11975_ACEOF
11976rm -f conftest.$ac_objext
11977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11978 (eval $ac_compile) 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
b4e70030
JB
11985 { ac_try='test -z "$ac_c_werror_flag"
11986 || test ! -s conftest.err'
bec39cab
AC
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest.$ac_objext'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 ac_header_compiler=yes
11999else
12000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
b4e70030 12003ac_header_compiler=no
bec39cab
AC
12004fi
12005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12006echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12007echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12008
12009# Is the header present?
b4e70030
JB
12010echo "$as_me:$LINENO: checking $ac_header presence" >&5
12011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12012cat >conftest.$ac_ext <<_ACEOF
12013/* confdefs.h. */
12014_ACEOF
12015cat confdefs.h >>conftest.$ac_ext
12016cat >>conftest.$ac_ext <<_ACEOF
12017/* end confdefs.h. */
12018#include <$ac_header>
12019_ACEOF
12020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } >/dev/null; then
12028 if test -s conftest.err; then
12029 ac_cpp_err=$ac_c_preproc_warn_flag
12030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12031 else
12032 ac_cpp_err=
12033 fi
12034else
12035 ac_cpp_err=yes
5ee754fc 12036fi
bec39cab
AC
12037if test -z "$ac_cpp_err"; then
12038 ac_header_preproc=yes
5ee754fc 12039else
bec39cab
AC
12040 echo "$as_me: failed program was:" >&5
12041sed 's/^/| /' conftest.$ac_ext >&5
12042
12043 ac_header_preproc=no
5ee754fc 12044fi
bec39cab 12045rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12046echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12047echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 12048
bec39cab
AC
12049# So? What about this header?
12050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12051 yes:no: )
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12055echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12056 ac_header_preproc=yes
12057 ;;
12058 no:yes:* )
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12062echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12064echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12066echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12070echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12071 (
12072 cat <<\_ASBOX
12073## ------------------------------------------ ##
12074## Report this to the AC_PACKAGE_NAME lists. ##
12075## ------------------------------------------ ##
12076_ASBOX
12077 ) |
12078 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12079 ;;
12080esac
b4e70030
JB
12081echo "$as_me:$LINENO: checking for $ac_header" >&5
12082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12083if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085else
12086 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12087fi
b4e70030
JB
12088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12090
9608ab8b 12091fi
bec39cab
AC
12092if test `eval echo '${'$as_ac_Header'}'` = yes; then
12093 cat >>confdefs.h <<_ACEOF
12094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12095_ACEOF
12096
9608ab8b 12097fi
bec39cab 12098
9608ab8b 12099done
5ee754fc 12100
bec39cab
AC
12101
12102
12103
12104for ac_header in termios.h termio.h sgtty.h
5ee754fc 12105do
bec39cab 12106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12107if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108 echo "$as_me:$LINENO: checking for $ac_header" >&5
12109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12110if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112fi
b4e70030
JB
12113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12115else
12116 # Is the header compilable?
b4e70030
JB
12117echo "$as_me:$LINENO: checking $ac_header usability" >&5
12118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12119cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h. */
12125$ac_includes_default
12126#include <$ac_header>
12127_ACEOF
12128rm -f conftest.$ac_objext
12129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130 (eval $ac_compile) 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
b4e70030
JB
12137 { ac_try='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
bec39cab
AC
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_header_compiler=yes
12151else
12152 echo "$as_me: failed program was:" >&5
12153sed 's/^/| /' conftest.$ac_ext >&5
12154
b4e70030 12155ac_header_compiler=no
bec39cab
AC
12156fi
12157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12158echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12159echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12160
12161# Is the header present?
b4e70030
JB
12162echo "$as_me:$LINENO: checking $ac_header presence" >&5
12163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12164cat >conftest.$ac_ext <<_ACEOF
12165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
12170#include <$ac_header>
12171_ACEOF
12172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null; then
12180 if test -s conftest.err; then
12181 ac_cpp_err=$ac_c_preproc_warn_flag
12182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12183 else
12184 ac_cpp_err=
12185 fi
12186else
12187 ac_cpp_err=yes
9608ab8b 12188fi
bec39cab
AC
12189if test -z "$ac_cpp_err"; then
12190 ac_header_preproc=yes
9608ab8b 12191else
bec39cab
AC
12192 echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
12195 ac_header_preproc=no
9608ab8b 12196fi
bec39cab 12197rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12198echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12199echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12200
bec39cab
AC
12201# So? What about this header?
12202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12203 yes:no: )
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12208 ac_header_preproc=yes
12209 ;;
12210 no:yes:* )
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12223 (
12224 cat <<\_ASBOX
12225## ------------------------------------------ ##
12226## Report this to the AC_PACKAGE_NAME lists. ##
12227## ------------------------------------------ ##
12228_ASBOX
12229 ) |
12230 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12231 ;;
12232esac
b4e70030
JB
12233echo "$as_me:$LINENO: checking for $ac_header" >&5
12234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12235if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237else
12238 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12239fi
b4e70030
JB
12240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12242
9608ab8b 12243fi
bec39cab
AC
12244if test `eval echo '${'$as_ac_Header'}'` = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12247_ACEOF
12248
9608ab8b 12249fi
bec39cab 12250
5ee754fc 12251done
9608ab8b 12252
bec39cab
AC
12253
12254for ac_header in unistd.h
78434e59 12255do
bec39cab 12256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12257if eval "test \"\${$as_ac_Header+set}\" = set"; then
12258 echo "$as_me:$LINENO: checking for $ac_header" >&5
12259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12260if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262fi
b4e70030
JB
12263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12265else
12266 # Is the header compilable?
b4e70030
JB
12267echo "$as_me:$LINENO: checking $ac_header usability" >&5
12268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12269cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
12275$ac_includes_default
12276#include <$ac_header>
12277_ACEOF
12278rm -f conftest.$ac_objext
12279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12280 (eval $ac_compile) 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
b4e70030
JB
12287 { ac_try='test -z "$ac_c_werror_flag"
12288 || test ! -s conftest.err'
bec39cab
AC
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest.$ac_objext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_header_compiler=yes
12301else
12302 echo "$as_me: failed program was:" >&5
12303sed 's/^/| /' conftest.$ac_ext >&5
12304
b4e70030 12305ac_header_compiler=no
bec39cab
AC
12306fi
12307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12308echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12309echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12310
12311# Is the header present?
b4e70030
JB
12312echo "$as_me:$LINENO: checking $ac_header presence" >&5
12313echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12314cat >conftest.$ac_ext <<_ACEOF
12315/* confdefs.h. */
12316_ACEOF
12317cat confdefs.h >>conftest.$ac_ext
12318cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h. */
12320#include <$ac_header>
12321_ACEOF
12322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12323 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
12330 if test -s conftest.err; then
12331 ac_cpp_err=$ac_c_preproc_warn_flag
12332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12333 else
12334 ac_cpp_err=
12335 fi
12336else
12337 ac_cpp_err=yes
78434e59 12338fi
bec39cab
AC
12339if test -z "$ac_cpp_err"; then
12340 ac_header_preproc=yes
78434e59 12341else
bec39cab
AC
12342 echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
12345 ac_header_preproc=no
78434e59 12346fi
bec39cab 12347rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12348echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12349echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12350
bec39cab
AC
12351# So? What about this header?
12352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12353 yes:no: )
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12357echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12358 ac_header_preproc=yes
12359 ;;
12360 no:yes:* )
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12364echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12366echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12368echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12370echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12372echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12373 (
12374 cat <<\_ASBOX
12375## ------------------------------------------ ##
12376## Report this to the AC_PACKAGE_NAME lists. ##
12377## ------------------------------------------ ##
12378_ASBOX
12379 ) |
12380 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12381 ;;
12382esac
b4e70030
JB
12383echo "$as_me:$LINENO: checking for $ac_header" >&5
12384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12385if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387else
12388 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12389fi
b4e70030
JB
12390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12392
086ec9eb 12393fi
bec39cab
AC
12394if test `eval echo '${'$as_ac_Header'}'` = yes; then
12395 cat >>confdefs.h <<_ACEOF
12396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12397_ACEOF
12398
086ec9eb 12399fi
bec39cab 12400
086ec9eb
MK
12401done
12402
9608ab8b 12403
b1d19a62 12404# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12405# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12406# think that we don't have <curses.h> if we're using GCC.
12407case $host_os in
b1d19a62 12408 solaris2.[789])
5ee754fc 12409 if test "$GCC" = yes; then
bec39cab
AC
12410
12411cat >>confdefs.h <<\_ACEOF
5ee754fc 12412#define _MSE_INT_H 1
bec39cab 12413_ACEOF
5ee754fc
MK
12414
12415 fi ;;
12416esac
bec39cab
AC
12417
12418
12419
12420
12421for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12422do
bec39cab 12423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12424if eval "test \"\${$as_ac_Header+set}\" = set"; then
12425 echo "$as_me:$LINENO: checking for $ac_header" >&5
12426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12427if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12429fi
b4e70030
JB
12430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12432else
12433 # Is the header compilable?
b4e70030
JB
12434echo "$as_me:$LINENO: checking $ac_header usability" >&5
12435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12436cat >conftest.$ac_ext <<_ACEOF
12437/* confdefs.h. */
12438_ACEOF
12439cat confdefs.h >>conftest.$ac_ext
12440cat >>conftest.$ac_ext <<_ACEOF
12441/* end confdefs.h. */
12442$ac_includes_default
12443#include <$ac_header>
12444_ACEOF
12445rm -f conftest.$ac_objext
12446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
b4e70030
JB
12454 { ac_try='test -z "$ac_c_werror_flag"
12455 || test ! -s conftest.err'
bec39cab
AC
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest.$ac_objext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_header_compiler=yes
12468else
12469 echo "$as_me: failed program was:" >&5
12470sed 's/^/| /' conftest.$ac_ext >&5
12471
b4e70030 12472ac_header_compiler=no
bec39cab
AC
12473fi
12474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12477
12478# Is the header present?
b4e70030
JB
12479echo "$as_me:$LINENO: checking $ac_header presence" >&5
12480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12481cat >conftest.$ac_ext <<_ACEOF
12482/* confdefs.h. */
12483_ACEOF
12484cat confdefs.h >>conftest.$ac_ext
12485cat >>conftest.$ac_ext <<_ACEOF
12486/* end confdefs.h. */
12487#include <$ac_header>
12488_ACEOF
12489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } >/dev/null; then
12497 if test -s conftest.err; then
12498 ac_cpp_err=$ac_c_preproc_warn_flag
12499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12500 else
12501 ac_cpp_err=
12502 fi
12503else
12504 ac_cpp_err=yes
c906108c 12505fi
bec39cab
AC
12506if test -z "$ac_cpp_err"; then
12507 ac_header_preproc=yes
12508else
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
12512 ac_header_preproc=no
c906108c 12513fi
bec39cab 12514rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12517
12518# So? What about this header?
12519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12520 yes:no: )
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12525 ac_header_preproc=yes
12526 ;;
12527 no:yes:* )
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12540 (
12541 cat <<\_ASBOX
12542## ------------------------------------------ ##
12543## Report this to the AC_PACKAGE_NAME lists. ##
12544## ------------------------------------------ ##
12545_ASBOX
12546 ) |
12547 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12548 ;;
12549esac
b4e70030
JB
12550echo "$as_me:$LINENO: checking for $ac_header" >&5
12551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12552if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12553 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12554else
bec39cab 12555 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12556fi
b4e70030
JB
12557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12559
12560fi
12561if test `eval echo '${'$as_ac_Header'}'` = yes; then
12562 cat >>confdefs.h <<_ACEOF
12563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12564_ACEOF
12565
12566fi
12567
5ee754fc 12568done
c906108c 12569
bec39cab 12570
065a1afc 12571for ac_header in ncurses/term.h
3b78cdbb 12572do
bec39cab 12573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12574if eval "test \"\${$as_ac_Header+set}\" = set"; then
12575 echo "$as_me:$LINENO: checking for $ac_header" >&5
12576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12577if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579fi
b4e70030
JB
12580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12582else
12583 # Is the header compilable?
b4e70030
JB
12584echo "$as_me:$LINENO: checking $ac_header usability" >&5
12585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12586cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
12592$ac_includes_default
12593#include <$ac_header>
12594_ACEOF
12595rm -f conftest.$ac_objext
12596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12597 (eval $ac_compile) 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
b4e70030
JB
12604 { ac_try='test -z "$ac_c_werror_flag"
12605 || test ! -s conftest.err'
bec39cab
AC
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest.$ac_objext'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_header_compiler=yes
12618else
12619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
b4e70030 12622ac_header_compiler=no
bec39cab
AC
12623fi
12624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12627
12628# Is the header present?
b4e70030
JB
12629echo "$as_me:$LINENO: checking $ac_header presence" >&5
12630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12631cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637#include <$ac_header>
12638_ACEOF
12639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } >/dev/null; then
12647 if test -s conftest.err; then
12648 ac_cpp_err=$ac_c_preproc_warn_flag
12649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12650 else
12651 ac_cpp_err=
12652 fi
12653else
12654 ac_cpp_err=yes
3b78cdbb 12655fi
bec39cab
AC
12656if test -z "$ac_cpp_err"; then
12657 ac_header_preproc=yes
12658else
12659 echo "$as_me: failed program was:" >&5
12660sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 ac_header_preproc=no
3b78cdbb 12663fi
bec39cab 12664rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12666echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12667
12668# So? What about this header?
12669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12670 yes:no: )
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12675 ac_header_preproc=yes
12676 ;;
12677 no:yes:* )
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12690 (
12691 cat <<\_ASBOX
12692## ------------------------------------------ ##
12693## Report this to the AC_PACKAGE_NAME lists. ##
12694## ------------------------------------------ ##
12695_ASBOX
12696 ) |
12697 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12698 ;;
12699esac
b4e70030
JB
12700echo "$as_me:$LINENO: checking for $ac_header" >&5
12701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12702if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12703 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12704else
bec39cab
AC
12705 eval "$as_ac_Header=\$ac_header_preproc"
12706fi
b4e70030
JB
12707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12709
3b78cdbb 12710fi
bec39cab
AC
12711if test `eval echo '${'$as_ac_Header'}'` = yes; then
12712 cat >>confdefs.h <<_ACEOF
12713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12714_ACEOF
12715
12716fi
12717
3b78cdbb
DA
12718done
12719
c906108c 12720
065a1afc
JB
12721for ac_header in term.h
12722do
12723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12724echo "$as_me:$LINENO: checking for $ac_header" >&5
12725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12726if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12728else
12729 cat >conftest.$ac_ext <<_ACEOF
12730/* confdefs.h. */
12731_ACEOF
12732cat confdefs.h >>conftest.$ac_ext
12733cat >>conftest.$ac_ext <<_ACEOF
12734/* end confdefs.h. */
12735#if HAVE_CURSES_H
12736# include <curses.h>
12737#endif
12738
12739
12740#include <$ac_header>
12741_ACEOF
12742rm -f conftest.$ac_objext
12743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744 (eval $ac_compile) 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
b4e70030
JB
12751 { ac_try='test -z "$ac_c_werror_flag"
12752 || test ! -s conftest.err'
065a1afc
JB
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 eval "$as_ac_Header=yes"
12765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
b4e70030 12769eval "$as_ac_Header=no"
065a1afc
JB
12770fi
12771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772fi
b4e70030
JB
12773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
12775if test `eval echo '${'$as_ac_Header'}'` = yes; then
12776 cat >>confdefs.h <<_ACEOF
12777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12778_ACEOF
12779
12780fi
12781
12782done
12783
12784
5ee754fc
MK
12785# FIXME: kettenis/20030102: In most cases we include these
12786# unconditionally, so what's the point in checking these?
bec39cab
AC
12787
12788
12789for ac_header in ctype.h time.h
c906108c 12790do
bec39cab 12791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12792if eval "test \"\${$as_ac_Header+set}\" = set"; then
12793 echo "$as_me:$LINENO: checking for $ac_header" >&5
12794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12795if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797fi
b4e70030
JB
12798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12800else
12801 # Is the header compilable?
b4e70030
JB
12802echo "$as_me:$LINENO: checking $ac_header usability" >&5
12803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12804cat >conftest.$ac_ext <<_ACEOF
12805/* confdefs.h. */
12806_ACEOF
12807cat confdefs.h >>conftest.$ac_ext
12808cat >>conftest.$ac_ext <<_ACEOF
12809/* end confdefs.h. */
12810$ac_includes_default
12811#include <$ac_header>
12812_ACEOF
12813rm -f conftest.$ac_objext
12814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>conftest.er1
12816 ac_status=$?
12817 grep -v '^ *+' conftest.er1 >conftest.err
12818 rm -f conftest.er1
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
b4e70030
JB
12822 { ac_try='test -z "$ac_c_werror_flag"
12823 || test ! -s conftest.err'
bec39cab
AC
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; } &&
12829 { ac_try='test -s conftest.$ac_objext'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 ac_header_compiler=yes
12836else
12837 echo "$as_me: failed program was:" >&5
12838sed 's/^/| /' conftest.$ac_ext >&5
12839
b4e70030 12840ac_header_compiler=no
bec39cab
AC
12841fi
12842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12844echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12845
12846# Is the header present?
b4e70030
JB
12847echo "$as_me:$LINENO: checking $ac_header presence" >&5
12848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12849cat >conftest.$ac_ext <<_ACEOF
12850/* confdefs.h. */
12851_ACEOF
12852cat confdefs.h >>conftest.$ac_ext
12853cat >>conftest.$ac_ext <<_ACEOF
12854/* end confdefs.h. */
12855#include <$ac_header>
12856_ACEOF
12857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } >/dev/null; then
12865 if test -s conftest.err; then
12866 ac_cpp_err=$ac_c_preproc_warn_flag
12867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12868 else
12869 ac_cpp_err=
12870 fi
12871else
12872 ac_cpp_err=yes
c906108c 12873fi
bec39cab
AC
12874if test -z "$ac_cpp_err"; then
12875 ac_header_preproc=yes
12876else
12877 echo "$as_me: failed program was:" >&5
12878sed 's/^/| /' conftest.$ac_ext >&5
12879
12880 ac_header_preproc=no
c906108c 12881fi
bec39cab 12882rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12884echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12885
12886# So? What about this header?
12887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12888 yes:no: )
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12892echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12893 ac_header_preproc=yes
12894 ;;
12895 no:yes:* )
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12899echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12901echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12903echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12907echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12908 (
12909 cat <<\_ASBOX
12910## ------------------------------------------ ##
12911## Report this to the AC_PACKAGE_NAME lists. ##
12912## ------------------------------------------ ##
12913_ASBOX
12914 ) |
12915 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12916 ;;
12917esac
b4e70030
JB
12918echo "$as_me:$LINENO: checking for $ac_header" >&5
12919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12920if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12921 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12922else
bec39cab
AC
12923 eval "$as_ac_Header=\$ac_header_preproc"
12924fi
b4e70030
JB
12925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12927
12928fi
12929if test `eval echo '${'$as_ac_Header'}'` = yes; then
12930 cat >>confdefs.h <<_ACEOF
12931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12932_ACEOF
12933
c906108c 12934fi
bec39cab 12935
c906108c
SS
12936done
12937
5ee754fc 12938
4e8d927d 12939# Create a header we can use portably to get the standard integer types.
666ec76f 12940
4e8d927d
DJ
12941
12942inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12943
12944acx_cv_header_stdint=stddef.h
12945acx_cv_header_stdint_kind="(already complete)"
12946for i in stdint.h $inttype_headers; do
12947 unset ac_cv_type_uintptr_t
12948 unset ac_cv_type_uintmax_t
12949 unset ac_cv_type_int_least32_t
12950 unset ac_cv_type_int_fast32_t
12951 unset ac_cv_type_uint64_t
12952 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
12953 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12954echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 12955if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 12956 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12957else
bec39cab
AC
12958 cat >conftest.$ac_ext <<_ACEOF
12959/* confdefs.h. */
12960_ACEOF
12961cat confdefs.h >>conftest.$ac_ext
12962cat >>conftest.$ac_ext <<_ACEOF
12963/* end confdefs.h. */
4e8d927d
DJ
12964#include <sys/types.h>
12965#include <$i>
12966
bec39cab
AC
12967int
12968main ()
12969{
b4e70030 12970if ((uintmax_t *) 0)
4e8d927d 12971 return 0;
b4e70030 12972if (sizeof (uintmax_t))
4e8d927d
DJ
12973 return 0;
12974 ;
bec39cab
AC
12975 return 0;
12976}
12977_ACEOF
12978rm -f conftest.$ac_objext
12979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
b4e70030
JB
12987 { ac_try='test -z "$ac_c_werror_flag"
12988 || test ! -s conftest.err'
bec39cab
AC
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest.$ac_objext'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
4e8d927d 13000 ac_cv_type_uintmax_t=yes
40a7debc 13001else
bec39cab
AC
13002 echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
b4e70030 13005ac_cv_type_uintmax_t=no
40a7debc 13006fi
bec39cab 13007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 13008fi
b4e70030
JB
13009echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13010echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
13011if test $ac_cv_type_uintmax_t = yes; then
13012 acx_cv_header_stdint=$i
666ec76f 13013else
4e8d927d 13014 continue
666ec76f 13015fi
4e8d927d 13016
b4e70030
JB
13017 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13018echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 13019if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 cat >conftest.$ac_ext <<_ACEOF
13023/* confdefs.h. */
13024_ACEOF
13025cat confdefs.h >>conftest.$ac_ext
13026cat >>conftest.$ac_ext <<_ACEOF
13027/* end confdefs.h. */
4e8d927d
DJ
13028#include <sys/types.h>
13029#include <$i>
13030
666ec76f
MK
13031int
13032main ()
13033{
b4e70030 13034if ((uintptr_t *) 0)
4e8d927d 13035 return 0;
b4e70030 13036if (sizeof (uintptr_t))
4e8d927d 13037 return 0;
666ec76f
MK
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042rm -f conftest.$ac_objext
13043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044 (eval $ac_compile) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
b4e70030
JB
13051 { ac_try='test -z "$ac_c_werror_flag"
13052 || test ! -s conftest.err'
666ec76f
MK
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest.$ac_objext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
4e8d927d 13064 ac_cv_type_uintptr_t=yes
666ec76f
MK
13065else
13066 echo "$as_me: failed program was:" >&5
13067sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 13068
b4e70030 13069ac_cv_type_uintptr_t=no
a3828db0
MK
13070fi
13071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13072fi
b4e70030
JB
13073echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13074echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
13075if test $ac_cv_type_uintptr_t = yes; then
13076 :
a3828db0 13077else
4e8d927d 13078 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 13079fi
4e8d927d 13080
b4e70030
JB
13081 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13082echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 13083if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085else
13086 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13087/* confdefs.h. */
13088_ACEOF
13089cat confdefs.h >>conftest.$ac_ext
13090cat >>conftest.$ac_ext <<_ACEOF
13091/* end confdefs.h. */
4e8d927d
DJ
13092#include <sys/types.h>
13093#include <$i>
13094
bec39cab
AC
13095int
13096main ()
13097{
b4e70030 13098if ((int_least32_t *) 0)
4e8d927d 13099 return 0;
b4e70030 13100if (sizeof (int_least32_t))
4e8d927d 13101 return 0;
bec39cab
AC
13102 ;
13103 return 0;
13104}
13105_ACEOF
13106rm -f conftest.$ac_objext
13107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108 (eval $ac_compile) 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
b4e70030
JB
13115 { ac_try='test -z "$ac_c_werror_flag"
13116 || test ! -s conftest.err'
bec39cab
AC
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
4e8d927d 13128 ac_cv_type_int_least32_t=yes
b9362cc7 13129else
bec39cab
AC
13130 echo "$as_me: failed program was:" >&5
13131sed 's/^/| /' conftest.$ac_ext >&5
13132
b4e70030 13133ac_cv_type_int_least32_t=no
b9362cc7 13134fi
bec39cab 13135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13136fi
b4e70030
JB
13137echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13138echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
13139if test $ac_cv_type_int_least32_t = yes; then
13140 :
a3828db0 13141else
4e8d927d 13142 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 13143fi
5ee754fc 13144
b4e70030
JB
13145 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13146echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 13147if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149else
13150 cat >conftest.$ac_ext <<_ACEOF
13151/* confdefs.h. */
13152_ACEOF
13153cat confdefs.h >>conftest.$ac_ext
13154cat >>conftest.$ac_ext <<_ACEOF
13155/* end confdefs.h. */
4e8d927d
DJ
13156#include <sys/types.h>
13157#include <$i>
13158
bec39cab
AC
13159int
13160main ()
13161{
b4e70030 13162if ((int_fast32_t *) 0)
4e8d927d 13163 return 0;
b4e70030 13164if (sizeof (int_fast32_t))
4e8d927d 13165 return 0;
bec39cab
AC
13166 ;
13167 return 0;
13168}
13169_ACEOF
13170rm -f conftest.$ac_objext
13171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172 (eval $ac_compile) 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
b4e70030
JB
13179 { ac_try='test -z "$ac_c_werror_flag"
13180 || test ! -s conftest.err'
bec39cab
AC
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest.$ac_objext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
4e8d927d 13192 ac_cv_type_int_fast32_t=yes
c906108c 13193else
bec39cab
AC
13194 echo "$as_me: failed program was:" >&5
13195sed 's/^/| /' conftest.$ac_ext >&5
13196
b4e70030 13197ac_cv_type_int_fast32_t=no
c906108c 13198fi
bec39cab 13199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13200fi
b4e70030
JB
13201echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13202echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
13203if test $ac_cv_type_int_fast32_t = yes; then
13204 :
a3828db0 13205else
4e8d927d 13206 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 13207fi
4e8d927d 13208
b4e70030
JB
13209 echo "$as_me:$LINENO: checking for uint64_t" >&5
13210echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 13211if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213else
13214 cat >conftest.$ac_ext <<_ACEOF
13215/* confdefs.h. */
13216_ACEOF
13217cat confdefs.h >>conftest.$ac_ext
13218cat >>conftest.$ac_ext <<_ACEOF
13219/* end confdefs.h. */
4e8d927d
DJ
13220#include <sys/types.h>
13221#include <$i>
13222
bec39cab
AC
13223int
13224main ()
13225{
b4e70030 13226if ((uint64_t *) 0)
4e8d927d 13227 return 0;
b4e70030 13228if (sizeof (uint64_t))
4e8d927d 13229 return 0;
bec39cab
AC
13230 ;
13231 return 0;
13232}
13233_ACEOF
13234rm -f conftest.$ac_objext
13235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236 (eval $ac_compile) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
b4e70030
JB
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
bec39cab
AC
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
4e8d927d 13256 ac_cv_type_uint64_t=yes
c906108c 13257else
bec39cab
AC
13258 echo "$as_me: failed program was:" >&5
13259sed 's/^/| /' conftest.$ac_ext >&5
13260
b4e70030 13261ac_cv_type_uint64_t=no
c906108c 13262fi
bec39cab 13263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13264fi
b4e70030
JB
13265echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13266echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
13267if test $ac_cv_type_uint64_t = yes; then
13268 :
a3828db0 13269else
4e8d927d 13270 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
13271fi
13272
4e8d927d
DJ
13273 break
13274done
13275if test "$acx_cv_header_stdint" = stddef.h; then
13276 acx_cv_header_stdint_kind="(lacks uintptr_t)"
13277 for i in stdint.h $inttype_headers; do
13278 unset ac_cv_type_uint32_t
13279 unset ac_cv_type_uint64_t
13280 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
13281 echo "$as_me:$LINENO: checking for uint32_t" >&5
13282echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 13283if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 13284 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13285else
bec39cab
AC
13286 cat >conftest.$ac_ext <<_ACEOF
13287/* confdefs.h. */
13288_ACEOF
13289cat confdefs.h >>conftest.$ac_ext
13290cat >>conftest.$ac_ext <<_ACEOF
13291/* end confdefs.h. */
4e8d927d
DJ
13292#include <sys/types.h>
13293#include <$i>
13294
a3828db0
MK
13295int
13296main ()
13297{
b4e70030 13298if ((uint32_t *) 0)
4e8d927d 13299 return 0;
b4e70030 13300if (sizeof (uint32_t))
4e8d927d 13301 return 0;
a3828db0
MK
13302 ;
13303 return 0;
13304}
bec39cab
AC
13305_ACEOF
13306rm -f conftest.$ac_objext
13307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
b4e70030
JB
13315 { ac_try='test -z "$ac_c_werror_flag"
13316 || test ! -s conftest.err'
bec39cab
AC
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest.$ac_objext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
4e8d927d 13328 ac_cv_type_uint32_t=yes
bce58c09 13329else
bec39cab
AC
13330 echo "$as_me: failed program was:" >&5
13331sed 's/^/| /' conftest.$ac_ext >&5
13332
b4e70030 13333ac_cv_type_uint32_t=no
bce58c09 13334fi
bec39cab 13335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13336fi
b4e70030
JB
13337echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13338echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
13339if test $ac_cv_type_uint32_t = yes; then
13340 acx_cv_header_stdint=$i
a3828db0 13341else
4e8d927d 13342 continue
e5a7de23 13343fi
4e8d927d 13344
b4e70030
JB
13345 echo "$as_me:$LINENO: checking for uint64_t" >&5
13346echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 13347if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349else
13350 cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
4e8d927d
DJ
13356#include <sys/types.h>
13357#include <$i>
13358
e5a7de23
EZ
13359int
13360main ()
13361{
b4e70030 13362if ((uint64_t *) 0)
4e8d927d 13363 return 0;
b4e70030 13364if (sizeof (uint64_t))
4e8d927d 13365 return 0;
e5a7de23
EZ
13366 ;
13367 return 0;
13368}
13369_ACEOF
13370rm -f conftest.$ac_objext
13371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
b4e70030
JB
13379 { ac_try='test -z "$ac_c_werror_flag"
13380 || test ! -s conftest.err'
e5a7de23
EZ
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; } &&
13386 { ac_try='test -s conftest.$ac_objext'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
4e8d927d 13392 ac_cv_type_uint64_t=yes
e5a7de23
EZ
13393else
13394 echo "$as_me: failed program was:" >&5
13395sed 's/^/| /' conftest.$ac_ext >&5
13396
b4e70030 13397ac_cv_type_uint64_t=no
e5a7de23
EZ
13398fi
13399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13400fi
b4e70030
JB
13401echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13402echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
13403if test $ac_cv_type_uint64_t = yes; then
13404 :
e5a7de23 13405else
4e8d927d
DJ
13406 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
13407fi
e5a7de23 13408
4e8d927d
DJ
13409 break
13410 done
e5a7de23 13411fi
4e8d927d
DJ
13412if test "$acx_cv_header_stdint" = stddef.h; then
13413 acx_cv_header_stdint_kind="(u_intXX_t style)"
13414 for i in sys/types.h $inttype_headers; do
13415 unset ac_cv_type_u_int32_t
13416 unset ac_cv_type_u_int64_t
13417 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
13418 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13419echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 13420if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422else
13423 cat >conftest.$ac_ext <<_ACEOF
13424/* confdefs.h. */
13425_ACEOF
13426cat confdefs.h >>conftest.$ac_ext
13427cat >>conftest.$ac_ext <<_ACEOF
13428/* end confdefs.h. */
4e8d927d
DJ
13429#include <sys/types.h>
13430#include <$i>
13431
e5a7de23
EZ
13432int
13433main ()
13434{
b4e70030 13435if ((u_int32_t *) 0)
4e8d927d 13436 return 0;
b4e70030 13437if (sizeof (u_int32_t))
4e8d927d 13438 return 0;
e5a7de23
EZ
13439 ;
13440 return 0;
13441}
13442_ACEOF
13443rm -f conftest.$ac_objext
13444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13445 (eval $ac_compile) 2>conftest.er1
13446 ac_status=$?
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
b4e70030
JB
13452 { ac_try='test -z "$ac_c_werror_flag"
13453 || test ! -s conftest.err'
e5a7de23
EZ
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try='test -s conftest.$ac_objext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
4e8d927d 13465 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
13466else
13467 echo "$as_me: failed program was:" >&5
13468sed 's/^/| /' conftest.$ac_ext >&5
13469
b4e70030 13470ac_cv_type_u_int32_t=no
e5a7de23
EZ
13471fi
13472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13473fi
b4e70030
JB
13474echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13475echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
13476if test $ac_cv_type_u_int32_t = yes; then
13477 acx_cv_header_stdint=$i
e5a7de23 13478else
4e8d927d 13479 continue
a3828db0 13480fi
5ee754fc 13481
b4e70030
JB
13482 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13483echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 13484if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486else
13487 cat >conftest.$ac_ext <<_ACEOF
13488/* confdefs.h. */
13489_ACEOF
13490cat confdefs.h >>conftest.$ac_ext
13491cat >>conftest.$ac_ext <<_ACEOF
13492/* end confdefs.h. */
4e8d927d
DJ
13493#include <sys/types.h>
13494#include <$i>
13495
bec39cab
AC
13496int
13497main ()
13498{
b4e70030 13499if ((u_int64_t *) 0)
4e8d927d 13500 return 0;
b4e70030 13501if (sizeof (u_int64_t))
4e8d927d 13502 return 0;
bec39cab
AC
13503 ;
13504 return 0;
13505}
13506_ACEOF
a3828db0
MK
13507rm -f conftest.$ac_objext
13508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13509 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
b4e70030
JB
13516 { ac_try='test -z "$ac_c_werror_flag"
13517 || test ! -s conftest.err'
bec39cab
AC
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
a3828db0 13523 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
4e8d927d 13529 ac_cv_type_u_int64_t=yes
bec39cab
AC
13530else
13531 echo "$as_me: failed program was:" >&5
13532sed 's/^/| /' conftest.$ac_ext >&5
13533
b4e70030 13534ac_cv_type_u_int64_t=no
4e8d927d 13535fi
4e8d927d
DJ
13536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13537fi
b4e70030
JB
13538echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13539echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
13540if test $ac_cv_type_u_int64_t = yes; then
13541 :
13542else
13543 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
13544fi
13545
13546 break
13547 done
13548fi
13549if test "$acx_cv_header_stdint" = stddef.h; then
13550 acx_cv_header_stdint_kind="(using manual detection)"
13551fi
13552
13553test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13554test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13555test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13556test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13557test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13558
13559# ----------------- Summarize what we found so far
13560
b4e70030
JB
13561echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
13562echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 13563
b4e70030 13564case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
13565$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13566 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
13567 Xgdb_stdint.h : 'X\(/\)$' \| \
13568 . : '\(.\)' 2>/dev/null ||
4e8d927d 13569echo X/gdb_stdint.h |
b4e70030
JB
13570 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13571 /^X\/\(\/\/\)$/{ s//\1/; q; }
13572 /^X\/\(\/\).*/{ s//\1/; q; }
13573 s/.*/./; q'` in
4e8d927d
DJ
13574 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13575echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13576 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13577echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13578 *) ;;
13579esac
13580
b4e70030
JB
13581echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13582echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
13583
13584# ----------------- done included file, check C basic types --------
13585
13586# Lacking an uintptr_t? Test size of void *
13587case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
13588 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13589echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
13590if test "${ac_cv_type_void_p+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13592else
13593 cat >conftest.$ac_ext <<_ACEOF
a3828db0 13594/* confdefs.h. */
bec39cab
AC
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
a3828db0 13599$ac_includes_default
bec39cab
AC
13600int
13601main ()
13602{
b4e70030 13603if ((void * *) 0)
4e8d927d 13604 return 0;
b4e70030 13605if (sizeof (void *))
4e8d927d 13606 return 0;
bec39cab
AC
13607 ;
13608 return 0;
13609}
13610_ACEOF
a3828db0
MK
13611rm -f conftest.$ac_objext
13612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
b4e70030
JB
13620 { ac_try='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
bec39cab
AC
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
a3828db0 13627 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
4e8d927d 13633 ac_cv_type_void_p=yes
46711df8 13634else
bec39cab
AC
13635 echo "$as_me: failed program was:" >&5
13636sed 's/^/| /' conftest.$ac_ext >&5
13637
b4e70030 13638ac_cv_type_void_p=no
a3828db0 13639fi
4e8d927d 13640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 13641fi
b4e70030
JB
13642echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13643echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 13644
b4e70030
JB
13645echo "$as_me:$LINENO: checking size of void *" >&5
13646echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 13647if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649else
4e8d927d 13650 if test "$ac_cv_type_void_p" = yes; then
b4e70030 13651 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13654 # This bug is HP SR number 8606223364.
13655 if test "$cross_compiling" = yes; then
13656 # Depending upon the size, compute the lo and hi bounds.
13657cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
13658/* confdefs.h. */
13659_ACEOF
13660cat confdefs.h >>conftest.$ac_ext
13661cat >>conftest.$ac_ext <<_ACEOF
13662/* end confdefs.h. */
13663$ac_includes_default
13664int
13665main ()
13666{
b4e70030 13667static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
13668test_array [0] = 0
13669
d3ea6809
MM
13670 ;
13671 return 0;
13672}
13673_ACEOF
13674rm -f conftest.$ac_objext
13675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>conftest.er1
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
b4e70030
JB
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
d3ea6809
MM
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest.$ac_objext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
4e8d927d
DJ
13696 ac_lo=0 ac_mid=0
13697 while :; do
13698 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704$ac_includes_default
13705int
13706main ()
13707{
b4e70030 13708static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
13709test_array [0] = 0
13710
d3ea6809
MM
13711 ;
13712 return 0;
13713}
13714_ACEOF
13715rm -f conftest.$ac_objext
13716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
b4e70030
JB
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
d3ea6809
MM
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
4e8d927d 13737 ac_hi=$ac_mid; break
d3ea6809
MM
13738else
13739 echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
b4e70030
JB
13742ac_lo=`expr $ac_mid + 1`
13743 if test $ac_lo -le $ac_mid; then
13744 ac_lo= ac_hi=
13745 break
13746 fi
13747 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 13748fi
4e8d927d
DJ
13749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13750 done
bec39cab 13751else
4e8d927d
DJ
13752 echo "$as_me: failed program was:" >&5
13753sed 's/^/| /' conftest.$ac_ext >&5
13754
b4e70030 13755cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
4e8d927d 13761$ac_includes_default
bec39cab
AC
13762int
13763main ()
13764{
b4e70030 13765static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
13766test_array [0] = 0
13767
bec39cab
AC
13768 ;
13769 return 0;
13770}
13771_ACEOF
a3828db0
MK
13772rm -f conftest.$ac_objext
13773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
b4e70030
JB
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
bec39cab
AC
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
a3828db0 13788 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
4e8d927d
DJ
13794 ac_hi=-1 ac_mid=-1
13795 while :; do
13796 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
13797/* confdefs.h. */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h. */
4e8d927d 13802$ac_includes_default
f9f87d2c
MK
13803int
13804main ()
13805{
b4e70030 13806static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
13807test_array [0] = 0
13808
f9f87d2c
MK
13809 ;
13810 return 0;
13811}
13812_ACEOF
13813rm -f conftest.$ac_objext
13814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815 (eval $ac_compile) 2>conftest.er1
13816 ac_status=$?
13817 grep -v '^ *+' conftest.er1 >conftest.err
13818 rm -f conftest.er1
13819 cat conftest.err >&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } &&
b4e70030
JB
13822 { ac_try='test -z "$ac_c_werror_flag"
13823 || test ! -s conftest.err'
f9f87d2c
MK
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest.$ac_objext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
4e8d927d 13835 ac_lo=$ac_mid; break
f9f87d2c
MK
13836else
13837 echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
b4e70030
JB
13840ac_hi=`expr '(' $ac_mid ')' - 1`
13841 if test $ac_mid -le $ac_hi; then
13842 ac_lo= ac_hi=
13843 break
13844 fi
13845 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 13846fi
4e8d927d
DJ
13847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13848 done
13849else
13850 echo "$as_me: failed program was:" >&5
13851sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 13852
b4e70030 13853ac_lo= ac_hi=
4e8d927d 13854fi
4e8d927d 13855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 13856fi
4e8d927d
DJ
13857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13858# Binary search between lo and hi bounds.
13859while test "x$ac_lo" != "x$ac_hi"; do
13860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
13861 cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
4e8d927d 13867$ac_includes_default
3be60c3d
MK
13868int
13869main ()
13870{
b4e70030 13871static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
13872test_array [0] = 0
13873
3be60c3d
MK
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
b4e70030
JB
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
3be60c3d
MK
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
4e8d927d 13900 ac_hi=$ac_mid
3be60c3d
MK
13901else
13902 echo "$as_me: failed program was:" >&5
13903sed 's/^/| /' conftest.$ac_ext >&5
13904
b4e70030 13905ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 13906fi
4e8d927d
DJ
13907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908done
13909case $ac_lo in
13910?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 13911'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 13912See \`config.log' for more details." >&5
b4e70030 13913echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 13914See \`config.log' for more details." >&2;}
b4e70030 13915 { (exit 1); exit 1; }; } ;;
4e8d927d 13916esac
b4e70030
JB
13917else
13918 if test "$cross_compiling" = yes; then
13919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13920See \`config.log' for more details." >&5
13921echo "$as_me: error: cannot run test program while cross compiling
13922See \`config.log' for more details." >&2;}
13923 { (exit 1); exit 1; }; }
4e8d927d
DJ
13924else
13925 cat >conftest.$ac_ext <<_ACEOF
13926/* confdefs.h. */
3be60c3d 13927_ACEOF
4e8d927d
DJ
13928cat confdefs.h >>conftest.$ac_ext
13929cat >>conftest.$ac_ext <<_ACEOF
13930/* end confdefs.h. */
13931$ac_includes_default
b4e70030
JB
13932long longval () { return (long) (sizeof (void *)); }
13933unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
13934#include <stdio.h>
13935#include <stdlib.h>
13936int
13937main ()
13938{
13939
13940 FILE *f = fopen ("conftest.val", "w");
13941 if (! f)
b4e70030
JB
13942 exit (1);
13943 if (((long) (sizeof (void *))) < 0)
4e8d927d 13944 {
b4e70030
JB
13945 long i = longval ();
13946 if (i != ((long) (sizeof (void *))))
13947 exit (1);
4e8d927d
DJ
13948 fprintf (f, "%ld\n", i);
13949 }
13950 else
13951 {
b4e70030
JB
13952 unsigned long i = ulongval ();
13953 if (i != ((long) (sizeof (void *))))
13954 exit (1);
4e8d927d
DJ
13955 fprintf (f, "%lu\n", i);
13956 }
b4e70030 13957 exit (ferror (f) || fclose (f) != 0);
3be60c3d 13958
4e8d927d
DJ
13959 ;
13960 return 0;
13961}
13962_ACEOF
13963rm -f conftest$ac_exeext
13964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13965 (eval $ac_link) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_cv_sizeof_void_p=`cat conftest.val`
13975else
13976 echo "$as_me: program exited with status $ac_status" >&5
13977echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 13979
4e8d927d 13980( exit $ac_status )
b4e70030 13981{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 13982See \`config.log' for more details." >&5
b4e70030 13983echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 13984See \`config.log' for more details." >&2;}
b4e70030
JB
13985 { (exit 1); exit 1; }; }
13986fi
13987rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 13988fi
4e8d927d
DJ
13989fi
13990rm -f conftest.val
13991else
13992 ac_cv_sizeof_void_p=0
13993fi
13994fi
b4e70030
JB
13995echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13996echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
13997cat >>confdefs.h <<_ACEOF
13998#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13999_ACEOF
f9f87d2c 14000
4e8d927d
DJ
14001 ;;
14002esac
46711df8 14003
4e8d927d
DJ
14004# Lacking an uint64_t? Test size of long
14005case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
14006 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14007echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 14008if test "${ac_cv_type_long+set}" = set; then
bec39cab 14009 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 14010else
bec39cab
AC
14011 cat >conftest.$ac_ext <<_ACEOF
14012/* confdefs.h. */
14013_ACEOF
14014cat confdefs.h >>conftest.$ac_ext
14015cat >>conftest.$ac_ext <<_ACEOF
14016/* end confdefs.h. */
4e8d927d 14017$ac_includes_default
bec39cab 14018int
46711df8
MK
14019main ()
14020{
b4e70030 14021if ((long *) 0)
4e8d927d 14022 return 0;
b4e70030 14023if (sizeof (long))
4e8d927d 14024 return 0;
a3828db0
MK
14025 ;
14026 return 0;
46711df8 14027}
bec39cab 14028_ACEOF
a3828db0
MK
14029rm -f conftest.$ac_objext
14030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
b4e70030
JB
14038 { ac_try='test -z "$ac_c_werror_flag"
14039 || test ! -s conftest.err'
a3828db0
MK
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
bec39cab
AC
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
14044 (exit $ac_status); }; } &&
14045 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
4e8d927d 14051 ac_cv_type_long=yes
46711df8 14052else
a3828db0 14053 echo "$as_me: failed program was:" >&5
bec39cab
AC
14054sed 's/^/| /' conftest.$ac_ext >&5
14055
b4e70030 14056ac_cv_type_long=no
46711df8 14057fi
4e8d927d 14058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 14059fi
b4e70030
JB
14060echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14061echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 14062
b4e70030
JB
14063echo "$as_me:$LINENO: checking size of long" >&5
14064echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 14065if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 14066 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14067else
4e8d927d 14068 if test "$ac_cv_type_long" = yes; then
b4e70030 14069 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14072 # This bug is HP SR number 8606223364.
14073 if test "$cross_compiling" = yes; then
14074 # Depending upon the size, compute the lo and hi bounds.
14075cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14076/* confdefs.h. */
14077_ACEOF
14078cat confdefs.h >>conftest.$ac_ext
14079cat >>conftest.$ac_ext <<_ACEOF
14080/* end confdefs.h. */
4e8d927d 14081$ac_includes_default
4e8d927d
DJ
14082int
14083main ()
14084{
b4e70030 14085static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 14086test_array [0] = 0
a3828db0 14087
4e8d927d
DJ
14088 ;
14089 return 0;
14090}
bec39cab
AC
14091_ACEOF
14092rm -f conftest.$ac_objext
14093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094 (eval $ac_compile) 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
b4e70030
JB
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
bec39cab
AC
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
4e8d927d
DJ
14114 ac_lo=0 ac_mid=0
14115 while :; do
14116 cat >conftest.$ac_ext <<_ACEOF
14117/* confdefs.h. */
14118_ACEOF
14119cat confdefs.h >>conftest.$ac_ext
14120cat >>conftest.$ac_ext <<_ACEOF
14121/* end confdefs.h. */
14122$ac_includes_default
4e8d927d
DJ
14123int
14124main ()
14125{
b4e70030 14126static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
14127test_array [0] = 0
14128
14129 ;
14130 return 0;
14131}
14132_ACEOF
14133rm -f conftest.$ac_objext
14134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14135 (eval $ac_compile) 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
b4e70030
JB
14142 { ac_try='test -z "$ac_c_werror_flag"
14143 || test ! -s conftest.err'
4e8d927d
DJ
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; } &&
14149 { ac_try='test -s conftest.$ac_objext'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 ac_hi=$ac_mid; break
14156else
14157 echo "$as_me: failed program was:" >&5
14158sed 's/^/| /' conftest.$ac_ext >&5
14159
b4e70030
JB
14160ac_lo=`expr $ac_mid + 1`
14161 if test $ac_lo -le $ac_mid; then
14162 ac_lo= ac_hi=
14163 break
14164 fi
14165 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14166fi
4e8d927d
DJ
14167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14168 done
14169else
14170 echo "$as_me: failed program was:" >&5
14171sed 's/^/| /' conftest.$ac_ext >&5
14172
b4e70030 14173cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
14179$ac_includes_default
4e8d927d
DJ
14180int
14181main ()
14182{
b4e70030 14183static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
14184test_array [0] = 0
14185
14186 ;
14187 return 0;
14188}
14189_ACEOF
14190rm -f conftest.$ac_objext
14191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
b4e70030
JB
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
4e8d927d
DJ
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 ac_hi=-1 ac_mid=-1
14213 while :; do
14214 cat >conftest.$ac_ext <<_ACEOF
14215/* confdefs.h. */
14216_ACEOF
14217cat confdefs.h >>conftest.$ac_ext
14218cat >>conftest.$ac_ext <<_ACEOF
14219/* end confdefs.h. */
14220$ac_includes_default
4e8d927d
DJ
14221int
14222main ()
14223{
b4e70030 14224static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
14225test_array [0] = 0
14226
14227 ;
14228 return 0;
14229}
14230_ACEOF
14231rm -f conftest.$ac_objext
14232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>conftest.er1
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
b4e70030
JB
14240 { ac_try='test -z "$ac_c_werror_flag"
14241 || test ! -s conftest.err'
4e8d927d
DJ
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest.$ac_objext'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 ac_lo=$ac_mid; break
14254else
14255 echo "$as_me: failed program was:" >&5
14256sed 's/^/| /' conftest.$ac_ext >&5
14257
b4e70030
JB
14258ac_hi=`expr '(' $ac_mid ')' - 1`
14259 if test $ac_mid -le $ac_hi; then
14260 ac_lo= ac_hi=
14261 break
14262 fi
14263 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14264fi
4e8d927d
DJ
14265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 done
14267else
14268 echo "$as_me: failed program was:" >&5
14269sed 's/^/| /' conftest.$ac_ext >&5
14270
b4e70030 14271ac_lo= ac_hi=
4e8d927d 14272fi
4e8d927d
DJ
14273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14274fi
4e8d927d
DJ
14275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14276# Binary search between lo and hi bounds.
14277while test "x$ac_lo" != "x$ac_hi"; do
14278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14279 cat >conftest.$ac_ext <<_ACEOF
14280/* confdefs.h. */
14281_ACEOF
14282cat confdefs.h >>conftest.$ac_ext
14283cat >>conftest.$ac_ext <<_ACEOF
14284/* end confdefs.h. */
14285$ac_includes_default
4e8d927d
DJ
14286int
14287main ()
14288{
b4e70030 14289static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
14290test_array [0] = 0
14291
14292 ;
14293 return 0;
14294}
14295_ACEOF
14296rm -f conftest.$ac_objext
14297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14298 (eval $ac_compile) 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
b4e70030
JB
14305 { ac_try='test -z "$ac_c_werror_flag"
14306 || test ! -s conftest.err'
4e8d927d
DJ
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; } &&
14312 { ac_try='test -s conftest.$ac_objext'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 ac_hi=$ac_mid
14319else
14320 echo "$as_me: failed program was:" >&5
14321sed 's/^/| /' conftest.$ac_ext >&5
14322
b4e70030 14323ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14324fi
4e8d927d
DJ
14325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14326done
14327case $ac_lo in
14328?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 14329'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 14330See \`config.log' for more details." >&5
b4e70030 14331echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 14332See \`config.log' for more details." >&2;}
b4e70030 14333 { (exit 1); exit 1; }; } ;;
4e8d927d 14334esac
b4e70030
JB
14335else
14336 if test "$cross_compiling" = yes; then
14337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14338See \`config.log' for more details." >&5
14339echo "$as_me: error: cannot run test program while cross compiling
14340See \`config.log' for more details." >&2;}
14341 { (exit 1); exit 1; }; }
4e8d927d
DJ
14342else
14343 cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349$ac_includes_default
b4e70030
JB
14350long longval () { return (long) (sizeof (long)); }
14351unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
14352#include <stdio.h>
14353#include <stdlib.h>
14354int
14355main ()
14356{
14357
14358 FILE *f = fopen ("conftest.val", "w");
14359 if (! f)
b4e70030
JB
14360 exit (1);
14361 if (((long) (sizeof (long))) < 0)
4e8d927d 14362 {
b4e70030
JB
14363 long i = longval ();
14364 if (i != ((long) (sizeof (long))))
14365 exit (1);
4e8d927d
DJ
14366 fprintf (f, "%ld\n", i);
14367 }
14368 else
14369 {
b4e70030
JB
14370 unsigned long i = ulongval ();
14371 if (i != ((long) (sizeof (long))))
14372 exit (1);
4e8d927d
DJ
14373 fprintf (f, "%lu\n", i);
14374 }
b4e70030 14375 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14376
14377 ;
14378 return 0;
14379}
14380_ACEOF
14381rm -f conftest$ac_exeext
14382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383 (eval $ac_link) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_cv_sizeof_long=`cat conftest.val`
14393else
14394 echo "$as_me: program exited with status $ac_status" >&5
14395echo "$as_me: failed program was:" >&5
14396sed 's/^/| /' conftest.$ac_ext >&5
14397
14398( exit $ac_status )
b4e70030 14399{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 14400See \`config.log' for more details." >&5
b4e70030 14401echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 14402See \`config.log' for more details." >&2;}
b4e70030
JB
14403 { (exit 1); exit 1; }; }
14404fi
14405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14406fi
4e8d927d
DJ
14407fi
14408rm -f conftest.val
14409else
14410 ac_cv_sizeof_long=0
14411fi
14412fi
b4e70030
JB
14413echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14414echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
14415cat >>confdefs.h <<_ACEOF
14416#define SIZEOF_LONG $ac_cv_sizeof_long
14417_ACEOF
14418
14419 ;;
14420esac
14421
14422if test $acx_cv_header_stdint = stddef.h; then
14423 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
14424 echo "$as_me:$LINENO: checking for int" >&5
14425echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
14426if test "${ac_cv_type_int+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428else
14429 cat >conftest.$ac_ext <<_ACEOF
14430/* confdefs.h. */
14431_ACEOF
14432cat confdefs.h >>conftest.$ac_ext
14433cat >>conftest.$ac_ext <<_ACEOF
14434/* end confdefs.h. */
14435$ac_includes_default
4e8d927d
DJ
14436int
14437main ()
14438{
b4e70030 14439if ((int *) 0)
4e8d927d 14440 return 0;
b4e70030 14441if (sizeof (int))
4e8d927d
DJ
14442 return 0;
14443 ;
14444 return 0;
14445}
14446_ACEOF
14447rm -f conftest.$ac_objext
14448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14449 (eval $ac_compile) 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
b4e70030
JB
14456 { ac_try='test -z "$ac_c_werror_flag"
14457 || test ! -s conftest.err'
4e8d927d
DJ
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; } &&
14463 { ac_try='test -s conftest.$ac_objext'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 ac_cv_type_int=yes
14470else
14471 echo "$as_me: failed program was:" >&5
14472sed 's/^/| /' conftest.$ac_ext >&5
14473
b4e70030 14474ac_cv_type_int=no
4e8d927d 14475fi
4e8d927d
DJ
14476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14477fi
b4e70030
JB
14478echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14479echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 14480
b4e70030
JB
14481echo "$as_me:$LINENO: checking size of int" >&5
14482echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
14483if test "${ac_cv_sizeof_int+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485else
14486 if test "$ac_cv_type_int" = yes; then
b4e70030 14487 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14490 # This bug is HP SR number 8606223364.
14491 if test "$cross_compiling" = yes; then
14492 # Depending upon the size, compute the lo and hi bounds.
14493cat >conftest.$ac_ext <<_ACEOF
14494/* confdefs.h. */
14495_ACEOF
14496cat confdefs.h >>conftest.$ac_ext
14497cat >>conftest.$ac_ext <<_ACEOF
14498/* end confdefs.h. */
14499$ac_includes_default
4e8d927d
DJ
14500int
14501main ()
14502{
b4e70030 14503static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
14504test_array [0] = 0
14505
14506 ;
14507 return 0;
14508}
14509_ACEOF
14510rm -f conftest.$ac_objext
14511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512 (eval $ac_compile) 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
b4e70030
JB
14519 { ac_try='test -z "$ac_c_werror_flag"
14520 || test ! -s conftest.err'
4e8d927d
DJ
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_lo=0 ac_mid=0
14533 while :; do
14534 cat >conftest.$ac_ext <<_ACEOF
14535/* confdefs.h. */
14536_ACEOF
14537cat confdefs.h >>conftest.$ac_ext
14538cat >>conftest.$ac_ext <<_ACEOF
14539/* end confdefs.h. */
14540$ac_includes_default
4e8d927d
DJ
14541int
14542main ()
14543{
b4e70030 14544static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
14545test_array [0] = 0
14546
14547 ;
14548 return 0;
14549}
14550_ACEOF
14551rm -f conftest.$ac_objext
14552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14553 (eval $ac_compile) 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
b4e70030
JB
14560 { ac_try='test -z "$ac_c_werror_flag"
14561 || test ! -s conftest.err'
4e8d927d
DJ
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; } &&
14567 { ac_try='test -s conftest.$ac_objext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_hi=$ac_mid; break
14574else
14575 echo "$as_me: failed program was:" >&5
14576sed 's/^/| /' conftest.$ac_ext >&5
14577
b4e70030
JB
14578ac_lo=`expr $ac_mid + 1`
14579 if test $ac_lo -le $ac_mid; then
14580 ac_lo= ac_hi=
14581 break
14582 fi
14583 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14584fi
4e8d927d
DJ
14585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14586 done
14587else
14588 echo "$as_me: failed program was:" >&5
14589sed 's/^/| /' conftest.$ac_ext >&5
14590
b4e70030 14591cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14592/* confdefs.h. */
14593_ACEOF
14594cat confdefs.h >>conftest.$ac_ext
14595cat >>conftest.$ac_ext <<_ACEOF
14596/* end confdefs.h. */
14597$ac_includes_default
4e8d927d
DJ
14598int
14599main ()
14600{
b4e70030 14601static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
14602test_array [0] = 0
14603
14604 ;
14605 return 0;
14606}
14607_ACEOF
14608rm -f conftest.$ac_objext
14609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
b4e70030
JB
14617 { ac_try='test -z "$ac_c_werror_flag"
14618 || test ! -s conftest.err'
4e8d927d
DJ
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } &&
14624 { ac_try='test -s conftest.$ac_objext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14630 ac_hi=-1 ac_mid=-1
14631 while :; do
14632 cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
14638$ac_includes_default
4e8d927d
DJ
14639int
14640main ()
14641{
b4e70030 14642static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
14643test_array [0] = 0
14644
14645 ;
14646 return 0;
14647}
14648_ACEOF
14649rm -f conftest.$ac_objext
14650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
b4e70030
JB
14658 { ac_try='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
4e8d927d
DJ
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 ac_lo=$ac_mid; break
14672else
14673 echo "$as_me: failed program was:" >&5
14674sed 's/^/| /' conftest.$ac_ext >&5
14675
b4e70030
JB
14676ac_hi=`expr '(' $ac_mid ')' - 1`
14677 if test $ac_mid -le $ac_hi; then
14678 ac_lo= ac_hi=
14679 break
14680 fi
14681 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14682fi
4e8d927d
DJ
14683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14684 done
14685else
14686 echo "$as_me: failed program was:" >&5
14687sed 's/^/| /' conftest.$ac_ext >&5
14688
b4e70030 14689ac_lo= ac_hi=
4e8d927d 14690fi
4e8d927d
DJ
14691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692fi
4e8d927d
DJ
14693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694# Binary search between lo and hi bounds.
14695while test "x$ac_lo" != "x$ac_hi"; do
14696 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14697 cat >conftest.$ac_ext <<_ACEOF
14698/* confdefs.h. */
14699_ACEOF
14700cat confdefs.h >>conftest.$ac_ext
14701cat >>conftest.$ac_ext <<_ACEOF
14702/* end confdefs.h. */
14703$ac_includes_default
4e8d927d
DJ
14704int
14705main ()
14706{
b4e70030 14707static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
14708test_array [0] = 0
14709
14710 ;
14711 return 0;
14712}
14713_ACEOF
14714rm -f conftest.$ac_objext
14715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>conftest.er1
14717 ac_status=$?
14718 grep -v '^ *+' conftest.er1 >conftest.err
14719 rm -f conftest.er1
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
b4e70030
JB
14723 { ac_try='test -z "$ac_c_werror_flag"
14724 || test ! -s conftest.err'
4e8d927d
DJ
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; } &&
14730 { ac_try='test -s conftest.$ac_objext'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14736 ac_hi=$ac_mid
14737else
14738 echo "$as_me: failed program was:" >&5
14739sed 's/^/| /' conftest.$ac_ext >&5
14740
b4e70030 14741ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14742fi
4e8d927d
DJ
14743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14744done
14745case $ac_lo in
14746?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 14747'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 14748See \`config.log' for more details." >&5
b4e70030 14749echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 14750See \`config.log' for more details." >&2;}
b4e70030 14751 { (exit 1); exit 1; }; } ;;
4e8d927d 14752esac
b4e70030
JB
14753else
14754 if test "$cross_compiling" = yes; then
14755 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14756See \`config.log' for more details." >&5
14757echo "$as_me: error: cannot run test program while cross compiling
14758See \`config.log' for more details." >&2;}
14759 { (exit 1); exit 1; }; }
4e8d927d
DJ
14760else
14761 cat >conftest.$ac_ext <<_ACEOF
14762/* confdefs.h. */
14763_ACEOF
14764cat confdefs.h >>conftest.$ac_ext
14765cat >>conftest.$ac_ext <<_ACEOF
14766/* end confdefs.h. */
14767$ac_includes_default
b4e70030
JB
14768long longval () { return (long) (sizeof (int)); }
14769unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
14770#include <stdio.h>
14771#include <stdlib.h>
14772int
14773main ()
14774{
14775
14776 FILE *f = fopen ("conftest.val", "w");
14777 if (! f)
b4e70030
JB
14778 exit (1);
14779 if (((long) (sizeof (int))) < 0)
4e8d927d 14780 {
b4e70030
JB
14781 long i = longval ();
14782 if (i != ((long) (sizeof (int))))
14783 exit (1);
4e8d927d
DJ
14784 fprintf (f, "%ld\n", i);
14785 }
14786 else
14787 {
b4e70030
JB
14788 unsigned long i = ulongval ();
14789 if (i != ((long) (sizeof (int))))
14790 exit (1);
4e8d927d
DJ
14791 fprintf (f, "%lu\n", i);
14792 }
b4e70030 14793 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14794
14795 ;
14796 return 0;
14797}
14798_ACEOF
14799rm -f conftest$ac_exeext
14800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14801 (eval $ac_link) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_sizeof_int=`cat conftest.val`
14811else
14812 echo "$as_me: program exited with status $ac_status" >&5
14813echo "$as_me: failed program was:" >&5
14814sed 's/^/| /' conftest.$ac_ext >&5
14815
14816( exit $ac_status )
b4e70030 14817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 14818See \`config.log' for more details." >&5
b4e70030 14819echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 14820See \`config.log' for more details." >&2;}
b4e70030
JB
14821 { (exit 1); exit 1; }; }
14822fi
14823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14824fi
4e8d927d
DJ
14825fi
14826rm -f conftest.val
14827else
14828 ac_cv_sizeof_int=0
14829fi
14830fi
b4e70030
JB
14831echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14832echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
14833cat >>confdefs.h <<_ACEOF
14834#define SIZEOF_INT $ac_cv_sizeof_int
14835_ACEOF
14836
14837
b4e70030
JB
14838 echo "$as_me:$LINENO: checking for short" >&5
14839echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
14840if test "${ac_cv_type_short+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842else
14843 cat >conftest.$ac_ext <<_ACEOF
14844/* confdefs.h. */
14845_ACEOF
14846cat confdefs.h >>conftest.$ac_ext
14847cat >>conftest.$ac_ext <<_ACEOF
14848/* end confdefs.h. */
14849$ac_includes_default
4e8d927d
DJ
14850int
14851main ()
14852{
b4e70030 14853if ((short *) 0)
4e8d927d 14854 return 0;
b4e70030 14855if (sizeof (short))
4e8d927d
DJ
14856 return 0;
14857 ;
14858 return 0;
14859}
14860_ACEOF
14861rm -f conftest.$ac_objext
14862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14863 (eval $ac_compile) 2>conftest.er1
14864 ac_status=$?
14865 grep -v '^ *+' conftest.er1 >conftest.err
14866 rm -f conftest.er1
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } &&
b4e70030
JB
14870 { ac_try='test -z "$ac_c_werror_flag"
14871 || test ! -s conftest.err'
4e8d927d
DJ
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; } &&
14877 { ac_try='test -s conftest.$ac_objext'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; }; then
14883 ac_cv_type_short=yes
14884else
14885 echo "$as_me: failed program was:" >&5
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
b4e70030 14888ac_cv_type_short=no
4e8d927d 14889fi
4e8d927d
DJ
14890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14891fi
b4e70030
JB
14892echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14893echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 14894
b4e70030
JB
14895echo "$as_me:$LINENO: checking size of short" >&5
14896echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
14897if test "${ac_cv_sizeof_short+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899else
14900 if test "$ac_cv_type_short" = yes; then
b4e70030 14901 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14904 # This bug is HP SR number 8606223364.
14905 if test "$cross_compiling" = yes; then
14906 # Depending upon the size, compute the lo and hi bounds.
14907cat >conftest.$ac_ext <<_ACEOF
14908/* confdefs.h. */
14909_ACEOF
14910cat confdefs.h >>conftest.$ac_ext
14911cat >>conftest.$ac_ext <<_ACEOF
14912/* end confdefs.h. */
14913$ac_includes_default
4e8d927d
DJ
14914int
14915main ()
14916{
b4e70030 14917static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
14918test_array [0] = 0
14919
14920 ;
14921 return 0;
14922}
14923_ACEOF
14924rm -f conftest.$ac_objext
14925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926 (eval $ac_compile) 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
b4e70030
JB
14933 { ac_try='test -z "$ac_c_werror_flag"
14934 || test ! -s conftest.err'
4e8d927d
DJ
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest.$ac_objext'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14946 ac_lo=0 ac_mid=0
14947 while :; do
14948 cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954$ac_includes_default
4e8d927d
DJ
14955int
14956main ()
14957{
b4e70030 14958static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
14959test_array [0] = 0
14960
14961 ;
14962 return 0;
14963}
14964_ACEOF
14965rm -f conftest.$ac_objext
14966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>conftest.er1
14968 ac_status=$?
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
b4e70030
JB
14974 { ac_try='test -z "$ac_c_werror_flag"
14975 || test ! -s conftest.err'
4e8d927d
DJ
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 ac_hi=$ac_mid; break
14988else
14989 echo "$as_me: failed program was:" >&5
14990sed 's/^/| /' conftest.$ac_ext >&5
14991
b4e70030
JB
14992ac_lo=`expr $ac_mid + 1`
14993 if test $ac_lo -le $ac_mid; then
14994 ac_lo= ac_hi=
14995 break
14996 fi
14997 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14998fi
4e8d927d
DJ
14999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15000 done
15001else
15002 echo "$as_me: failed program was:" >&5
15003sed 's/^/| /' conftest.$ac_ext >&5
15004
b4e70030 15005cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15006/* confdefs.h. */
15007_ACEOF
15008cat confdefs.h >>conftest.$ac_ext
15009cat >>conftest.$ac_ext <<_ACEOF
15010/* end confdefs.h. */
15011$ac_includes_default
4e8d927d
DJ
15012int
15013main ()
15014{
b4e70030 15015static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
15016test_array [0] = 0
15017
15018 ;
15019 return 0;
15020}
15021_ACEOF
15022rm -f conftest.$ac_objext
15023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
b4e70030
JB
15031 { ac_try='test -z "$ac_c_werror_flag"
15032 || test ! -s conftest.err'
4e8d927d
DJ
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_hi=-1 ac_mid=-1
15045 while :; do
15046 cat >conftest.$ac_ext <<_ACEOF
15047/* confdefs.h. */
15048_ACEOF
15049cat confdefs.h >>conftest.$ac_ext
15050cat >>conftest.$ac_ext <<_ACEOF
15051/* end confdefs.h. */
15052$ac_includes_default
4e8d927d
DJ
15053int
15054main ()
15055{
b4e70030 15056static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
15057test_array [0] = 0
15058
15059 ;
15060 return 0;
15061}
15062_ACEOF
15063rm -f conftest.$ac_objext
15064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15065 (eval $ac_compile) 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
b4e70030
JB
15072 { ac_try='test -z "$ac_c_werror_flag"
15073 || test ! -s conftest.err'
4e8d927d
DJ
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 ac_lo=$ac_mid; break
15086else
15087 echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5
15089
b4e70030
JB
15090ac_hi=`expr '(' $ac_mid ')' - 1`
15091 if test $ac_mid -le $ac_hi; then
15092 ac_lo= ac_hi=
15093 break
15094 fi
15095 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 15096fi
4e8d927d
DJ
15097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15098 done
15099else
15100 echo "$as_me: failed program was:" >&5
15101sed 's/^/| /' conftest.$ac_ext >&5
15102
b4e70030 15103ac_lo= ac_hi=
4e8d927d 15104fi
4e8d927d
DJ
15105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15106fi
4e8d927d
DJ
15107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15108# Binary search between lo and hi bounds.
15109while test "x$ac_lo" != "x$ac_hi"; do
15110 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15111 cat >conftest.$ac_ext <<_ACEOF
15112/* confdefs.h. */
15113_ACEOF
15114cat confdefs.h >>conftest.$ac_ext
15115cat >>conftest.$ac_ext <<_ACEOF
15116/* end confdefs.h. */
15117$ac_includes_default
4e8d927d
DJ
15118int
15119main ()
15120{
b4e70030 15121static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
15122test_array [0] = 0
15123
15124 ;
15125 return 0;
15126}
15127_ACEOF
15128rm -f conftest.$ac_objext
15129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
b4e70030
JB
15137 { ac_try='test -z "$ac_c_werror_flag"
15138 || test ! -s conftest.err'
4e8d927d
DJ
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest.$ac_objext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_hi=$ac_mid
15151else
15152 echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
b4e70030 15155ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 15156fi
4e8d927d
DJ
15157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15158done
15159case $ac_lo in
15160?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 15161'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 15162See \`config.log' for more details." >&5
b4e70030 15163echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 15164See \`config.log' for more details." >&2;}
b4e70030 15165 { (exit 1); exit 1; }; } ;;
4e8d927d 15166esac
b4e70030
JB
15167else
15168 if test "$cross_compiling" = yes; then
15169 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15170See \`config.log' for more details." >&5
15171echo "$as_me: error: cannot run test program while cross compiling
15172See \`config.log' for more details." >&2;}
15173 { (exit 1); exit 1; }; }
4e8d927d
DJ
15174else
15175 cat >conftest.$ac_ext <<_ACEOF
15176/* confdefs.h. */
15177_ACEOF
15178cat confdefs.h >>conftest.$ac_ext
15179cat >>conftest.$ac_ext <<_ACEOF
15180/* end confdefs.h. */
15181$ac_includes_default
b4e70030
JB
15182long longval () { return (long) (sizeof (short)); }
15183unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
15184#include <stdio.h>
15185#include <stdlib.h>
15186int
15187main ()
15188{
15189
15190 FILE *f = fopen ("conftest.val", "w");
15191 if (! f)
b4e70030
JB
15192 exit (1);
15193 if (((long) (sizeof (short))) < 0)
4e8d927d 15194 {
b4e70030
JB
15195 long i = longval ();
15196 if (i != ((long) (sizeof (short))))
15197 exit (1);
4e8d927d
DJ
15198 fprintf (f, "%ld\n", i);
15199 }
15200 else
15201 {
b4e70030
JB
15202 unsigned long i = ulongval ();
15203 if (i != ((long) (sizeof (short))))
15204 exit (1);
4e8d927d
DJ
15205 fprintf (f, "%lu\n", i);
15206 }
b4e70030 15207 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
15208
15209 ;
15210 return 0;
15211}
15212_ACEOF
15213rm -f conftest$ac_exeext
15214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15215 (eval $ac_link) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 ac_cv_sizeof_short=`cat conftest.val`
15225else
15226 echo "$as_me: program exited with status $ac_status" >&5
15227echo "$as_me: failed program was:" >&5
15228sed 's/^/| /' conftest.$ac_ext >&5
15229
15230( exit $ac_status )
b4e70030 15231{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 15232See \`config.log' for more details." >&5
b4e70030 15233echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 15234See \`config.log' for more details." >&2;}
b4e70030
JB
15235 { (exit 1); exit 1; }; }
15236fi
15237rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 15238fi
4e8d927d
DJ
15239fi
15240rm -f conftest.val
15241else
15242 ac_cv_sizeof_short=0
15243fi
15244fi
b4e70030
JB
15245echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15246echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
15247cat >>confdefs.h <<_ACEOF
15248#define SIZEOF_SHORT $ac_cv_sizeof_short
15249_ACEOF
15250
15251
b4e70030
JB
15252 echo "$as_me:$LINENO: checking for char" >&5
15253echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
15254if test "${ac_cv_type_char+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
15257 cat >conftest.$ac_ext <<_ACEOF
15258/* confdefs.h. */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h. */
15263$ac_includes_default
4e8d927d
DJ
15264int
15265main ()
15266{
b4e70030 15267if ((char *) 0)
4e8d927d 15268 return 0;
b4e70030 15269if (sizeof (char))
4e8d927d
DJ
15270 return 0;
15271 ;
15272 return 0;
15273}
15274_ACEOF
15275rm -f conftest.$ac_objext
15276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277 (eval $ac_compile) 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
b4e70030
JB
15284 { ac_try='test -z "$ac_c_werror_flag"
15285 || test ! -s conftest.err'
4e8d927d
DJ
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; } &&
15291 { ac_try='test -s conftest.$ac_objext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 ac_cv_type_char=yes
15298else
15299 echo "$as_me: failed program was:" >&5
15300sed 's/^/| /' conftest.$ac_ext >&5
15301
b4e70030 15302ac_cv_type_char=no
4e8d927d 15303fi
4e8d927d
DJ
15304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15305fi
b4e70030
JB
15306echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15307echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 15308
b4e70030
JB
15309echo "$as_me:$LINENO: checking size of char" >&5
15310echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
15311if test "${ac_cv_sizeof_char+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313else
15314 if test "$ac_cv_type_char" = yes; then
b4e70030 15315 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
15316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15318 # This bug is HP SR number 8606223364.
15319 if test "$cross_compiling" = yes; then
15320 # Depending upon the size, compute the lo and hi bounds.
15321cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
15327$ac_includes_default
4e8d927d
DJ
15328int
15329main ()
15330{
b4e70030 15331static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
15332test_array [0] = 0
15333
15334 ;
15335 return 0;
15336}
15337_ACEOF
15338rm -f conftest.$ac_objext
15339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
b4e70030
JB
15347 { ac_try='test -z "$ac_c_werror_flag"
15348 || test ! -s conftest.err'
4e8d927d
DJ
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; } &&
15354 { ac_try='test -s conftest.$ac_objext'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_lo=0 ac_mid=0
15361 while :; do
15362 cat >conftest.$ac_ext <<_ACEOF
15363/* confdefs.h. */
15364_ACEOF
15365cat confdefs.h >>conftest.$ac_ext
15366cat >>conftest.$ac_ext <<_ACEOF
15367/* end confdefs.h. */
15368$ac_includes_default
4e8d927d
DJ
15369int
15370main ()
15371{
b4e70030 15372static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
15373test_array [0] = 0
15374
15375 ;
15376 return 0;
15377}
15378_ACEOF
15379rm -f conftest.$ac_objext
15380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15381 (eval $ac_compile) 2>conftest.er1
15382 ac_status=$?
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
b4e70030
JB
15388 { ac_try='test -z "$ac_c_werror_flag"
15389 || test ! -s conftest.err'
4e8d927d
DJ
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; } &&
15395 { ac_try='test -s conftest.$ac_objext'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_hi=$ac_mid; break
15402else
15403 echo "$as_me: failed program was:" >&5
15404sed 's/^/| /' conftest.$ac_ext >&5
15405
b4e70030
JB
15406ac_lo=`expr $ac_mid + 1`
15407 if test $ac_lo -le $ac_mid; then
15408 ac_lo= ac_hi=
15409 break
15410 fi
15411 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 15412fi
4e8d927d
DJ
15413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15414 done
15415else
15416 echo "$as_me: failed program was:" >&5
15417sed 's/^/| /' conftest.$ac_ext >&5
15418
b4e70030 15419cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
15424/* end confdefs.h. */
15425$ac_includes_default
4e8d927d
DJ
15426int
15427main ()
15428{
b4e70030 15429static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
15430test_array [0] = 0
15431
15432 ;
15433 return 0;
15434}
15435_ACEOF
15436rm -f conftest.$ac_objext
15437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15438 (eval $ac_compile) 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
b4e70030
JB
15445 { ac_try='test -z "$ac_c_werror_flag"
15446 || test ! -s conftest.err'
4e8d927d
DJ
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_hi=-1 ac_mid=-1
15459 while :; do
15460 cat >conftest.$ac_ext <<_ACEOF
15461/* confdefs.h. */
15462_ACEOF
15463cat confdefs.h >>conftest.$ac_ext
15464cat >>conftest.$ac_ext <<_ACEOF
15465/* end confdefs.h. */
15466$ac_includes_default
4e8d927d
DJ
15467int
15468main ()
15469{
b4e70030 15470static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
15471test_array [0] = 0
15472
15473 ;
15474 return 0;
15475}
15476_ACEOF
15477rm -f conftest.$ac_objext
15478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>conftest.er1
15480 ac_status=$?
15481 grep -v '^ *+' conftest.er1 >conftest.err
15482 rm -f conftest.er1
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
b4e70030
JB
15486 { ac_try='test -z "$ac_c_werror_flag"
15487 || test ! -s conftest.err'
4e8d927d
DJ
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; } &&
15493 { ac_try='test -s conftest.$ac_objext'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499 ac_lo=$ac_mid; break
15500else
15501 echo "$as_me: failed program was:" >&5
15502sed 's/^/| /' conftest.$ac_ext >&5
15503
b4e70030
JB
15504ac_hi=`expr '(' $ac_mid ')' - 1`
15505 if test $ac_mid -le $ac_hi; then
15506 ac_lo= ac_hi=
15507 break
15508 fi
15509 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 15510fi
4e8d927d
DJ
15511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15512 done
15513else
15514 echo "$as_me: failed program was:" >&5
15515sed 's/^/| /' conftest.$ac_ext >&5
15516
b4e70030 15517ac_lo= ac_hi=
4e8d927d 15518fi
4e8d927d
DJ
15519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15520fi
4e8d927d
DJ
15521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15522# Binary search between lo and hi bounds.
15523while test "x$ac_lo" != "x$ac_hi"; do
15524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15525 cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531$ac_includes_default
4e8d927d
DJ
15532int
15533main ()
15534{
b4e70030 15535static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
15536test_array [0] = 0
15537
15538 ;
15539 return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext
15543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>conftest.er1
15545 ac_status=$?
15546 grep -v '^ *+' conftest.er1 >conftest.err
15547 rm -f conftest.er1
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
b4e70030
JB
15551 { ac_try='test -z "$ac_c_werror_flag"
15552 || test ! -s conftest.err'
4e8d927d
DJ
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; } &&
15558 { ac_try='test -s conftest.$ac_objext'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_hi=$ac_mid
15565else
15566 echo "$as_me: failed program was:" >&5
15567sed 's/^/| /' conftest.$ac_ext >&5
15568
b4e70030 15569ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 15570fi
4e8d927d
DJ
15571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15572done
15573case $ac_lo in
15574?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 15575'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 15576See \`config.log' for more details." >&5
b4e70030 15577echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 15578See \`config.log' for more details." >&2;}
b4e70030 15579 { (exit 1); exit 1; }; } ;;
4e8d927d 15580esac
b4e70030
JB
15581else
15582 if test "$cross_compiling" = yes; then
15583 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15584See \`config.log' for more details." >&5
15585echo "$as_me: error: cannot run test program while cross compiling
15586See \`config.log' for more details." >&2;}
15587 { (exit 1); exit 1; }; }
4e8d927d
DJ
15588else
15589 cat >conftest.$ac_ext <<_ACEOF
15590/* confdefs.h. */
15591_ACEOF
15592cat confdefs.h >>conftest.$ac_ext
15593cat >>conftest.$ac_ext <<_ACEOF
15594/* end confdefs.h. */
15595$ac_includes_default
b4e70030
JB
15596long longval () { return (long) (sizeof (char)); }
15597unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
15598#include <stdio.h>
15599#include <stdlib.h>
15600int
15601main ()
15602{
15603
15604 FILE *f = fopen ("conftest.val", "w");
15605 if (! f)
b4e70030
JB
15606 exit (1);
15607 if (((long) (sizeof (char))) < 0)
4e8d927d 15608 {
b4e70030
JB
15609 long i = longval ();
15610 if (i != ((long) (sizeof (char))))
15611 exit (1);
4e8d927d
DJ
15612 fprintf (f, "%ld\n", i);
15613 }
15614 else
15615 {
b4e70030
JB
15616 unsigned long i = ulongval ();
15617 if (i != ((long) (sizeof (char))))
15618 exit (1);
4e8d927d
DJ
15619 fprintf (f, "%lu\n", i);
15620 }
b4e70030 15621 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
15622
15623 ;
15624 return 0;
15625}
15626_ACEOF
15627rm -f conftest$ac_exeext
15628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15629 (eval $ac_link) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_cv_sizeof_char=`cat conftest.val`
15639else
15640 echo "$as_me: program exited with status $ac_status" >&5
15641echo "$as_me: failed program was:" >&5
15642sed 's/^/| /' conftest.$ac_ext >&5
15643
15644( exit $ac_status )
b4e70030 15645{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 15646See \`config.log' for more details." >&5
b4e70030 15647echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 15648See \`config.log' for more details." >&2;}
b4e70030
JB
15649 { (exit 1); exit 1; }; }
15650fi
15651rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 15652fi
4e8d927d
DJ
15653fi
15654rm -f conftest.val
15655else
15656 ac_cv_sizeof_char=0
15657fi
15658fi
b4e70030
JB
15659echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15660echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
15661cat >>confdefs.h <<_ACEOF
15662#define SIZEOF_CHAR $ac_cv_sizeof_char
15663_ACEOF
15664
15665
15666
b4e70030
JB
15667 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15668echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
15669 case "$ac_cv_sizeof_char" in
15670 1) acx_cv_type_int8_t=char ;;
15671 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15672echo "$as_me: error: no 8-bit type" >&2;}
15673 { (exit please report a bug); exit please report a bug; }; }
15674 esac
b4e70030
JB
15675 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15676echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 15677
b4e70030
JB
15678 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15679echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
15680 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15681 2:*) acx_cv_type_int16_t=int ;;
15682 *:2) acx_cv_type_int16_t=short ;;
15683 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15684echo "$as_me: error: no 16-bit type" >&2;}
15685 { (exit please report a bug); exit please report a bug; }; }
15686 esac
b4e70030
JB
15687 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15688echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 15689
b4e70030
JB
15690 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15691echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
15692 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15693 4:*) acx_cv_type_int32_t=int ;;
15694 *:4) acx_cv_type_int32_t=long ;;
15695 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15696echo "$as_me: error: no 32-bit type" >&2;}
15697 { (exit please report a bug); exit please report a bug; }; }
15698 esac
b4e70030
JB
15699 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15700echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
15701fi
15702
15703# These tests are here to make the output prettier
15704
15705if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15706 case "$ac_cv_sizeof_long" in
15707 8) acx_cv_type_int64_t=long ;;
15708 esac
b4e70030
JB
15709 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15710echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15711 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15712echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
15713fi
15714
15715# Now we can use the above types
15716
15717if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
15718 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15719echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
15720 case $ac_cv_sizeof_void_p in
15721 2) acx_cv_type_intptr_t=int16_t ;;
15722 4) acx_cv_type_intptr_t=int32_t ;;
15723 8) acx_cv_type_intptr_t=int64_t ;;
15724 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15725echo "$as_me: error: no equivalent for intptr_t" >&2;}
15726 { (exit please report a bug); exit please report a bug; }; }
15727 esac
b4e70030
JB
15728 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15729echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
15730fi
15731
15732# ----------------- done all checks, emit header -------------
b4e70030 15733 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
15734
15735
15736
15737
15738# ------------------------- #
15739# Checks for declarations. #
15740# ------------------------- #
15741
b4e70030
JB
15742echo "$as_me:$LINENO: checking whether free is declared" >&5
15743echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
15744if test "${ac_cv_have_decl_free+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746else
15747 cat >conftest.$ac_ext <<_ACEOF
15748/* confdefs.h. */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h. */
15753$ac_includes_default
15754int
15755main ()
15756{
15757#ifndef free
15758 char *p = (char *) free;
4e8d927d
DJ
15759#endif
15760
15761 ;
15762 return 0;
15763}
15764_ACEOF
15765rm -f conftest.$ac_objext
15766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>conftest.er1
15768 ac_status=$?
15769 grep -v '^ *+' conftest.er1 >conftest.err
15770 rm -f conftest.er1
15771 cat conftest.err >&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } &&
b4e70030
JB
15774 { ac_try='test -z "$ac_c_werror_flag"
15775 || test ! -s conftest.err'
4e8d927d
DJ
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; } &&
15781 { ac_try='test -s conftest.$ac_objext'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 ac_cv_have_decl_free=yes
15788else
15789 echo "$as_me: failed program was:" >&5
15790sed 's/^/| /' conftest.$ac_ext >&5
15791
b4e70030 15792ac_cv_have_decl_free=no
4e8d927d 15793fi
4e8d927d
DJ
15794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15795fi
b4e70030
JB
15796echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
15797echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
15798if test $ac_cv_have_decl_free = yes; then
15799
15800cat >>confdefs.h <<_ACEOF
15801#define HAVE_DECL_FREE 1
15802_ACEOF
15803
15804
15805else
15806 cat >>confdefs.h <<_ACEOF
15807#define HAVE_DECL_FREE 0
15808_ACEOF
15809
15810
15811fi
b4e70030
JB
15812echo "$as_me:$LINENO: checking whether malloc is declared" >&5
15813echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
15814if test "${ac_cv_have_decl_malloc+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816else
15817 cat >conftest.$ac_ext <<_ACEOF
15818/* confdefs.h. */
15819_ACEOF
15820cat confdefs.h >>conftest.$ac_ext
15821cat >>conftest.$ac_ext <<_ACEOF
15822/* end confdefs.h. */
15823$ac_includes_default
15824int
15825main ()
15826{
15827#ifndef malloc
15828 char *p = (char *) malloc;
4e8d927d
DJ
15829#endif
15830
15831 ;
15832 return 0;
15833}
15834_ACEOF
15835rm -f conftest.$ac_objext
15836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837 (eval $ac_compile) 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
b4e70030
JB
15844 { ac_try='test -z "$ac_c_werror_flag"
15845 || test ! -s conftest.err'
4e8d927d
DJ
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 ac_cv_have_decl_malloc=yes
15858else
15859 echo "$as_me: failed program was:" >&5
15860sed 's/^/| /' conftest.$ac_ext >&5
15861
b4e70030 15862ac_cv_have_decl_malloc=no
4e8d927d 15863fi
4e8d927d
DJ
15864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15865fi
b4e70030
JB
15866echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
15867echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
15868if test $ac_cv_have_decl_malloc = yes; then
15869
15870cat >>confdefs.h <<_ACEOF
15871#define HAVE_DECL_MALLOC 1
15872_ACEOF
15873
15874
15875else
15876 cat >>confdefs.h <<_ACEOF
15877#define HAVE_DECL_MALLOC 0
15878_ACEOF
15879
15880
15881fi
b4e70030
JB
15882echo "$as_me:$LINENO: checking whether realloc is declared" >&5
15883echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
15884if test "${ac_cv_have_decl_realloc+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886else
15887 cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h. */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
15892/* end confdefs.h. */
15893$ac_includes_default
15894int
15895main ()
15896{
15897#ifndef realloc
15898 char *p = (char *) realloc;
4e8d927d
DJ
15899#endif
15900
15901 ;
15902 return 0;
15903}
15904_ACEOF
15905rm -f conftest.$ac_objext
15906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
b4e70030
JB
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
4e8d927d
DJ
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_cv_have_decl_realloc=yes
15928else
15929 echo "$as_me: failed program was:" >&5
15930sed 's/^/| /' conftest.$ac_ext >&5
15931
b4e70030 15932ac_cv_have_decl_realloc=no
4e8d927d 15933fi
4e8d927d
DJ
15934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15935fi
b4e70030
JB
15936echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
15937echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
15938if test $ac_cv_have_decl_realloc = yes; then
15939
15940cat >>confdefs.h <<_ACEOF
15941#define HAVE_DECL_REALLOC 1
15942_ACEOF
15943
15944
15945else
15946 cat >>confdefs.h <<_ACEOF
15947#define HAVE_DECL_REALLOC 0
15948_ACEOF
15949
15950
15951fi
15952
15953
b4e70030
JB
15954echo "$as_me:$LINENO: checking whether strerror is declared" >&5
15955echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
15956if test "${ac_cv_have_decl_strerror+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958else
15959 cat >conftest.$ac_ext <<_ACEOF
15960/* confdefs.h. */
15961_ACEOF
15962cat confdefs.h >>conftest.$ac_ext
15963cat >>conftest.$ac_ext <<_ACEOF
15964/* end confdefs.h. */
15965$ac_includes_default
15966int
15967main ()
15968{
15969#ifndef strerror
15970 char *p = (char *) strerror;
4e8d927d
DJ
15971#endif
15972
15973 ;
15974 return 0;
15975}
15976_ACEOF
15977rm -f conftest.$ac_objext
15978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
b4e70030
JB
15986 { ac_try='test -z "$ac_c_werror_flag"
15987 || test ! -s conftest.err'
4e8d927d
DJ
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_cv_have_decl_strerror=yes
16000else
16001 echo "$as_me: failed program was:" >&5
16002sed 's/^/| /' conftest.$ac_ext >&5
16003
b4e70030 16004ac_cv_have_decl_strerror=no
4e8d927d 16005fi
4e8d927d
DJ
16006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16007fi
b4e70030
JB
16008echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16009echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
16010if test $ac_cv_have_decl_strerror = yes; then
16011
16012cat >>confdefs.h <<_ACEOF
16013#define HAVE_DECL_STRERROR 1
16014_ACEOF
16015
16016
16017else
16018 cat >>confdefs.h <<_ACEOF
16019#define HAVE_DECL_STRERROR 0
16020_ACEOF
16021
16022
16023fi
b4e70030
JB
16024echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16025echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
16026if test "${ac_cv_have_decl_strstr+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16028else
16029 cat >conftest.$ac_ext <<_ACEOF
16030/* confdefs.h. */
16031_ACEOF
16032cat confdefs.h >>conftest.$ac_ext
16033cat >>conftest.$ac_ext <<_ACEOF
16034/* end confdefs.h. */
16035$ac_includes_default
16036int
16037main ()
16038{
16039#ifndef strstr
16040 char *p = (char *) strstr;
4e8d927d
DJ
16041#endif
16042
16043 ;
16044 return 0;
16045}
16046_ACEOF
16047rm -f conftest.$ac_objext
16048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16049 (eval $ac_compile) 2>conftest.er1
16050 ac_status=$?
16051 grep -v '^ *+' conftest.er1 >conftest.err
16052 rm -f conftest.er1
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
b4e70030
JB
16056 { ac_try='test -z "$ac_c_werror_flag"
16057 || test ! -s conftest.err'
4e8d927d
DJ
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 { ac_try='test -s conftest.$ac_objext'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16066 ac_status=$?
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 ac_cv_have_decl_strstr=yes
16070else
16071 echo "$as_me: failed program was:" >&5
16072sed 's/^/| /' conftest.$ac_ext >&5
16073
b4e70030 16074ac_cv_have_decl_strstr=no
4e8d927d 16075fi
4e8d927d
DJ
16076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16077fi
b4e70030
JB
16078echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16079echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
16080if test $ac_cv_have_decl_strstr = yes; then
16081
16082cat >>confdefs.h <<_ACEOF
16083#define HAVE_DECL_STRSTR 1
16084_ACEOF
16085
16086
16087else
16088 cat >>confdefs.h <<_ACEOF
16089#define HAVE_DECL_STRSTR 0
16090_ACEOF
16091
16092
16093fi
16094
16095
b4e70030
JB
16096echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16097echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
16098if test "${ac_cv_have_decl_getopt+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100else
16101 cat >conftest.$ac_ext <<_ACEOF
16102/* confdefs.h. */
16103_ACEOF
16104cat confdefs.h >>conftest.$ac_ext
16105cat >>conftest.$ac_ext <<_ACEOF
16106/* end confdefs.h. */
16107$ac_includes_default
16108int
16109main ()
16110{
16111#ifndef getopt
16112 char *p = (char *) getopt;
4e8d927d
DJ
16113#endif
16114
16115 ;
16116 return 0;
16117}
16118_ACEOF
16119rm -f conftest.$ac_objext
16120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
b4e70030
JB
16128 { ac_try='test -z "$ac_c_werror_flag"
16129 || test ! -s conftest.err'
4e8d927d
DJ
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; } &&
16135 { ac_try='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_cv_have_decl_getopt=yes
16142else
16143 echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
b4e70030 16146ac_cv_have_decl_getopt=no
4e8d927d 16147fi
4e8d927d
DJ
16148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16149fi
b4e70030
JB
16150echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16151echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
16152if test $ac_cv_have_decl_getopt = yes; then
16153
16154cat >>confdefs.h <<_ACEOF
16155#define HAVE_DECL_GETOPT 1
16156_ACEOF
16157
16158
16159else
16160 cat >>confdefs.h <<_ACEOF
16161#define HAVE_DECL_GETOPT 0
16162_ACEOF
16163
16164
16165fi
b4e70030
JB
16166echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16167echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16168if test "${ac_cv_have_decl_snprintf+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170else
16171 cat >conftest.$ac_ext <<_ACEOF
16172/* confdefs.h. */
16173_ACEOF
16174cat confdefs.h >>conftest.$ac_ext
16175cat >>conftest.$ac_ext <<_ACEOF
16176/* end confdefs.h. */
16177$ac_includes_default
16178int
16179main ()
16180{
16181#ifndef snprintf
16182 char *p = (char *) snprintf;
4e8d927d
DJ
16183#endif
16184
16185 ;
16186 return 0;
16187}
16188_ACEOF
16189rm -f conftest.$ac_objext
16190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
b4e70030
JB
16198 { ac_try='test -z "$ac_c_werror_flag"
16199 || test ! -s conftest.err'
4e8d927d
DJ
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_cv_have_decl_snprintf=yes
16212else
16213 echo "$as_me: failed program was:" >&5
16214sed 's/^/| /' conftest.$ac_ext >&5
16215
b4e70030 16216ac_cv_have_decl_snprintf=no
4e8d927d 16217fi
4e8d927d
DJ
16218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16219fi
b4e70030
JB
16220echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16221echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
16222if test $ac_cv_have_decl_snprintf = yes; then
16223
16224cat >>confdefs.h <<_ACEOF
16225#define HAVE_DECL_SNPRINTF 1
16226_ACEOF
16227
16228
16229else
16230 cat >>confdefs.h <<_ACEOF
16231#define HAVE_DECL_SNPRINTF 0
16232_ACEOF
16233
16234
16235fi
b4e70030
JB
16236echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16237echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
16238if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240else
16241 cat >conftest.$ac_ext <<_ACEOF
16242/* confdefs.h. */
16243_ACEOF
16244cat confdefs.h >>conftest.$ac_ext
16245cat >>conftest.$ac_ext <<_ACEOF
16246/* end confdefs.h. */
16247$ac_includes_default
16248int
16249main ()
16250{
16251#ifndef vsnprintf
16252 char *p = (char *) vsnprintf;
4e8d927d
DJ
16253#endif
16254
16255 ;
16256 return 0;
16257}
16258_ACEOF
16259rm -f conftest.$ac_objext
16260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261 (eval $ac_compile) 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
b4e70030
JB
16268 { ac_try='test -z "$ac_c_werror_flag"
16269 || test ! -s conftest.err'
4e8d927d
DJ
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_have_decl_vsnprintf=yes
16282else
16283 echo "$as_me: failed program was:" >&5
16284sed 's/^/| /' conftest.$ac_ext >&5
16285
b4e70030 16286ac_cv_have_decl_vsnprintf=no
4e8d927d 16287fi
4e8d927d
DJ
16288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16289fi
b4e70030
JB
16290echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16291echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
16292if test $ac_cv_have_decl_vsnprintf = yes; then
16293
16294cat >>confdefs.h <<_ACEOF
16295#define HAVE_DECL_VSNPRINTF 1
16296_ACEOF
16297
16298
16299else
16300 cat >>confdefs.h <<_ACEOF
16301#define HAVE_DECL_VSNPRINTF 0
16302_ACEOF
16303
16304
16305fi
16306
16307
16308
16309# ----------------------- #
16310# Checks for structures. #
16311# ----------------------- #
16312
b4e70030
JB
16313echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16314echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
16315if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16317else
16318 cat >conftest.$ac_ext <<_ACEOF
16319/* confdefs.h. */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h. */
16324$ac_includes_default
16325int
16326main ()
16327{
16328static struct stat ac_aggr;
16329if (ac_aggr.st_blocks)
16330return 0;
16331 ;
16332 return 0;
16333}
16334_ACEOF
16335rm -f conftest.$ac_objext
16336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
b4e70030
JB
16344 { ac_try='test -z "$ac_c_werror_flag"
16345 || test ! -s conftest.err'
4e8d927d
DJ
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest.$ac_objext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_member_struct_stat_st_blocks=yes
16358else
16359 echo "$as_me: failed program was:" >&5
16360sed 's/^/| /' conftest.$ac_ext >&5
16361
b4e70030 16362cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16363/* confdefs.h. */
16364_ACEOF
16365cat confdefs.h >>conftest.$ac_ext
16366cat >>conftest.$ac_ext <<_ACEOF
16367/* end confdefs.h. */
16368$ac_includes_default
16369int
16370main ()
16371{
16372static struct stat ac_aggr;
16373if (sizeof ac_aggr.st_blocks)
16374return 0;
16375 ;
16376 return 0;
16377}
16378_ACEOF
16379rm -f conftest.$ac_objext
16380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16381 (eval $ac_compile) 2>conftest.er1
16382 ac_status=$?
16383 grep -v '^ *+' conftest.er1 >conftest.err
16384 rm -f conftest.er1
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } &&
b4e70030
JB
16388 { ac_try='test -z "$ac_c_werror_flag"
16389 || test ! -s conftest.err'
4e8d927d
DJ
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest.$ac_objext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 ac_cv_member_struct_stat_st_blocks=yes
16402else
16403 echo "$as_me: failed program was:" >&5
16404sed 's/^/| /' conftest.$ac_ext >&5
16405
b4e70030 16406ac_cv_member_struct_stat_st_blocks=no
4e8d927d 16407fi
4e8d927d
DJ
16408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16409fi
4e8d927d
DJ
16410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16411fi
b4e70030
JB
16412echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16413echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
16414if test $ac_cv_member_struct_stat_st_blocks = yes; then
16415
16416cat >>confdefs.h <<_ACEOF
16417#define HAVE_STRUCT_STAT_ST_BLOCKS 1
16418_ACEOF
16419
16420
16421fi
16422
b4e70030
JB
16423echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16424echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
16425if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427else
16428 cat >conftest.$ac_ext <<_ACEOF
16429/* confdefs.h. */
16430_ACEOF
16431cat confdefs.h >>conftest.$ac_ext
16432cat >>conftest.$ac_ext <<_ACEOF
16433/* end confdefs.h. */
16434$ac_includes_default
16435int
16436main ()
16437{
16438static struct stat ac_aggr;
16439if (ac_aggr.st_blksize)
16440return 0;
16441 ;
16442 return 0;
16443}
16444_ACEOF
16445rm -f conftest.$ac_objext
16446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16447 (eval $ac_compile) 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
b4e70030
JB
16454 { ac_try='test -z "$ac_c_werror_flag"
16455 || test ! -s conftest.err'
4e8d927d
DJ
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; } &&
16461 { ac_try='test -s conftest.$ac_objext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 ac_cv_member_struct_stat_st_blksize=yes
16468else
16469 echo "$as_me: failed program was:" >&5
16470sed 's/^/| /' conftest.$ac_ext >&5
16471
b4e70030 16472cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
16477/* end confdefs.h. */
16478$ac_includes_default
16479int
16480main ()
16481{
16482static struct stat ac_aggr;
16483if (sizeof ac_aggr.st_blksize)
16484return 0;
16485 ;
16486 return 0;
16487}
16488_ACEOF
16489rm -f conftest.$ac_objext
16490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16491 (eval $ac_compile) 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
b4e70030
JB
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
4e8d927d
DJ
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_member_struct_stat_st_blksize=yes
16512else
16513 echo "$as_me: failed program was:" >&5
16514sed 's/^/| /' conftest.$ac_ext >&5
16515
b4e70030 16516ac_cv_member_struct_stat_st_blksize=no
4e8d927d 16517fi
4e8d927d
DJ
16518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519fi
4e8d927d
DJ
16520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16521fi
b4e70030
JB
16522echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16523echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
16524if test $ac_cv_member_struct_stat_st_blksize = yes; then
16525
16526cat >>confdefs.h <<_ACEOF
16527#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16528_ACEOF
16529
16530
16531fi
16532
16533
16534# ------------------ #
16535# Checks for types. #
16536# ------------------ #
16537
b4e70030
JB
16538echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16539echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
16540if test "${ac_cv_type_signal+set}" = set; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16542else
16543 cat >conftest.$ac_ext <<_ACEOF
16544/* confdefs.h. */
16545_ACEOF
16546cat confdefs.h >>conftest.$ac_ext
16547cat >>conftest.$ac_ext <<_ACEOF
16548/* end confdefs.h. */
16549#include <sys/types.h>
16550#include <signal.h>
b4e70030
JB
16551#ifdef signal
16552# undef signal
16553#endif
16554#ifdef __cplusplus
16555extern "C" void (*signal (int, void (*)(int)))(int);
16556#else
16557void (*signal ()) ();
16558#endif
4e8d927d
DJ
16559
16560int
16561main ()
16562{
b4e70030 16563int i;
4e8d927d
DJ
16564 ;
16565 return 0;
16566}
16567_ACEOF
16568rm -f conftest.$ac_objext
16569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16570 (eval $ac_compile) 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
b4e70030
JB
16577 { ac_try='test -z "$ac_c_werror_flag"
16578 || test ! -s conftest.err'
4e8d927d
DJ
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; } &&
16584 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
b4e70030 16590 ac_cv_type_signal=void
4e8d927d
DJ
16591else
16592 echo "$as_me: failed program was:" >&5
16593sed 's/^/| /' conftest.$ac_ext >&5
16594
b4e70030 16595ac_cv_type_signal=int
4e8d927d 16596fi
4e8d927d
DJ
16597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16598fi
b4e70030
JB
16599echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16600echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
16601
16602cat >>confdefs.h <<_ACEOF
16603#define RETSIGTYPE $ac_cv_type_signal
16604_ACEOF
16605
16606
b4e70030
JB
16607echo "$as_me:$LINENO: checking for socklen_t" >&5
16608echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
16609if test "${ac_cv_type_socklen_t+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611else
16612 cat >conftest.$ac_ext <<_ACEOF
16613/* confdefs.h. */
16614_ACEOF
16615cat confdefs.h >>conftest.$ac_ext
16616cat >>conftest.$ac_ext <<_ACEOF
16617/* end confdefs.h. */
16618#include <sys/types.h>
16619#include <sys/socket.h>
16620
16621
4e8d927d
DJ
16622int
16623main ()
16624{
b4e70030 16625if ((socklen_t *) 0)
4e8d927d 16626 return 0;
b4e70030 16627if (sizeof (socklen_t))
4e8d927d
DJ
16628 return 0;
16629 ;
16630 return 0;
16631}
16632_ACEOF
16633rm -f conftest.$ac_objext
16634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635 (eval $ac_compile) 2>conftest.er1
16636 ac_status=$?
16637 grep -v '^ *+' conftest.er1 >conftest.err
16638 rm -f conftest.er1
16639 cat conftest.err >&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
b4e70030
JB
16642 { ac_try='test -z "$ac_c_werror_flag"
16643 || test ! -s conftest.err'
4e8d927d
DJ
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try='test -s conftest.$ac_objext'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_cv_type_socklen_t=yes
16656else
16657 echo "$as_me: failed program was:" >&5
16658sed 's/^/| /' conftest.$ac_ext >&5
16659
b4e70030 16660ac_cv_type_socklen_t=no
4e8d927d 16661fi
4e8d927d
DJ
16662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663fi
b4e70030
JB
16664echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16665echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
16666if test $ac_cv_type_socklen_t = yes; then
16667
16668cat >>confdefs.h <<_ACEOF
16669#define HAVE_SOCKLEN_T 1
16670_ACEOF
16671
16672
16673fi
16674
b4e70030
JB
16675echo "$as_me:$LINENO: checking for uintptr_t" >&5
16676echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
16677if test "${ac_cv_type_uintptr_t+set}" = set; then
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16679else
16680 cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
16686#include <stdint.h>
16687
4e8d927d
DJ
16688int
16689main ()
16690{
b4e70030 16691if ((uintptr_t *) 0)
4e8d927d 16692 return 0;
b4e70030 16693if (sizeof (uintptr_t))
4e8d927d
DJ
16694 return 0;
16695 ;
16696 return 0;
16697}
16698_ACEOF
16699rm -f conftest.$ac_objext
16700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16701 (eval $ac_compile) 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
b4e70030
JB
16708 { ac_try='test -z "$ac_c_werror_flag"
16709 || test ! -s conftest.err'
4e8d927d
DJ
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_cv_type_uintptr_t=yes
16722else
16723 echo "$as_me: failed program was:" >&5
16724sed 's/^/| /' conftest.$ac_ext >&5
16725
b4e70030 16726ac_cv_type_uintptr_t=no
4e8d927d 16727fi
4e8d927d
DJ
16728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16729fi
b4e70030
JB
16730echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16731echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
16732if test $ac_cv_type_uintptr_t = yes; then
16733
16734cat >>confdefs.h <<_ACEOF
16735#define HAVE_UINTPTR_T 1
16736_ACEOF
16737
16738
16739fi
16740
16741
16742# ------------------------------------- #
16743# Checks for compiler characteristics. #
16744# ------------------------------------- #
16745
b4e70030
JB
16746echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16747echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
16748if test "${ac_cv_c_const+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750else
16751 cat >conftest.$ac_ext <<_ACEOF
16752/* confdefs.h. */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
16756/* end confdefs.h. */
16757
16758int
16759main ()
16760{
16761/* FIXME: Include the comments suggested by Paul. */
16762#ifndef __cplusplus
16763 /* Ultrix mips cc rejects this. */
16764 typedef int charset[2];
16765 const charset x;
16766 /* SunOS 4.1.1 cc rejects this. */
16767 char const *const *ccp;
16768 char **p;
16769 /* NEC SVR4.0.2 mips cc rejects this. */
16770 struct point {int x, y;};
16771 static struct point const zero = {0,0};
16772 /* AIX XL C 1.02.0.0 rejects this.
16773 It does not let you subtract one const X* pointer from another in
16774 an arm of an if-expression whose if-part is not a constant
16775 expression */
16776 const char *g = "string";
16777 ccp = &g + (g ? g-g : 0);
16778 /* HPUX 7.0 cc rejects these. */
16779 ++ccp;
16780 p = (char**) ccp;
16781 ccp = (char const *const *) p;
16782 { /* SCO 3.2v4 cc rejects this. */
16783 char *t;
16784 char const *s = 0 ? (char *) 0 : (char const *) 0;
16785
16786 *t++ = 0;
4e8d927d
DJ
16787 }
16788 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16789 int x[] = {25, 17};
16790 const int *foo = &x[0];
16791 ++foo;
16792 }
16793 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16794 typedef const int *iptr;
16795 iptr p = 0;
16796 ++p;
16797 }
16798 { /* AIX XL C 1.02.0.0 rejects this saying
16799 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16800 struct s { int j; const int *ap[3]; };
16801 struct s *b; b->j = 5;
16802 }
16803 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16804 const int foo = 10;
4e8d927d 16805 }
4e8d927d
DJ
16806#endif
16807
16808 ;
16809 return 0;
16810}
16811_ACEOF
16812rm -f conftest.$ac_objext
16813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
b4e70030
JB
16821 { ac_try='test -z "$ac_c_werror_flag"
16822 || test ! -s conftest.err'
4e8d927d
DJ
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_c_const=yes
16835else
16836 echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
b4e70030 16839ac_cv_c_const=no
4e8d927d 16840fi
4e8d927d
DJ
16841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16842fi
b4e70030
JB
16843echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16844echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
16845if test $ac_cv_c_const = no; then
16846
16847cat >>confdefs.h <<\_ACEOF
16848#define const
16849_ACEOF
16850
16851fi
16852
b4e70030
JB
16853echo "$as_me:$LINENO: checking for inline" >&5
16854echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
16855if test "${ac_cv_c_inline+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16857else
16858 ac_cv_c_inline=no
16859for ac_kw in inline __inline__ __inline; do
16860 cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h. */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h. */
16866#ifndef __cplusplus
16867typedef int foo_t;
16868static $ac_kw foo_t static_foo () {return 0; }
16869$ac_kw foo_t foo () {return 0; }
16870#endif
16871
16872_ACEOF
16873rm -f conftest.$ac_objext
16874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16875 (eval $ac_compile) 2>conftest.er1
16876 ac_status=$?
16877 grep -v '^ *+' conftest.er1 >conftest.err
16878 rm -f conftest.er1
16879 cat conftest.err >&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
b4e70030
JB
16882 { ac_try='test -z "$ac_c_werror_flag"
16883 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
16889 { ac_try='test -s conftest.$ac_objext'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
b4e70030 16895 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
16896else
16897 echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
4e8d927d 16900fi
4e8d927d 16901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
16902done
16903
16904fi
b4e70030
JB
16905echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16906echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 16907
bec39cab 16908
a3828db0
MK
16909case $ac_cv_c_inline in
16910 inline | yes) ;;
16911 *)
16912 case $ac_cv_c_inline in
16913 no) ac_val=;;
16914 *) ac_val=$ac_cv_c_inline;;
16915 esac
16916 cat >>confdefs.h <<_ACEOF
16917#ifndef __cplusplus
16918#define inline $ac_val
16919#endif
16920_ACEOF
bec39cab
AC
16921 ;;
16922esac
bec39cab 16923
74c1b268 16924
a3828db0
MK
16925# ------------------------------ #
16926# Checks for library functions. #
16927# ------------------------------ #
bec39cab 16928
a3828db0
MK
16929# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16930# for constant arguments. Useless!
b4e70030
JB
16931echo "$as_me:$LINENO: checking for working alloca.h" >&5
16932echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 16933if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
a3828db0 16942#include <alloca.h>
bec39cab
AC
16943int
16944main ()
16945{
a3828db0 16946char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
16947 ;
16948 return 0;
16949}
16950_ACEOF
16951rm -f conftest.$ac_objext conftest$ac_exeext
16952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16953 (eval $ac_link) 2>conftest.er1
16954 ac_status=$?
16955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
b4e70030
JB
16960 { ac_try='test -z "$ac_c_werror_flag"
16961 || test ! -s conftest.err'
bec39cab
AC
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; } &&
16967 { ac_try='test -s conftest$ac_exeext'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
a3828db0 16973 ac_cv_working_alloca_h=yes
bec39cab
AC
16974else
16975 echo "$as_me: failed program was:" >&5
16976sed 's/^/| /' conftest.$ac_ext >&5
16977
b4e70030 16978ac_cv_working_alloca_h=no
bec39cab
AC
16979fi
16980rm -f conftest.err conftest.$ac_objext \
16981 conftest$ac_exeext conftest.$ac_ext
16982fi
b4e70030
JB
16983echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16984echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
16985if test $ac_cv_working_alloca_h = yes; then
16986
16987cat >>confdefs.h <<\_ACEOF
16988#define HAVE_ALLOCA_H 1
bec39cab 16989_ACEOF
74c1b268 16990
74c1b268
AC
16991fi
16992
b4e70030
JB
16993echo "$as_me:$LINENO: checking for alloca" >&5
16994echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 16995if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 16996 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 16997else
bec39cab
AC
16998 cat >conftest.$ac_ext <<_ACEOF
16999/* confdefs.h. */
17000_ACEOF
17001cat confdefs.h >>conftest.$ac_ext
17002cat >>conftest.$ac_ext <<_ACEOF
17003/* end confdefs.h. */
a3828db0
MK
17004#ifdef __GNUC__
17005# define alloca __builtin_alloca
17006#else
17007# ifdef _MSC_VER
17008# include <malloc.h>
17009# define alloca _alloca
17010# else
17011# if HAVE_ALLOCA_H
17012# include <alloca.h>
17013# else
17014# ifdef _AIX
17015 #pragma alloca
17016# else
17017# ifndef alloca /* predefined by HP cc +Olibcalls */
17018char *alloca ();
17019# endif
17020# endif
17021# endif
97bf5e38 17022# endif
a3828db0 17023#endif
97bf5e38 17024
bec39cab
AC
17025int
17026main ()
17027{
a3828db0 17028char *p = (char *) alloca (1);
bec39cab
AC
17029 ;
17030 return 0;
17031}
17032_ACEOF
a3828db0
MK
17033rm -f conftest.$ac_objext conftest$ac_exeext
17034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
b4e70030
JB
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
bec39cab
AC
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
a3828db0 17049 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
a3828db0 17055 ac_cv_func_alloca_works=yes
0200359f 17056else
bec39cab
AC
17057 echo "$as_me: failed program was:" >&5
17058sed 's/^/| /' conftest.$ac_ext >&5
0200359f 17059
b4e70030 17060ac_cv_func_alloca_works=no
0200359f 17061fi
a3828db0
MK
17062rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
72473524 17064fi
b4e70030
JB
17065echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17066echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 17067
a3828db0
MK
17068if test $ac_cv_func_alloca_works = yes; then
17069
17070cat >>confdefs.h <<\_ACEOF
17071#define HAVE_ALLOCA 1
bec39cab
AC
17072_ACEOF
17073
a3828db0
MK
17074else
17075 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17076# that cause trouble. Some versions do not even contain alloca or
17077# contain a buggy version. If you still want to use their alloca,
17078# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 17079
b4e70030 17080ALLOCA=alloca.$ac_objext
bec39cab 17081
a3828db0
MK
17082cat >>confdefs.h <<\_ACEOF
17083#define C_ALLOCA 1
17084_ACEOF
bec39cab 17085
a3828db0 17086
b4e70030
JB
17087echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17088echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 17089if test "${ac_cv_os_cray+set}" = set; then
bec39cab 17090 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17091else
a3828db0 17092 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17093/* confdefs.h. */
17094_ACEOF
17095cat confdefs.h >>conftest.$ac_ext
17096cat >>conftest.$ac_ext <<_ACEOF
17097/* end confdefs.h. */
b4e70030 17098#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
17099webecray
17100#else
17101wenotbecray
17102#endif
17103
17104_ACEOF
17105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17106 $EGREP "webecray" >/dev/null 2>&1; then
17107 ac_cv_os_cray=yes
17108else
17109 ac_cv_os_cray=no
17110fi
17111rm -f conftest*
17112
17113fi
b4e70030
JB
17114echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17115echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
17116if test $ac_cv_os_cray = yes; then
17117 for ac_func in _getb67 GETB67 getb67; do
17118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17119echo "$as_me:$LINENO: checking for $ac_func" >&5
17120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17121if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17123else
17124 cat >conftest.$ac_ext <<_ACEOF
17125/* confdefs.h. */
17126_ACEOF
17127cat confdefs.h >>conftest.$ac_ext
17128cat >>conftest.$ac_ext <<_ACEOF
17129/* end confdefs.h. */
17130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17132#define $ac_func innocuous_$ac_func
17133
17134/* System header to define __stub macros and hopefully few prototypes,
17135 which can conflict with char $ac_func (); below.
17136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17137 <limits.h> exists even on freestanding compilers. */
17138
17139#ifdef __STDC__
17140# include <limits.h>
17141#else
17142# include <assert.h>
17143#endif
17144
17145#undef $ac_func
17146
b4e70030 17147/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17148#ifdef __cplusplus
17149extern "C"
b4e70030 17150{
a3828db0 17151#endif
b4e70030
JB
17152/* We use char because int might match the return type of a gcc2
17153 builtin and then its argument prototype would still apply. */
a3828db0
MK
17154char $ac_func ();
17155/* The GNU C library defines this for functions which it implements
17156 to always fail with ENOSYS. Some functions are actually named
17157 something starting with __ and the normal name is an alias. */
b4e70030 17158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17159choke me
b4e70030
JB
17160#else
17161char (*f) () = $ac_func;
17162#endif
17163#ifdef __cplusplus
17164}
a3828db0
MK
17165#endif
17166
17167int
17168main ()
17169{
b4e70030 17170return f != $ac_func;
a3828db0
MK
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext conftest$ac_exeext
17176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
b4e70030
JB
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
a3828db0
MK
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 eval "$as_ac_var=yes"
17198else
17199 echo "$as_me: failed program was:" >&5
17200sed 's/^/| /' conftest.$ac_ext >&5
17201
b4e70030 17202eval "$as_ac_var=no"
a3828db0
MK
17203fi
17204rm -f conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17206fi
b4e70030
JB
17207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17209if test `eval echo '${'$as_ac_var'}'` = yes; then
17210
17211cat >>confdefs.h <<_ACEOF
17212#define CRAY_STACKSEG_END $ac_func
17213_ACEOF
17214
17215 break
17216fi
17217
17218 done
17219fi
17220
b4e70030
JB
17221echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17222echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
17223if test "${ac_cv_c_stack_direction+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 if test "$cross_compiling" = yes; then
17227 ac_cv_c_stack_direction=0
17228else
17229 cat >conftest.$ac_ext <<_ACEOF
17230/* confdefs.h. */
17231_ACEOF
17232cat confdefs.h >>conftest.$ac_ext
17233cat >>conftest.$ac_ext <<_ACEOF
17234/* end confdefs.h. */
17235int
17236find_stack_direction ()
17237{
17238 static char *addr = 0;
17239 auto char dummy;
17240 if (addr == 0)
17241 {
17242 addr = &dummy;
17243 return find_stack_direction ();
17244 }
17245 else
17246 return (&dummy > addr) ? 1 : -1;
17247}
17248
17249int
17250main ()
17251{
b4e70030 17252 exit (find_stack_direction () < 0);
a3828db0
MK
17253}
17254_ACEOF
17255rm -f conftest$ac_exeext
17256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257 (eval $ac_link) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_cv_c_stack_direction=1
17267else
17268 echo "$as_me: program exited with status $ac_status" >&5
17269echo "$as_me: failed program was:" >&5
17270sed 's/^/| /' conftest.$ac_ext >&5
17271
17272( exit $ac_status )
17273ac_cv_c_stack_direction=-1
17274fi
b4e70030 17275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17276fi
17277fi
b4e70030
JB
17278echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17279echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
17280
17281cat >>confdefs.h <<_ACEOF
17282#define STACK_DIRECTION $ac_cv_c_stack_direction
17283_ACEOF
17284
17285
17286fi
17287
17288
17289
17290for ac_header in stdlib.h unistd.h
17291do
17292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
17293if eval "test \"\${$as_ac_Header+set}\" = set"; then
17294 echo "$as_me:$LINENO: checking for $ac_header" >&5
17295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17296if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17298fi
b4e70030
JB
17299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
17301else
17302 # Is the header compilable?
b4e70030
JB
17303echo "$as_me:$LINENO: checking $ac_header usability" >&5
17304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
17305cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
17311$ac_includes_default
17312#include <$ac_header>
17313_ACEOF
17314rm -f conftest.$ac_objext
17315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17317 ac_status=$?
bec39cab
AC
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
b4e70030
JB
17323 { ac_try='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
bec39cab
AC
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_header_compiler=yes
17337else
17338 echo "$as_me: failed program was:" >&5
17339sed 's/^/| /' conftest.$ac_ext >&5
17340
b4e70030 17341ac_header_compiler=no
bec39cab
AC
17342fi
17343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
17344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17345echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
17346
17347# Is the header present?
b4e70030
JB
17348echo "$as_me:$LINENO: checking $ac_header presence" >&5
17349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
17350cat >conftest.$ac_ext <<_ACEOF
17351/* confdefs.h. */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h. */
17356#include <$ac_header>
17357_ACEOF
17358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } >/dev/null; then
17366 if test -s conftest.err; then
17367 ac_cpp_err=$ac_c_preproc_warn_flag
17368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17369 else
17370 ac_cpp_err=
17371 fi
17372else
17373 ac_cpp_err=yes
17374fi
17375if test -z "$ac_cpp_err"; then
17376 ac_header_preproc=yes
97bf5e38 17377else
bec39cab
AC
17378 echo "$as_me: failed program was:" >&5
17379sed 's/^/| /' conftest.$ac_ext >&5
17380
17381 ac_header_preproc=no
72473524 17382fi
bec39cab 17383rm -f conftest.err conftest.$ac_ext
b4e70030
JB
17384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17385echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 17386
bec39cab
AC
17387# So? What about this header?
17388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17389 yes:no: )
17390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17394 ac_header_preproc=yes
17395 ;;
17396 no:yes:* )
17397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17409 (
17410 cat <<\_ASBOX
17411## ------------------------------------------ ##
17412## Report this to the AC_PACKAGE_NAME lists. ##
17413## ------------------------------------------ ##
17414_ASBOX
17415 ) |
17416 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
17417 ;;
17418esac
b4e70030
JB
17419echo "$as_me:$LINENO: checking for $ac_header" >&5
17420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17421if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 17422 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17423else
bec39cab
AC
17424 eval "$as_ac_Header=\$ac_header_preproc"
17425fi
b4e70030
JB
17426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
17428
17429fi
17430if test `eval echo '${'$as_ac_Header'}'` = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17433_ACEOF
17434
17435fi
17436
17437done
17438
17439
a3828db0 17440for ac_func in getpagesize
bec39cab
AC
17441do
17442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17443echo "$as_me:$LINENO: checking for $ac_func" >&5
17444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17445if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447else
17448 cat >conftest.$ac_ext <<_ACEOF
17449/* confdefs.h. */
17450_ACEOF
17451cat confdefs.h >>conftest.$ac_ext
17452cat >>conftest.$ac_ext <<_ACEOF
17453/* end confdefs.h. */
17454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17456#define $ac_func innocuous_$ac_func
17457
97bf5e38 17458/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17459 which can conflict with char $ac_func (); below.
17460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17461 <limits.h> exists even on freestanding compilers. */
2b2d558c 17462
bec39cab
AC
17463#ifdef __STDC__
17464# include <limits.h>
17465#else
17466# include <assert.h>
17467#endif
97bf5e38 17468
bec39cab
AC
17469#undef $ac_func
17470
b4e70030 17471/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17472#ifdef __cplusplus
17473extern "C"
b4e70030 17474{
bec39cab 17475#endif
b4e70030
JB
17476/* We use char because int might match the return type of a gcc2
17477 builtin and then its argument prototype would still apply. */
bec39cab 17478char $ac_func ();
97bf5e38
MK
17479/* The GNU C library defines this for functions which it implements
17480 to always fail with ENOSYS. Some functions are actually named
17481 something starting with __ and the normal name is an alias. */
b4e70030 17482#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17483choke me
b4e70030
JB
17484#else
17485char (*f) () = $ac_func;
17486#endif
17487#ifdef __cplusplus
17488}
97bf5e38
MK
17489#endif
17490
bec39cab
AC
17491int
17492main ()
17493{
b4e70030 17494return f != $ac_func;
bec39cab
AC
17495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext conftest$ac_exeext
17500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17501 (eval $ac_link) 2>conftest.er1
17502 ac_status=$?
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
b4e70030
JB
17508 { ac_try='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
bec39cab
AC
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest$ac_exeext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 eval "$as_ac_var=yes"
17522else
17523 echo "$as_me: failed program was:" >&5
17524sed 's/^/| /' conftest.$ac_ext >&5
17525
b4e70030 17526eval "$as_ac_var=no"
bec39cab
AC
17527fi
17528rm -f conftest.err conftest.$ac_objext \
17529 conftest$ac_exeext conftest.$ac_ext
17530fi
b4e70030
JB
17531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17533if test `eval echo '${'$as_ac_var'}'` = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536_ACEOF
17537
2b2d558c 17538fi
bec39cab 17539done
2b2d558c 17540
b4e70030
JB
17541echo "$as_me:$LINENO: checking for working mmap" >&5
17542echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 17543if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 17544 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17545else
bec39cab 17546 if test "$cross_compiling" = yes; then
a3828db0 17547 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
17548else
17549 cat >conftest.$ac_ext <<_ACEOF
a3828db0 17550/* confdefs.h. */
bec39cab
AC
17551_ACEOF
17552cat confdefs.h >>conftest.$ac_ext
17553cat >>conftest.$ac_ext <<_ACEOF
17554/* end confdefs.h. */
a3828db0
MK
17555$ac_includes_default
17556/* malloc might have been renamed as rpl_malloc. */
17557#undef malloc
bec39cab 17558
a3828db0
MK
17559/* Thanks to Mike Haertel and Jim Avera for this test.
17560 Here is a matrix of mmap possibilities:
17561 mmap private not fixed
17562 mmap private fixed at somewhere currently unmapped
17563 mmap private fixed at somewhere already mapped
17564 mmap shared not fixed
17565 mmap shared fixed at somewhere currently unmapped
17566 mmap shared fixed at somewhere already mapped
17567 For private mappings, we should verify that changes cannot be read()
17568 back from the file, nor mmap's back from the file at a different
17569 address. (There have been systems where private was not correctly
17570 implemented like the infamous i386 svr4.0, and systems where the
17571 VM page cache was not coherent with the file system buffer cache
17572 like early versions of FreeBSD and possibly contemporary NetBSD.)
17573 For shared mappings, we should conversely verify that changes get
17574 propagated back to all the places they're supposed to be.
7dfa765c 17575
a3828db0
MK
17576 Grep wants private fixed already mapped.
17577 The main things grep needs to know about mmap are:
17578 * does it exist and is it safe to write into the mmap'd area
17579 * how to use it (BSD variants) */
7dfa765c 17580
a3828db0
MK
17581#include <fcntl.h>
17582#include <sys/mman.h>
7dfa765c 17583
a3828db0
MK
17584#if !STDC_HEADERS && !HAVE_STDLIB_H
17585char *malloc ();
17586#endif
7dfa765c 17587
a3828db0
MK
17588/* This mess was copied from the GNU getpagesize.h. */
17589#if !HAVE_GETPAGESIZE
17590/* Assume that all systems that can run configure have sys/param.h. */
17591# if !HAVE_SYS_PARAM_H
17592# define HAVE_SYS_PARAM_H 1
17593# endif
64bb1671 17594
a3828db0
MK
17595# ifdef _SC_PAGESIZE
17596# define getpagesize() sysconf(_SC_PAGESIZE)
17597# else /* no _SC_PAGESIZE */
17598# if HAVE_SYS_PARAM_H
17599# include <sys/param.h>
17600# ifdef EXEC_PAGESIZE
17601# define getpagesize() EXEC_PAGESIZE
17602# else /* no EXEC_PAGESIZE */
17603# ifdef NBPG
17604# define getpagesize() NBPG * CLSIZE
17605# ifndef CLSIZE
17606# define CLSIZE 1
17607# endif /* no CLSIZE */
17608# else /* no NBPG */
17609# ifdef NBPC
17610# define getpagesize() NBPC
17611# else /* no NBPC */
17612# ifdef PAGESIZE
17613# define getpagesize() PAGESIZE
17614# endif /* PAGESIZE */
17615# endif /* no NBPC */
17616# endif /* no NBPG */
17617# endif /* no EXEC_PAGESIZE */
17618# else /* no HAVE_SYS_PARAM_H */
17619# define getpagesize() 8192 /* punt totally */
17620# endif /* no HAVE_SYS_PARAM_H */
17621# endif /* no _SC_PAGESIZE */
64bb1671 17622
a3828db0 17623#endif /* no HAVE_GETPAGESIZE */
64bb1671 17624
a3828db0
MK
17625int
17626main ()
17627{
17628 char *data, *data2, *data3;
17629 int i, pagesize;
17630 int fd;
97bf5e38 17631
a3828db0
MK
17632 pagesize = getpagesize ();
17633
17634 /* First, make a file with some known garbage in it. */
17635 data = (char *) malloc (pagesize);
17636 if (!data)
b4e70030 17637 exit (1);
a3828db0
MK
17638 for (i = 0; i < pagesize; ++i)
17639 *(data + i) = rand ();
17640 umask (0);
17641 fd = creat ("conftest.mmap", 0600);
17642 if (fd < 0)
b4e70030 17643 exit (1);
a3828db0 17644 if (write (fd, data, pagesize) != pagesize)
b4e70030 17645 exit (1);
a3828db0
MK
17646 close (fd);
17647
17648 /* Next, try to mmap the file at a fixed address which already has
17649 something else allocated at it. If we can, also make sure that
17650 we see the same garbage. */
17651 fd = open ("conftest.mmap", O_RDWR);
17652 if (fd < 0)
b4e70030 17653 exit (1);
a3828db0
MK
17654 data2 = (char *) malloc (2 * pagesize);
17655 if (!data2)
b4e70030
JB
17656 exit (1);
17657 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
17658 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17659 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 17660 exit (1);
a3828db0
MK
17661 for (i = 0; i < pagesize; ++i)
17662 if (*(data + i) != *(data2 + i))
b4e70030 17663 exit (1);
a3828db0
MK
17664
17665 /* Finally, make sure that changes to the mapped area do not
17666 percolate back to the file as seen by read(). (This is a bug on
17667 some variants of i386 svr4.0.) */
17668 for (i = 0; i < pagesize; ++i)
17669 *(data2 + i) = *(data2 + i) + 1;
17670 data3 = (char *) malloc (pagesize);
17671 if (!data3)
b4e70030 17672 exit (1);
a3828db0 17673 if (read (fd, data3, pagesize) != pagesize)
b4e70030 17674 exit (1);
a3828db0
MK
17675 for (i = 0; i < pagesize; ++i)
17676 if (*(data + i) != *(data3 + i))
b4e70030 17677 exit (1);
a3828db0 17678 close (fd);
b4e70030 17679 exit (0);
97bf5e38 17680}
bec39cab
AC
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
a3828db0 17693 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 17694else
bec39cab
AC
17695 echo "$as_me: program exited with status $ac_status" >&5
17696echo "$as_me: failed program was:" >&5
17697sed 's/^/| /' conftest.$ac_ext >&5
17698
17699( exit $ac_status )
a3828db0 17700ac_cv_func_mmap_fixed_mapped=no
0afdd437 17701fi
b4e70030 17702rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 17703fi
a3828db0 17704fi
b4e70030
JB
17705echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17706echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 17707if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
17708
17709cat >>confdefs.h <<\_ACEOF
a3828db0 17710#define HAVE_MMAP 1
bec39cab 17711_ACEOF
0afdd437
MK
17712
17713fi
a3828db0 17714rm -f conftest.mmap
0afdd437 17715
b4e70030
JB
17716echo "$as_me:$LINENO: checking for pid_t" >&5
17717echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 17718if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720else
17721 cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h. */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h. */
a3828db0 17727$ac_includes_default
bec39cab
AC
17728int
17729main ()
17730{
b4e70030 17731if ((pid_t *) 0)
a3828db0 17732 return 0;
b4e70030 17733if (sizeof (pid_t))
a3828db0 17734 return 0;
bec39cab
AC
17735 ;
17736 return 0;
17737}
17738_ACEOF
a3828db0
MK
17739rm -f conftest.$ac_objext
17740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17741 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
17742 ac_status=$?
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
b4e70030
JB
17748 { ac_try='test -z "$ac_c_werror_flag"
17749 || test ! -s conftest.err'
bec39cab
AC
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
a3828db0 17755 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
a3828db0 17761 ac_cv_type_pid_t=yes
bec39cab
AC
17762else
17763 echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
b4e70030 17766ac_cv_type_pid_t=no
bec39cab 17767fi
a3828db0 17768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 17769fi
b4e70030
JB
17770echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17771echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
17772if test $ac_cv_type_pid_t = yes; then
17773 :
17774else
17775
17776cat >>confdefs.h <<_ACEOF
17777#define pid_t int
bec39cab 17778_ACEOF
7e89e357 17779
7e89e357
JT
17780fi
17781
bec39cab 17782
b4e70030
JB
17783
17784for ac_header in unistd.h vfork.h
7be570e7 17785do
a3828db0 17786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
17787if eval "test \"\${$as_ac_Header+set}\" = set"; then
17788 echo "$as_me:$LINENO: checking for $ac_header" >&5
17789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17790if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 17791 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 17792fi
b4e70030
JB
17793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 17795else
a3828db0 17796 # Is the header compilable?
b4e70030
JB
17797echo "$as_me:$LINENO: checking $ac_header usability" >&5
17798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 17799cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17800/* confdefs.h. */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h. */
a3828db0
MK
17805$ac_includes_default
17806#include <$ac_header>
bec39cab 17807_ACEOF
a3828db0
MK
17808rm -f conftest.$ac_objext
17809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17810 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
17811 ac_status=$?
17812 grep -v '^ *+' conftest.er1 >conftest.err
17813 rm -f conftest.er1
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
b4e70030
JB
17817 { ac_try='test -z "$ac_c_werror_flag"
17818 || test ! -s conftest.err'
bec39cab
AC
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
a3828db0 17824 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; }; then
a3828db0 17830 ac_header_compiler=yes
bec39cab
AC
17831else
17832 echo "$as_me: failed program was:" >&5
17833sed 's/^/| /' conftest.$ac_ext >&5
17834
b4e70030 17835ac_header_compiler=no
bec39cab 17836fi
a3828db0 17837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
17838echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17839echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
17840
17841# Is the header present?
b4e70030
JB
17842echo "$as_me:$LINENO: checking $ac_header presence" >&5
17843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
17844cat >conftest.$ac_ext <<_ACEOF
17845/* confdefs.h. */
17846_ACEOF
17847cat confdefs.h >>conftest.$ac_ext
17848cat >>conftest.$ac_ext <<_ACEOF
17849/* end confdefs.h. */
17850#include <$ac_header>
17851_ACEOF
17852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17854 ac_status=$?
17855 grep -v '^ *+' conftest.er1 >conftest.err
17856 rm -f conftest.er1
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } >/dev/null; then
17860 if test -s conftest.err; then
17861 ac_cpp_err=$ac_c_preproc_warn_flag
17862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17863 else
17864 ac_cpp_err=
17865 fi
17866else
17867 ac_cpp_err=yes
17868fi
17869if test -z "$ac_cpp_err"; then
17870 ac_header_preproc=yes
17871else
17872 echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 ac_header_preproc=no
17876fi
17877rm -f conftest.err conftest.$ac_ext
b4e70030
JB
17878echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17879echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
17880
17881# So? What about this header?
17882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17883 yes:no: )
17884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17885echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17887echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17888 ac_header_preproc=yes
17889 ;;
17890 no:yes:* )
17891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17892echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17894echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17896echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17898echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17902echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17903 (
17904 cat <<\_ASBOX
17905## ------------------------------------------ ##
17906## Report this to the AC_PACKAGE_NAME lists. ##
17907## ------------------------------------------ ##
17908_ASBOX
17909 ) |
17910 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
17911 ;;
17912esac
b4e70030
JB
17913echo "$as_me:$LINENO: checking for $ac_header" >&5
17914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17915if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17917else
17918 eval "$as_ac_Header=\$ac_header_preproc"
17919fi
b4e70030
JB
17920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 17922
bec39cab 17923fi
a3828db0 17924if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 17925 cat >>confdefs.h <<_ACEOF
a3828db0 17926#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 17927_ACEOF
14abd0fb 17928
14abd0fb 17929fi
a3828db0 17930
14abd0fb
MK
17931done
17932
bec39cab 17933
a3828db0
MK
17934
17935for ac_func in fork vfork
14abd0fb 17936do
bec39cab 17937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17938echo "$as_me:$LINENO: checking for $ac_func" >&5
17939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17940if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17942else
17943 cat >conftest.$ac_ext <<_ACEOF
17944/* confdefs.h. */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h. */
17949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17951#define $ac_func innocuous_$ac_func
17952
14abd0fb 17953/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17954 which can conflict with char $ac_func (); below.
17955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17956 <limits.h> exists even on freestanding compilers. */
17957
17958#ifdef __STDC__
17959# include <limits.h>
17960#else
17961# include <assert.h>
17962#endif
14abd0fb 17963
bec39cab 17964#undef $ac_func
14abd0fb 17965
b4e70030 17966/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17967#ifdef __cplusplus
17968extern "C"
b4e70030 17969{
bec39cab 17970#endif
b4e70030
JB
17971/* We use char because int might match the return type of a gcc2
17972 builtin and then its argument prototype would still apply. */
bec39cab 17973char $ac_func ();
14abd0fb
MK
17974/* The GNU C library defines this for functions which it implements
17975 to always fail with ENOSYS. Some functions are actually named
17976 something starting with __ and the normal name is an alias. */
b4e70030 17977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 17978choke me
b4e70030
JB
17979#else
17980char (*f) () = $ac_func;
17981#endif
17982#ifdef __cplusplus
17983}
14abd0fb
MK
17984#endif
17985
bec39cab
AC
17986int
17987main ()
17988{
b4e70030 17989return f != $ac_func;
bec39cab
AC
17990 ;
17991 return 0;
17992}
17993_ACEOF
17994rm -f conftest.$ac_objext conftest$ac_exeext
17995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
b4e70030
JB
18003 { ac_try='test -z "$ac_c_werror_flag"
18004 || test ! -s conftest.err'
bec39cab
AC
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 eval "$as_ac_var=yes"
18017else
18018 echo "$as_me: failed program was:" >&5
18019sed 's/^/| /' conftest.$ac_ext >&5
18020
b4e70030 18021eval "$as_ac_var=no"
bec39cab
AC
18022fi
18023rm -f conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025fi
b4e70030
JB
18026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18028if test `eval echo '${'$as_ac_var'}'` = yes; then
18029 cat >>confdefs.h <<_ACEOF
18030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18031_ACEOF
7be570e7 18032
7be570e7
JM
18033fi
18034done
18035
a3828db0 18036if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
18037 echo "$as_me:$LINENO: checking for working fork" >&5
18038echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
18039if test "${ac_cv_func_fork_works+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041else
18042 if test "$cross_compiling" = yes; then
18043 ac_cv_func_fork_works=cross
18044else
18045 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
18046/* By Ruediger Kuhlmann. */
18047 #include <sys/types.h>
18048 #if HAVE_UNISTD_H
18049 # include <unistd.h>
18050 #endif
18051 /* Some systems only have a dummy stub for fork() */
18052 int main ()
18053 {
18054 if (fork() < 0)
18055 exit (1);
18056 exit (0);
18057 }
a3828db0
MK
18058_ACEOF
18059rm -f conftest$ac_exeext
18060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18061 (eval $ac_link) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_func_fork_works=yes
18071else
18072 echo "$as_me: program exited with status $ac_status" >&5
18073echo "$as_me: failed program was:" >&5
18074sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 18075
a3828db0
MK
18076( exit $ac_status )
18077ac_cv_func_fork_works=no
18078fi
b4e70030 18079rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18080fi
18081fi
b4e70030
JB
18082echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18083echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
18084
18085else
18086 ac_cv_func_fork_works=$ac_cv_func_fork
18087fi
18088if test "x$ac_cv_func_fork_works" = xcross; then
18089 case $host in
18090 *-*-amigaos* | *-*-msdosdjgpp*)
18091 # Override, as these systems have only a dummy fork() stub
18092 ac_cv_func_fork_works=no
18093 ;;
18094 *)
18095 ac_cv_func_fork_works=yes
18096 ;;
18097 esac
18098 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18099echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18100fi
18101ac_cv_func_vfork_works=$ac_cv_func_vfork
18102if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
18103 echo "$as_me:$LINENO: checking for working vfork" >&5
18104echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 18105if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 18106 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18107else
18108 if test "$cross_compiling" = yes; then
18109 ac_cv_func_vfork_works=cross
bec39cab
AC
18110else
18111 cat >conftest.$ac_ext <<_ACEOF
18112/* confdefs.h. */
18113_ACEOF
18114cat confdefs.h >>conftest.$ac_ext
18115cat >>conftest.$ac_ext <<_ACEOF
18116/* end confdefs.h. */
a3828db0 18117/* Thanks to Paul Eggert for this test. */
b4e70030
JB
18118#include <stdio.h>
18119#include <stdlib.h>
18120#include <sys/types.h>
18121#include <sys/stat.h>
a3828db0 18122#include <sys/wait.h>
b4e70030
JB
18123#if HAVE_UNISTD_H
18124# include <unistd.h>
18125#endif
a3828db0
MK
18126#if HAVE_VFORK_H
18127# include <vfork.h>
bec39cab 18128#endif
a3828db0
MK
18129/* On some sparc systems, changes by the child to local and incoming
18130 argument registers are propagated back to the parent. The compiler
18131 is told about this with #include <vfork.h>, but some compilers
18132 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18133 static variable whose address is put into a register that is
18134 clobbered by the vfork. */
18135static void
bec39cab 18136#ifdef __cplusplus
a3828db0
MK
18137sparc_address_test (int arg)
18138# else
18139sparc_address_test (arg) int arg;
c906108c 18140#endif
a3828db0
MK
18141{
18142 static pid_t child;
18143 if (!child) {
18144 child = vfork ();
18145 if (child < 0) {
18146 perror ("vfork");
18147 _exit(2);
18148 }
18149 if (!child) {
18150 arg = getpid();
18151 write(-1, "", 0);
18152 _exit (arg);
18153 }
18154 }
18155}
97bf5e38 18156
bec39cab
AC
18157int
18158main ()
18159{
a3828db0
MK
18160 pid_t parent = getpid ();
18161 pid_t child;
18162
18163 sparc_address_test (0);
18164
18165 child = vfork ();
18166
18167 if (child == 0) {
18168 /* Here is another test for sparc vfork register problems. This
18169 test uses lots of local variables, at least as many local
18170 variables as main has allocated so far including compiler
18171 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18172 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18173 reuse the register of parent for one of the local variables,
18174 since it will think that parent can't possibly be used any more
18175 in this routine. Assigning to the local variable will thus
18176 munge parent in the parent process. */
18177 pid_t
18178 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18179 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18180 /* Convince the compiler that p..p7 are live; otherwise, it might
18181 use the same hardware register for all 8 local variables. */
18182 if (p != p1 || p != p2 || p != p3 || p != p4
18183 || p != p5 || p != p6 || p != p7)
18184 _exit(1);
18185
18186 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18187 from child file descriptors. If the child closes a descriptor
18188 before it execs or exits, this munges the parent's descriptor
18189 as well. Test for this by closing stdout in the child. */
18190 _exit(close(fileno(stdout)) != 0);
18191 } else {
18192 int status;
18193 struct stat st;
18194
18195 while (wait(&status) != child)
18196 ;
b4e70030 18197 exit(
a3828db0
MK
18198 /* Was there some problem with vforking? */
18199 child < 0
18200
18201 /* Did the child fail? (This shouldn't happen.) */
18202 || status
18203
18204 /* Did the vfork/compiler bug occur? */
18205 || parent != getpid()
18206
18207 /* Did the file descriptor bug occur? */
18208 || fstat(fileno(stdout), &st) != 0
18209 );
18210 }
bec39cab
AC
18211}
18212_ACEOF
a3828db0 18213rm -f conftest$ac_exeext
bec39cab 18214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 18215 (eval $ac_link) 2>&5
bec39cab
AC
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
a3828db0
MK
18224 ac_cv_func_vfork_works=yes
18225else
18226 echo "$as_me: program exited with status $ac_status" >&5
18227echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230( exit $ac_status )
18231ac_cv_func_vfork_works=no
18232fi
b4e70030 18233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18234fi
18235fi
b4e70030
JB
18236echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18237echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
18238
18239fi;
18240if test "x$ac_cv_func_fork_works" = xcross; then
18241 ac_cv_func_vfork_works=$ac_cv_func_vfork
18242 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18243echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18244fi
18245
18246if test "x$ac_cv_func_vfork_works" = xyes; then
18247
18248cat >>confdefs.h <<\_ACEOF
18249#define HAVE_WORKING_VFORK 1
18250_ACEOF
18251
bec39cab 18252else
bec39cab 18253
a3828db0
MK
18254cat >>confdefs.h <<\_ACEOF
18255#define vfork fork
18256_ACEOF
18257
bec39cab 18258fi
a3828db0
MK
18259if test "x$ac_cv_func_fork_works" = xyes; then
18260
18261cat >>confdefs.h <<\_ACEOF
18262#define HAVE_WORKING_FORK 1
bec39cab 18263_ACEOF
c906108c 18264
c906108c
SS
18265fi
18266
bec39cab
AC
18267
18268
a3828db0 18269for ac_func in canonicalize_file_name realpath
97bf5e38 18270do
bec39cab 18271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18272echo "$as_me:$LINENO: checking for $ac_func" >&5
18273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18274if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276else
18277 cat >conftest.$ac_ext <<_ACEOF
18278/* confdefs.h. */
18279_ACEOF
18280cat confdefs.h >>conftest.$ac_ext
18281cat >>conftest.$ac_ext <<_ACEOF
18282/* end confdefs.h. */
18283/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18285#define $ac_func innocuous_$ac_func
18286
d3ea6809
MM
18287/* System header to define __stub macros and hopefully few prototypes,
18288 which can conflict with char $ac_func (); below.
18289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290 <limits.h> exists even on freestanding compilers. */
18291
18292#ifdef __STDC__
18293# include <limits.h>
18294#else
18295# include <assert.h>
18296#endif
18297
18298#undef $ac_func
18299
b4e70030 18300/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
18301#ifdef __cplusplus
18302extern "C"
b4e70030 18303{
d3ea6809 18304#endif
b4e70030
JB
18305/* We use char because int might match the return type of a gcc2
18306 builtin and then its argument prototype would still apply. */
d3ea6809
MM
18307char $ac_func ();
18308/* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
b4e70030 18311#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 18312choke me
b4e70030
JB
18313#else
18314char (*f) () = $ac_func;
18315#endif
18316#ifdef __cplusplus
18317}
d3ea6809
MM
18318#endif
18319
18320int
18321main ()
18322{
b4e70030 18323return f != $ac_func;
d3ea6809
MM
18324 ;
18325 return 0;
18326}
18327_ACEOF
18328rm -f conftest.$ac_objext conftest$ac_exeext
18329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
b4e70030
JB
18337 { ac_try='test -z "$ac_c_werror_flag"
18338 || test ! -s conftest.err'
d3ea6809
MM
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try='test -s conftest$ac_exeext'
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 eval "$as_ac_var=yes"
18351else
18352 echo "$as_me: failed program was:" >&5
18353sed 's/^/| /' conftest.$ac_ext >&5
18354
b4e70030 18355eval "$as_ac_var=no"
d3ea6809
MM
18356fi
18357rm -f conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359fi
b4e70030
JB
18360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18361echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
18362if test `eval echo '${'$as_ac_var'}'` = yes; then
18363 cat >>confdefs.h <<_ACEOF
18364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18365_ACEOF
18366
18367fi
18368done
18369
18370
18371
18372for ac_func in getuid getgid
18373do
18374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18375echo "$as_me:$LINENO: checking for $ac_func" >&5
18376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18377if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379else
18380 cat >conftest.$ac_ext <<_ACEOF
18381/* confdefs.h. */
18382_ACEOF
18383cat confdefs.h >>conftest.$ac_ext
18384cat >>conftest.$ac_ext <<_ACEOF
18385/* end confdefs.h. */
18386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18388#define $ac_func innocuous_$ac_func
18389
97bf5e38 18390/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18391 which can conflict with char $ac_func (); below.
18392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 <limits.h> exists even on freestanding compilers. */
c906108c 18394
bec39cab
AC
18395#ifdef __STDC__
18396# include <limits.h>
18397#else
18398# include <assert.h>
18399#endif
97bf5e38 18400
bec39cab
AC
18401#undef $ac_func
18402
b4e70030 18403/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18404#ifdef __cplusplus
18405extern "C"
b4e70030 18406{
bec39cab 18407#endif
b4e70030
JB
18408/* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
bec39cab 18410char $ac_func ();
97bf5e38
MK
18411/* The GNU C library defines this for functions which it implements
18412 to always fail with ENOSYS. Some functions are actually named
18413 something starting with __ and the normal name is an alias. */
b4e70030 18414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18415choke me
b4e70030
JB
18416#else
18417char (*f) () = $ac_func;
18418#endif
18419#ifdef __cplusplus
18420}
c906108c 18421#endif
97bf5e38 18422
bec39cab
AC
18423int
18424main ()
18425{
b4e70030 18426return f != $ac_func;
bec39cab
AC
18427 ;
18428 return 0;
18429}
18430_ACEOF
18431rm -f conftest.$ac_objext conftest$ac_exeext
18432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18433 (eval $ac_link) 2>conftest.er1
18434 ac_status=$?
18435 grep -v '^ *+' conftest.er1 >conftest.err
18436 rm -f conftest.er1
18437 cat conftest.err >&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); } &&
b4e70030
JB
18440 { ac_try='test -z "$ac_c_werror_flag"
18441 || test ! -s conftest.err'
bec39cab
AC
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 eval "$as_ac_var=yes"
18454else
18455 echo "$as_me: failed program was:" >&5
18456sed 's/^/| /' conftest.$ac_ext >&5
18457
b4e70030 18458eval "$as_ac_var=no"
bec39cab
AC
18459fi
18460rm -f conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
18462fi
b4e70030
JB
18463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18464echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18465if test `eval echo '${'$as_ac_var'}'` = yes; then
18466 cat >>confdefs.h <<_ACEOF
18467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18468_ACEOF
c906108c 18469
c906108c 18470fi
97bf5e38 18471done
c906108c 18472
bec39cab 18473
a3828db0 18474for ac_func in poll
97bf5e38 18475do
bec39cab 18476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18477echo "$as_me:$LINENO: checking for $ac_func" >&5
18478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18479if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481else
18482 cat >conftest.$ac_ext <<_ACEOF
18483/* confdefs.h. */
18484_ACEOF
18485cat confdefs.h >>conftest.$ac_ext
18486cat >>conftest.$ac_ext <<_ACEOF
18487/* end confdefs.h. */
18488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18490#define $ac_func innocuous_$ac_func
18491
97bf5e38 18492/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18493 which can conflict with char $ac_func (); below.
18494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495 <limits.h> exists even on freestanding compilers. */
18496
18497#ifdef __STDC__
18498# include <limits.h>
18499#else
18500# include <assert.h>
18501#endif
c906108c 18502
bec39cab 18503#undef $ac_func
97bf5e38 18504
b4e70030 18505/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18506#ifdef __cplusplus
18507extern "C"
b4e70030 18508{
bec39cab 18509#endif
b4e70030
JB
18510/* We use char because int might match the return type of a gcc2
18511 builtin and then its argument prototype would still apply. */
bec39cab 18512char $ac_func ();
97bf5e38
MK
18513/* The GNU C library defines this for functions which it implements
18514 to always fail with ENOSYS. Some functions are actually named
18515 something starting with __ and the normal name is an alias. */
b4e70030 18516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18517choke me
b4e70030
JB
18518#else
18519char (*f) () = $ac_func;
18520#endif
18521#ifdef __cplusplus
18522}
c906108c 18523#endif
97bf5e38 18524
bec39cab
AC
18525int
18526main ()
18527{
b4e70030 18528return f != $ac_func;
bec39cab
AC
18529 ;
18530 return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext conftest$ac_exeext
18534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
b4e70030
JB
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
bec39cab
AC
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 eval "$as_ac_var=yes"
18556else
18557 echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
b4e70030 18560eval "$as_ac_var=no"
bec39cab
AC
18561fi
18562rm -f conftest.err conftest.$ac_objext \
18563 conftest$ac_exeext conftest.$ac_ext
18564fi
b4e70030
JB
18565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18567if test `eval echo '${'$as_ac_var'}'` = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18570_ACEOF
c906108c 18571
c906108c 18572fi
97bf5e38 18573done
c906108c 18574
bec39cab 18575
a3828db0 18576for ac_func in pread64
97bf5e38 18577do
bec39cab 18578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18579echo "$as_me:$LINENO: checking for $ac_func" >&5
18580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18581if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583else
18584 cat >conftest.$ac_ext <<_ACEOF
18585/* confdefs.h. */
18586_ACEOF
18587cat confdefs.h >>conftest.$ac_ext
18588cat >>conftest.$ac_ext <<_ACEOF
18589/* end confdefs.h. */
18590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18592#define $ac_func innocuous_$ac_func
18593
97bf5e38 18594/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18595 which can conflict with char $ac_func (); below.
18596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18597 <limits.h> exists even on freestanding compilers. */
18598
18599#ifdef __STDC__
18600# include <limits.h>
18601#else
18602# include <assert.h>
18603#endif
c906108c 18604
bec39cab 18605#undef $ac_func
97bf5e38 18606
b4e70030 18607/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18608#ifdef __cplusplus
18609extern "C"
b4e70030 18610{
bec39cab 18611#endif
b4e70030
JB
18612/* We use char because int might match the return type of a gcc2
18613 builtin and then its argument prototype would still apply. */
bec39cab 18614char $ac_func ();
97bf5e38
MK
18615/* The GNU C library defines this for functions which it implements
18616 to always fail with ENOSYS. Some functions are actually named
18617 something starting with __ and the normal name is an alias. */
b4e70030 18618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 18619choke me
b4e70030
JB
18620#else
18621char (*f) () = $ac_func;
18622#endif
18623#ifdef __cplusplus
18624}
c906108c 18625#endif
97bf5e38 18626
bec39cab
AC
18627int
18628main ()
18629{
b4e70030 18630return f != $ac_func;
bec39cab
AC
18631 ;
18632 return 0;
18633}
18634_ACEOF
18635rm -f conftest.$ac_objext conftest$ac_exeext
18636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18637 (eval $ac_link) 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
b4e70030
JB
18644 { ac_try='test -z "$ac_c_werror_flag"
18645 || test ! -s conftest.err'
bec39cab
AC
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest$ac_exeext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 eval "$as_ac_var=yes"
18658else
18659 echo "$as_me: failed program was:" >&5
18660sed 's/^/| /' conftest.$ac_ext >&5
18661
b4e70030 18662eval "$as_ac_var=no"
bec39cab
AC
18663fi
18664rm -f conftest.err conftest.$ac_objext \
18665 conftest$ac_exeext conftest.$ac_ext
18666fi
b4e70030
JB
18667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18669if test `eval echo '${'$as_ac_var'}'` = yes; then
18670 cat >>confdefs.h <<_ACEOF
18671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18672_ACEOF
c906108c 18673
c906108c 18674fi
97bf5e38 18675done
c906108c 18676
bec39cab 18677
a3828db0 18678for ac_func in sbrk
b757528f 18679do
bec39cab 18680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18681echo "$as_me:$LINENO: checking for $ac_func" >&5
18682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18683if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18685else
18686 cat >conftest.$ac_ext <<_ACEOF
18687/* confdefs.h. */
18688_ACEOF
18689cat confdefs.h >>conftest.$ac_ext
18690cat >>conftest.$ac_ext <<_ACEOF
18691/* end confdefs.h. */
18692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18694#define $ac_func innocuous_$ac_func
18695
b757528f 18696/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18697 which can conflict with char $ac_func (); below.
18698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18699 <limits.h> exists even on freestanding compilers. */
18700
18701#ifdef __STDC__
18702# include <limits.h>
18703#else
18704# include <assert.h>
18705#endif
b757528f 18706
bec39cab 18707#undef $ac_func
b757528f 18708
b4e70030 18709/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18710#ifdef __cplusplus
18711extern "C"
b4e70030 18712{
bec39cab 18713#endif
b4e70030
JB
18714/* We use char because int might match the return type of a gcc2
18715 builtin and then its argument prototype would still apply. */
bec39cab 18716char $ac_func ();
b757528f
JJ
18717/* The GNU C library defines this for functions which it implements
18718 to always fail with ENOSYS. Some functions are actually named
18719 something starting with __ and the normal name is an alias. */
b4e70030 18720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 18721choke me
b4e70030
JB
18722#else
18723char (*f) () = $ac_func;
18724#endif
18725#ifdef __cplusplus
18726}
b757528f
JJ
18727#endif
18728
bec39cab
AC
18729int
18730main ()
18731{
b4e70030 18732return f != $ac_func;
bec39cab
AC
18733 ;
18734 return 0;
18735}
18736_ACEOF
18737rm -f conftest.$ac_objext conftest$ac_exeext
18738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18739 (eval $ac_link) 2>conftest.er1
18740 ac_status=$?
18741 grep -v '^ *+' conftest.er1 >conftest.err
18742 rm -f conftest.er1
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
b4e70030
JB
18746 { ac_try='test -z "$ac_c_werror_flag"
18747 || test ! -s conftest.err'
bec39cab
AC
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; } &&
18753 { ac_try='test -s conftest$ac_exeext'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 eval "$as_ac_var=yes"
18760else
18761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
18763
b4e70030 18764eval "$as_ac_var=no"
bec39cab
AC
18765fi
18766rm -f conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18768fi
b4e70030
JB
18769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18771if test `eval echo '${'$as_ac_var'}'` = yes; then
18772 cat >>confdefs.h <<_ACEOF
18773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18774_ACEOF
b757528f 18775
b757528f
JJ
18776fi
18777done
18778
bec39cab 18779
a3828db0
MK
18780
18781for ac_func in setpgid setpgrp
bcb3dc3d 18782do
bec39cab 18783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18784echo "$as_me:$LINENO: checking for $ac_func" >&5
18785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18786if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18788else
18789 cat >conftest.$ac_ext <<_ACEOF
18790/* confdefs.h. */
18791_ACEOF
18792cat confdefs.h >>conftest.$ac_ext
18793cat >>conftest.$ac_ext <<_ACEOF
18794/* end confdefs.h. */
18795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797#define $ac_func innocuous_$ac_func
18798
bcb3dc3d 18799/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18800 which can conflict with char $ac_func (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18803
18804#ifdef __STDC__
18805# include <limits.h>
18806#else
18807# include <assert.h>
18808#endif
bcb3dc3d 18809
bec39cab 18810#undef $ac_func
bcb3dc3d 18811
b4e70030 18812/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18813#ifdef __cplusplus
18814extern "C"
b4e70030 18815{
bec39cab 18816#endif
b4e70030
JB
18817/* We use char because int might match the return type of a gcc2
18818 builtin and then its argument prototype would still apply. */
bec39cab 18819char $ac_func ();
bcb3dc3d
MK
18820/* The GNU C library defines this for functions which it implements
18821 to always fail with ENOSYS. Some functions are actually named
18822 something starting with __ and the normal name is an alias. */
b4e70030 18823#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 18824choke me
b4e70030
JB
18825#else
18826char (*f) () = $ac_func;
18827#endif
18828#ifdef __cplusplus
18829}
bcb3dc3d
MK
18830#endif
18831
bec39cab
AC
18832int
18833main ()
18834{
b4e70030 18835return f != $ac_func;
bec39cab
AC
18836 ;
18837 return 0;
18838}
18839_ACEOF
18840rm -f conftest.$ac_objext conftest$ac_exeext
18841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
b4e70030
JB
18849 { ac_try='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
bec39cab
AC
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest$ac_exeext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 eval "$as_ac_var=yes"
18863else
18864 echo "$as_me: failed program was:" >&5
18865sed 's/^/| /' conftest.$ac_ext >&5
18866
b4e70030 18867eval "$as_ac_var=no"
bec39cab
AC
18868fi
18869rm -f conftest.err conftest.$ac_objext \
18870 conftest$ac_exeext conftest.$ac_ext
18871fi
b4e70030
JB
18872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18873echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18874if test `eval echo '${'$as_ac_var'}'` = yes; then
18875 cat >>confdefs.h <<_ACEOF
18876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18877_ACEOF
bcb3dc3d 18878
bcb3dc3d
MK
18879fi
18880done
18881
bec39cab 18882
a3828db0
MK
18883
18884
18885for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 18886do
bec39cab 18887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18888echo "$as_me:$LINENO: checking for $ac_func" >&5
18889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18890if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892else
18893 cat >conftest.$ac_ext <<_ACEOF
18894/* confdefs.h. */
18895_ACEOF
18896cat confdefs.h >>conftest.$ac_ext
18897cat >>conftest.$ac_ext <<_ACEOF
18898/* end confdefs.h. */
18899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18901#define $ac_func innocuous_$ac_func
18902
8b9cf735 18903/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18904 which can conflict with char $ac_func (); below.
18905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18906 <limits.h> exists even on freestanding compilers. */
18907
18908#ifdef __STDC__
18909# include <limits.h>
18910#else
18911# include <assert.h>
18912#endif
8b9cf735 18913
bec39cab 18914#undef $ac_func
8b9cf735 18915
b4e70030 18916/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18917#ifdef __cplusplus
18918extern "C"
b4e70030 18919{
a3828db0 18920#endif
b4e70030
JB
18921/* We use char because int might match the return type of a gcc2
18922 builtin and then its argument prototype would still apply. */
a3828db0
MK
18923char $ac_func ();
18924/* The GNU C library defines this for functions which it implements
18925 to always fail with ENOSYS. Some functions are actually named
18926 something starting with __ and the normal name is an alias. */
b4e70030 18927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18928choke me
b4e70030
JB
18929#else
18930char (*f) () = $ac_func;
18931#endif
18932#ifdef __cplusplus
18933}
a3828db0
MK
18934#endif
18935
bec39cab
AC
18936int
18937main ()
18938{
b4e70030 18939return f != $ac_func;
bec39cab
AC
18940 ;
18941 return 0;
18942}
18943_ACEOF
a3828db0
MK
18944rm -f conftest.$ac_objext conftest$ac_exeext
18945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18946 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
b4e70030
JB
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
bec39cab
AC
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
a3828db0 18960 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
a3828db0 18966 eval "$as_ac_var=yes"
086ec9eb 18967else
bec39cab
AC
18968 echo "$as_me: failed program was:" >&5
18969sed 's/^/| /' conftest.$ac_ext >&5
18970
b4e70030 18971eval "$as_ac_var=no"
a3828db0
MK
18972fi
18973rm -f conftest.err conftest.$ac_objext \
18974 conftest$ac_exeext conftest.$ac_ext
18975fi
b4e70030
JB
18976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18978if test `eval echo '${'$as_ac_var'}'` = yes; then
18979 cat >>confdefs.h <<_ACEOF
18980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18981_ACEOF
18982
086ec9eb 18983fi
a3828db0
MK
18984done
18985
18986
18987for ac_func in socketpair
18988do
18989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18990echo "$as_me:$LINENO: checking for $ac_func" >&5
18991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18992if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994else
18995 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18996/* confdefs.h. */
18997_ACEOF
18998cat confdefs.h >>conftest.$ac_ext
18999cat >>conftest.$ac_ext <<_ACEOF
19000/* end confdefs.h. */
a3828db0
MK
19001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19003#define $ac_func innocuous_$ac_func
19004
19005/* System header to define __stub macros and hopefully few prototypes,
19006 which can conflict with char $ac_func (); below.
19007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19008 <limits.h> exists even on freestanding compilers. */
19009
19010#ifdef __STDC__
19011# include <limits.h>
19012#else
19013# include <assert.h>
19014#endif
19015
19016#undef $ac_func
19017
b4e70030 19018/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19019#ifdef __cplusplus
19020extern "C"
b4e70030 19021{
a3828db0 19022#endif
b4e70030
JB
19023/* We use char because int might match the return type of a gcc2
19024 builtin and then its argument prototype would still apply. */
a3828db0
MK
19025char $ac_func ();
19026/* The GNU C library defines this for functions which it implements
19027 to always fail with ENOSYS. Some functions are actually named
19028 something starting with __ and the normal name is an alias. */
b4e70030 19029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19030choke me
b4e70030
JB
19031#else
19032char (*f) () = $ac_func;
19033#endif
19034#ifdef __cplusplus
19035}
a3828db0
MK
19036#endif
19037
bec39cab
AC
19038int
19039main ()
19040{
b4e70030 19041return f != $ac_func;
bec39cab
AC
19042 ;
19043 return 0;
19044}
19045_ACEOF
a3828db0
MK
19046rm -f conftest.$ac_objext conftest$ac_exeext
19047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
b4e70030
JB
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
bec39cab
AC
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
a3828db0 19062 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
a3828db0 19068 eval "$as_ac_var=yes"
086ec9eb 19069else
bec39cab
AC
19070 echo "$as_me: failed program was:" >&5
19071sed 's/^/| /' conftest.$ac_ext >&5
19072
b4e70030 19073eval "$as_ac_var=no"
086ec9eb 19074fi
a3828db0
MK
19075rm -f conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
086ec9eb 19077fi
b4e70030
JB
19078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19080if test `eval echo '${'$as_ac_var'}'` = yes; then
19081 cat >>confdefs.h <<_ACEOF
19082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19083_ACEOF
086ec9eb
MK
19084
19085fi
a3828db0 19086done
086ec9eb 19087
a3828db0
MK
19088
19089for ac_func in syscall
19090do
19091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19092echo "$as_me:$LINENO: checking for $ac_func" >&5
19093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19094if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19095 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
19096else
19097 cat >conftest.$ac_ext <<_ACEOF
19098/* confdefs.h. */
19099_ACEOF
19100cat confdefs.h >>conftest.$ac_ext
19101cat >>conftest.$ac_ext <<_ACEOF
19102/* end confdefs.h. */
a3828db0
MK
19103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19105#define $ac_func innocuous_$ac_func
19106
19107/* System header to define __stub macros and hopefully few prototypes,
19108 which can conflict with char $ac_func (); below.
19109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19110 <limits.h> exists even on freestanding compilers. */
19111
19112#ifdef __STDC__
19113# include <limits.h>
19114#else
19115# include <assert.h>
19116#endif
19117
19118#undef $ac_func
19119
b4e70030 19120/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19121#ifdef __cplusplus
19122extern "C"
b4e70030 19123{
a3828db0 19124#endif
b4e70030
JB
19125/* We use char because int might match the return type of a gcc2
19126 builtin and then its argument prototype would still apply. */
a3828db0
MK
19127char $ac_func ();
19128/* The GNU C library defines this for functions which it implements
19129 to always fail with ENOSYS. Some functions are actually named
19130 something starting with __ and the normal name is an alias. */
b4e70030 19131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19132choke me
b4e70030
JB
19133#else
19134char (*f) () = $ac_func;
19135#endif
19136#ifdef __cplusplus
19137}
c906108c 19138#endif
97bf5e38 19139
bec39cab
AC
19140int
19141main ()
97bf5e38 19142{
b4e70030 19143return f != $ac_func;
bec39cab
AC
19144 ;
19145 return 0;
97bf5e38 19146}
bec39cab 19147_ACEOF
a3828db0 19148rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 19149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 19150 (eval $ac_link) 2>conftest.er1
bec39cab 19151 ac_status=$?
a3828db0
MK
19152 grep -v '^ *+' conftest.er1 >conftest.err
19153 rm -f conftest.er1
19154 cat conftest.err >&5
bec39cab 19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19156 (exit $ac_status); } &&
b4e70030
JB
19157 { ac_try='test -z "$ac_c_werror_flag"
19158 || test ! -s conftest.err'
a3828db0
MK
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
a3828db0 19170 eval "$as_ac_var=yes"
c906108c 19171else
a3828db0 19172 echo "$as_me: failed program was:" >&5
bec39cab
AC
19173sed 's/^/| /' conftest.$ac_ext >&5
19174
b4e70030 19175eval "$as_ac_var=no"
97bf5e38 19176fi
a3828db0
MK
19177rm -f conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
19179fi
b4e70030
JB
19180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19181echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19182if test `eval echo '${'$as_ac_var'}'` = yes; then
19183 cat >>confdefs.h <<_ACEOF
19184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19185_ACEOF
c906108c
SS
19186
19187fi
a3828db0 19188done
c906108c 19189
a3828db0
MK
19190
19191for ac_func in ttrace
19192do
19193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19194echo "$as_me:$LINENO: checking for $ac_func" >&5
19195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19196if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 19197 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 19198else
bec39cab
AC
19199 cat >conftest.$ac_ext <<_ACEOF
19200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
a3828db0
MK
19205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19207#define $ac_func innocuous_$ac_func
b83266a0 19208
a3828db0
MK
19209/* System header to define __stub macros and hopefully few prototypes,
19210 which can conflict with char $ac_func (); below.
19211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19212 <limits.h> exists even on freestanding compilers. */
19213
19214#ifdef __STDC__
19215# include <limits.h>
19216#else
19217# include <assert.h>
19218#endif
19219
19220#undef $ac_func
19221
b4e70030 19222/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19223#ifdef __cplusplus
19224extern "C"
b4e70030 19225{
a3828db0 19226#endif
b4e70030
JB
19227/* We use char because int might match the return type of a gcc2
19228 builtin and then its argument prototype would still apply. */
a3828db0
MK
19229char $ac_func ();
19230/* The GNU C library defines this for functions which it implements
19231 to always fail with ENOSYS. Some functions are actually named
19232 something starting with __ and the normal name is an alias. */
b4e70030 19233#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19234choke me
b4e70030
JB
19235#else
19236char (*f) () = $ac_func;
19237#endif
19238#ifdef __cplusplus
19239}
a3828db0 19240#endif
97bf5e38 19241
bec39cab
AC
19242int
19243main ()
19244{
b4e70030 19245return f != $ac_func;
bec39cab
AC
19246 ;
19247 return 0;
19248}
19249_ACEOF
a3828db0
MK
19250rm -f conftest.$ac_objext conftest$ac_exeext
19251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19252 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19253 ac_status=$?
19254 grep -v '^ *+' conftest.er1 >conftest.err
19255 rm -f conftest.er1
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
b4e70030
JB
19259 { ac_try='test -z "$ac_c_werror_flag"
19260 || test ! -s conftest.err'
bec39cab
AC
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
a3828db0 19266 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
a3828db0 19272 eval "$as_ac_var=yes"
b83266a0 19273else
bec39cab
AC
19274 echo "$as_me: failed program was:" >&5
19275sed 's/^/| /' conftest.$ac_ext >&5
19276
b4e70030 19277eval "$as_ac_var=no"
b83266a0 19278fi
a3828db0
MK
19279rm -f conftest.err conftest.$ac_objext \
19280 conftest$ac_exeext conftest.$ac_ext
b83266a0 19281fi
b4e70030
JB
19282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19284if test `eval echo '${'$as_ac_var'}'` = yes; then
19285 cat >>confdefs.h <<_ACEOF
19286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19287_ACEOF
b83266a0 19288
97bf5e38 19289fi
a3828db0 19290done
b83266a0 19291
a3828db0
MK
19292
19293for ac_func in wborder
19294do
19295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
19296echo "$as_me:$LINENO: checking for $ac_func" >&5
19297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19298if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19300else
19301 cat >conftest.$ac_ext <<_ACEOF
19302/* confdefs.h. */
19303_ACEOF
19304cat confdefs.h >>conftest.$ac_ext
19305cat >>conftest.$ac_ext <<_ACEOF
19306/* end confdefs.h. */
a3828db0
MK
19307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19309#define $ac_func innocuous_$ac_func
a4db0f07 19310
a3828db0
MK
19311/* System header to define __stub macros and hopefully few prototypes,
19312 which can conflict with char $ac_func (); below.
19313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19314 <limits.h> exists even on freestanding compilers. */
19315
19316#ifdef __STDC__
19317# include <limits.h>
19318#else
19319# include <assert.h>
19320#endif
19321
19322#undef $ac_func
19323
b4e70030 19324/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
19325#ifdef __cplusplus
19326extern "C"
b4e70030 19327{
a3828db0 19328#endif
b4e70030
JB
19329/* We use char because int might match the return type of a gcc2
19330 builtin and then its argument prototype would still apply. */
a3828db0
MK
19331char $ac_func ();
19332/* The GNU C library defines this for functions which it implements
19333 to always fail with ENOSYS. Some functions are actually named
19334 something starting with __ and the normal name is an alias. */
b4e70030 19335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 19336choke me
b4e70030
JB
19337#else
19338char (*f) () = $ac_func;
19339#endif
19340#ifdef __cplusplus
19341}
a3828db0 19342#endif
97bf5e38 19343
bec39cab
AC
19344int
19345main ()
19346{
b4e70030 19347return f != $ac_func;
bec39cab
AC
19348 ;
19349 return 0;
19350}
19351_ACEOF
a3828db0
MK
19352rm -f conftest.$ac_objext conftest$ac_exeext
19353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19354 (eval $ac_link) 2>conftest.er1
bec39cab
AC
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
b4e70030
JB
19361 { ac_try='test -z "$ac_c_werror_flag"
19362 || test ! -s conftest.err'
bec39cab
AC
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
a3828db0 19368 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
a3828db0 19374 eval "$as_ac_var=yes"
a4db0f07 19375else
bec39cab
AC
19376 echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
b4e70030 19379eval "$as_ac_var=no"
a4db0f07 19380fi
a3828db0
MK
19381rm -f conftest.err conftest.$ac_objext \
19382 conftest$ac_exeext conftest.$ac_ext
a4db0f07 19383fi
b4e70030
JB
19384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
19386if test `eval echo '${'$as_ac_var'}'` = yes; then
19387 cat >>confdefs.h <<_ACEOF
19388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 19389_ACEOF
a4db0f07
RH
19390
19391fi
a3828db0 19392done
c906108c 19393
06825bd1 19394
a3828db0
MK
19395# Check the return and argument types of ptrace. No canned test for
19396# this, so roll our own.
19397gdb_ptrace_headers='
19398#if HAVE_SYS_TYPES_H
19399# include <sys/types.h>
19400#endif
19401#if HAVE_SYS_PTRACE_H
19402# include <sys/ptrace.h>
19403#endif
19404#if HAVE_UNISTD_H
19405# include <unistd.h>
19406#endif
19407'
19408# There is no point in checking if we don't have a prototype.
b4e70030
JB
19409echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
19410echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 19411if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19413else
19414 cat >conftest.$ac_ext <<_ACEOF
19415/* confdefs.h. */
19416_ACEOF
19417cat confdefs.h >>conftest.$ac_ext
19418cat >>conftest.$ac_ext <<_ACEOF
19419/* end confdefs.h. */
a3828db0
MK
19420$gdb_ptrace_headers
19421
bec39cab
AC
19422int
19423main ()
19424{
a3828db0
MK
19425#ifndef ptrace
19426 char *p = (char *) ptrace;
06825bd1 19427#endif
a3828db0 19428
bec39cab
AC
19429 ;
19430 return 0;
19431}
19432_ACEOF
19433rm -f conftest.$ac_objext
19434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19435 (eval $ac_compile) 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
b4e70030
JB
19442 { ac_try='test -z "$ac_c_werror_flag"
19443 || test ! -s conftest.err'
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); }; } &&
19449 { ac_try='test -s conftest.$ac_objext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
a3828db0 19455 ac_cv_have_decl_ptrace=yes
06825bd1 19456else
bec39cab
AC
19457 echo "$as_me: failed program was:" >&5
19458sed 's/^/| /' conftest.$ac_ext >&5
19459
b4e70030 19460ac_cv_have_decl_ptrace=no
06825bd1 19461fi
bec39cab 19462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 19463fi
b4e70030
JB
19464echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
19465echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 19466if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 19467
a3828db0
MK
19468cat >>confdefs.h <<_ACEOF
19469#define HAVE_DECL_PTRACE 1
19470_ACEOF
bec39cab 19471
bec39cab 19472
a3828db0
MK
19473else
19474 cat >>confdefs.h <<_ACEOF
19475#define HAVE_DECL_PTRACE 0
bec39cab 19476_ACEOF
06825bd1 19477
a3828db0
MK
19478
19479 : ${gdb_cv_func_ptrace_ret='int'}
19480 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19481
06825bd1
MK
19482fi
19483
a3828db0
MK
19484
19485# Check return type.
b4e70030
JB
19486echo "$as_me:$LINENO: checking return type of ptrace" >&5
19487echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 19488if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490else
19491 cat >conftest.$ac_ext <<_ACEOF
19492/* confdefs.h. */
19493_ACEOF
19494cat confdefs.h >>conftest.$ac_ext
19495cat >>conftest.$ac_ext <<_ACEOF
19496/* end confdefs.h. */
a3828db0 19497$gdb_ptrace_headers
bec39cab
AC
19498int
19499main ()
19500{
a3828db0 19501extern int ptrace ();
bec39cab
AC
19502 ;
19503 return 0;
19504}
19505_ACEOF
19506rm -f conftest.$ac_objext
19507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19508 (eval $ac_compile) 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
b4e70030
JB
19515 { ac_try='test -z "$ac_c_werror_flag"
19516 || test ! -s conftest.err'
bec39cab
AC
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest.$ac_objext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
a3828db0 19528 gdb_cv_func_ptrace_ret='int'
70f9f479 19529else
bec39cab
AC
19530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
b4e70030 19533gdb_cv_func_ptrace_ret='long'
70f9f479 19534fi
bec39cab 19535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 19536fi
b4e70030
JB
19537echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
19538echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 19539
a3828db0
MK
19540cat >>confdefs.h <<_ACEOF
19541#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 19542_ACEOF
70f9f479 19543
a3828db0 19544# Check argument types.
b4e70030
JB
19545echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
19546echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 19547if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549else
a3828db0
MK
19550
19551for gdb_arg1 in 'int' 'long'; do
19552 for gdb_arg2 in 'pid_t' 'int' 'long'; do
19553 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
19554 for gdb_arg4 in 'int' 'long'; do
19555 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
a3828db0 19561$gdb_ptrace_headers
bec39cab
AC
19562int
19563main ()
19564{
a3828db0
MK
19565
19566extern $gdb_cv_func_ptrace_ret
19567 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
19568
bec39cab
AC
19569 ;
19570 return 0;
19571}
19572_ACEOF
19573rm -f conftest.$ac_objext
19574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19575 (eval $ac_compile) 2>conftest.er1
19576 ac_status=$?
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
b4e70030
JB
19582 { ac_try='test -z "$ac_c_werror_flag"
19583 || test ! -s conftest.err'
bec39cab
AC
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
a3828db0
MK
19595 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
19596 break 4;
5c7f2947 19597else
bec39cab
AC
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
5c7f2947 19601fi
bec39cab 19602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19603 for gdb_arg5 in 'int *' 'int' 'long'; do
19604 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
19605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h. */
a3828db0 19610$gdb_ptrace_headers
bec39cab
AC
19611int
19612main ()
19613{
a3828db0
MK
19614
19615extern $gdb_cv_func_ptrace_ret
19616 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
19617
bec39cab
AC
19618 ;
19619 return 0;
19620}
19621_ACEOF
19622rm -f conftest.$ac_objext
19623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19624 (eval $ac_compile) 2>conftest.er1
19625 ac_status=$?
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
b4e70030
JB
19631 { ac_try='test -z "$ac_c_werror_flag"
19632 || test ! -s conftest.err'
bec39cab
AC
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
a3828db0
MK
19644
19645gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
19646 break 5;
78434e59 19647else
bec39cab
AC
19648 echo "$as_me: failed program was:" >&5
19649sed 's/^/| /' conftest.$ac_ext >&5
19650
78434e59 19651fi
bec39cab 19652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
19653 done
19654 done
19655 done
19656 done
19657done
19658# Provide a safe default value.
19659: ${gdb_cv_func_ptrace_args='int,int,long,long'}
19660
78434e59 19661fi
b4e70030
JB
19662echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
19663echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
19664ac_save_IFS=$IFS; IFS=','
19665set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
19666IFS=$ac_save_IFS
19667shift
bec39cab 19668
a3828db0
MK
19669cat >>confdefs.h <<_ACEOF
19670#define PTRACE_TYPE_ARG3 $3
19671_ACEOF
19672
19673if test -n "$5"; then
19674
19675cat >>confdefs.h <<_ACEOF
19676#define PTRACE_TYPE_ARG5 $5
bec39cab 19677_ACEOF
78434e59
MK
19678
19679fi
19680
a3828db0 19681if test "$cross_compiling" = no; then
b4e70030
JB
19682 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19683echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 19684if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 19685 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
19686else
19687 if test "$cross_compiling" = yes; then
19688 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19689echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19690 { (exit 1); exit 1; }; }
bec39cab
AC
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. */
b4e70030
JB
19698#if HAVE_UNISTD_H
19699# include <unistd.h>
19700#endif
19701
bec39cab
AC
19702int
19703main ()
19704{
a3828db0
MK
19705/* If this system has a BSD-style setpgrp which takes arguments,
19706 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19707 exit successfully. */
b4e70030 19708 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
19709 ;
19710 return 0;
19711}
19712_ACEOF
a3828db0
MK
19713rm -f conftest$ac_exeext
19714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19715 (eval $ac_link) 2>&5
bec39cab
AC
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 19718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
a3828db0 19724 ac_cv_func_setpgrp_void=no
c906108c 19725else
a3828db0
MK
19726 echo "$as_me: program exited with status $ac_status" >&5
19727echo "$as_me: failed program was:" >&5
bec39cab
AC
19728sed 's/^/| /' conftest.$ac_ext >&5
19729
a3828db0
MK
19730( exit $ac_status )
19731ac_cv_func_setpgrp_void=yes
c906108c 19732fi
b4e70030 19733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19734fi
a3828db0 19735fi
b4e70030
JB
19736echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19737echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
19738if test $ac_cv_func_setpgrp_void = yes; then
19739
19740cat >>confdefs.h <<\_ACEOF
19741#define SETPGRP_VOID 1
bec39cab 19742_ACEOF
97bf5e38
MK
19743
19744fi
a3828db0
MK
19745
19746else
b4e70030
JB
19747 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19748echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 19749if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 19750 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19751else
bec39cab
AC
19752 cat >conftest.$ac_ext <<_ACEOF
19753/* confdefs.h. */
19754_ACEOF
19755cat confdefs.h >>conftest.$ac_ext
19756cat >>conftest.$ac_ext <<_ACEOF
19757/* end confdefs.h. */
a3828db0
MK
19758
19759#include <unistd.h>
19760
bec39cab
AC
19761int
19762main ()
19763{
a3828db0
MK
19764
19765 if (setpgrp(1,1) == -1)
19766 exit (0);
19767 else
19768 exit (1);
19769
bec39cab
AC
19770 ;
19771 return 0;
19772}
19773_ACEOF
19774rm -f conftest.$ac_objext
19775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19776 (eval $ac_compile) 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } &&
b4e70030
JB
19783 { ac_try='test -z "$ac_c_werror_flag"
19784 || test ! -s conftest.err'
bec39cab
AC
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest.$ac_objext'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
a3828db0 19796 ac_cv_func_setpgrp_void=no
c906108c 19797else
bec39cab
AC
19798 echo "$as_me: failed program was:" >&5
19799sed 's/^/| /' conftest.$ac_ext >&5
19800
b4e70030 19801ac_cv_func_setpgrp_void=yes
c906108c 19802fi
bec39cab 19803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19804fi
b4e70030
JB
19805echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19806echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 19807if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 19808 cat >>confdefs.h <<\_ACEOF
a3828db0 19809#define SETPGRP_VOID 1
bec39cab 19810_ACEOF
c3f6f71d 19811
a3828db0 19812fi
c906108c
SS
19813fi
19814
a3828db0
MK
19815# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
19816# since sigsetjmp might only be defined as a macro.
b4e70030
JB
19817echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19818echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 19819if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19821else
19822 cat >conftest.$ac_ext <<_ACEOF
19823/* confdefs.h. */
19824_ACEOF
19825cat confdefs.h >>conftest.$ac_ext
19826cat >>conftest.$ac_ext <<_ACEOF
19827/* end confdefs.h. */
a3828db0
MK
19828
19829#include <setjmp.h>
19830
bec39cab
AC
19831int
19832main ()
19833{
a3828db0 19834sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
19835 ;
19836 return 0;
19837}
19838_ACEOF
19839rm -f conftest.$ac_objext
19840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19841 (eval $ac_compile) 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
b4e70030
JB
19848 { ac_try='test -z "$ac_c_werror_flag"
19849 || test ! -s conftest.err'
bec39cab
AC
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; } &&
19855 { ac_try='test -s conftest.$ac_objext'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
a3828db0 19861 gdb_cv_func_sigsetjmp=yes
c906108c 19862else
bec39cab
AC
19863 echo "$as_me: failed program was:" >&5
19864sed 's/^/| /' conftest.$ac_ext >&5
19865
b4e70030 19866gdb_cv_func_sigsetjmp=no
c906108c 19867fi
bec39cab 19868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19869fi
b4e70030
JB
19870echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
19871echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 19872if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 19873
a3828db0
MK
19874cat >>confdefs.h <<\_ACEOF
19875#define HAVE_SIGSETJMP 1
bec39cab 19876_ACEOF
c906108c 19877
97bf5e38 19878fi
c906108c 19879
a3828db0
MK
19880# Assume we'll default to using the included libiberty regex.
19881gdb_use_included_regex=yes
19882
19883# However, if the system regex is GNU regex, then default to *not*
19884# using the included regex.
b4e70030
JB
19885echo "$as_me:$LINENO: checking for GNU regex" >&5
19886echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 19887if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19889else
19890 cat >conftest.$ac_ext <<_ACEOF
19891/* confdefs.h. */
19892_ACEOF
19893cat confdefs.h >>conftest.$ac_ext
19894cat >>conftest.$ac_ext <<_ACEOF
19895/* end confdefs.h. */
a3828db0 19896#include <gnu-versions.h>
bec39cab
AC
19897int
19898main ()
19899{
a3828db0
MK
19900#define REGEX_INTERFACE_VERSION 1
19901#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
19902# error "Version mismatch"
19903#endif
bec39cab
AC
19904 ;
19905 return 0;
19906}
19907_ACEOF
19908rm -f conftest.$ac_objext
19909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
b4e70030
JB
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
bec39cab
AC
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest.$ac_objext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
a3828db0 19930 gdb_cv_have_gnu_regex=yes
c906108c 19931else
bec39cab
AC
19932 echo "$as_me: failed program was:" >&5
19933sed 's/^/| /' conftest.$ac_ext >&5
19934
b4e70030 19935gdb_cv_have_gnu_regex=no
c906108c 19936fi
bec39cab 19937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19938fi
b4e70030
JB
19939echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
19940echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
19941if test $gdb_cv_have_gnu_regex = yes; then
19942 gdb_use_included_regex=no
19943fi
c906108c 19944
a3828db0 19945
b4e70030 19946# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 19947if test "${with_included_regex+set}" = set; then
b4e70030
JB
19948 withval="$with_included_regex"
19949 gdb_with_regex=$withval
a3828db0
MK
19950else
19951 gdb_with_regex=$gdb_use_included_regex
b4e70030 19952fi;
a3828db0
MK
19953if test "$gdb_with_regex" = yes; then
19954
19955cat >>confdefs.h <<\_ACEOF
19956#define USE_INCLUDED_REGEX 1
bec39cab 19957_ACEOF
c906108c 19958
97bf5e38 19959fi
c906108c 19960
5c45e068 19961# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
19962echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
19963echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 19964if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966else
19967 cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h. */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h. */
a3828db0
MK
19973#include <sys/param.h>
19974#include <sys/proc.h>
5c45e068
MK
19975
19976
bec39cab
AC
19977int
19978main ()
19979{
5c45e068
MK
19980static struct thread ac_aggr;
19981if (ac_aggr.td_pcb)
19982return 0;
bec39cab
AC
19983 ;
19984 return 0;
19985}
19986_ACEOF
19987rm -f conftest.$ac_objext
19988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989 (eval $ac_compile) 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
b4e70030
JB
19996 { ac_try='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
bec39cab
AC
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
5c45e068 20009 ac_cv_member_struct_thread_td_pcb=yes
c906108c 20010else
bec39cab
AC
20011 echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
b4e70030 20014cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20015/* confdefs.h. */
20016_ACEOF
20017cat confdefs.h >>conftest.$ac_ext
20018cat >>conftest.$ac_ext <<_ACEOF
20019/* end confdefs.h. */
20020#include <sys/param.h>
20021#include <sys/proc.h>
20022
20023
20024int
20025main ()
20026{
20027static struct thread ac_aggr;
20028if (sizeof ac_aggr.td_pcb)
20029return 0;
20030 ;
20031 return 0;
20032}
20033_ACEOF
20034rm -f conftest.$ac_objext
20035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036 (eval $ac_compile) 2>conftest.er1
20037 ac_status=$?
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } &&
b4e70030
JB
20043 { ac_try='test -z "$ac_c_werror_flag"
20044 || test ! -s conftest.err'
5c45e068
MK
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest.$ac_objext'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 ac_cv_member_struct_thread_td_pcb=yes
20057else
20058 echo "$as_me: failed program was:" >&5
20059sed 's/^/| /' conftest.$ac_ext >&5
20060
b4e70030 20061ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
20062fi
20063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20064fi
bec39cab 20065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20066fi
b4e70030
JB
20067echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20068echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 20069if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 20070
5c45e068 20071cat >>confdefs.h <<_ACEOF
a3828db0 20072#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 20073_ACEOF
c906108c 20074
5c45e068 20075
97bf5e38 20076fi
c906108c 20077
5c45e068 20078
a3828db0 20079# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
20080echo "$as_me:$LINENO: checking for struct lwp" >&5
20081echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 20082if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084else
20085 cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h. */
a3828db0
MK
20091#include <sys/param.h>
20092#include <sys/lwp.h>
bec39cab
AC
20093int
20094main ()
20095{
a3828db0 20096struct lwp l;
bec39cab
AC
20097 ;
20098 return 0;
20099}
20100_ACEOF
20101rm -f conftest.$ac_objext
20102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20103 (eval $ac_compile) 2>conftest.er1
20104 ac_status=$?
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } &&
b4e70030
JB
20110 { ac_try='test -z "$ac_c_werror_flag"
20111 || test ! -s conftest.err'
bec39cab
AC
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
a3828db0 20123 gdb_cv_struct_lwp=yes
c906108c 20124else
bec39cab
AC
20125 echo "$as_me: failed program was:" >&5
20126sed 's/^/| /' conftest.$ac_ext >&5
20127
b4e70030 20128gdb_cv_struct_lwp=no
c906108c 20129fi
bec39cab 20130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20131fi
b4e70030
JB
20132echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20133echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 20134if test $gdb_cv_struct_lwp = yes; then
c906108c 20135
a3828db0
MK
20136cat >>confdefs.h <<\_ACEOF
20137#define HAVE_STRUCT_LWP 1
bec39cab 20138_ACEOF
c906108c 20139
97bf5e38 20140fi
c906108c 20141
a3828db0 20142# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
20143echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20144echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 20145if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20147else
20148 cat >conftest.$ac_ext <<_ACEOF
20149/* confdefs.h. */
20150_ACEOF
20151cat confdefs.h >>conftest.$ac_ext
20152cat >>conftest.$ac_ext <<_ACEOF
20153/* end confdefs.h. */
a3828db0
MK
20154#include <sys/types.h>
20155#include <machine/reg.h>
bec39cab
AC
20156int
20157main ()
20158{
a3828db0 20159struct reg r;
bec39cab
AC
20160 ;
20161 return 0;
20162}
20163_ACEOF
20164rm -f conftest.$ac_objext
20165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20166 (eval $ac_compile) 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } &&
b4e70030
JB
20173 { ac_try='test -z "$ac_c_werror_flag"
20174 || test ! -s conftest.err'
bec39cab
AC
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; } &&
20180 { ac_try='test -s conftest.$ac_objext'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
a3828db0 20186 gdb_cv_struct_reg=yes
27ca5dad 20187else
bec39cab
AC
20188 echo "$as_me: failed program was:" >&5
20189sed 's/^/| /' conftest.$ac_ext >&5
20190
b4e70030 20191gdb_cv_struct_reg=no
27ca5dad 20192fi
bec39cab 20193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 20194fi
b4e70030
JB
20195echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20196echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 20197if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
20198
20199cat >>confdefs.h <<\_ACEOF
a3828db0 20200#define HAVE_STRUCT_REG 1
bec39cab 20201_ACEOF
27ca5dad
MC
20202
20203fi
97bf5e38 20204
a3828db0
MK
20205# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20206# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
20207echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20208echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 20209if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 20210 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20211else
bec39cab
AC
20212 cat >conftest.$ac_ext <<_ACEOF
20213/* confdefs.h. */
20214_ACEOF
20215cat confdefs.h >>conftest.$ac_ext
20216cat >>conftest.$ac_ext <<_ACEOF
20217/* end confdefs.h. */
a3828db0 20218#include <machine/reg.h>
5c45e068
MK
20219
20220int
20221main ()
20222{
20223static struct reg ac_aggr;
20224if (ac_aggr.r_fs)
20225return 0;
20226 ;
20227 return 0;
20228}
20229_ACEOF
20230rm -f conftest.$ac_objext
20231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20233 ac_status=$?
20234 grep -v '^ *+' conftest.er1 >conftest.err
20235 rm -f conftest.er1
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
b4e70030
JB
20239 { ac_try='test -z "$ac_c_werror_flag"
20240 || test ! -s conftest.err'
5c45e068
MK
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest.$ac_objext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_member_struct_reg_r_fs=yes
20253else
20254 echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
b4e70030 20257cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20258/* confdefs.h. */
20259_ACEOF
20260cat confdefs.h >>conftest.$ac_ext
20261cat >>conftest.$ac_ext <<_ACEOF
20262/* end confdefs.h. */
20263#include <machine/reg.h>
20264
bec39cab
AC
20265int
20266main ()
20267{
5c45e068
MK
20268static struct reg ac_aggr;
20269if (sizeof ac_aggr.r_fs)
20270return 0;
bec39cab
AC
20271 ;
20272 return 0;
20273}
20274_ACEOF
20275rm -f conftest.$ac_objext
20276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20277 (eval $ac_compile) 2>conftest.er1
20278 ac_status=$?
20279 grep -v '^ *+' conftest.er1 >conftest.err
20280 rm -f conftest.er1
20281 cat conftest.err >&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } &&
b4e70030
JB
20284 { ac_try='test -z "$ac_c_werror_flag"
20285 || test ! -s conftest.err'
bec39cab
AC
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest.$ac_objext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
5c45e068 20297 ac_cv_member_struct_reg_r_fs=yes
3862412b 20298else
bec39cab
AC
20299 echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
b4e70030 20302ac_cv_member_struct_reg_r_fs=no
3862412b 20303fi
bec39cab 20304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 20305fi
5c45e068
MK
20306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307fi
b4e70030
JB
20308echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20309echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
20310if test $ac_cv_member_struct_reg_r_fs = yes; then
20311
20312cat >>confdefs.h <<_ACEOF
a3828db0 20313#define HAVE_STRUCT_REG_R_FS 1
bec39cab 20314_ACEOF
3862412b 20315
5c45e068 20316
97bf5e38 20317fi
b4e70030
JB
20318echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20319echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 20320if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 20321 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20322else
bec39cab
AC
20323 cat >conftest.$ac_ext <<_ACEOF
20324/* confdefs.h. */
20325_ACEOF
20326cat confdefs.h >>conftest.$ac_ext
20327cat >>conftest.$ac_ext <<_ACEOF
20328/* end confdefs.h. */
a3828db0 20329#include <machine/reg.h>
5c45e068 20330
bec39cab
AC
20331int
20332main ()
20333{
5c45e068
MK
20334static struct reg ac_aggr;
20335if (ac_aggr.r_gs)
20336return 0;
bec39cab
AC
20337 ;
20338 return 0;
20339}
20340_ACEOF
20341rm -f conftest.$ac_objext
20342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343 (eval $ac_compile) 2>conftest.er1
20344 ac_status=$?
20345 grep -v '^ *+' conftest.er1 >conftest.err
20346 rm -f conftest.er1
20347 cat conftest.err >&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } &&
b4e70030
JB
20350 { ac_try='test -z "$ac_c_werror_flag"
20351 || test ! -s conftest.err'
bec39cab
AC
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; } &&
20357 { ac_try='test -s conftest.$ac_objext'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
5c45e068 20363 ac_cv_member_struct_reg_r_gs=yes
3862412b 20364else
bec39cab
AC
20365 echo "$as_me: failed program was:" >&5
20366sed 's/^/| /' conftest.$ac_ext >&5
20367
b4e70030 20368cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
20369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
20374#include <machine/reg.h>
20375
20376int
20377main ()
20378{
20379static struct reg ac_aggr;
20380if (sizeof ac_aggr.r_gs)
20381return 0;
20382 ;
20383 return 0;
20384}
20385_ACEOF
20386rm -f conftest.$ac_objext
20387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20388 (eval $ac_compile) 2>conftest.er1
20389 ac_status=$?
20390 grep -v '^ *+' conftest.er1 >conftest.err
20391 rm -f conftest.er1
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } &&
b4e70030
JB
20395 { ac_try='test -z "$ac_c_werror_flag"
20396 || test ! -s conftest.err'
5c45e068
MK
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest.$ac_objext'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_cv_member_struct_reg_r_gs=yes
20409else
20410 echo "$as_me: failed program was:" >&5
20411sed 's/^/| /' conftest.$ac_ext >&5
20412
b4e70030 20413ac_cv_member_struct_reg_r_gs=no
3862412b 20414fi
bec39cab 20415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 20416fi
5c45e068
MK
20417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20418fi
b4e70030
JB
20419echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
20420echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
20421if test $ac_cv_member_struct_reg_r_gs = yes; then
20422
20423cat >>confdefs.h <<_ACEOF
a3828db0 20424#define HAVE_STRUCT_REG_R_GS 1
bec39cab 20425_ACEOF
3862412b 20426
5c45e068 20427
97bf5e38 20428fi
3862412b 20429
5c45e068 20430
a3828db0 20431# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
20432echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
20433echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 20434if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 20435 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 20436else
bec39cab
AC
20437 cat >conftest.$ac_ext <<_ACEOF
20438/* confdefs.h. */
20439_ACEOF
20440cat confdefs.h >>conftest.$ac_ext
20441cat >>conftest.$ac_ext <<_ACEOF
20442/* end confdefs.h. */
a3828db0 20443#include <sys/ptrace.h>
bec39cab
AC
20444int
20445main ()
20446{
a3828db0 20447PTRACE_GETREGS;
bec39cab
AC
20448 ;
20449 return 0;
20450}
20451_ACEOF
20452rm -f conftest.$ac_objext
20453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20454 (eval $ac_compile) 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
b4e70030
JB
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
bec39cab
AC
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest.$ac_objext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
a3828db0 20474 gdb_cv_have_ptrace_getregs=yes
451928c5 20475else
bec39cab
AC
20476 echo "$as_me: failed program was:" >&5
20477sed 's/^/| /' conftest.$ac_ext >&5
20478
b4e70030 20479gdb_cv_have_ptrace_getregs=no
451928c5 20480fi
bec39cab 20481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
20482fi
20483
b4e70030
JB
20484echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
20485echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 20486if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
20487
20488cat >>confdefs.h <<\_ACEOF
a3828db0 20489#define HAVE_PTRACE_GETREGS 1
bec39cab 20490_ACEOF
451928c5 20491
97bf5e38 20492fi
451928c5 20493
a3828db0 20494# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
20495echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
20496echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 20497if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 20498 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 20499else
bec39cab
AC
20500 cat >conftest.$ac_ext <<_ACEOF
20501/* confdefs.h. */
20502_ACEOF
20503cat confdefs.h >>conftest.$ac_ext
20504cat >>conftest.$ac_ext <<_ACEOF
20505/* end confdefs.h. */
a3828db0 20506#include <sys/ptrace.h>
bec39cab
AC
20507int
20508main ()
20509{
a3828db0 20510PTRACE_GETFPXREGS;
bec39cab
AC
20511 ;
20512 return 0;
20513}
20514_ACEOF
20515rm -f conftest.$ac_objext
20516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20517 (eval $ac_compile) 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
b4e70030
JB
20524 { ac_try='test -z "$ac_c_werror_flag"
20525 || test ! -s conftest.err'
bec39cab
AC
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20528 ac_status=$?
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try='test -s conftest.$ac_objext'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; }; then
a3828db0 20537 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 20538else
bec39cab
AC
20539 echo "$as_me: failed program was:" >&5
20540sed 's/^/| /' conftest.$ac_ext >&5
20541
b4e70030 20542gdb_cv_have_ptrace_getfpxregs=no
451928c5 20543fi
bec39cab 20544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
20545fi
20546
b4e70030
JB
20547echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
20548echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 20549if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
20550
20551cat >>confdefs.h <<\_ACEOF
a3828db0 20552#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 20553_ACEOF
451928c5 20554
97bf5e38 20555fi
451928c5 20556
a3828db0 20557# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
20558echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
20559echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 20560if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 20561 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20562else
bec39cab
AC
20563 cat >conftest.$ac_ext <<_ACEOF
20564/* confdefs.h. */
20565_ACEOF
20566cat confdefs.h >>conftest.$ac_ext
20567cat >>conftest.$ac_ext <<_ACEOF
20568/* end confdefs.h. */
a3828db0
MK
20569#include <sys/types.h>
20570#include <sys/ptrace.h>
bec39cab
AC
20571int
20572main ()
20573{
a3828db0 20574PT_GETDBREGS;
bec39cab
AC
20575 ;
20576 return 0;
20577}
20578_ACEOF
20579rm -f conftest.$ac_objext
20580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20581 (eval $ac_compile) 2>conftest.er1
20582 ac_status=$?
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } &&
b4e70030
JB
20588 { ac_try='test -z "$ac_c_werror_flag"
20589 || test ! -s conftest.err'
bec39cab
AC
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } &&
20595 { ac_try='test -s conftest.$ac_objext'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
a3828db0 20601 gdb_cv_have_pt_getdbregs=yes
3862412b 20602else
bec39cab
AC
20603 echo "$as_me: failed program was:" >&5
20604sed 's/^/| /' conftest.$ac_ext >&5
20605
b4e70030 20606gdb_cv_have_pt_getdbregs=no
3862412b 20607fi
bec39cab 20608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
20609fi
20610
b4e70030
JB
20611echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
20612echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 20613if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
20614
20615cat >>confdefs.h <<\_ACEOF
a3828db0 20616#define HAVE_PT_GETDBREGS 1
bec39cab 20617_ACEOF
3862412b 20618
97bf5e38 20619fi
3862412b 20620
a3828db0 20621# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
20622echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
20623echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 20624if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 20625 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 20626else
bec39cab
AC
20627 cat >conftest.$ac_ext <<_ACEOF
20628/* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h. */
a3828db0
MK
20633#include <sys/types.h>
20634#include <sys/ptrace.h>
bec39cab
AC
20635int
20636main ()
20637{
a3828db0 20638PT_GETXMMREGS;
bec39cab
AC
20639 ;
20640 return 0;
20641}
20642_ACEOF
20643rm -f conftest.$ac_objext
20644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20645 (eval $ac_compile) 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
b4e70030
JB
20652 { ac_try='test -z "$ac_c_werror_flag"
20653 || test ! -s conftest.err'
bec39cab
AC
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try='test -s conftest.$ac_objext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
a3828db0 20665 gdb_cv_have_pt_getxmmregs=yes
3862412b 20666else
bec39cab
AC
20667 echo "$as_me: failed program was:" >&5
20668sed 's/^/| /' conftest.$ac_ext >&5
20669
b4e70030 20670gdb_cv_have_pt_getxmmregs=no
3862412b 20671fi
bec39cab 20672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
20673fi
20674
b4e70030
JB
20675echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
20676echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 20677if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
20678
20679cat >>confdefs.h <<\_ACEOF
a3828db0 20680#define HAVE_PT_GETXMMREGS 1
bec39cab 20681_ACEOF
3862412b 20682
97bf5e38 20683fi
3862412b 20684
97bf5e38
MK
20685# If we are configured native on GNU/Linux, work around problems with
20686# sys/procfs.h
20687# Also detect which type of /proc is in use, such as for Unixware or Solaris.
20688
20689if test "${target}" = "${host}"; then
20690 case "${host}" in
20691 i[3456]86-*-linux*)
60ca704f
SE
20692
20693cat >>confdefs.h <<\_ACEOF
97bf5e38 20694#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 20695_ACEOF
97bf5e38 20696
60ca704f
SE
20697
20698cat >>confdefs.h <<\_ACEOF
97bf5e38 20699#define sys_quotactl 1
bec39cab 20700_ACEOF
97bf5e38
MK
20701
20702 ;;
97bf5e38 20703 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
20704
20705cat >>confdefs.h <<\_ACEOF
97bf5e38 20706#define NEW_PROC_API 1
bec39cab 20707_ACEOF
97bf5e38
MK
20708
20709 ;;
0bbc026e 20710 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
20711
20712cat >>confdefs.h <<\_ACEOF
97bf5e38 20713#define NEW_PROC_API 1
bec39cab 20714_ACEOF
c960c18f
AC
20715
20716 ;;
20717 mips-sgi-irix5*)
20718 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
20719
20720cat >>confdefs.h <<\_ACEOF
c960c18f 20721#define _KMEMUSER 1
bec39cab 20722_ACEOF
97bf5e38
MK
20723
20724 ;;
20725 esac
20726fi
20727
20728if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
20729 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
20730echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20731 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733else
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
596c9d4b
KB
20740
20741#define _SYSCALL32
20742#include <sys/procfs.h>
bec39cab
AC
20743int
20744main ()
20745{
97bf5e38 20746pstatus_t avar
bec39cab
AC
20747 ;
20748 return 0;
20749}
20750_ACEOF
20751rm -f conftest.$ac_objext
20752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20753 (eval $ac_compile) 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
b4e70030
JB
20760 { ac_try='test -z "$ac_c_werror_flag"
20761 || test ! -s conftest.err'
bec39cab
AC
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; } &&
20767 { ac_try='test -s conftest.$ac_objext'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; }; then
97bf5e38 20773 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 20774else
bec39cab
AC
20775 echo "$as_me: failed program was:" >&5
20776sed 's/^/| /' conftest.$ac_ext >&5
20777
b4e70030 20778bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 20779
596c9d4b 20780fi
bec39cab 20781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20782fi
20783
97bf5e38 20784 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
20785
20786cat >>confdefs.h <<\_ACEOF
97bf5e38 20787#define HAVE_PSTATUS_T 1
bec39cab 20788_ACEOF
596c9d4b
KB
20789
20790 fi
b4e70030
JB
20791 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
20792echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 20793
b4e70030
JB
20794 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
20795echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20796 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 20798else
bec39cab
AC
20799 cat >conftest.$ac_ext <<_ACEOF
20800/* confdefs.h. */
20801_ACEOF
20802cat confdefs.h >>conftest.$ac_ext
20803cat >>conftest.$ac_ext <<_ACEOF
20804/* end confdefs.h. */
596c9d4b
KB
20805
20806#define _SYSCALL32
20807#include <sys/procfs.h>
bec39cab
AC
20808int
20809main ()
20810{
97bf5e38 20811prrun_t avar
bec39cab
AC
20812 ;
20813 return 0;
20814}
20815_ACEOF
20816rm -f conftest.$ac_objext
20817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20818 (eval $ac_compile) 2>conftest.er1
20819 ac_status=$?
20820 grep -v '^ *+' conftest.er1 >conftest.err
20821 rm -f conftest.er1
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
b4e70030
JB
20825 { ac_try='test -z "$ac_c_werror_flag"
20826 || test ! -s conftest.err'
bec39cab
AC
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest.$ac_objext'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
97bf5e38 20838 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 20839else
bec39cab
AC
20840 echo "$as_me: failed program was:" >&5
20841sed 's/^/| /' conftest.$ac_ext >&5
20842
b4e70030 20843bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 20844
596c9d4b 20845fi
bec39cab 20846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20847fi
20848
97bf5e38 20849 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
20850
20851cat >>confdefs.h <<\_ACEOF
97bf5e38 20852#define HAVE_PRRUN_T 1
bec39cab 20853_ACEOF
596c9d4b
KB
20854
20855 fi
b4e70030
JB
20856 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
20857echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 20858
b4e70030
JB
20859 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
20860echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20861 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 20863else
bec39cab
AC
20864 cat >conftest.$ac_ext <<_ACEOF
20865/* confdefs.h. */
20866_ACEOF
20867cat confdefs.h >>conftest.$ac_ext
20868cat >>conftest.$ac_ext <<_ACEOF
20869/* end confdefs.h. */
596c9d4b
KB
20870
20871#define _SYSCALL32
20872#include <sys/procfs.h>
bec39cab
AC
20873int
20874main ()
20875{
97bf5e38 20876gregset_t avar
bec39cab
AC
20877 ;
20878 return 0;
20879}
20880_ACEOF
20881rm -f conftest.$ac_objext
20882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20883 (eval $ac_compile) 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
b4e70030
JB
20890 { ac_try='test -z "$ac_c_werror_flag"
20891 || test ! -s conftest.err'
bec39cab
AC
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; } &&
20897 { ac_try='test -s conftest.$ac_objext'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
97bf5e38 20903 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 20904else
bec39cab
AC
20905 echo "$as_me: failed program was:" >&5
20906sed 's/^/| /' conftest.$ac_ext >&5
20907
b4e70030 20908bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 20909
596c9d4b 20910fi
bec39cab 20911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20912fi
20913
97bf5e38 20914 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
20915
20916cat >>confdefs.h <<\_ACEOF
97bf5e38 20917#define HAVE_GREGSET_T 1
bec39cab 20918_ACEOF
596c9d4b
KB
20919
20920 fi
b4e70030
JB
20921 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
20922echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 20923
b4e70030
JB
20924 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
20925echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20926 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
20927 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 20928else
bec39cab
AC
20929 cat >conftest.$ac_ext <<_ACEOF
20930/* confdefs.h. */
20931_ACEOF
20932cat confdefs.h >>conftest.$ac_ext
20933cat >>conftest.$ac_ext <<_ACEOF
20934/* end confdefs.h. */
97bf5e38
MK
20935
20936#define _SYSCALL32
d84dd0c5 20937#include <sys/procfs.h>
bec39cab
AC
20938int
20939main ()
20940{
97bf5e38 20941fpregset_t avar
bec39cab
AC
20942 ;
20943 return 0;
20944}
20945_ACEOF
20946rm -f conftest.$ac_objext
20947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20948 (eval $ac_compile) 2>conftest.er1
20949 ac_status=$?
20950 grep -v '^ *+' conftest.er1 >conftest.err
20951 rm -f conftest.er1
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } &&
b4e70030
JB
20955 { ac_try='test -z "$ac_c_werror_flag"
20956 || test ! -s conftest.err'
bec39cab
AC
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; } &&
20962 { ac_try='test -s conftest.$ac_objext'
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; }; then
97bf5e38 20968 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 20969else
bec39cab
AC
20970 echo "$as_me: failed program was:" >&5
20971sed 's/^/| /' conftest.$ac_ext >&5
20972
b4e70030 20973bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 20974
d84dd0c5 20975fi
bec39cab 20976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
20977fi
20978
97bf5e38 20979 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
20980
20981cat >>confdefs.h <<\_ACEOF
97bf5e38 20982#define HAVE_FPREGSET_T 1
bec39cab 20983_ACEOF
d84dd0c5 20984
97bf5e38 20985 fi
b4e70030
JB
20986 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
20987echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 20988
b4e70030
JB
20989 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
20990echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20991 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20993else
bec39cab
AC
20994 cat >conftest.$ac_ext <<_ACEOF
20995/* confdefs.h. */
20996_ACEOF
20997cat confdefs.h >>conftest.$ac_ext
20998cat >>conftest.$ac_ext <<_ACEOF
20999/* end confdefs.h. */
c906108c 21000
97bf5e38
MK
21001#define _SYSCALL32
21002#include <sys/procfs.h>
bec39cab
AC
21003int
21004main ()
21005{
97bf5e38 21006prgregset_t avar
bec39cab
AC
21007 ;
21008 return 0;
21009}
21010_ACEOF
21011rm -f conftest.$ac_objext
21012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013 (eval $ac_compile) 2>conftest.er1
21014 ac_status=$?
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
b4e70030
JB
21020 { ac_try='test -z "$ac_c_werror_flag"
21021 || test ! -s conftest.err'
bec39cab
AC
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try='test -s conftest.$ac_objext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
97bf5e38 21033 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 21034else
bec39cab
AC
21035 echo "$as_me: failed program was:" >&5
21036sed 's/^/| /' conftest.$ac_ext >&5
21037
b4e70030 21038bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 21039
c906108c 21040fi
bec39cab 21041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21042fi
21043
97bf5e38 21044 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
21045
21046cat >>confdefs.h <<\_ACEOF
97bf5e38 21047#define HAVE_PRGREGSET_T 1
bec39cab 21048_ACEOF
c906108c 21049
97bf5e38 21050 fi
b4e70030
JB
21051 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21052echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 21053
b4e70030
JB
21054 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21055echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21056 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21058else
bec39cab
AC
21059 cat >conftest.$ac_ext <<_ACEOF
21060/* confdefs.h. */
21061_ACEOF
21062cat confdefs.h >>conftest.$ac_ext
21063cat >>conftest.$ac_ext <<_ACEOF
21064/* end confdefs.h. */
97bf5e38
MK
21065
21066#define _SYSCALL32
21067#include <sys/procfs.h>
bec39cab
AC
21068int
21069main ()
21070{
97bf5e38 21071prfpregset_t avar
bec39cab
AC
21072 ;
21073 return 0;
21074}
21075_ACEOF
21076rm -f conftest.$ac_objext
21077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078 (eval $ac_compile) 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
b4e70030
JB
21085 { ac_try='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
bec39cab
AC
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
97bf5e38 21098 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 21099else
bec39cab
AC
21100 echo "$as_me: failed program was:" >&5
21101sed 's/^/| /' conftest.$ac_ext >&5
21102
b4e70030 21103bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 21104
d45fe813 21105fi
bec39cab 21106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21107fi
21108
97bf5e38 21109 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
21110
21111cat >>confdefs.h <<\_ACEOF
97bf5e38 21112#define HAVE_PRFPREGSET_T 1
bec39cab 21113_ACEOF
d45fe813 21114
97bf5e38 21115 fi
b4e70030
JB
21116 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21117echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 21118
b4e70030
JB
21119 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21120echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21121 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21123else
bec39cab
AC
21124 cat >conftest.$ac_ext <<_ACEOF
21125/* confdefs.h. */
21126_ACEOF
21127cat confdefs.h >>conftest.$ac_ext
21128cat >>conftest.$ac_ext <<_ACEOF
21129/* end confdefs.h. */
97bf5e38
MK
21130
21131#define _SYSCALL32
21132#include <sys/procfs.h>
bec39cab
AC
21133int
21134main ()
21135{
97bf5e38 21136prgregset32_t avar
bec39cab
AC
21137 ;
21138 return 0;
21139}
21140_ACEOF
21141rm -f conftest.$ac_objext
21142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21143 (eval $ac_compile) 2>conftest.er1
21144 ac_status=$?
21145 grep -v '^ *+' conftest.er1 >conftest.err
21146 rm -f conftest.er1
21147 cat conftest.err >&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } &&
b4e70030
JB
21150 { ac_try='test -z "$ac_c_werror_flag"
21151 || test ! -s conftest.err'
bec39cab
AC
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; } &&
21157 { ac_try='test -s conftest.$ac_objext'
21158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159 (eval $ac_try) 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); }; }; then
97bf5e38 21163 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 21164else
bec39cab
AC
21165 echo "$as_me: failed program was:" >&5
21166sed 's/^/| /' conftest.$ac_ext >&5
21167
b4e70030 21168bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 21169
d45fe813 21170fi
bec39cab 21171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21172fi
21173
97bf5e38 21174 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
21175
21176cat >>confdefs.h <<\_ACEOF
97bf5e38 21177#define HAVE_PRGREGSET32_T 1
bec39cab 21178_ACEOF
d45fe813 21179
97bf5e38 21180 fi
b4e70030
JB
21181 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21182echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 21183
b4e70030
JB
21184 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21185echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21186 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21188else
bec39cab
AC
21189 cat >conftest.$ac_ext <<_ACEOF
21190/* confdefs.h. */
21191_ACEOF
21192cat confdefs.h >>conftest.$ac_ext
21193cat >>conftest.$ac_ext <<_ACEOF
21194/* end confdefs.h. */
97bf5e38
MK
21195
21196#define _SYSCALL32
21197#include <sys/procfs.h>
bec39cab
AC
21198int
21199main ()
21200{
97bf5e38 21201prfpregset32_t avar
bec39cab
AC
21202 ;
21203 return 0;
21204}
21205_ACEOF
21206rm -f conftest.$ac_objext
21207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21208 (eval $ac_compile) 2>conftest.er1
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } &&
b4e70030
JB
21215 { ac_try='test -z "$ac_c_werror_flag"
21216 || test ! -s conftest.err'
bec39cab
AC
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21219 ac_status=$?
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; } &&
21222 { ac_try='test -s conftest.$ac_objext'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
97bf5e38 21228 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 21229else
bec39cab
AC
21230 echo "$as_me: failed program was:" >&5
21231sed 's/^/| /' conftest.$ac_ext >&5
21232
b4e70030 21233bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 21234
d45fe813 21235fi
bec39cab 21236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21237fi
21238
97bf5e38 21239 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
21240
21241cat >>confdefs.h <<\_ACEOF
97bf5e38 21242#define HAVE_PRFPREGSET32_T 1
bec39cab 21243_ACEOF
d45fe813 21244
97bf5e38 21245 fi
b4e70030
JB
21246 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21247echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 21248
b4e70030
JB
21249 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21250echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21251 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 21253else
bec39cab
AC
21254 cat >conftest.$ac_ext <<_ACEOF
21255/* confdefs.h. */
21256_ACEOF
21257cat confdefs.h >>conftest.$ac_ext
21258cat >>conftest.$ac_ext <<_ACEOF
21259/* end confdefs.h. */
97bf5e38 21260
d45fe813 21261#define _SYSCALL32
97bf5e38 21262#include <sys/procfs.h>
bec39cab
AC
21263int
21264main ()
21265{
97bf5e38 21266lwpid_t avar
bec39cab
AC
21267 ;
21268 return 0;
21269}
21270_ACEOF
21271rm -f conftest.$ac_objext
21272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21273 (eval $ac_compile) 2>conftest.er1
21274 ac_status=$?
21275 grep -v '^ *+' conftest.er1 >conftest.err
21276 rm -f conftest.er1
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } &&
b4e70030
JB
21280 { ac_try='test -z "$ac_c_werror_flag"
21281 || test ! -s conftest.err'
bec39cab
AC
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21284 ac_status=$?
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } &&
21287 { ac_try='test -s conftest.$ac_objext'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
97bf5e38 21293 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 21294else
bec39cab
AC
21295 echo "$as_me: failed program was:" >&5
21296sed 's/^/| /' conftest.$ac_ext >&5
21297
b4e70030 21298bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 21299
d45fe813 21300fi
bec39cab 21301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
21302fi
21303
97bf5e38 21304 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
21305
21306cat >>confdefs.h <<\_ACEOF
97bf5e38 21307#define HAVE_LWPID_T 1
bec39cab 21308_ACEOF
d45fe813 21309
97bf5e38 21310 fi
b4e70030
JB
21311 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21312echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 21313
b4e70030
JB
21314 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21315echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21316 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21318else
bec39cab
AC
21319 cat >conftest.$ac_ext <<_ACEOF
21320/* confdefs.h. */
21321_ACEOF
21322cat confdefs.h >>conftest.$ac_ext
21323cat >>conftest.$ac_ext <<_ACEOF
21324/* end confdefs.h. */
c906108c 21325
97bf5e38
MK
21326#define _SYSCALL32
21327#include <sys/procfs.h>
bec39cab
AC
21328int
21329main ()
21330{
97bf5e38 21331psaddr_t avar
bec39cab
AC
21332 ;
21333 return 0;
21334}
21335_ACEOF
21336rm -f conftest.$ac_objext
21337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338 (eval $ac_compile) 2>conftest.er1
21339 ac_status=$?
21340 grep -v '^ *+' conftest.er1 >conftest.err
21341 rm -f conftest.er1
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } &&
b4e70030
JB
21345 { ac_try='test -z "$ac_c_werror_flag"
21346 || test ! -s conftest.err'
bec39cab
AC
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; } &&
21352 { ac_try='test -s conftest.$ac_objext'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
97bf5e38 21358 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 21359else
bec39cab
AC
21360 echo "$as_me: failed program was:" >&5
21361sed 's/^/| /' conftest.$ac_ext >&5
21362
b4e70030 21363bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 21364
c906108c 21365fi
bec39cab 21366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21367fi
21368
97bf5e38 21369 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
21370
21371cat >>confdefs.h <<\_ACEOF
97bf5e38 21372#define HAVE_PSADDR_T 1
bec39cab 21373_ACEOF
c906108c 21374
97bf5e38 21375 fi
b4e70030
JB
21376 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21377echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 21378
b4e70030
JB
21379 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
21380echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21381 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21383else
bec39cab
AC
21384 cat >conftest.$ac_ext <<_ACEOF
21385/* confdefs.h. */
21386_ACEOF
21387cat confdefs.h >>conftest.$ac_ext
21388cat >>conftest.$ac_ext <<_ACEOF
21389/* end confdefs.h. */
c906108c 21390
97bf5e38
MK
21391#define _SYSCALL32
21392#include <sys/procfs.h>
bec39cab
AC
21393int
21394main ()
21395{
97bf5e38 21396prsysent_t avar
bec39cab
AC
21397 ;
21398 return 0;
21399}
21400_ACEOF
21401rm -f conftest.$ac_objext
21402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21403 (eval $ac_compile) 2>conftest.er1
21404 ac_status=$?
21405 grep -v '^ *+' conftest.er1 >conftest.err
21406 rm -f conftest.er1
21407 cat conftest.err >&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } &&
b4e70030
JB
21410 { ac_try='test -z "$ac_c_werror_flag"
21411 || test ! -s conftest.err'
bec39cab
AC
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; } &&
21417 { ac_try='test -s conftest.$ac_objext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
97bf5e38 21423 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 21424else
bec39cab
AC
21425 echo "$as_me: failed program was:" >&5
21426sed 's/^/| /' conftest.$ac_ext >&5
21427
b4e70030 21428bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 21429
c906108c 21430fi
bec39cab 21431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21432fi
21433
97bf5e38 21434 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
21435
21436cat >>confdefs.h <<\_ACEOF
97bf5e38 21437#define HAVE_PRSYSENT_T 1
bec39cab 21438_ACEOF
c906108c 21439
97bf5e38 21440 fi
b4e70030
JB
21441 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
21442echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 21443
b4e70030
JB
21444 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
21445echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21446 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
21447 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21448else
bec39cab
AC
21449 cat >conftest.$ac_ext <<_ACEOF
21450/* confdefs.h. */
21451_ACEOF
21452cat confdefs.h >>conftest.$ac_ext
21453cat >>conftest.$ac_ext <<_ACEOF
21454/* end confdefs.h. */
c906108c 21455
97bf5e38
MK
21456#define _SYSCALL32
21457#include <sys/procfs.h>
bec39cab
AC
21458int
21459main ()
21460{
97bf5e38 21461pr_sigset_t avar
bec39cab
AC
21462 ;
21463 return 0;
21464}
21465_ACEOF
21466rm -f conftest.$ac_objext
21467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21468 (eval $ac_compile) 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
b4e70030
JB
21475 { ac_try='test -z "$ac_c_werror_flag"
21476 || test ! -s conftest.err'
bec39cab
AC
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; } &&
21482 { ac_try='test -s conftest.$ac_objext'
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21485 ac_status=$?
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; }; then
97bf5e38 21488 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 21489else
bec39cab
AC
21490 echo "$as_me: failed program was:" >&5
21491sed 's/^/| /' conftest.$ac_ext >&5
21492
b4e70030 21493bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 21494
c906108c 21495fi
bec39cab 21496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21497fi
21498
97bf5e38 21499 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
21500
21501cat >>confdefs.h <<\_ACEOF
97bf5e38 21502#define HAVE_PR_SIGSET_T 1
bec39cab 21503_ACEOF
c906108c 21504
97bf5e38 21505 fi
b4e70030
JB
21506 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
21507echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 21508
b4e70030
JB
21509 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
21510echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21511 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21513else
bec39cab
AC
21514 cat >conftest.$ac_ext <<_ACEOF
21515/* confdefs.h. */
21516_ACEOF
21517cat confdefs.h >>conftest.$ac_ext
21518cat >>conftest.$ac_ext <<_ACEOF
21519/* end confdefs.h. */
c906108c 21520
97bf5e38
MK
21521#define _SYSCALL32
21522#include <sys/procfs.h>
bec39cab
AC
21523int
21524main ()
21525{
97bf5e38 21526pr_sigaction64_t avar
bec39cab
AC
21527 ;
21528 return 0;
21529}
21530_ACEOF
21531rm -f conftest.$ac_objext
21532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21533 (eval $ac_compile) 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
b4e70030
JB
21540 { ac_try='test -z "$ac_c_werror_flag"
21541 || test ! -s conftest.err'
bec39cab
AC
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; } &&
21547 { ac_try='test -s conftest.$ac_objext'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
97bf5e38 21553 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 21554else
bec39cab
AC
21555 echo "$as_me: failed program was:" >&5
21556sed 's/^/| /' conftest.$ac_ext >&5
21557
b4e70030 21558bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 21559
c906108c 21560fi
bec39cab 21561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21562fi
21563
97bf5e38 21564 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
21565
21566cat >>confdefs.h <<\_ACEOF
97bf5e38 21567#define HAVE_PR_SIGACTION64_T 1
bec39cab 21568_ACEOF
c906108c 21569
97bf5e38 21570 fi
b4e70030
JB
21571 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
21572echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 21573
b4e70030
JB
21574 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
21575echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21576 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21578else
bec39cab
AC
21579 cat >conftest.$ac_ext <<_ACEOF
21580/* confdefs.h. */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h. */
97bf5e38
MK
21585
21586#define _SYSCALL32
21587#include <sys/procfs.h>
bec39cab
AC
21588int
21589main ()
21590{
97bf5e38 21591pr_siginfo64_t avar
bec39cab
AC
21592 ;
21593 return 0;
21594}
21595_ACEOF
21596rm -f conftest.$ac_objext
21597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598 (eval $ac_compile) 2>conftest.er1
21599 ac_status=$?
21600 grep -v '^ *+' conftest.er1 >conftest.err
21601 rm -f conftest.er1
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
b4e70030
JB
21605 { ac_try='test -z "$ac_c_werror_flag"
21606 || test ! -s conftest.err'
bec39cab
AC
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest.$ac_objext'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
97bf5e38
MK
21618 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
21619else
bec39cab
AC
21620 echo "$as_me: failed program was:" >&5
21621sed 's/^/| /' conftest.$ac_ext >&5
21622
b4e70030 21623bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 21624
97bf5e38 21625fi
bec39cab 21626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21627fi
c906108c 21628
97bf5e38 21629 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
21630
21631cat >>confdefs.h <<\_ACEOF
97bf5e38 21632#define HAVE_PR_SIGINFO64_T 1
bec39cab 21633_ACEOF
c906108c 21634
97bf5e38 21635 fi
b4e70030
JB
21636 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
21637echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
21638
21639
97bf5e38
MK
21640
21641
21642
97bf5e38 21643 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
21644 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
21645echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
21646 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21648else
21649 if test "$cross_compiling" = yes; then
97bf5e38 21650 gdb_cv_prfpregset_t_broken=yes
c906108c 21651else
bec39cab
AC
21652 cat >conftest.$ac_ext <<_ACEOF
21653/* confdefs.h. */
21654_ACEOF
21655cat confdefs.h >>conftest.$ac_ext
21656cat >>conftest.$ac_ext <<_ACEOF
21657/* end confdefs.h. */
97bf5e38
MK
21658#include <sys/procfs.h>
21659 int main ()
21660 {
21661 if (sizeof (prfpregset_t) == sizeof (void *))
21662 return 1;
21663 return 0;
21664 }
bec39cab
AC
21665_ACEOF
21666rm -f conftest$ac_exeext
21667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21668 (eval $ac_link) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
97bf5e38 21677 gdb_cv_prfpregset_t_broken=no
c906108c 21678else
bec39cab
AC
21679 echo "$as_me: program exited with status $ac_status" >&5
21680echo "$as_me: failed program was:" >&5
21681sed 's/^/| /' conftest.$ac_ext >&5
21682
21683( exit $ac_status )
21684gdb_cv_prfpregset_t_broken=yes
c906108c 21685fi
b4e70030 21686rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 21687fi
c906108c
SS
21688fi
21689
b4e70030
JB
21690 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
21691echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 21692 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
21693
21694cat >>confdefs.h <<\_ACEOF
97bf5e38 21695#define PRFPREGSET_T_BROKEN 1
bec39cab 21696_ACEOF
c906108c 21697
97bf5e38
MK
21698 fi
21699 fi
c906108c 21700
bec39cab 21701
b4e70030
JB
21702 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
21703echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
21704 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21706else
bec39cab
AC
21707 cat >conftest.$ac_ext <<_ACEOF
21708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
97bf5e38
MK
21713#include <unistd.h>
21714#include <sys/types.h>
21715#include <sys/procfs.h>
21716
bec39cab
AC
21717int
21718main ()
21719{
97bf5e38
MK
21720
21721 int dummy;;
21722 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
21723
21724 ;
21725 return 0;
21726}
21727_ACEOF
21728rm -f conftest.$ac_objext
21729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730 (eval $ac_compile) 2>conftest.er1
21731 ac_status=$?
21732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
b4e70030
JB
21737 { ac_try='test -z "$ac_c_werror_flag"
21738 || test ! -s conftest.err'
bec39cab
AC
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
97bf5e38 21750 gdb_cv_have_procfs_piocset=yes
c906108c 21751else
bec39cab
AC
21752 echo "$as_me: failed program was:" >&5
21753sed 's/^/| /' conftest.$ac_ext >&5
21754
b4e70030 21755gdb_cv_have_procfs_piocset=no
c906108c 21756fi
bec39cab 21757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21758fi
97bf5e38 21759
b4e70030
JB
21760 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
21761echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 21762 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
21763
21764cat >>confdefs.h <<\_ACEOF
97bf5e38 21765#define HAVE_PROCFS_PIOCSET 1
bec39cab 21766_ACEOF
97bf5e38
MK
21767
21768 fi
c906108c 21769fi
c906108c 21770
97bf5e38 21771if test ${host} = ${target} ; then
bec39cab 21772
b4e70030
JB
21773 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
21774echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
21775 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21777else
21778 cat >conftest.$ac_ext <<_ACEOF
21779/* confdefs.h. */
21780_ACEOF
21781cat confdefs.h >>conftest.$ac_ext
21782cat >>conftest.$ac_ext <<_ACEOF
21783/* end confdefs.h. */
97bf5e38 21784#include <link.h>
bec39cab
AC
21785int
21786main ()
21787{
97bf5e38 21788struct link_map lm; (void) lm.l_addr;
bec39cab
AC
21789 ;
21790 return 0;
21791}
21792_ACEOF
21793rm -f conftest.$ac_objext
21794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21795 (eval $ac_compile) 2>conftest.er1
21796 ac_status=$?
21797 grep -v '^ *+' conftest.er1 >conftest.err
21798 rm -f conftest.er1
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } &&
b4e70030
JB
21802 { ac_try='test -z "$ac_c_werror_flag"
21803 || test ! -s conftest.err'
bec39cab
AC
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21806 ac_status=$?
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; } &&
21809 { ac_try='test -s conftest.$ac_objext'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; }; then
97bf5e38 21815 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 21816else
bec39cab
AC
21817 echo "$as_me: failed program was:" >&5
21818sed 's/^/| /' conftest.$ac_ext >&5
21819
b4e70030 21820gdb_cv_have_struct_link_map_with_l_members=no
c906108c 21821fi
bec39cab 21822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21823fi
21824
b4e70030
JB
21825 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
21826echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 21827 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
21828
21829cat >>confdefs.h <<\_ACEOF
97bf5e38 21830#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 21831_ACEOF
97bf5e38
MK
21832
21833 fi
21834
bec39cab 21835
b4e70030
JB
21836 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
21837echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
21838 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21840else
bec39cab
AC
21841 cat >conftest.$ac_ext <<_ACEOF
21842/* confdefs.h. */
21843_ACEOF
21844cat confdefs.h >>conftest.$ac_ext
21845cat >>conftest.$ac_ext <<_ACEOF
21846/* end confdefs.h. */
97bf5e38
MK
21847#include <sys/types.h>
21848#include <link.h>
bec39cab
AC
21849int
21850main ()
21851{
97bf5e38 21852struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
21853 ;
21854 return 0;
21855}
21856_ACEOF
21857rm -f conftest.$ac_objext
21858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21859 (eval $ac_compile) 2>conftest.er1
21860 ac_status=$?
21861 grep -v '^ *+' conftest.er1 >conftest.err
21862 rm -f conftest.er1
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } &&
b4e70030
JB
21866 { ac_try='test -z "$ac_c_werror_flag"
21867 || test ! -s conftest.err'
bec39cab
AC
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; } &&
21873 { ac_try='test -s conftest.$ac_objext'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; }; then
97bf5e38
MK
21879 gdb_cv_have_struct_link_map_with_lm_members=yes
21880else
bec39cab
AC
21881 echo "$as_me: failed program was:" >&5
21882sed 's/^/| /' conftest.$ac_ext >&5
21883
b4e70030 21884gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 21885fi
bec39cab 21886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21887fi
c906108c 21888
b4e70030
JB
21889 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
21890echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 21891 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
21892
21893cat >>confdefs.h <<\_ACEOF
97bf5e38 21894#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 21895_ACEOF
97bf5e38
MK
21896
21897 fi
21898
bec39cab 21899
b4e70030
JB
21900 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
21901echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
21902 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21904else
bec39cab
AC
21905 cat >conftest.$ac_ext <<_ACEOF
21906/* confdefs.h. */
21907_ACEOF
21908cat confdefs.h >>conftest.$ac_ext
21909cat >>conftest.$ac_ext <<_ACEOF
21910/* end confdefs.h. */
97bf5e38
MK
21911#include <sys/types.h>
21912#ifdef HAVE_NLIST_H
21913#include <nlist.h>
21914#endif
21915#include <link.h>
bec39cab
AC
21916int
21917main ()
21918{
97bf5e38 21919struct so_map lm; (void) lm.som_addr;
bec39cab
AC
21920 ;
21921 return 0;
21922}
21923_ACEOF
21924rm -f conftest.$ac_objext
21925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21926 (eval $ac_compile) 2>conftest.er1
21927 ac_status=$?
21928 grep -v '^ *+' conftest.er1 >conftest.err
21929 rm -f conftest.er1
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } &&
b4e70030
JB
21933 { ac_try='test -z "$ac_c_werror_flag"
21934 || test ! -s conftest.err'
bec39cab
AC
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; } &&
21940 { ac_try='test -s conftest.$ac_objext'
21941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942 (eval $ac_try) 2>&5
21943 ac_status=$?
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; }; then
97bf5e38
MK
21946 gdb_cv_have_struct_so_map_with_som_members=yes
21947else
bec39cab
AC
21948 echo "$as_me: failed program was:" >&5
21949sed 's/^/| /' conftest.$ac_ext >&5
21950
b4e70030 21951gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 21952fi
bec39cab 21953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21954fi
c906108c 21955
b4e70030
JB
21956 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
21957echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 21958 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
21959
21960cat >>confdefs.h <<\_ACEOF
97bf5e38 21961#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 21962_ACEOF
c906108c 21963
97bf5e38 21964 fi
c906108c 21965
bec39cab 21966
b4e70030
JB
21967 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
21968echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
21969 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
21970 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21971else
bec39cab
AC
21972 cat >conftest.$ac_ext <<_ACEOF
21973/* confdefs.h. */
21974_ACEOF
21975cat confdefs.h >>conftest.$ac_ext
21976cat >>conftest.$ac_ext <<_ACEOF
21977/* end confdefs.h. */
97bf5e38
MK
21978#define _SYSCALL32
21979#include <sys/link.h>
bec39cab
AC
21980int
21981main ()
21982{
97bf5e38 21983struct link_map32 l;
bec39cab
AC
21984 ;
21985 return 0;
21986}
21987_ACEOF
21988rm -f conftest.$ac_objext
21989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21990 (eval $ac_compile) 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
b4e70030
JB
21997 { ac_try='test -z "$ac_c_werror_flag"
21998 || test ! -s conftest.err'
bec39cab
AC
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest.$ac_objext'
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
97bf5e38
MK
22010 gdb_cv_have_struct_link_map32=yes
22011else
bec39cab
AC
22012 echo "$as_me: failed program was:" >&5
22013sed 's/^/| /' conftest.$ac_ext >&5
22014
b4e70030 22015gdb_cv_have_struct_link_map32=no
97bf5e38 22016fi
bec39cab 22017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22018fi
c906108c 22019
b4e70030
JB
22020 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22021echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 22022 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
22023
22024cat >>confdefs.h <<\_ACEOF
97bf5e38 22025#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 22026_ACEOF
c906108c 22027
60ca704f
SE
22028
22029cat >>confdefs.h <<\_ACEOF
97bf5e38 22030#define _SYSCALL32 1
bec39cab 22031_ACEOF
c906108c 22032
97bf5e38
MK
22033 fi
22034fi
c906108c 22035
bc8bcb4b 22036# Check if the compiler supports the `long long' type.
c906108c 22037
b4e70030
JB
22038echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22039echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
22040if test "${gdb_cv_c_long_long+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22042else
bec39cab
AC
22043 cat >conftest.$ac_ext <<_ACEOF
22044/* confdefs.h. */
22045_ACEOF
22046cat confdefs.h >>conftest.$ac_ext
22047cat >>conftest.$ac_ext <<_ACEOF
22048/* end confdefs.h. */
bc8bcb4b 22049extern long long foo;
bec39cab
AC
22050int
22051main ()
22052{
bc8bcb4b 22053switch (foo & 2) { case 0: return 1; }
bec39cab
AC
22054 ;
22055 return 0;
22056}
22057_ACEOF
22058rm -f conftest.$ac_objext
22059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060 (eval $ac_compile) 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
b4e70030
JB
22067 { ac_try='test -z "$ac_c_werror_flag"
22068 || test ! -s conftest.err'
bec39cab
AC
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest.$ac_objext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
97bf5e38
MK
22080 gdb_cv_c_long_long=yes
22081else
bec39cab
AC
22082 echo "$as_me: failed program was:" >&5
22083sed 's/^/| /' conftest.$ac_ext >&5
22084
b4e70030 22085gdb_cv_c_long_long=no
97bf5e38 22086fi
bec39cab 22087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22088fi
b4e70030
JB
22089echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22090echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 22091if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
22092
22093cat >>confdefs.h <<\_ACEOF
97bf5e38 22094#define CC_HAS_LONG_LONG 1
bec39cab 22095_ACEOF
97bf5e38
MK
22096
22097fi
22098
bc8bcb4b 22099# Check if the compiler and runtime support printing long longs.
97bf5e38 22100
b4e70030
JB
22101echo "$as_me:$LINENO: checking for long long support in printf" >&5
22102echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
22103if test "${gdb_cv_printf_has_long_long+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22105else
22106 if test "$cross_compiling" = yes; then
22107 gdb_cv_printf_has_long_long=no
22108else
bec39cab
AC
22109 cat >conftest.$ac_ext <<_ACEOF
22110/* confdefs.h. */
22111_ACEOF
22112cat confdefs.h >>conftest.$ac_ext
22113cat >>conftest.$ac_ext <<_ACEOF
22114/* end confdefs.h. */
bc8bcb4b
MK
22115$ac_includes_default
22116int
22117main ()
22118{
22119char buf[32];
97bf5e38
MK
22120 long long l = 0;
22121 l = (l << 16) + 0x0123;
22122 l = (l << 16) + 0x4567;
22123 l = (l << 16) + 0x89ab;
22124 l = (l << 16) + 0xcdef;
22125 sprintf (buf, "0x%016llx", l);
22126 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
22127 ;
22128 return 0;
c906108c 22129}
bec39cab
AC
22130_ACEOF
22131rm -f conftest$ac_exeext
22132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22133 (eval $ac_link) 2>&5
22134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22139 ac_status=$?
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }; then
97bf5e38
MK
22142 gdb_cv_printf_has_long_long=yes
22143else
bec39cab
AC
22144 echo "$as_me: program exited with status $ac_status" >&5
22145echo "$as_me: failed program was:" >&5
22146sed 's/^/| /' conftest.$ac_ext >&5
22147
22148( exit $ac_status )
22149gdb_cv_printf_has_long_long=no
97bf5e38 22150fi
b4e70030 22151rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22152fi
97bf5e38 22153fi
b4e70030
JB
22154echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22155echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 22156if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
22157
22158cat >>confdefs.h <<\_ACEOF
97bf5e38 22159#define PRINTF_HAS_LONG_LONG 1
bec39cab 22160_ACEOF
97bf5e38
MK
22161
22162fi
97bf5e38 22163
bc8bcb4b
MK
22164# Check if the compiler supports the `long double' type. We can't use
22165# AC_C_LONG_DOUBLE because that one does additional checks on the
22166# constants defined in <float.h> that fail on some systems,
22167# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 22168
b4e70030
JB
22169echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22170echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 22171if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 22172 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 22173else
bec39cab
AC
22174 cat >conftest.$ac_ext <<_ACEOF
22175/* confdefs.h. */
22176_ACEOF
22177cat confdefs.h >>conftest.$ac_ext
22178cat >>conftest.$ac_ext <<_ACEOF
22179/* end confdefs.h. */
97bf5e38 22180long double foo;
bec39cab
AC
22181_ACEOF
22182rm -f conftest.$ac_objext
22183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22184 (eval $ac_compile) 2>conftest.er1
22185 ac_status=$?
22186 grep -v '^ *+' conftest.er1 >conftest.err
22187 rm -f conftest.er1
22188 cat conftest.err >&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } &&
b4e70030
JB
22191 { ac_try='test -z "$ac_c_werror_flag"
22192 || test ! -s conftest.err'
bec39cab
AC
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; } &&
22198 { ac_try='test -s conftest.$ac_objext'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; }; then
bc8bcb4b 22204 gdb_cv_c_long_double=yes
97bf5e38 22205else
bec39cab
AC
22206 echo "$as_me: failed program was:" >&5
22207sed 's/^/| /' conftest.$ac_ext >&5
22208
b4e70030 22209gdb_cv_c_long_double=no
97bf5e38 22210fi
bec39cab 22211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 22212fi
b4e70030
JB
22213echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22214echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 22215if test $gdb_cv_c_long_double = yes; then
c906108c 22216
bc8bcb4b 22217cat >>confdefs.h <<\_ACEOF
97bf5e38 22218#define HAVE_LONG_DOUBLE 1
bec39cab 22219_ACEOF
97bf5e38
MK
22220
22221fi
22222
bc8bcb4b 22223# Check if the compiler and runtime support printing long doubles.
97bf5e38 22224
b4e70030
JB
22225echo "$as_me:$LINENO: checking for long double support in printf" >&5
22226echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
22227if test "${gdb_cv_printf_has_long_double+set}" = set; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22229else
22230 if test "$cross_compiling" = yes; then
22231 gdb_cv_printf_has_long_double=no
22232else
bec39cab
AC
22233 cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h. */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h. */
bc8bcb4b
MK
22239$ac_includes_default
22240int
22241main ()
22242{
22243char buf[16];
97bf5e38
MK
22244 long double f = 3.141592653;
22245 sprintf (buf, "%Lg", f);
22246 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
22247 ;
22248 return 0;
97bf5e38 22249}
bec39cab
AC
22250_ACEOF
22251rm -f conftest$ac_exeext
22252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22253 (eval $ac_link) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; }; then
97bf5e38 22262 gdb_cv_printf_has_long_double=yes
c906108c 22263else
bec39cab
AC
22264 echo "$as_me: program exited with status $ac_status" >&5
22265echo "$as_me: failed program was:" >&5
22266sed 's/^/| /' conftest.$ac_ext >&5
22267
22268( exit $ac_status )
22269gdb_cv_printf_has_long_double=no
c906108c 22270fi
b4e70030 22271rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 22272fi
c906108c 22273fi
b4e70030
JB
22274echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22275echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 22276if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
22277
22278cat >>confdefs.h <<\_ACEOF
97bf5e38 22279#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 22280_ACEOF
97bf5e38
MK
22281
22282fi
97bf5e38 22283
bc8bcb4b 22284# Check if the compiler and runtime support scanning long doubles.
97bf5e38 22285
b4e70030
JB
22286echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22287echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
22288if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
22290else
22291 if test "$cross_compiling" = yes; then
22292 gdb_cv_scanf_has_long_double=no
22293else
bec39cab
AC
22294 cat >conftest.$ac_ext <<_ACEOF
22295/* confdefs.h. */
22296_ACEOF
22297cat confdefs.h >>conftest.$ac_ext
22298cat >>conftest.$ac_ext <<_ACEOF
22299/* end confdefs.h. */
bc8bcb4b
MK
22300#include <stdio.h>
22301int
22302main ()
22303{
22304char *buf = "3.141592653";
97bf5e38
MK
22305 long double f = 0;
22306 sscanf (buf, "%Lg", &f);
22307 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
22308 ;
22309 return 0;
97bf5e38 22310}
bec39cab
AC
22311_ACEOF
22312rm -f conftest$ac_exeext
22313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22314 (eval $ac_link) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319 (eval $ac_try) 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
97bf5e38
MK
22323 gdb_cv_scanf_has_long_double=yes
22324else
bec39cab
AC
22325 echo "$as_me: program exited with status $ac_status" >&5
22326echo "$as_me: failed program was:" >&5
22327sed 's/^/| /' conftest.$ac_ext >&5
22328
22329( exit $ac_status )
22330gdb_cv_scanf_has_long_double=no
97bf5e38 22331fi
b4e70030 22332rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 22333fi
c906108c 22334fi
b4e70030
JB
22335echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
22336echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 22337if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
22338
22339cat >>confdefs.h <<\_ACEOF
97bf5e38 22340#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 22341_ACEOF
97bf5e38
MK
22342
22343fi
c906108c 22344
438013df
AO
22345case ${host_os} in
22346aix*)
b4e70030
JB
22347 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
22348echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
22349if test "${gdb_cv_bigtoc+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 22351else
bec39cab 22352
438013df
AO
22353 SAVE_LDFLAGS=$LDFLAGS
22354
22355 case $GCC in
22356 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
22357 *) gdb_cv_bigtoc=-bbigtoc ;;
22358 esac
22359
22360 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
22361 cat >conftest.$ac_ext <<_ACEOF
22362/* confdefs.h. */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h. */
438013df 22367
bec39cab
AC
22368int
22369main ()
22370{
438013df 22371int i;
bec39cab
AC
22372 ;
22373 return 0;
22374}
22375_ACEOF
22376rm -f conftest.$ac_objext conftest$ac_exeext
22377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22378 (eval $ac_link) 2>conftest.er1
22379 ac_status=$?
22380 grep -v '^ *+' conftest.er1 >conftest.err
22381 rm -f conftest.er1
22382 cat conftest.err >&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } &&
b4e70030
JB
22385 { ac_try='test -z "$ac_c_werror_flag"
22386 || test ! -s conftest.err'
bec39cab
AC
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; } &&
22392 { ac_try='test -s conftest$ac_exeext'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
438013df
AO
22398 :
22399else
bec39cab
AC
22400 echo "$as_me: failed program was:" >&5
22401sed 's/^/| /' conftest.$ac_ext >&5
22402
b4e70030 22403gdb_cv_bigtoc=
438013df 22404fi
bec39cab
AC
22405rm -f conftest.err conftest.$ac_objext \
22406 conftest$ac_exeext conftest.$ac_ext
ec76baa5 22407 LDFLAGS="${SAVE_LDFLAGS}"
438013df 22408
bec39cab 22409fi
b4e70030
JB
22410echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
22411echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
22412 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
22413 ;;
22414esac
22415
c906108c
SS
22416
22417
22418if test ${build} = ${host} -a ${host} = ${target} ; then
22419 case ${host_os} in
22420 hpux*)
b4e70030
JB
22421 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
22422echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
22423 if test -f /usr/include/dce/cma_config.h ; then
22424 if test "$GCC" = "yes" ; then
b4e70030
JB
22425 echo "$as_me:$LINENO: result: yes" >&5
22426echo "${ECHO_T}yes" >&6
60ca704f
SE
22427
22428cat >>confdefs.h <<\_ACEOF
c906108c 22429#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 22430_ACEOF
c906108c 22431
3483b318 22432 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
22433 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
22434 else
b4e70030
JB
22435 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
22436echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
22437 fi
22438 else
b4e70030
JB
22439 echo "$as_me:$LINENO: result: no" >&5
22440echo "${ECHO_T}no" >&6
c906108c
SS
22441 fi
22442 ;;
22443 solaris*)
d92419e5
JB
22444 # See if thread_db library is around for Solaris thread debugging.
22445 # Note that we must explicitly test for version 1 of the library
22446 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
22447 # the same API.
b4e70030
JB
22448 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
22449echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 22450 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
22451 echo "$as_me:$LINENO: result: yes" >&5
22452echo "${ECHO_T}yes" >&6
60ca704f
SE
22453
22454cat >>confdefs.h <<\_ACEOF
c906108c 22455#define HAVE_THREAD_DB_LIB 1
bec39cab 22456_ACEOF
c906108c 22457
3483b318 22458 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 22459 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 22460
b4e70030
JB
22461echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22462echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
22463if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22465else
bec39cab 22466 ac_check_lib_save_LIBS=$LIBS
c906108c 22467LIBS="-ldl $LIBS"
bec39cab
AC
22468cat >conftest.$ac_ext <<_ACEOF
22469/* confdefs.h. */
22470_ACEOF
22471cat confdefs.h >>conftest.$ac_ext
22472cat >>conftest.$ac_ext <<_ACEOF
22473/* end confdefs.h. */
22474
b4e70030 22475/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22476#ifdef __cplusplus
22477extern "C"
22478#endif
b4e70030
JB
22479/* We use char because int might match the return type of a gcc2
22480 builtin and then its argument prototype would still apply. */
bec39cab
AC
22481char dlopen ();
22482int
22483main ()
22484{
b4e70030 22485dlopen ();
bec39cab
AC
22486 ;
22487 return 0;
22488}
22489_ACEOF
22490rm -f conftest.$ac_objext conftest$ac_exeext
22491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22492 (eval $ac_link) 2>conftest.er1
22493 ac_status=$?
22494 grep -v '^ *+' conftest.er1 >conftest.err
22495 rm -f conftest.er1
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } &&
b4e70030
JB
22499 { ac_try='test -z "$ac_c_werror_flag"
22500 || test ! -s conftest.err'
bec39cab
AC
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; } &&
22506 { ac_try='test -s conftest$ac_exeext'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22509 ac_status=$?
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; }; then
22512 ac_cv_lib_dl_dlopen=yes
22513else
22514 echo "$as_me: failed program was:" >&5
22515sed 's/^/| /' conftest.$ac_ext >&5
22516
b4e70030 22517ac_cv_lib_dl_dlopen=no
bec39cab
AC
22518fi
22519rm -f conftest.err conftest.$ac_objext \
22520 conftest$ac_exeext conftest.$ac_ext
22521LIBS=$ac_check_lib_save_LIBS
22522fi
b4e70030
JB
22523echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22524echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
22525if test $ac_cv_lib_dl_dlopen = yes; then
22526 cat >>confdefs.h <<_ACEOF
22527#define HAVE_LIBDL 1
22528_ACEOF
c906108c
SS
22529
22530 LIBS="-ldl $LIBS"
22531
c906108c
SS
22532fi
22533
22534 if test "$GCC" = "yes" ; then
22535 # The GNU linker requires the -export-dynamic option to make
22536 # all symbols visible in the dynamic symbol table.
22537 hold_ldflags=$LDFLAGS
b4e70030
JB
22538 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
22539echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 22540 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
22541 cat >conftest.$ac_ext <<_ACEOF
22542/* confdefs.h. */
22543_ACEOF
22544cat confdefs.h >>conftest.$ac_ext
22545cat >>conftest.$ac_ext <<_ACEOF
22546/* end confdefs.h. */
c906108c 22547
bec39cab
AC
22548int
22549main ()
22550{
c906108c 22551int i;
bec39cab
AC
22552 ;
22553 return 0;
22554}
22555_ACEOF
22556rm -f conftest.$ac_objext conftest$ac_exeext
22557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22558 (eval $ac_link) 2>conftest.er1
22559 ac_status=$?
22560 grep -v '^ *+' conftest.er1 >conftest.err
22561 rm -f conftest.er1
22562 cat conftest.err >&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } &&
b4e70030
JB
22565 { ac_try='test -z "$ac_c_werror_flag"
22566 || test ! -s conftest.err'
bec39cab
AC
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest$ac_exeext'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
c906108c
SS
22578 found=yes
22579else
bec39cab
AC
22580 echo "$as_me: failed program was:" >&5
22581sed 's/^/| /' conftest.$ac_ext >&5
22582
b4e70030 22583found=no
c906108c 22584fi
bec39cab
AC
22585rm -f conftest.err conftest.$ac_objext \
22586 conftest$ac_exeext conftest.$ac_ext
c906108c 22587 LDFLAGS=$hold_ldflags
b4e70030
JB
22588 echo "$as_me:$LINENO: result: $found" >&5
22589echo "${ECHO_T}$found" >&6
c906108c
SS
22590 if test $found = yes; then
22591 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
22592 fi
22593 fi
22594 # Sun randomly tweaked the prototypes in <proc_service.h>
22595 # at one point.
b4e70030
JB
22596 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
22597echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
22598 if test "${gdb_cv_proc_service_is_old+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 22600else
bec39cab
AC
22601
22602 cat >conftest.$ac_ext <<_ACEOF
22603/* confdefs.h. */
22604_ACEOF
22605cat confdefs.h >>conftest.$ac_ext
22606cat >>conftest.$ac_ext <<_ACEOF
22607/* end confdefs.h. */
c906108c
SS
22608
22609 #include <proc_service.h>
22610 ps_err_e ps_pdwrite
22611 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 22612
bec39cab
AC
22613int
22614main ()
22615{
22616
22617 ;
22618 return 0;
22619}
22620_ACEOF
22621rm -f conftest.$ac_objext
22622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623 (eval $ac_compile) 2>conftest.er1
22624 ac_status=$?
22625 grep -v '^ *+' conftest.er1 >conftest.err
22626 rm -f conftest.er1
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
b4e70030
JB
22630 { ac_try='test -z "$ac_c_werror_flag"
22631 || test ! -s conftest.err'
bec39cab
AC
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; } &&
22637 { ac_try='test -s conftest.$ac_objext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
c906108c
SS
22643 gdb_cv_proc_service_is_old=no
22644else
bec39cab
AC
22645 echo "$as_me: failed program was:" >&5
22646sed 's/^/| /' conftest.$ac_ext >&5
22647
b4e70030 22648gdb_cv_proc_service_is_old=yes
c906108c 22649fi
bec39cab
AC
22650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22651
c906108c
SS
22652fi
22653
b4e70030
JB
22654 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
22655echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 22656 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
22657
22658cat >>confdefs.h <<\_ACEOF
c906108c 22659#define PROC_SERVICE_IS_OLD 1
bec39cab 22660_ACEOF
c906108c
SS
22661
22662 fi
22663 else
b4e70030
JB
22664 echo "$as_me:$LINENO: result: no" >&5
22665echo "${ECHO_T}no" >&6
c906108c
SS
22666 fi
22667 ;;
d92419e5 22668 aix*)
b4e70030
JB
22669 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
22670echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
22671 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673else
22674 cat >conftest.$ac_ext <<_ACEOF
22675/* confdefs.h. */
22676_ACEOF
22677cat confdefs.h >>conftest.$ac_ext
22678cat >>conftest.$ac_ext <<_ACEOF
22679/* end confdefs.h. */
d92419e5 22680#include <sys/pthdebug.h>
bec39cab
AC
22681int
22682main ()
22683{
d92419e5
JB
22684#ifndef PTHDB_VERSION_3
22685 #error
22686 #endif
bec39cab
AC
22687 ;
22688 return 0;
22689}
22690_ACEOF
22691rm -f conftest.$ac_objext
22692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22693 (eval $ac_compile) 2>conftest.er1
22694 ac_status=$?
22695 grep -v '^ *+' conftest.er1 >conftest.err
22696 rm -f conftest.er1
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } &&
b4e70030
JB
22700 { ac_try='test -z "$ac_c_werror_flag"
22701 || test ! -s conftest.err'
bec39cab
AC
22702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22703 (eval $ac_try) 2>&5
22704 ac_status=$?
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); }; } &&
22707 { ac_try='test -s conftest.$ac_objext'
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; }; then
d92419e5
JB
22713 gdb_cv_have_aix_thread_debug=yes
22714else
bec39cab
AC
22715 echo "$as_me: failed program was:" >&5
22716sed 's/^/| /' conftest.$ac_ext >&5
22717
b4e70030 22718gdb_cv_have_aix_thread_debug=no
d92419e5 22719fi
bec39cab 22720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
22721fi
22722
b4e70030
JB
22723 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
22724echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
22725 if test $gdb_cv_have_aix_thread_debug = yes; then
22726 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 22727 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
22728 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
22729 fi
22730 ;;
c906108c 22731 esac
bec39cab 22732
c906108c
SS
22733fi
22734
3f47be5c 22735if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
22736 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
22737echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
22738if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
22739 echo $ECHO_N "(cached) $ECHO_C" >&6
22740else
22741 cat >conftest.$ac_ext <<_ACEOF
22742/* confdefs.h. */
22743_ACEOF
22744cat confdefs.h >>conftest.$ac_ext
22745cat >>conftest.$ac_ext <<_ACEOF
22746/* end confdefs.h. */
3f47be5c 22747#include <thread_db.h>
bec39cab
AC
22748int
22749main ()
22750{
3f47be5c 22751int i = TD_NOTALLOC;
bec39cab
AC
22752 ;
22753 return 0;
22754}
22755_ACEOF
22756rm -f conftest.$ac_objext
22757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22758 (eval $ac_compile) 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } &&
b4e70030
JB
22765 { ac_try='test -z "$ac_c_werror_flag"
22766 || test ! -s conftest.err'
bec39cab
AC
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22769 ac_status=$?
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; } &&
22772 { ac_try='test -s conftest.$ac_objext'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }; then
3f47be5c
EZ
22778 gdb_cv_thread_db_h_has_td_notalloc=yes
22779else
bec39cab
AC
22780 echo "$as_me: failed program was:" >&5
22781sed 's/^/| /' conftest.$ac_ext >&5
22782
b4e70030 22783gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 22784
3f47be5c 22785fi
bec39cab 22786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 22787
bec39cab 22788fi
b4e70030
JB
22789echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
22790echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
22791fi
22792if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
22793
22794cat >>confdefs.h <<\_ACEOF
3f47be5c 22795#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 22796_ACEOF
3f47be5c
EZ
22797
22798fi
22799
b757528f 22800if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
22801 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
22802echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
22803if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
22804 echo $ECHO_N "(cached) $ECHO_C" >&6
22805else
22806 cat >conftest.$ac_ext <<_ACEOF
22807/* confdefs.h. */
22808_ACEOF
22809cat confdefs.h >>conftest.$ac_ext
22810cat >>conftest.$ac_ext <<_ACEOF
22811/* end confdefs.h. */
b757528f 22812#include <sys/syscall.h>
bec39cab
AC
22813int
22814main ()
22815{
b757528f 22816int i = __NR_tkill;
bec39cab
AC
22817 ;
22818 return 0;
22819}
22820_ACEOF
22821rm -f conftest.$ac_objext
22822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22823 (eval $ac_compile) 2>conftest.er1
22824 ac_status=$?
22825 grep -v '^ *+' conftest.er1 >conftest.err
22826 rm -f conftest.er1
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } &&
b4e70030
JB
22830 { ac_try='test -z "$ac_c_werror_flag"
22831 || test ! -s conftest.err'
bec39cab
AC
22832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22833 (eval $ac_try) 2>&5
22834 ac_status=$?
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); }; } &&
22837 { ac_try='test -s conftest.$ac_objext'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; }; then
b757528f
JJ
22843 gdb_cv_sys_syscall_h_has_tkill=yes
22844else
bec39cab
AC
22845 echo "$as_me: failed program was:" >&5
22846sed 's/^/| /' conftest.$ac_ext >&5
22847
b4e70030 22848gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 22849
b757528f 22850fi
bec39cab 22851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 22852
bec39cab 22853fi
b4e70030
JB
22854echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
22855echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
22856fi
22857if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
22858
22859cat >>confdefs.h <<\_ACEOF
b757528f 22860#define HAVE_TKILL_SYSCALL 1
bec39cab 22861_ACEOF
b757528f
JJ
22862
22863fi
22864
fb40c209 22865
bec39cab 22866
b4e70030 22867# Check whether --with-sysroot or --without-sysroot was given.
030292b7 22868if test "${with_sysroot+set}" = set; then
b4e70030
JB
22869 withval="$with_sysroot"
22870
030292b7 22871 case ${with_sysroot} in
715d1656 22872 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
22873 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
22874 esac
22875
22876 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
22877
22878 if test "x$exec_prefix" = xNONE; then
22879 if test "x$prefix" = xNONE; then
22880 test_prefix=/usr/local
22881 else
22882 test_prefix=$prefix
22883 fi
22884 else
22885 test_prefix=$exec_prefix
22886 fi
22887 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
22888 "${test_prefix}"|"${test_prefix}/"*|\
22889 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
22890 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
22891 TARGET_SYSTEM_ROOT_DEFINE="$t"
22892 ;;
22893 esac
22894
22895else
bec39cab 22896
030292b7
DJ
22897 TARGET_SYSTEM_ROOT=
22898 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
22899
b4e70030 22900fi;
030292b7
DJ
22901
22902
22903
b4e70030 22904# Check whether --enable-werror or --disable-werror was given.
094a342e 22905if test "${enable_werror+set}" = set; then
b4e70030
JB
22906 enableval="$enable_werror"
22907 case "${enableval}" in
094a342e
MK
22908 yes | y) ERROR_ON_WARNING="yes" ;;
22909 no | n) ERROR_ON_WARNING="no" ;;
22910 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
22911echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
22912 { (exit 1); exit 1; }; } ;;
22913 esac
b4e70030 22914fi;
094a342e
MK
22915
22916# Enable -Werror by default when using gcc
22917if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
22918 ERROR_ON_WARNING=yes
22919fi
22920
22921WERROR_CFLAGS=""
22922if test "${ERROR_ON_WARNING}" = yes ; then
22923 WERROR_CFLAGS="-Werror"
22924fi
22925
3b851bce
AC
22926# NOTE: Don't add -Wall or -Wunused, they both include
22927# -Wunused-parameter which reports bogus warnings.
22928# NOTE: If you add to this list, remember to update
22929# gdb/doc/gdbint.texinfo.
1decb323 22930build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 22931-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
7be93b9e 22932-Wunused-label -Wunused-function -Wno-pointer-sign"
a3b362c4
JB
22933
22934# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 22935if test x${CFLAGS+set} = xset; then
a3b362c4
JB
22936 case "${CFLAGS}" in
22937 *"-O0"* ) ;;
22938 *"-O"* )
22939 build_warnings="${build_warnings} -Wuninitialized"
22940 ;;
22941 esac
22942else
22943 build_warnings="${build_warnings} -Wuninitialized"
22944fi
22945
d8038014 22946# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 22947# -Wunused-function -Wunused-variable -Wunused-value
93d56215 22948# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
22949# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
22950# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
22951# -Woverloaded-virtual -Winline -Werror"
b4e70030 22952# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 22953if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
22954 enableval="$enable_build_warnings"
22955 case "${enableval}" in
c906108c
SS
22956 yes) ;;
22957 no) build_warnings="-w";;
22958 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22959 build_warnings="${build_warnings} ${t}";;
22960 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22961 build_warnings="${t} ${build_warnings}";;
22962 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22963esac
d4f3574e 22964if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 22965 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 22966fi
b4e70030 22967fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 22968if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
22969 enableval="$enable_gdb_build_warnings"
22970 case "${enableval}" in
3b851bce
AC
22971 yes) ;;
22972 no) build_warnings="-w";;
22973 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22974 build_warnings="${build_warnings} ${t}";;
22975 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22976 build_warnings="${t} ${build_warnings}";;
22977 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22978esac
22979if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22980 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
22981fi
b4e70030 22982fi; WARN_CFLAGS=""
c906108c
SS
22983if test "x${build_warnings}" != x -a "x$GCC" = xyes
22984then
b4e70030
JB
22985 echo "$as_me:$LINENO: checking compiler warning flags" >&5
22986echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
22987 # Separate out the -Werror flag as some files just cannot be
22988 # compiled with it enabled.
22989 for w in ${build_warnings}; do
22990 case $w in
22991 -Werr*) WERROR_CFLAGS=-Werror ;;
22992 *) # Check that GCC accepts it
4536bbc6
AC
22993 saved_CFLAGS="$CFLAGS"
22994 CFLAGS="$CFLAGS $w"
bec39cab
AC
22995 cat >conftest.$ac_ext <<_ACEOF
22996/* confdefs.h. */
22997_ACEOF
22998cat confdefs.h >>conftest.$ac_ext
22999cat >>conftest.$ac_ext <<_ACEOF
23000/* end confdefs.h. */
4536bbc6 23001
bec39cab
AC
23002int
23003main ()
23004{
4536bbc6 23005
bec39cab
AC
23006 ;
23007 return 0;
23008}
23009_ACEOF
23010rm -f conftest.$ac_objext
23011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23012 (eval $ac_compile) 2>conftest.er1
23013 ac_status=$?
23014 grep -v '^ *+' conftest.er1 >conftest.err
23015 rm -f conftest.er1
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } &&
b4e70030
JB
23019 { ac_try='test -z "$ac_c_werror_flag"
23020 || test ! -s conftest.err'
bec39cab
AC
23021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; } &&
23026 { ac_try='test -s conftest.$ac_objext'
23027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028 (eval $ac_try) 2>&5
23029 ac_status=$?
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; }; then
4536bbc6
AC
23032 WARN_CFLAGS="${WARN_CFLAGS} $w"
23033else
bec39cab
AC
23034 echo "$as_me: failed program was:" >&5
23035sed 's/^/| /' conftest.$ac_ext >&5
23036
4536bbc6 23037fi
bec39cab 23038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 23039 CFLAGS="$saved_CFLAGS"
746a987d
AC
23040 esac
23041 done
b4e70030
JB
23042 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
23043echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
23044fi
23045
23046
104c1213 23047
7a292a7a 23048# In the Cygwin environment, we need some additional flags.
b4e70030
JB
23049echo "$as_me:$LINENO: checking for cygwin" >&5
23050echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
23051if test "${gdb_cv_os_cygwin+set}" = set; then
23052 echo $ECHO_N "(cached) $ECHO_C" >&6
23053else
23054 cat >conftest.$ac_ext <<_ACEOF
23055/* confdefs.h. */
23056_ACEOF
23057cat confdefs.h >>conftest.$ac_ext
23058cat >>conftest.$ac_ext <<_ACEOF
23059/* end confdefs.h. */
7a292a7a
SS
23060
23061#if defined (__CYGWIN__) || defined (__CYGWIN32__)
23062lose
23063#endif
bec39cab 23064_ACEOF
7a292a7a 23065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 23066 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
23067 gdb_cv_os_cygwin=yes
23068else
7a292a7a
SS
23069 gdb_cv_os_cygwin=no
23070fi
23071rm -f conftest*
23072
23073fi
b4e70030
JB
23074echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
23075echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 23076
aff38e61 23077
3eb25fda 23078SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 23079case ${host} in
95cbc983
AC
23080 *go32* ) SER_HARDWIRE=ser-go32.o ;;
23081 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 23082 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
23083esac
23084
23085
cd0fc7c3
SS
23086# libreadline needs libuser32.a in a cygwin environment
23087WIN32LIBS=
23088if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
23089 WIN32LIBS="-luser32"
23090 case "${target}" in
23091 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
23092 ;;
23093 esac
cd0fc7c3 23094fi
c906108c 23095
b4505029
MM
23096# The ser-tcp.c module requires sockets.
23097case ${host} in
23098 *mingw32*)
23099
23100cat >>confdefs.h <<\_ACEOF
23101#define USE_WIN32API 1
23102_ACEOF
23103
23104 WIN32LIBS="$WIN32LIBS -lws2_32"
23105 ;;
23106esac
23107
7a292a7a 23108
121ce6e5
DJ
23109# Add any host-specific objects to GDB.
23110CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23111
3fc11d3e
JM
23112LIBGUI="../libgui/src/libgui.a"
23113GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23114
23115
7a292a7a 23116
3fc11d3e
JM
23117WIN32LDAPP=
23118
23119
23120
d91670b9
CV
23121case "${host}" in
23122*-*-cygwin*)
23123 configdir="win"
23124 ;;
23125*)
23126 configdir="unix"
23127 ;;
23128esac
3fc11d3e
JM
23129
23130GDBTKLIBS=
23131if test "${enable_gdbtk}" = "yes"; then
23132
d1c3b63a
KS
23133 # Gdbtk must have an absolute path to srcdir in order to run
23134 # properly when not installed.
23135 here=`pwd`
23136 cd ${srcdir}
23137 GDBTK_SRC_DIR=`pwd`
23138 cd $here
23139
bec39cab 23140
3fc11d3e
JM
23141#
23142# Ok, lets find the tcl configuration
bec39cab 23143# First, look for one uninstalled.
3fc11d3e
JM
23144# the alternative search directory is invoked by --with-tclconfig
23145#
23146
23147if test x"${no_tcl}" = x ; then
23148 # we reset no_tcl in case something fails here
23149 no_tcl=true
bec39cab 23150
b4e70030 23151# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 23152if test "${with_tclconfig+set}" = set; then
b4e70030
JB
23153 withval="$with_tclconfig"
23154 with_tclconfig=${withval}
23155fi;
23156 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
23157echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
23158 if test "${ac_cv_c_tclconfig+set}" = set; then
23159 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23160else
bec39cab 23161
3fc11d3e
JM
23162
23163 # First check to see if --with-tclconfig was specified.
23164 if test x"${with_tclconfig}" != x ; then
23165 if test -f "${with_tclconfig}/tclConfig.sh" ; then
23166 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
23167 else
bec39cab
AC
23168 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
23169echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
23170 { (exit 1); exit 1; }; }
3fc11d3e
JM
23171 fi
23172 fi
23173
23174 # then check for a private Tcl installation
23175 if test x"${ac_cv_c_tclconfig}" = x ; then
23176 for i in \
23177 ../tcl \
23178 `ls -dr ../tcl[7-9]* 2>/dev/null` \
23179 ../../tcl \
23180 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
23181 ../../../tcl \
23182 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
23183 if test -f "$i/${configdir}/tclConfig.sh" ; then
23184 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23185 break
23186 fi
23187 done
23188 fi
23189 # check in a few common install locations
23190 if test x"${ac_cv_c_tclconfig}" = x ; then
23191 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23192 if test -f "$i/tclConfig.sh" ; then
23193 ac_cv_c_tclconfig=`(cd $i; pwd)`
23194 break
23195 fi
23196 done
23197 fi
23198 # check in a few other private locations
23199 if test x"${ac_cv_c_tclconfig}" = x ; then
23200 for i in \
23201 ${srcdir}/../tcl \
23202 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
23203 if test -f "$i/${configdir}/tclConfig.sh" ; then
23204 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23205 break
23206 fi
23207 done
23208 fi
bec39cab 23209
3fc11d3e
JM
23210fi
23211
23212 if test x"${ac_cv_c_tclconfig}" = x ; then
23213 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
23214 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
23215echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
23216 else
23217 no_tcl=
23218 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
23219 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
23220echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
23221 fi
23222fi
23223
23224 if test -z "${no_tcl}"; then
bec39cab 23225
3fc11d3e
JM
23226 . $TCLCONFIG
23227
3fc11d3e
JM
23228
23229
23230
23231
3fc11d3e
JM
23232
23233
23234
bec39cab
AC
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
3fc11d3e
JM
23254#
23255# Ok, lets find the tk configuration
bec39cab 23256# First, look for one uninstalled.
3fc11d3e
JM
23257# the alternative search directory is invoked by --with-tkconfig
23258#
23259
23260if test x"${no_tk}" = x ; then
23261 # we reset no_tk in case something fails here
23262 no_tk=true
bec39cab 23263
b4e70030 23264# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 23265if test "${with_tkconfig+set}" = set; then
b4e70030
JB
23266 withval="$with_tkconfig"
23267 with_tkconfig=${withval}
23268fi;
23269 echo "$as_me:$LINENO: checking for Tk configuration" >&5
23270echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
23271 if test "${ac_cv_c_tkconfig+set}" = set; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23273else
bec39cab 23274
3fc11d3e
JM
23275
23276 # First check to see if --with-tkconfig was specified.
23277 if test x"${with_tkconfig}" != x ; then
23278 if test -f "${with_tkconfig}/tkConfig.sh" ; then
23279 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
23280 else
bec39cab
AC
23281 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
23282echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
23283 { (exit 1); exit 1; }; }
3fc11d3e
JM
23284 fi
23285 fi
23286
23287 # then check for a private Tk library
23288 if test x"${ac_cv_c_tkconfig}" = x ; then
23289 for i in \
23290 ../tk \
23291 `ls -dr ../tk[4-9]* 2>/dev/null` \
23292 ../../tk \
23293 `ls -dr ../../tk[4-9]* 2>/dev/null` \
23294 ../../../tk \
23295 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
23296 if test -f "$i/${configdir}/tkConfig.sh" ; then
23297 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23298 break
23299 fi
23300 done
23301 fi
23302 # check in a few common install locations
23303 if test x"${ac_cv_c_tkconfig}" = x ; then
23304 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23305 if test -f "$i/tkConfig.sh" ; then
23306 ac_cv_c_tkconfig=`(cd $i; pwd)`
23307 break
23308 fi
23309 done
23310 fi
23311 # check in a few other private locations
23312 if test x"${ac_cv_c_tkconfig}" = x ; then
23313 for i in \
23314 ${srcdir}/../tk \
23315 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
23316 if test -f "$i/${configdir}/tkConfig.sh" ; then
23317 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23318 break
23319 fi
23320 done
23321 fi
bec39cab 23322
3fc11d3e
JM
23323fi
23324
23325 if test x"${ac_cv_c_tkconfig}" = x ; then
23326 TKCONFIG="# no Tk configs found"
bec39cab
AC
23327 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
23328echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
23329 else
23330 no_tk=
23331 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
23332 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
23333echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
23334 fi
23335fi
23336
23337
23338
dd2504ab
JM
23339 # now look for Tcl library stuff
23340
d91670b9 23341 tcldir="../tcl/${configdir}/"
dd2504ab
JM
23342
23343 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
23344
3fc11d3e
JM
23345 # If $no_tk is nonempty, then we can't do Tk, and there is no
23346 # point to doing Tcl.
23347 if test -z "${no_tk}"; then
bec39cab 23348
3fc11d3e
JM
23349 if test -f "$TKCONFIG" ; then
23350 . $TKCONFIG
23351 fi
23352
3fc11d3e 23353
3fc11d3e
JM
23354
23355
3fc11d3e 23356
bec39cab
AC
23357
23358
23359
23360
23361
23362
23363
23364
23365
3fc11d3e
JM
23366#
23367# Ok, lets find the tcl source trees so we can use the headers
23368# Warning: transition of version 9 to 10 will break this algorithm
23369# because 10 sorts before 9. We also look for just tcl. We have to
23370# be careful that we don't match stuff like tclX by accident.
23371# the alternative search directory is involked by --with-tclinclude
23372#
23373
23374no_tcl=true
b4e70030
JB
23375echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
23376echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 23377
b4e70030 23378# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 23379if test "${with_tclinclude+set}" = set; then
b4e70030
JB
23380 withval="$with_tclinclude"
23381 with_tclinclude=${withval}
23382fi;
bec39cab
AC
23383if test "${ac_cv_c_tclh+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23385else
bec39cab 23386
3fc11d3e
JM
23387# first check to see if --with-tclinclude was specified
23388if test x"${with_tclinclude}" != x ; then
23389 if test -f ${with_tclinclude}/tclInt.h ; then
23390 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
23391 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
23392 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
23393 else
bec39cab
AC
23394 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
23395echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
23396 { (exit 1); exit 1; }; }
3fc11d3e
JM
23397 fi
23398fi
23399
23400# next check if it came with Tcl configuration file
23401if test x"${ac_cv_c_tclconfig}" = x ; then
23402 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
23403 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
23404 fi
23405fi
23406
23407# next check in private source directory
23408#
23409# since ls returns lowest version numbers first, reverse its output
23410if test x"${ac_cv_c_tclh}" = x ; then
23411 for i in \
23412 ${srcdir}/../tcl \
23413 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
23414 ${srcdir}/../../tcl \
23415 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
23416 ${srcdir}/../../../tcl \
23417 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
23418 if test -f $i/generic/tclInt.h ; then
23419 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23420 break
23421 fi
23422 done
23423fi
23424# finally check in a few common install locations
23425#
23426# since ls returns lowest version numbers first, reverse its output
23427if test x"${ac_cv_c_tclh}" = x ; then
23428 for i in \
23429 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
23430 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
23431 /usr/local/src/tcl \
23432 /usr/local/lib/tcl \
23433 ${prefix}/include ; do
23434 if test -f $i/generic/tclInt.h ; then
23435 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23436 break
23437 fi
23438 done
23439fi
23440# see if one is installed
23441if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 23442 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
23443 echo "$as_me:$LINENO: checking for tclInt.h" >&5
23444echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
23445if test "${ac_cv_header_tclInt_h+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23447fi
b4e70030
JB
23448echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23449echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
23450else
23451 # Is the header compilable?
b4e70030
JB
23452echo "$as_me:$LINENO: checking tclInt.h usability" >&5
23453echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
23454cat >conftest.$ac_ext <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
23460$ac_includes_default
23461#include <tclInt.h>
23462_ACEOF
23463rm -f conftest.$ac_objext
23464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23465 (eval $ac_compile) 2>conftest.er1
23466 ac_status=$?
23467 grep -v '^ *+' conftest.er1 >conftest.err
23468 rm -f conftest.er1
23469 cat conftest.err >&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } &&
b4e70030
JB
23472 { ac_try='test -z "$ac_c_werror_flag"
23473 || test ! -s conftest.err'
bec39cab
AC
23474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23475 (eval $ac_try) 2>&5
23476 ac_status=$?
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); }; } &&
23479 { ac_try='test -s conftest.$ac_objext'
23480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_header_compiler=yes
23486else
23487 echo "$as_me: failed program was:" >&5
23488sed 's/^/| /' conftest.$ac_ext >&5
23489
b4e70030 23490ac_header_compiler=no
bec39cab
AC
23491fi
23492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
23493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23494echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
23495
23496# Is the header present?
b4e70030
JB
23497echo "$as_me:$LINENO: checking tclInt.h presence" >&5
23498echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
23499cat >conftest.$ac_ext <<_ACEOF
23500/* confdefs.h. */
23501_ACEOF
23502cat confdefs.h >>conftest.$ac_ext
23503cat >>conftest.$ac_ext <<_ACEOF
23504/* end confdefs.h. */
3fc11d3e 23505#include <tclInt.h>
bec39cab
AC
23506_ACEOF
23507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23509 ac_status=$?
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } >/dev/null; then
23515 if test -s conftest.err; then
23516 ac_cpp_err=$ac_c_preproc_warn_flag
23517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23518 else
23519 ac_cpp_err=
23520 fi
23521else
23522 ac_cpp_err=yes
3fc11d3e 23523fi
bec39cab
AC
23524if test -z "$ac_cpp_err"; then
23525 ac_header_preproc=yes
23526else
23527 echo "$as_me: failed program was:" >&5
23528sed 's/^/| /' conftest.$ac_ext >&5
23529
23530 ac_header_preproc=no
3fc11d3e 23531fi
bec39cab 23532rm -f conftest.err conftest.$ac_ext
b4e70030
JB
23533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23534echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
23535
23536# So? What about this header?
23537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23538 yes:no: )
23539 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23540echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23541 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
23542echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
23543 ac_header_preproc=yes
23544 ;;
23545 no:yes:* )
23546 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
23547echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
23548 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23549echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23550 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23551echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23552 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23553echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23554 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23555echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23556 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23557echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
23558 (
23559 cat <<\_ASBOX
23560## ------------------------------------------ ##
23561## Report this to the AC_PACKAGE_NAME lists. ##
23562## ------------------------------------------ ##
23563_ASBOX
23564 ) |
23565 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
23566 ;;
23567esac
b4e70030
JB
23568echo "$as_me:$LINENO: checking for tclInt.h" >&5
23569echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
23570if test "${ac_cv_header_tclInt_h+set}" = set; then
23571 echo $ECHO_N "(cached) $ECHO_C" >&6
23572else
23573 ac_cv_header_tclInt_h=$ac_header_preproc
23574fi
b4e70030
JB
23575echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23576echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
23577
23578fi
23579if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
23580 ac_cv_c_tclh=installed
23581else
bec39cab 23582 ac_cv_c_tclh=""
3fc11d3e
JM
23583fi
23584
bec39cab 23585
3fc11d3e
JM
23586fi
23587
23588fi
23589
23590if test x"${ac_cv_c_tclh}" = x ; then
23591 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
23592 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23593echo "$as_me: error: Can't find Tcl private headers" >&2;}
23594 { (exit 1); exit 1; }; }
3fc11d3e
JM
23595fi
23596if test x"${ac_cv_c_tclh}" != x ; then
23597 no_tcl=""
23598 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
23599 echo "$as_me:$LINENO: result: is installed" >&5
23600echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
23601 TCLHDIR=""
23602 else
b4e70030
JB
23603 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23604echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
23605 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23606 TCLHDIR="-I${ac_cv_c_tclh}"
23607 fi
23608fi
23609
23610
23611
bec39cab 23612
3fc11d3e
JM
23613#
23614# Ok, lets find the tk source trees so we can use the headers
23615# If the directory (presumably symlink) named "tk" exists, use that one
23616# in preference to any others. Same logic is used when choosing library
23617# and again with Tcl. The search order is the best place to look first, then in
23618# decreasing significance. The loop breaks if the trigger file is found.
23619# Note the gross little conversion here of srcdir by cd'ing to the found
23620# directory. This converts the path from a relative to an absolute, so
23621# recursive cache variables for the path will work right. We check all
23622# the possible paths in one loop rather than many seperate loops to speed
23623# things up.
23624# the alternative search directory is involked by --with-tkinclude
23625#
23626no_tk=true
b4e70030
JB
23627echo "$as_me:$LINENO: checking for Tk private headers" >&5
23628echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 23629
b4e70030 23630# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 23631if test "${with_tkinclude+set}" = set; then
b4e70030
JB
23632 withval="$with_tkinclude"
23633 with_tkinclude=${withval}
23634fi;
bec39cab
AC
23635if test "${ac_cv_c_tkh+set}" = set; then
23636 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23637else
bec39cab 23638
3fc11d3e
JM
23639# first check to see if --with-tkinclude was specified
23640if test x"${with_tkinclude}" != x ; then
23641 if test -f ${with_tkinclude}/tk.h ; then
23642 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23643 elif test -f ${with_tkinclude}/generic/tk.h ; then
23644 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23645 else
bec39cab
AC
23646 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23647echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23648 { (exit 1); exit 1; }; }
3fc11d3e
JM
23649 fi
23650fi
23651
23652# next check if it came with Tk configuration file
23653if test x"${ac_cv_c_tkconfig}" = x ; then
23654 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23655 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23656 fi
23657fi
23658
23659# next check in private source directory
23660#
23661# since ls returns lowest version numbers first, reverse its output
23662if test x"${ac_cv_c_tkh}" = x ; then
23663 for i in \
23664 ${srcdir}/../tk \
23665 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23666 ${srcdir}/../../tk \
23667 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23668 ${srcdir}/../../../tk \
23669 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23670 if test -f $i/generic/tk.h ; then
23671 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23672 break
23673 fi
23674 done
23675fi
23676# finally check in a few common install locations
23677#
23678# since ls returns lowest version numbers first, reverse its output
23679if test x"${ac_cv_c_tkh}" = x ; then
23680 for i in \
23681 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23682 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23683 /usr/local/src/tk \
23684 /usr/local/lib/tk \
23685 ${prefix}/include ; do
23686 if test -f $i/generic/tk.h ; then
23687 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23688 break
23689 fi
23690 done
23691fi
23692# see if one is installed
23693if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 23694 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
23695 echo "$as_me:$LINENO: checking for tk.h" >&5
23696echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
23697if test "${ac_cv_header_tk_h+set}" = set; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23699fi
b4e70030
JB
23700echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23701echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
23702else
23703 # Is the header compilable?
b4e70030
JB
23704echo "$as_me:$LINENO: checking tk.h usability" >&5
23705echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
23706cat >conftest.$ac_ext <<_ACEOF
23707/* confdefs.h. */
23708_ACEOF
23709cat confdefs.h >>conftest.$ac_ext
23710cat >>conftest.$ac_ext <<_ACEOF
23711/* end confdefs.h. */
23712$ac_includes_default
3fc11d3e 23713#include <tk.h>
bec39cab
AC
23714_ACEOF
23715rm -f conftest.$ac_objext
23716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23717 (eval $ac_compile) 2>conftest.er1
23718 ac_status=$?
23719 grep -v '^ *+' conftest.er1 >conftest.err
23720 rm -f conftest.er1
23721 cat conftest.err >&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } &&
b4e70030
JB
23724 { ac_try='test -z "$ac_c_werror_flag"
23725 || test ! -s conftest.err'
bec39cab
AC
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; } &&
23731 { ac_try='test -s conftest.$ac_objext'
23732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23733 (eval $ac_try) 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; }; then
23737 ac_header_compiler=yes
23738else
23739 echo "$as_me: failed program was:" >&5
23740sed 's/^/| /' conftest.$ac_ext >&5
23741
b4e70030 23742ac_header_compiler=no
bec39cab
AC
23743fi
23744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
23745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23746echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
23747
23748# Is the header present?
b4e70030
JB
23749echo "$as_me:$LINENO: checking tk.h presence" >&5
23750echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
23751cat >conftest.$ac_ext <<_ACEOF
23752/* confdefs.h. */
23753_ACEOF
23754cat confdefs.h >>conftest.$ac_ext
23755cat >>conftest.$ac_ext <<_ACEOF
23756/* end confdefs.h. */
23757#include <tk.h>
23758_ACEOF
23759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23761 ac_status=$?
23762 grep -v '^ *+' conftest.er1 >conftest.err
23763 rm -f conftest.er1
23764 cat conftest.err >&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } >/dev/null; then
23767 if test -s conftest.err; then
23768 ac_cpp_err=$ac_c_preproc_warn_flag
23769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23770 else
23771 ac_cpp_err=
23772 fi
23773else
23774 ac_cpp_err=yes
3fc11d3e 23775fi
bec39cab
AC
23776if test -z "$ac_cpp_err"; then
23777 ac_header_preproc=yes
23778else
23779 echo "$as_me: failed program was:" >&5
23780sed 's/^/| /' conftest.$ac_ext >&5
23781
23782 ac_header_preproc=no
23783fi
23784rm -f conftest.err conftest.$ac_ext
b4e70030
JB
23785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23786echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
23787
23788# So? What about this header?
23789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23790 yes:no: )
23791 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
23792echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23793 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
23794echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
23795 ac_header_preproc=yes
23796 ;;
23797 no:yes:* )
23798 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
23799echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
23800 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
23801echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
23802 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
23803echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
23804 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
23805echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
23806 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
23807echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
23808 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
23809echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
23810 (
23811 cat <<\_ASBOX
23812## ------------------------------------------ ##
23813## Report this to the AC_PACKAGE_NAME lists. ##
23814## ------------------------------------------ ##
23815_ASBOX
23816 ) |
23817 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
23818 ;;
23819esac
b4e70030
JB
23820echo "$as_me:$LINENO: checking for tk.h" >&5
23821echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
23822if test "${ac_cv_header_tk_h+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23824else
23825 ac_cv_header_tk_h=$ac_header_preproc
23826fi
b4e70030
JB
23827echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23828echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 23829
3fc11d3e 23830fi
bec39cab 23831if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
23832 ac_cv_c_tkh=installed
23833else
bec39cab 23834 ac_cv_c_tkh=""
3fc11d3e
JM
23835fi
23836
bec39cab 23837
3fc11d3e
JM
23838fi
23839
23840fi
23841
23842if test x"${ac_cv_c_tkh}" != x ; then
23843 no_tk=""
23844 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
23845 echo "$as_me:$LINENO: result: is installed" >&5
23846echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
23847 TKHDIR=""
23848 else
b4e70030
JB
23849 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
23850echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
23851 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
23852 TKHDIR="-I${ac_cv_c_tkh}"
23853 fi
23854else
23855 TKHDIR="# no Tk directory found"
bec39cab
AC
23856 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
23857echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
23858 no_tk=true
23859fi
23860
23861
23862
bec39cab 23863
b4e70030
JB
23864echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
23865echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
23866if test x"${ac_cv_c_itclh}" = x ; then
23867 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
23868 if test -f $i/generic/itcl.h ; then
23869 ac_cv_c_itclh=`(cd $i/generic; pwd)`
23870 break
23871 fi
23872 done
23873fi
23874if test x"${ac_cv_c_itclh}" = x ; then
23875 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
23876 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
23877echo "$as_me: error: Can't find Itcl private headers" >&2;}
23878 { (exit 1); exit 1; }; }
3fc11d3e
JM
23879fi
23880if test x"${ac_cv_c_itclh}" != x ; then
23881 ITCLHDIR="-I${ac_cv_c_itclh}"
23882fi
23883# should always be here
23884# ITCLLIB="../itcl/itcl/unix/libitcl.a"
23885
23886#AC_SUBST(ITCLLIB)
23887
bec39cab 23888
b4e70030
JB
23889echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
23890echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
23891if test x"${ac_cv_c_itkh}" = x ; then
23892 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
23893 if test -f $i/generic/itk.h ; then
23894 ac_cv_c_itkh=`(cd $i/generic; pwd)`
23895 break
23896 fi
23897 done
23898fi
23899if test x"${ac_cv_c_itkh}" = x ; then
23900 ITKHDIR="# no Itk private headers found"
bec39cab
AC
23901 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
23902echo "$as_me: error: Can't find Itk private headers" >&2;}
23903 { (exit 1); exit 1; }; }
3fc11d3e
JM
23904fi
23905if test x"${ac_cv_c_itkh}" != x ; then
23906 ITKHDIR="-I${ac_cv_c_itkh}"
23907fi
23908# should always be here
23909# ITKLIB="../itcl/itk/unix/libitk.a"
23910
23911#AC_SUBST(ITKLIB)
23912
3fc11d3e 23913
dd2504ab
JM
23914
23915 # now look for Tk library stuff
23916
d91670b9 23917 tkdir="../tk/${configdir}/"
dd2504ab
JM
23918
23919 TK_DEPS="${tkdir}${TK_LIB_FILE}"
23920
3fc11d3e
JM
23921 # now look for Itcl library stuff
23922
bec39cab 23923
3fc11d3e
JM
23924#
23925# Ok, lets find the itcl configuration
bec39cab 23926# First, look for one uninstalled.
3fc11d3e
JM
23927# the alternative search directory is invoked by --with-itclconfig
23928#
23929
23930if test x"${no_itcl}" = x ; then
23931 # we reset no_itcl in case something fails here
23932 no_itcl=true
bec39cab 23933
b4e70030 23934# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 23935if test "${with_itclconfig+set}" = set; then
b4e70030
JB
23936 withval="$with_itclconfig"
23937 with_itclconfig=${withval}
23938fi;
23939 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
23940echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
23941 if test "${ac_cv_c_itclconfig+set}" = set; then
23942 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23943else
bec39cab 23944
3fc11d3e
JM
23945
23946 # First check to see if --with-itclconfig was specified.
23947 if test x"${with_itclconfig}" != x ; then
23948 if test -f "${with_itclconfig}/itclConfig.sh" ; then
23949 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
23950 else
bec39cab
AC
23951 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
23952echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
23953 { (exit 1); exit 1; }; }
3fc11d3e
JM
23954 fi
23955 fi
23956
23957 # then check for a private Itcl library
23958 if test x"${ac_cv_c_itclconfig}" = x ; then
23959 for i in \
23960 ../itcl/itcl \
23961 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
23962 ../../itcl \
23963 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
23964 ../../../itcl \
23965 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
23966 if test -f "$i/itclConfig.sh" ; then
23967 ac_cv_c_itclconfig=`(cd $i; pwd)`
23968 break
23969 fi
23970 done
23971 fi
23972 # check in a few common install locations
23973 if test x"${ac_cv_c_itclconfig}" = x ; then
23974 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23975 if test -f "$i/itclConfig.sh" ; then
23976 ac_cv_c_itclconfig=`(cd $i; pwd)`
23977 break
23978 fi
23979 done
23980 fi
23981 # check in a few other private locations
23982 if test x"${ac_cv_c_itclconfig}" = x ; then
23983 for i in \
23984 ${srcdir}/../itcl/itcl \
23985 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
23986 if test -f "$i/itclConfig.sh" ; then
23987 ac_cv_c_itclconfig=`(cd $i; pwd)`
23988 break
23989 fi
23990 done
23991 fi
bec39cab 23992
3fc11d3e
JM
23993fi
23994
23995 if test x"${ac_cv_c_itclconfig}" = x ; then
23996 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
23997 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
23998echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
23999 else
24000 no_itcl=
24001 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
24002 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
24003echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
24004 fi
24005fi
24006
24007 if test -z "${no_itcl}"; then
bec39cab 24008
3fc11d3e
JM
24009 if test -f "$ITCLCONFIG" ; then
24010 . $ITCLCONFIG
24011 fi
24012
3fc11d3e 24013
3fc11d3e
JM
24014
24015
bec39cab
AC
24016
24017
24018
24019
24020
24021
24022
3fc11d3e
JM
24023
24024 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 24025 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
24026 fi
24027
bec39cab 24028
3fc11d3e 24029 # now look for Itk library stuff
bec39cab 24030
3fc11d3e
JM
24031#
24032# Ok, lets find the itk configuration
bec39cab 24033# First, look for one uninstalled.
3fc11d3e
JM
24034# the alternative search directory is invoked by --with-itkconfig
24035#
24036
24037if test x"${no_itk}" = x ; then
24038 # we reset no_itk in case something fails here
24039 no_itk=true
bec39cab 24040
b4e70030 24041# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 24042if test "${with_itkconfig+set}" = set; then
b4e70030
JB
24043 withval="$with_itkconfig"
24044 with_itkconfig=${withval}
24045fi;
24046 echo "$as_me:$LINENO: checking for Itk configuration" >&5
24047echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
24048 if test "${ac_cv_c_itkconfig+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 24050else
bec39cab 24051
3fc11d3e
JM
24052
24053 # First check to see if --with-itkconfig was specified.
24054 if test x"${with_itkconfig}" != x ; then
24055 if test -f "${with_itkconfig}/itkConfig.sh" ; then
24056 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24057 else
bec39cab
AC
24058 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24059echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24060 { (exit 1); exit 1; }; }
3fc11d3e
JM
24061 fi
24062 fi
24063
24064 # then check for a private Itk library
24065 if test x"${ac_cv_c_itkconfig}" = x ; then
24066 for i in \
24067 ../itcl/itk \
24068 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24069 ../../itk \
24070 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24071 ../../../itk \
24072 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24073 if test -f "$i/itkConfig.sh" ; then
24074 ac_cv_c_itkconfig=`(cd $i; pwd)`
24075 break
24076 fi
24077 done
24078 fi
24079 # check in a few common install locations
24080 if test x"${ac_cv_c_itkconfig}" = x ; then
24081 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24082 if test -f "$i/itkConfig.sh" ; then
24083 ac_cv_c_itkconfig=`(cd $i; pwd)`
24084 break
24085 fi
24086 done
24087 fi
24088 # check in a few other private locations
24089 if test x"${ac_cv_c_itkconfig}" = x ; then
24090 for i in \
24091 ${srcdir}/../itcl/itk \
24092 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24093 if test -f "$i/itkConfig.sh" ; then
24094 ac_cv_c_itkconfig=`(cd $i; pwd)`
24095 break
24096 fi
24097 done
24098 fi
bec39cab 24099
3fc11d3e
JM
24100fi
24101
24102 if test x"${ac_cv_c_itkconfig}" = x ; then
24103 ITKCONFIG="# no Itk configs found"
bec39cab
AC
24104 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24105echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
24106 else
24107 no_itk=
24108 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
24109 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24110echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
24111 fi
24112fi
24113
24114
bec39cab
AC
24115 if test -z "${no_itcl}"; then
24116
24117 if test -f "$ITKCONFIG" ; then
24118 . $ITKCONFIG
24119 fi
24120
24121
24122
24123
24124
24125
3fc11d3e 24126
3fc11d3e 24127
3fc11d3e
JM
24128
24129
3fc11d3e
JM
24130
24131
3fc11d3e 24132 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 24133 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
24134 fi
24135
4226a5a5 24136 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
24137
24138 # Include some libraries that Tcl and Tk want.
b2a1bd4f 24139 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
24140 # Yes, the ordering seems wrong here. But it isn't.
24141 # TK_LIBS is the list of libraries that need to be linked
24142 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24143 # were in LIBS then any link tests after this point would
24144 # try to include things like `$(LIBGUI)', which wouldn't work.
24145 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
24146
24147 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24148 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24149 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
24150 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24151 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24152 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24153 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
24154
24155 if test x$gdb_cv_os_cygwin = xyes; then
24156 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24157 WIN32LDAPP="-Wl,--subsystem,console"
24158 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24159 fi
24160 fi
24161 fi
ffc6a242 24162
b4e70030
JB
24163
24164
24165subdirs="$subdirs gdbtk"
3ace7edb 24166
3fc11d3e
JM
24167fi
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
dd2504ab 24181
b4e70030
JB
24182echo "$as_me:$LINENO: checking for X" >&5
24183echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 24184
c906108c 24185
b4e70030 24186# Check whether --with-x or --without-x was given.
c906108c 24187if test "${with_x+set}" = set; then
b4e70030 24188 withval="$with_x"
c906108c 24189
b4e70030 24190fi;
c906108c
SS
24191# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24192if test "x$with_x" = xno; then
24193 # The user explicitly disabled X.
24194 have_x=disabled
24195else
24196 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24197 # Both variables are already set.
24198 have_x=yes
24199 else
bec39cab
AC
24200 if test "${ac_cv_have_x+set}" = set; then
24201 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
24202else
24203 # One or both of the vars are not set, and there is no cached value.
bec39cab 24204ac_x_includes=no ac_x_libraries=no
b4e70030 24205rm -fr conftest.dir
bec39cab
AC
24206if mkdir conftest.dir; then
24207 cd conftest.dir
c906108c 24208 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 24209 cat >Imakefile <<'_ACEOF'
c906108c
SS
24210acfindx:
24211 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 24212_ACEOF
b4e70030 24213 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
24214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24215 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24216 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24217 for ac_extension in a so sl; do
24218 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
24219 test -f $ac_im_libdir/libX11.$ac_extension; then
24220 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
24221 fi
24222 done
24223 # Screen out bogus values from the imake configuration. They are
24224 # bogus both because they are the default anyway, and because
24225 # using them would break gcc on systems where it needs fixed includes.
bec39cab 24226 case $ac_im_incroot in
b4e70030 24227 /usr/include) ;;
bec39cab 24228 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 24229 esac
bec39cab 24230 case $ac_im_usrlibdir in
c906108c 24231 /usr/lib | /lib) ;;
bec39cab 24232 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
24233 esac
24234 fi
24235 cd ..
b4e70030 24236 rm -fr conftest.dir
c906108c
SS
24237fi
24238
bec39cab
AC
24239# Standard set of common directories for X headers.
24240# Check X11 before X11Rn because it is often a symlink to the current release.
24241ac_x_header_dirs='
24242/usr/X11/include
24243/usr/X11R6/include
24244/usr/X11R5/include
24245/usr/X11R4/include
24246
24247/usr/include/X11
24248/usr/include/X11R6
24249/usr/include/X11R5
24250/usr/include/X11R4
24251
24252/usr/local/X11/include
24253/usr/local/X11R6/include
24254/usr/local/X11R5/include
24255/usr/local/X11R4/include
24256
24257/usr/local/include/X11
24258/usr/local/include/X11R6
24259/usr/local/include/X11R5
24260/usr/local/include/X11R4
24261
24262/usr/X386/include
24263/usr/x386/include
24264/usr/XFree86/include/X11
24265
24266/usr/include
24267/usr/local/include
24268/usr/unsupported/include
24269/usr/athena/include
24270/usr/local/x11r5/include
24271/usr/lpp/Xamples/include
24272
24273/usr/openwin/include
24274/usr/openwin/share/include'
24275
24276if test "$ac_x_includes" = no; then
b4e70030 24277 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 24278 # First, try using that file with no special directory specified.
bec39cab
AC
24279 cat >conftest.$ac_ext <<_ACEOF
24280/* confdefs.h. */
24281_ACEOF
24282cat confdefs.h >>conftest.$ac_ext
24283cat >>conftest.$ac_ext <<_ACEOF
24284/* end confdefs.h. */
b4e70030 24285#include <X11/Intrinsic.h>
bec39cab
AC
24286_ACEOF
24287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24289 ac_status=$?
24290 grep -v '^ *+' conftest.er1 >conftest.err
24291 rm -f conftest.er1
24292 cat conftest.err >&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } >/dev/null; then
24295 if test -s conftest.err; then
24296 ac_cpp_err=$ac_c_preproc_warn_flag
24297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24298 else
24299 ac_cpp_err=
24300 fi
24301else
24302 ac_cpp_err=yes
24303fi
24304if test -z "$ac_cpp_err"; then
c906108c
SS
24305 # We can compile using X headers with no special include directory.
24306ac_x_includes=
24307else
bec39cab
AC
24308 echo "$as_me: failed program was:" >&5
24309sed 's/^/| /' conftest.$ac_ext >&5
24310
24311 for ac_dir in $ac_x_header_dirs; do
b4e70030 24312 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
24313 ac_x_includes=$ac_dir
24314 break
24315 fi
24316done
c906108c 24317fi
bec39cab
AC
24318rm -f conftest.err conftest.$ac_ext
24319fi # $ac_x_includes = no
c906108c 24320
bec39cab 24321if test "$ac_x_libraries" = no; then
c906108c 24322 # Check for the libraries.
c906108c
SS
24323 # See if we find them without any special options.
24324 # Don't add to $LIBS permanently.
bec39cab 24325 ac_save_LIBS=$LIBS
4e8d927d 24326 LIBS="-lXt $LIBS"
bec39cab
AC
24327 cat >conftest.$ac_ext <<_ACEOF
24328/* confdefs.h. */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h. */
b4e70030 24333#include <X11/Intrinsic.h>
bec39cab
AC
24334int
24335main ()
24336{
b4e70030 24337XtMalloc (0)
bec39cab
AC
24338 ;
24339 return 0;
24340}
24341_ACEOF
24342rm -f conftest.$ac_objext conftest$ac_exeext
24343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24344 (eval $ac_link) 2>conftest.er1
24345 ac_status=$?
24346 grep -v '^ *+' conftest.er1 >conftest.err
24347 rm -f conftest.er1
24348 cat conftest.err >&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); } &&
b4e70030
JB
24351 { ac_try='test -z "$ac_c_werror_flag"
24352 || test ! -s conftest.err'
bec39cab
AC
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; } &&
24358 { ac_try='test -s conftest$ac_exeext'
24359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); }; }; then
24364 LIBS=$ac_save_LIBS
c906108c
SS
24365# We can link X programs with no special library path.
24366ac_x_libraries=
24367else
bec39cab
AC
24368 echo "$as_me: failed program was:" >&5
24369sed 's/^/| /' conftest.$ac_ext >&5
24370
b4e70030 24371LIBS=$ac_save_LIBS
bec39cab 24372for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 24373do
bec39cab 24374 # Don't even attempt the hair of trying to link an X program!
c906108c 24375 for ac_extension in a so sl; do
b4e70030 24376 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
24377 ac_x_libraries=$ac_dir
24378 break 2
24379 fi
24380 done
24381done
24382fi
bec39cab
AC
24383rm -f conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
24385fi # $ac_x_libraries = no
c906108c 24386
bec39cab 24387if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
24388 # Didn't find X anywhere. Cache the known absence of X.
24389 ac_cv_have_x="have_x=no"
24390else
24391 # Record where we found X for the cache.
24392 ac_cv_have_x="have_x=yes \
bec39cab 24393 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
24394fi
24395fi
bec39cab 24396
c906108c
SS
24397 fi
24398 eval "$ac_cv_have_x"
24399fi # $with_x != no
24400
24401if test "$have_x" != yes; then
b4e70030
JB
24402 echo "$as_me:$LINENO: result: $have_x" >&5
24403echo "${ECHO_T}$have_x" >&6
c906108c
SS
24404 no_x=yes
24405else
24406 # If each of the values was on the command line, it overrides each guess.
24407 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24408 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24409 # Update the cache value to reflect the command line values.
24410 ac_cv_have_x="have_x=yes \
24411 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
24412 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24413echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
24414fi
24415
24416
9cc52bde
MK
24417# Check whether we should enable the TUI, but only do so if we really
24418# can.
24419if test x"$enable_tui" = xyes; then
24420 if test -d $srcdir/tui; then
24421 if test "$ac_cv_search_waddstr" != no; then
24422 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
24423 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
24424 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
24425 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
24426 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
24427 CONFIG_ALL="${CONFIG_ALL} all-tui"
24428 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
24429 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
24430 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
24431 else
bec39cab
AC
24432 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
24433echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
24434 fi
24435 fi
24436fi
24437
bec39cab
AC
24438# Unlike the sim directory, whether a simulator is linked is controlled by
24439# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
24440# This code just checks for a few cases where we'd like to ignore those
24441# definitions, even when they're present in the '.mt' file. These cases
24442# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 24443# not part of the source tree.
7a292a7a 24444#
b4e70030 24445# Check whether --enable-sim or --disable-sim was given.
7a292a7a 24446if test "${enable_sim+set}" = set; then
b4e70030
JB
24447 enableval="$enable_sim"
24448 echo "enable_sim = $enable_sim";
7a292a7a
SS
24449 echo "enableval = ${enableval}";
24450 case "${enableval}" in
24451 yes) ignore_sim=false ;;
24452 no) ignore_sim=true ;;
24453 *) ignore_sim=false ;;
24454 esac
24455else
24456 ignore_sim=false
b4e70030 24457fi;
7a292a7a
SS
24458
24459if test ! -d "${srcdir}/../sim"; then
24460 ignore_sim=true
24461fi
24462
24463if test "${ignore_sim}" = "true"; then
24464 IGNORE_SIM="SIM="
24465 IGNORE_SIM_OBS="SIM_OBS="
24466else
24467 IGNORE_SIM=""
24468 IGNORE_SIM_OBS=""
60ca704f
SE
24469
24470cat >>confdefs.h <<\_ACEOF
7a292a7a 24471#define WITH_SIM 1
bec39cab 24472_ACEOF
7a292a7a
SS
24473
24474fi
24475
24476
24477
c906108c
SS
24478
24479
24480
24481
24482
24483
dfcd3bfb 24484
e56ac5c3
AC
24485
24486
b3a90332
AC
24487
24488
c35f4ffc 24489# List of host floatformats.
bec39cab
AC
24490
24491cat >>confdefs.h <<_ACEOF
c35f4ffc 24492#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 24493_ACEOF
c35f4ffc 24494
bec39cab
AC
24495
24496cat >>confdefs.h <<_ACEOF
c35f4ffc 24497#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
24498_ACEOF
24499
c35f4ffc 24500
bec39cab 24501cat >>confdefs.h <<_ACEOF
c35f4ffc 24502#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 24503_ACEOF
c35f4ffc
AC
24504
24505
c906108c
SS
24506# target_subdir is used by the testsuite to find the target libraries.
24507target_subdir=
24508if test "${host}" != "${target}"; then
24509 target_subdir="${target_alias}/"
24510fi
24511
24512
24513frags=
0dad8a66
MK
24514if test "${target}" = "${host}"; then
24515 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
24516 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
24517 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
24518echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
24519 { (exit 1); exit 1; }; }
0dad8a66
MK
24520 fi
24521 frags="$frags $host_makefile_frag"
24522else
24523 host_makefile_frag=/dev/null
c906108c 24524fi
c906108c
SS
24525
24526target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
24527if test ! -f ${target_makefile_frag}; then
bec39cab
AC
24528 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
24529echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
24530 { (exit 1); exit 1; }; }
c906108c
SS
24531fi
24532frags="$frags $target_makefile_frag"
24533
24534
24535
24536
24537
24538hostfile=`sed -n '
24539s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24540' ${host_makefile_frag}`
24541
24542targetfile=`sed -n '
2c0fc042 24543s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
24544' ${target_makefile_frag}`
24545
c906108c 24546if test "${target}" = "${host}"; then
a85f51e7
DJ
24547# We pick this up from the host configuration file (.mh) because we
24548# do not have a native configuration Makefile fragment.
c906108c
SS
24549nativefile=`sed -n '
24550s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24551' ${host_makefile_frag}`
c906108c
SS
24552fi
24553
24554
b00a8037 24555if test x"${gdb_osabi}" != x ; then
bec39cab
AC
24556
24557cat >>confdefs.h <<_ACEOF
b00a8037 24558#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 24559_ACEOF
b00a8037
DJ
24560
24561fi
24562
8dcde887 24563# Enable multi-ice-gdb-server.
b4e70030 24564# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 24565if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
24566 enableval="$enable_multi_ice"
24567 case $enableval in
8dcde887
MK
24568 yes | no)
24569 ;;
bec39cab
AC
24570 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24571echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24572 { (exit 1); exit 1; }; } ;;
8dcde887 24573 esac
b4e70030 24574fi;
4e8d927d 24575if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
24576
24577
24578subdirs="$subdirs multi-ice"
3ace7edb 24579
a85f51e7
DJ
24580fi
24581
8dcde887
MK
24582# We only build gdbserver automatically if host and target are the same.
24583if test "x$target" = "x$host"; then
b4e70030
JB
24584 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24585echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 24586 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
24587 echo "$as_me:$LINENO: result: yes" >&5
24588echo "${ECHO_T}yes" >&6
24589
24590
24591subdirs="$subdirs gdbserver"
3ace7edb 24592
8dcde887 24593 else
b4e70030
JB
24594 echo "$as_me:$LINENO: result: no" >&5
24595echo "${ECHO_T}no" >&6
8dcde887
MK
24596 fi
24597fi
24598
2c0fc042
AC
24599# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
24600# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
24601# to an empty version.
c906108c
SS
24602
24603files=
24604links=
5a2402b8 24605
c906108c 24606rm -f xm.h
5a2402b8 24607xm_h=""
c906108c 24608if test "${hostfile}" != ""; then
5a2402b8 24609 xm_h=xm.h
0f475e27
AC
24610 case "${hostfile}" in
24611 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
24612 * ) GDB_XM_FILE="${hostfile}"
24613 esac
5a2402b8
AC
24614 files="${files} ${GDB_XM_FILE}"
24615 links="${links} xm.h"
60ca704f
SE
24616
24617cat >>confdefs.h <<_ACEOF
b78960be 24618#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 24619_ACEOF
5a2402b8 24620
c906108c 24621fi
5a2402b8
AC
24622
24623
c906108c 24624rm -f tm.h
5a2402b8 24625tm_h=""
c906108c 24626if test "${targetfile}" != ""; then
5a2402b8 24627 tm_h=tm.h
0f475e27 24628 case "${targetfile}" in
b8c4aece 24629 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
24630 * ) GDB_TM_FILE="${targetfile}"
24631 esac
5a2402b8
AC
24632 files="${files} ${GDB_TM_FILE}"
24633 links="${links} tm.h"
60ca704f
SE
24634
24635cat >>confdefs.h <<_ACEOF
b78960be 24636#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 24637_ACEOF
5a2402b8 24638
c906108c 24639fi
5a2402b8
AC
24640
24641
c906108c 24642rm -f nm.h
5a2402b8 24643nm_h=""
c906108c 24644if test "${nativefile}" != ""; then
5a2402b8 24645 nm_h=nm.h
0f475e27
AC
24646 case "${nativefile}" in
24647 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24648 * ) GDB_NM_FILE="${nativefile}"
24649 esac
5a2402b8
AC
24650 files="${files} ${GDB_NM_FILE}"
24651 links="${links} nm.h"
60ca704f
SE
24652
24653cat >>confdefs.h <<_ACEOF
b78960be 24654#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 24655_ACEOF
5a2402b8 24656
c906108c 24657fi
5a2402b8
AC
24658
24659
bec39cab
AC
24660ac_sources="$files"
24661ac_dests="$links"
24662while test -n "$ac_sources"; do
24663 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24664 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24665 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24666done
b4e70030 24667 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
24668
24669
c906108c
SS
24670
24671
c906108c 24672
c906108c 24673
bec39cab
AC
24674cat >>confdefs.h <<\_ACEOF
24675#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24676_ACEOF
c906108c 24677
234b45d4 24678
234b45d4
KB
24679
24680
24681
b4e70030 24682# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 24683if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
24684 withval="$with_libiconv_prefix"
24685
234b45d4
KB
24686 for dir in `echo "$withval" | tr : ' '`; do
24687 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24688 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24689 done
234b45d4 24690
b4e70030 24691fi;
234b45d4 24692
b4e70030
JB
24693 echo "$as_me:$LINENO: checking for iconv" >&5
24694echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
24695if test "${am_cv_func_iconv+set}" = set; then
24696 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 24697else
bec39cab 24698
234b45d4
KB
24699 am_cv_func_iconv="no, consider installing GNU libiconv"
24700 am_cv_lib_iconv=no
bec39cab
AC
24701 cat >conftest.$ac_ext <<_ACEOF
24702/* confdefs.h. */
24703_ACEOF
24704cat confdefs.h >>conftest.$ac_ext
24705cat >>conftest.$ac_ext <<_ACEOF
24706/* end confdefs.h. */
234b45d4
KB
24707#include <stdlib.h>
24708#include <iconv.h>
bec39cab
AC
24709int
24710main ()
24711{
234b45d4
KB
24712iconv_t cd = iconv_open("","");
24713 iconv(cd,NULL,NULL,NULL,NULL);
24714 iconv_close(cd);
bec39cab
AC
24715 ;
24716 return 0;
24717}
24718_ACEOF
24719rm -f conftest.$ac_objext conftest$ac_exeext
24720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24721 (eval $ac_link) 2>conftest.er1
24722 ac_status=$?
24723 grep -v '^ *+' conftest.er1 >conftest.err
24724 rm -f conftest.er1
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } &&
b4e70030
JB
24728 { ac_try='test -z "$ac_c_werror_flag"
24729 || test ! -s conftest.err'
bec39cab
AC
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; } &&
24735 { ac_try='test -s conftest$ac_exeext'
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; }; then
234b45d4
KB
24741 am_cv_func_iconv=yes
24742else
bec39cab
AC
24743 echo "$as_me: failed program was:" >&5
24744sed 's/^/| /' conftest.$ac_ext >&5
24745
234b45d4 24746fi
bec39cab
AC
24747rm -f conftest.err conftest.$ac_objext \
24748 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
24749 if test "$am_cv_func_iconv" != yes; then
24750 am_save_LIBS="$LIBS"
24751 LIBS="$LIBS -liconv"
bec39cab
AC
24752 cat >conftest.$ac_ext <<_ACEOF
24753/* confdefs.h. */
24754_ACEOF
24755cat confdefs.h >>conftest.$ac_ext
24756cat >>conftest.$ac_ext <<_ACEOF
24757/* end confdefs.h. */
234b45d4
KB
24758#include <stdlib.h>
24759#include <iconv.h>
bec39cab
AC
24760int
24761main ()
24762{
234b45d4
KB
24763iconv_t cd = iconv_open("","");
24764 iconv(cd,NULL,NULL,NULL,NULL);
24765 iconv_close(cd);
bec39cab
AC
24766 ;
24767 return 0;
24768}
24769_ACEOF
24770rm -f conftest.$ac_objext conftest$ac_exeext
24771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24772 (eval $ac_link) 2>conftest.er1
24773 ac_status=$?
24774 grep -v '^ *+' conftest.er1 >conftest.err
24775 rm -f conftest.er1
24776 cat conftest.err >&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
b4e70030
JB
24779 { ac_try='test -z "$ac_c_werror_flag"
24780 || test ! -s conftest.err'
bec39cab
AC
24781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); }; } &&
24786 { ac_try='test -s conftest$ac_exeext'
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; }; then
234b45d4
KB
24792 am_cv_lib_iconv=yes
24793 am_cv_func_iconv=yes
24794else
bec39cab
AC
24795 echo "$as_me: failed program was:" >&5
24796sed 's/^/| /' conftest.$ac_ext >&5
24797
234b45d4 24798fi
bec39cab
AC
24799rm -f conftest.err conftest.$ac_objext \
24800 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
24801 LIBS="$am_save_LIBS"
24802 fi
bec39cab
AC
24803
24804fi
b4e70030
JB
24805echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24806echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
24807 if test "$am_cv_func_iconv" = yes; then
24808
24809cat >>confdefs.h <<\_ACEOF
24810#define HAVE_ICONV 1
24811_ACEOF
24812
b4e70030
JB
24813 echo "$as_me:$LINENO: checking for iconv declaration" >&5
24814echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
24815 if test "${am_cv_proto_iconv+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
24817else
24818
24819 cat >conftest.$ac_ext <<_ACEOF
24820/* confdefs.h. */
24821_ACEOF
24822cat confdefs.h >>conftest.$ac_ext
24823cat >>conftest.$ac_ext <<_ACEOF
24824/* end confdefs.h. */
24825
24826#include <stdlib.h>
24827#include <iconv.h>
24828extern
24829#ifdef __cplusplus
24830"C"
24831#endif
24832#if defined(__STDC__) || defined(__cplusplus)
24833size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
24834#else
24835size_t iconv();
24836#endif
24837
24838int
24839main ()
24840{
24841
24842 ;
24843 return 0;
24844}
24845_ACEOF
24846rm -f conftest.$ac_objext
24847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24848 (eval $ac_compile) 2>conftest.er1
24849 ac_status=$?
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
b4e70030
JB
24855 { ac_try='test -z "$ac_c_werror_flag"
24856 || test ! -s conftest.err'
bec39cab
AC
24857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); }; } &&
24862 { ac_try='test -s conftest.$ac_objext'
24863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24864 (eval $ac_try) 2>&5
24865 ac_status=$?
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); }; }; then
24868 am_cv_proto_iconv_arg1=""
24869else
24870 echo "$as_me: failed program was:" >&5
24871sed 's/^/| /' conftest.$ac_ext >&5
24872
b4e70030 24873am_cv_proto_iconv_arg1="const"
bec39cab
AC
24874fi
24875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24876 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);"
24877fi
24878
24879 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 24880 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
24881 }$am_cv_proto_iconv" >&5
24882echo "${ECHO_T}${ac_t:-
b4e70030 24883 }$am_cv_proto_iconv" >&6
bec39cab
AC
24884
24885cat >>confdefs.h <<_ACEOF
24886#define ICONV_CONST $am_cv_proto_iconv_arg1
24887_ACEOF
24888
24889 fi
24890 LIBICONV=
24891 if test "$am_cv_lib_iconv" = yes; then
24892 LIBICONV="-liconv"
24893 fi
24894
24895
24896
b4e70030
JB
24897 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
24898 ac_config_commands="$ac_config_commands default"
bec39cab
AC
24899cat >confcache <<\_ACEOF
24900# This file is a shell script that caches the results of configure
24901# tests run on this system so they can be shared between configure
24902# scripts and configure runs, see configure's option --config-cache.
24903# It is not useful on other systems. If it contains results you don't
24904# want to keep, you may remove or edit it.
24905#
24906# config.status only pays attention to the cache file if you give it
24907# the --recheck option to rerun configure.
24908#
24909# `ac_cv_env_foo' variables (set or unset) will be overridden when
24910# loading this file, other *unset* `ac_cv_foo' will be assigned the
24911# following values.
24912
24913_ACEOF
24914
24915# The following way of writing the cache mishandles newlines in values,
24916# but we know of no workaround that is simple, portable, and efficient.
b4e70030 24917# So, don't put newlines in cache variables' values.
bec39cab
AC
24918# Ultrix sh set writes to stderr and can't be redirected directly,
24919# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 24920{
bec39cab 24921 (set) 2>&1 |
b4e70030
JB
24922 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24923 *ac_space=\ *)
bec39cab
AC
24924 # `set' does not quote correctly, so add quotes (double-quote
24925 # substitution turns \\\\ into \\, and sed turns \\ into \).
24926 sed -n \
24927 "s/'/'\\\\''/g;
24928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 24929 ;;
bec39cab
AC
24930 *)
24931 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
24932 sed -n \
24933 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 24934 ;;
b4e70030
JB
24935 esac;
24936} |
bec39cab
AC
24937 sed '
24938 t clear
b4e70030 24939 : clear
bec39cab
AC
24940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24941 t end
b4e70030
JB
24942 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24943 : end' >>confcache
bec39cab
AC
24944if diff $cache_file confcache >/dev/null 2>&1; then :; else
24945 if test -w $cache_file; then
b4e70030 24946 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
24947 cat confcache >$cache_file
24948 else
b4e70030 24949 echo "not updating unwritable cache $cache_file"
bec39cab
AC
24950 fi
24951fi
24952rm -f confcache
24953
24954test "x$prefix" = xNONE && prefix=$ac_default_prefix
24955# Let make expand exec_prefix.
24956test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24957
b4e70030
JB
24958# VPATH may cause trouble with some makes, so we remove $(srcdir),
24959# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24960# trailing colons and then remove the whole line if VPATH becomes empty
24961# (actually we leave an empty line to preserve line numbers).
24962if test "x$srcdir" = x.; then
24963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24964s/:*\$(srcdir):*/:/;
24965s/:*\${srcdir}:*/:/;
24966s/:*@srcdir@:*/:/;
24967s/^\([^=]*=[ ]*\):*/\1/;
24968s/:*$//;
24969s/^[^=]*=[ ]*$//;
24970}'
24971fi
24972
bec39cab
AC
24973DEFS=-DHAVE_CONFIG_H
24974
24975ac_libobjs=
24976ac_ltlibobjs=
24977for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24978 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
24979 ac_i=`echo "$ac_i" |
24980 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24981 # 2. Add them.
24982 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24983 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
24984done
24985LIBOBJS=$ac_libobjs
24986
24987LTLIBOBJS=$ac_ltlibobjs
24988
24989
85981d60
AC
24990if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24991 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24992Usually this means the macro was only invoked conditionally." >&5
24993echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24994Usually this means the macro was only invoked conditionally." >&2;}
24995 { (exit 1); exit 1; }; }
24996fi
bec39cab
AC
24997
24998: ${CONFIG_STATUS=./config.status}
24999ac_clean_files_save=$ac_clean_files
25000ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25001{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25002echo "$as_me: creating $CONFIG_STATUS" >&6;}
25003cat >$CONFIG_STATUS <<_ACEOF
25004#! $SHELL
25005# Generated by $as_me.
25006# Run this file to recreate the current configuration.
25007# Compiler output produced by configure, useful for debugging
25008# configure, is in config.log if it exists.
25009
25010debug=false
25011ac_cs_recheck=false
25012ac_cs_silent=false
25013SHELL=\${CONFIG_SHELL-$SHELL}
25014_ACEOF
25015
25016cat >>$CONFIG_STATUS <<\_ACEOF
25017## --------------------- ##
25018## M4sh Initialization. ##
25019## --------------------- ##
25020
25021# Be Bourne compatible
25022if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25023 emulate sh
25024 NULLCMD=:
25025 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25026 # is contrary to our usage. Disable this feature.
25027 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
25028elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25029 set -o posix
bec39cab
AC
25030fi
25031DUALCASE=1; export DUALCASE # for MKS sh
25032
25033# Support unset when possible.
25034if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25035 as_unset=unset
25036else
25037 as_unset=false
25038fi
25039
25040
25041# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 25042$as_unset ENV MAIL MAILPATH
bec39cab
AC
25043PS1='$ '
25044PS2='> '
25045PS4='+ '
25046
25047# NLS nuisances.
25048for as_var in \
25049 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25050 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25051 LC_TELEPHONE LC_TIME
25052do
25053 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25054 eval $as_var=C; export $as_var
25055 else
b4e70030 25056 $as_unset $as_var
bec39cab
AC
25057 fi
25058done
25059
25060# Required to use basename.
b4e70030 25061if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
25062 as_expr=expr
25063else
25064 as_expr=false
25065fi
25066
b4e70030 25067if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
25068 as_basename=basename
25069else
25070 as_basename=false
25071fi
25072
25073
25074# Name of the executable.
b4e70030 25075as_me=`$as_basename "$0" ||
bec39cab
AC
25076$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25077 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
25078 X"$0" : 'X\(/\)$' \| \
25079 . : '\(.\)' 2>/dev/null ||
bec39cab 25080echo X/"$0" |
b4e70030
JB
25081 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25082 /^X\/\(\/\/\)$/{ s//\1/; q; }
25083 /^X\/\(\/\).*/{ s//\1/; q; }
25084 s/.*/./; q'`
bec39cab 25085
b4e70030
JB
25086
25087# PATH needs CR, and LINENO needs CR and PATH.
25088# Avoid depending upon Character Ranges.
25089as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25090as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25091as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25092as_cr_digits='0123456789'
25093as_cr_alnum=$as_cr_Letters$as_cr_digits
25094
25095# The user is always right.
25096if test "${PATH_SEPARATOR+set}" != set; then
25097 echo "#! /bin/sh" >conf$$.sh
25098 echo "exit 0" >>conf$$.sh
25099 chmod +x conf$$.sh
25100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25101 PATH_SEPARATOR=';'
25102 else
25103 PATH_SEPARATOR=:
25104 fi
25105 rm -f conf$$.sh
25106fi
bec39cab
AC
25107
25108
b4e70030
JB
25109 as_lineno_1=$LINENO
25110 as_lineno_2=$LINENO
25111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25112 test "x$as_lineno_1" != "x$as_lineno_2" &&
25113 test "x$as_lineno_3" = "x$as_lineno_2" || {
25114 # Find who we are. Look in the path if we contain no path at all
25115 # relative or not.
25116 case $0 in
25117 *[\\/]* ) as_myself=$0 ;;
25118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25119for as_dir in $PATH
25120do
25121 IFS=$as_save_IFS
25122 test -z "$as_dir" && as_dir=.
25123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25124done
bec39cab 25125
b4e70030
JB
25126 ;;
25127 esac
25128 # We did not find ourselves, most probably we were run as `sh COMMAND'
25129 # in which case we are not to be found in the path.
25130 if test "x$as_myself" = x; then
25131 as_myself=$0
25132 fi
25133 if test ! -f "$as_myself"; then
25134 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25135echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25136 { (exit 1); exit 1; }; }
25137 fi
25138 case $CONFIG_SHELL in
25139 '')
25140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25141for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25142do
25143 IFS=$as_save_IFS
25144 test -z "$as_dir" && as_dir=.
25145 for as_base in sh bash ksh sh5; do
25146 case $as_dir in
25147 /*)
25148 if ("$as_dir/$as_base" -c '
bec39cab
AC
25149 as_lineno_1=$LINENO
25150 as_lineno_2=$LINENO
b4e70030 25151 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 25152 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
25153 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25154 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25155 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25156 CONFIG_SHELL=$as_dir/$as_base
25157 export CONFIG_SHELL
25158 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25159 fi;;
25160 esac
25161 done
25162done
25163;;
25164 esac
bec39cab
AC
25165
25166 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25167 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
25168 # line-number line before each line; the second 'sed' does the real
25169 # work. The second script uses 'N' to pair each line-number line
25170 # with the numbered line, and appends trailing '-' during
25171 # substitution so that $LINENO is not a special case at line end.
bec39cab 25172 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
25173 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25174 sed '=' <$as_myself |
bec39cab
AC
25175 sed '
25176 N
b4e70030
JB
25177 s,$,-,
25178 : loop
25179 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 25180 t loop
b4e70030
JB
25181 s,-$,,
25182 s,^['$as_cr_digits']*\n,,
bec39cab 25183 ' >$as_me.lineno &&
b4e70030
JB
25184 chmod +x $as_me.lineno ||
25185 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25186echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
25187 { (exit 1); exit 1; }; }
25188
25189 # Don't try to exec as it changes $[0], causing all sort of problems
25190 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
25191 # original and so on. Autoconf is especially sensible to this).
25192 . ./$as_me.lineno
bec39cab
AC
25193 # Exit status is that of the last command.
25194 exit
25195}
25196
25197
b4e70030
JB
25198case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25199 *c*,-n*) ECHO_N= ECHO_C='
25200' ECHO_T=' ' ;;
25201 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25202 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
25203esac
25204
b4e70030 25205if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
25206 as_expr=expr
25207else
25208 as_expr=false
25209fi
25210
25211rm -f conf$$ conf$$.exe conf$$.file
25212echo >conf$$.file
25213if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
25214 # We could just check for DJGPP; but this test a) works b) is more generic
25215 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25216 if test -f conf$$.exe; then
25217 # Don't use ln at all; we don't have any links
bec39cab 25218 as_ln_s='cp -p'
b4e70030
JB
25219 else
25220 as_ln_s='ln -s'
25221 fi
bec39cab
AC
25222elif ln conf$$.file conf$$ 2>/dev/null; then
25223 as_ln_s=ln
25224else
25225 as_ln_s='cp -p'
25226fi
b4e70030 25227rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
25228
25229if mkdir -p . 2>/dev/null; then
25230 as_mkdir_p=:
25231else
25232 test -d ./-p && rmdir ./-p
25233 as_mkdir_p=false
25234fi
25235
b4e70030 25236as_executable_p="test -f"
bec39cab
AC
25237
25238# Sed expression to map a string onto a valid CPP name.
25239as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25240
25241# Sed expression to map a string onto a valid variable name.
25242as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25243
25244
b4e70030
JB
25245# IFS
25246# We need space, tab and new line, in precisely that order.
25247as_nl='
25248'
25249IFS=" $as_nl"
25250
25251# CDPATH.
25252$as_unset CDPATH
25253
bec39cab
AC
25254exec 6>&1
25255
b4e70030 25256# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 25257# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
25258# values after options handling. Logging --version etc. is OK.
25259exec 5>>config.log
25260{
25261 echo
25262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25263## Running $as_me. ##
25264_ASBOX
25265} >&5
25266cat >&5 <<_CSEOF
25267
bec39cab 25268This file was extended by $as_me, which was
b4e70030 25269generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
25270
25271 CONFIG_FILES = $CONFIG_FILES
25272 CONFIG_HEADERS = $CONFIG_HEADERS
25273 CONFIG_LINKS = $CONFIG_LINKS
25274 CONFIG_COMMANDS = $CONFIG_COMMANDS
25275 $ $0 $@
25276
b4e70030
JB
25277_CSEOF
25278echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25279echo >&5
bec39cab
AC
25280_ACEOF
25281
25282# Files that config.status was made for.
b4e70030
JB
25283if test -n "$ac_config_files"; then
25284 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25285fi
234b45d4 25286
b4e70030
JB
25287if test -n "$ac_config_headers"; then
25288 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25289fi
25290
25291if test -n "$ac_config_links"; then
25292 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25293fi
25294
25295if test -n "$ac_config_commands"; then
25296 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25297fi
234b45d4 25298
bec39cab 25299cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 25300
bec39cab
AC
25301ac_cs_usage="\
25302\`$as_me' instantiates files from templates according to the
25303current configuration.
234b45d4 25304
bec39cab 25305Usage: $0 [OPTIONS] [FILE]...
234b45d4 25306
bec39cab
AC
25307 -h, --help print this help, then exit
25308 -V, --version print version number, then exit
25309 -q, --quiet do not print progress messages
25310 -d, --debug don't remove temporary files
25311 --recheck update $as_me by reconfiguring in the same conditions
25312 --file=FILE[:TEMPLATE]
25313 instantiate the configuration file FILE
25314 --header=FILE[:TEMPLATE]
25315 instantiate the configuration header FILE
234b45d4 25316
bec39cab
AC
25317Configuration files:
25318$config_files
234b45d4 25319
bec39cab
AC
25320Configuration headers:
25321$config_headers
234b45d4 25322
bec39cab
AC
25323Configuration links:
25324$config_links
234b45d4 25325
bec39cab
AC
25326Configuration commands:
25327$config_commands
25328
25329Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 25330_ACEOF
b4e70030 25331
bec39cab
AC
25332cat >>$CONFIG_STATUS <<_ACEOF
25333ac_cs_version="\\
25334config.status
b4e70030 25335configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
25336 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25337
b4e70030 25338Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
25339This config.status script is free software; the Free Software Foundation
25340gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
25341srcdir=$srcdir
25342INSTALL="$INSTALL"
bec39cab
AC
25343_ACEOF
25344
25345cat >>$CONFIG_STATUS <<\_ACEOF
25346# If no file are specified by the user, then we need to provide default
25347# value. By we need to know if files were specified by the user.
25348ac_need_defaults=:
25349while test $# != 0
25350do
25351 case $1 in
25352 --*=*)
b4e70030
JB
25353 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25354 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 25355 ac_shift=:
c906108c 25356 ;;
b4e70030 25357 -*)
bec39cab
AC
25358 ac_option=$1
25359 ac_optarg=$2
25360 ac_shift=shift
c906108c 25361 ;;
b4e70030
JB
25362 *) # This is not an option, so the user has probably given explicit
25363 # arguments.
25364 ac_option=$1
25365 ac_need_defaults=false;;
bec39cab 25366 esac
c906108c 25367
bec39cab
AC
25368 case $ac_option in
25369 # Handling of the options.
b4e70030
JB
25370_ACEOF
25371cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25373 ac_cs_recheck=: ;;
b4e70030
JB
25374 --version | --vers* | -V )
25375 echo "$ac_cs_version"; exit 0 ;;
25376 --he | --h)
25377 # Conflict between --help and --header
25378 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25379Try \`$0 --help' for more information." >&5
25380echo "$as_me: error: ambiguous option: $1
25381Try \`$0 --help' for more information." >&2;}
25382 { (exit 1); exit 1; }; };;
25383 --help | --hel | -h )
25384 echo "$ac_cs_usage"; exit 0 ;;
25385 --debug | --d* | -d )
bec39cab
AC
25386 debug=: ;;
25387 --file | --fil | --fi | --f )
25388 $ac_shift
25389 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25390 ac_need_defaults=false;;
25391 --header | --heade | --head | --hea )
25392 $ac_shift
25393 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25394 ac_need_defaults=false;;
25395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25396 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25397 ac_cs_silent=: ;;
c906108c 25398
bec39cab 25399 # This is an error.
b4e70030
JB
25400 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25401Try \`$0 --help' for more information." >&5
25402echo "$as_me: error: unrecognized option: $1
25403Try \`$0 --help' for more information." >&2;}
bec39cab 25404 { (exit 1); exit 1; }; } ;;
c906108c 25405
b4e70030 25406 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 25407
bec39cab
AC
25408 esac
25409 shift
25410done
c906108c 25411
bec39cab 25412ac_configure_extra_args=
c906108c 25413
bec39cab
AC
25414if $ac_cs_silent; then
25415 exec 6>/dev/null
25416 ac_configure_extra_args="$ac_configure_extra_args --silent"
25417fi
c906108c 25418
bec39cab
AC
25419_ACEOF
25420cat >>$CONFIG_STATUS <<_ACEOF
25421if \$ac_cs_recheck; then
b4e70030
JB
25422 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25423 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
25424fi
25425
25426_ACEOF
25427
25428cat >>$CONFIG_STATUS <<_ACEOF
c906108c 25429#
b4e70030 25430# INIT-COMMANDS section.
c906108c 25431#
c906108c 25432
b4e70030 25433
4e8d927d
DJ
25434GCC="$GCC"
25435CC="$CC"
25436acx_cv_header_stdint="$acx_cv_header_stdint"
25437acx_cv_type_int8_t="$acx_cv_type_int8_t"
25438acx_cv_type_int16_t="$acx_cv_type_int16_t"
25439acx_cv_type_int32_t="$acx_cv_type_int32_t"
25440acx_cv_type_int64_t="$acx_cv_type_int64_t"
25441acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
25442ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
25443ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
25444ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25445ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25446ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
25447ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25448ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25449ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
25450
bec39cab
AC
25451
25452gdb_host_cpu=$gdb_host_cpu
25453gdb_target_cpu=$gdb_target_cpu
25454nativefile=$nativefile
25455
25456
25457_ACEOF
25458
4e8d927d 25459
b4e70030
JB
25460
25461cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 25462for ac_config_target in $ac_config_targets
c906108c 25463do
b4e70030
JB
25464 case "$ac_config_target" in
25465 # Handling of arguments.
25466 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25467 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
25468 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25469 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
25470 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25471 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
25472 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25473echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25474 { (exit 1); exit 1; }; };;
c906108c
SS
25475 esac
25476done
25477
bec39cab
AC
25478# If the user did not use the arguments to specify the items to instantiate,
25479# then the envvar interface is used. Set only those that are not.
25480# We use the long form for the default assignment because of an extremely
25481# bizarre bug on SunOS 4.1.3.
25482if $ac_need_defaults; then
25483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25485 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25486 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25487fi
25488
b4e70030
JB
25489# Have a temporary directory for convenience. Make it in the build tree
25490# simply because there is no reason to put it here, and in addition,
25491# creating and moving files from /tmp can sometimes cause problems.
25492# Create a temporary directory, and hook for its removal unless debugging.
25493$debug ||
25494{
25495 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25496 trap '{ (exit 1); exit 1; }' 1 2 13 15
25497}
4e8d927d 25498
b4e70030 25499# Create a (secure) tmp directory for tmp files.
4e8d927d 25500
b4e70030
JB
25501{
25502 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25503 test -n "$tmp" && test -d "$tmp"
25504} ||
25505{
25506 tmp=./confstat$$-$RANDOM
25507 (umask 077 && mkdir $tmp)
25508} ||
25509{
25510 echo "$me: cannot create a temporary directory in ." >&2
25511 { (exit 1); exit 1; }
25512}
4e8d927d 25513
b4e70030 25514_ACEOF
4e8d927d 25515
b4e70030 25516cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 25517
b4e70030
JB
25518#
25519# CONFIG_FILES section.
25520#
4e8d927d 25521
b4e70030
JB
25522# No need to generate the scripts if there are no CONFIG_FILES.
25523# This happens for instance when ./config.status config.h
25524if test -n "\$CONFIG_FILES"; then
25525 # Protect against being on the right side of a sed subst in config.status.
25526 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25527 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25528s,@SHELL@,$SHELL,;t t
25529s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25530s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25531s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25532s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25533s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25534s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25535s,@exec_prefix@,$exec_prefix,;t t
25536s,@prefix@,$prefix,;t t
25537s,@program_transform_name@,$program_transform_name,;t t
25538s,@bindir@,$bindir,;t t
25539s,@sbindir@,$sbindir,;t t
25540s,@libexecdir@,$libexecdir,;t t
25541s,@datadir@,$datadir,;t t
25542s,@sysconfdir@,$sysconfdir,;t t
25543s,@sharedstatedir@,$sharedstatedir,;t t
25544s,@localstatedir@,$localstatedir,;t t
25545s,@libdir@,$libdir,;t t
25546s,@includedir@,$includedir,;t t
25547s,@oldincludedir@,$oldincludedir,;t t
25548s,@infodir@,$infodir,;t t
25549s,@mandir@,$mandir,;t t
25550s,@build_alias@,$build_alias,;t t
25551s,@host_alias@,$host_alias,;t t
25552s,@target_alias@,$target_alias,;t t
25553s,@DEFS@,$DEFS,;t t
25554s,@ECHO_C@,$ECHO_C,;t t
25555s,@ECHO_N@,$ECHO_N,;t t
25556s,@ECHO_T@,$ECHO_T,;t t
25557s,@LIBS@,$LIBS,;t t
25558s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25559s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25560s,@MAINT@,$MAINT,;t t
25561s,@CC@,$CC,;t t
25562s,@CFLAGS@,$CFLAGS,;t t
25563s,@LDFLAGS@,$LDFLAGS,;t t
25564s,@CPPFLAGS@,$CPPFLAGS,;t t
25565s,@ac_ct_CC@,$ac_ct_CC,;t t
25566s,@EXEEXT@,$EXEEXT,;t t
25567s,@OBJEXT@,$OBJEXT,;t t
25568s,@CPP@,$CPP,;t t
25569s,@EGREP@,$EGREP,;t t
25570s,@build@,$build,;t t
25571s,@build_cpu@,$build_cpu,;t t
25572s,@build_vendor@,$build_vendor,;t t
25573s,@build_os@,$build_os,;t t
25574s,@host@,$host,;t t
25575s,@host_cpu@,$host_cpu,;t t
25576s,@host_vendor@,$host_vendor,;t t
25577s,@host_os@,$host_os,;t t
25578s,@target@,$target,;t t
25579s,@target_cpu@,$target_cpu,;t t
25580s,@target_vendor@,$target_vendor,;t t
25581s,@target_os@,$target_os,;t t
25582s,@SET_MAKE@,$SET_MAKE,;t t
25583s,@RANLIB@,$RANLIB,;t t
25584s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25585s,@ALLOCA@,$ALLOCA,;t t
25586s,@USE_NLS@,$USE_NLS,;t t
25587s,@MSGFMT@,$MSGFMT,;t t
25588s,@GMSGFMT@,$GMSGFMT,;t t
25589s,@XGETTEXT@,$XGETTEXT,;t t
25590s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
25591s,@CATALOGS@,$CATALOGS,;t t
25592s,@CATOBJEXT@,$CATOBJEXT,;t t
25593s,@DATADIRNAME@,$DATADIRNAME,;t t
25594s,@GMOFILES@,$GMOFILES,;t t
25595s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25596s,@INTLDEPS@,$INTLDEPS,;t t
25597s,@INTLLIBS@,$INTLLIBS,;t t
25598s,@INTLOBJS@,$INTLOBJS,;t t
25599s,@POFILES@,$POFILES,;t t
25600s,@POSUB@,$POSUB,;t t
25601s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
25602s,@GT_NO@,$GT_NO,;t t
25603s,@GT_YES@,$GT_YES,;t t
25604s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
25605s,@l@,$l,;t t
25606s,@localedir@,$localedir,;t t
25607s,@PACKAGE@,$PACKAGE,;t t
25608s,@subdirs@,$subdirs,;t t
25609s,@AWK@,$AWK,;t t
25610s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25611s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25612s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25613s,@LN_S@,$LN_S,;t t
25614s,@YACC@,$YACC,;t t
25615s,@AR@,$AR,;t t
25616s,@ac_ct_AR@,$ac_ct_AR,;t t
25617s,@DLLTOOL@,$DLLTOOL,;t t
25618s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
25619s,@WINDRES@,$WINDRES,;t t
25620s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
25621s,@MIG@,$MIG,;t t
25622s,@ac_ct_MIG@,$ac_ct_MIG,;t t
25623s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
25624s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25625s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25626s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
25627s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
25628s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
25629s,@WIN32LIBS@,$WIN32LIBS,;t t
25630s,@LIBGUI@,$LIBGUI,;t t
25631s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
25632s,@WIN32LDAPP@,$WIN32LDAPP,;t t
25633s,@TCL_VERSION@,$TCL_VERSION,;t t
25634s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
25635s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
25636s,@TCL_CC@,$TCL_CC,;t t
25637s,@TCL_DEFS@,$TCL_DEFS,;t t
25638s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
25639s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
25640s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25641s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
25642s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
25643s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
25644s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
25645s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
25646s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
25647s,@TCL_RANLIB@,$TCL_RANLIB,;t t
25648s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
25649s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25650s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
25651s,@TK_VERSION@,$TK_VERSION,;t t
25652s,@TK_DEFS@,$TK_DEFS,;t t
25653s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
25654s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
25655s,@TK_XLIBSW@,$TK_XLIBSW,;t t
25656s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
25657s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
25658s,@TCLHDIR@,$TCLHDIR,;t t
25659s,@TKHDIR@,$TKHDIR,;t t
25660s,@ITCLHDIR@,$ITCLHDIR,;t t
25661s,@ITKHDIR@,$ITKHDIR,;t t
25662s,@ITCL_VERSION@,$ITCL_VERSION,;t t
25663s,@ITCL_DEFS@,$ITCL_DEFS,;t t
25664s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
25665s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
25666s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
25667s,@ITK_VERSION@,$ITK_VERSION,;t t
25668s,@ITK_DEFS@,$ITK_DEFS,;t t
25669s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
25670s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
25671s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
25672s,@X_CFLAGS@,$X_CFLAGS,;t t
25673s,@X_LDFLAGS@,$X_LDFLAGS,;t t
25674s,@X_LIBS@,$X_LIBS,;t t
25675s,@TCL_DEPS@,$TCL_DEPS,;t t
25676s,@TK_DEPS@,$TK_DEPS,;t t
25677s,@ITCLLIB@,$ITCLLIB,;t t
25678s,@ITCL_DEPS@,$ITCL_DEPS,;t t
25679s,@ITKLIB@,$ITKLIB,;t t
25680s,@ITK_DEPS@,$ITK_DEPS,;t t
25681s,@GDBTKLIBS@,$GDBTKLIBS,;t t
25682s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
25683s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
25684s,@IGNORE_SIM@,$IGNORE_SIM,;t t
25685s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
25686s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
25687s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
25688s,@CONFIG_OBS@,$CONFIG_OBS,;t t
25689s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
25690s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
25691s,@CONFIG_ALL@,$CONFIG_ALL,;t t
25692s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
25693s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
25694s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
25695s,@target_subdir@,$target_subdir,;t t
25696s,@frags@,$frags,;t t
25697s,@xm_h@,$xm_h,;t t
25698s,@tm_h@,$tm_h,;t t
25699s,@nm_h@,$nm_h,;t t
25700s,@LIBICONV@,$LIBICONV,;t t
25701s,@LIBOBJS@,$LIBOBJS,;t t
25702s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25703/@host_makefile_frag@/r $host_makefile_frag
25704s,@host_makefile_frag@,,;t t
25705/@target_makefile_frag@/r $target_makefile_frag
25706s,@target_makefile_frag@,,;t t
25707CEOF
25708
25709_ACEOF
25710
25711 cat >>$CONFIG_STATUS <<\_ACEOF
25712 # Split the substitutions into bite-sized pieces for seds with
25713 # small command number limits, like on Digital OSF/1 and HP-UX.
25714 ac_max_sed_lines=48
25715 ac_sed_frag=1 # Number of current file.
25716 ac_beg=1 # First line for current file.
25717 ac_end=$ac_max_sed_lines # Line after last line for current file.
25718 ac_more_lines=:
25719 ac_sed_cmds=
25720 while $ac_more_lines; do
25721 if test $ac_beg -gt 1; then
25722 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25723 else
25724 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 25725 fi
b4e70030
JB
25726 if test ! -s $tmp/subs.frag; then
25727 ac_more_lines=false
25728 else
25729 # The purpose of the label and of the branching condition is to
25730 # speed up the sed processing (if there are no `@' at all, there
25731 # is no need to browse any of the substitutions).
25732 # These are the two extra sed commands mentioned above.
25733 (echo ':t
25734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25735 if test -z "$ac_sed_cmds"; then
25736 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25737 else
25738 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25739 fi
25740 ac_sed_frag=`expr $ac_sed_frag + 1`
25741 ac_beg=$ac_end
25742 ac_end=`expr $ac_end + $ac_max_sed_lines`
25743 fi
25744 done
25745 if test -z "$ac_sed_cmds"; then
25746 ac_sed_cmds=cat
25747 fi
25748fi # test -n "$CONFIG_FILES"
4e8d927d 25749
b4e70030
JB
25750_ACEOF
25751cat >>$CONFIG_STATUS <<\_ACEOF
25752for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25754 case $ac_file in
25755 - | *:- | *:-:* ) # input from stdin
25756 cat >$tmp/stdin
25757 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25759 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25761 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
25762 esac
25763
b4e70030
JB
25764 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25765 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
25766$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25767 X"$ac_file" : 'X\(//\)[^/]' \| \
25768 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
25769 X"$ac_file" : 'X\(/\)' \| \
25770 . : '\(.\)' 2>/dev/null ||
bec39cab 25771echo X"$ac_file" |
b4e70030
JB
25772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25774 /^X\(\/\/\)$/{ s//\1/; q; }
25775 /^X\(\/\).*/{ s//\1/; q; }
25776 s/.*/./; q'`
25777 { if $as_mkdir_p; then
25778 mkdir -p "$ac_dir"
25779 else
25780 as_dir="$ac_dir"
bec39cab 25781 as_dirs=
b4e70030
JB
25782 while test ! -d "$as_dir"; do
25783 as_dirs="$as_dir $as_dirs"
25784 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25785$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25786 X"$as_dir" : 'X\(//\)[^/]' \| \
25787 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25788 X"$as_dir" : 'X\(/\)' \| \
25789 . : '\(.\)' 2>/dev/null ||
bec39cab 25790echo X"$as_dir" |
b4e70030
JB
25791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25793 /^X\(\/\/\)$/{ s//\1/; q; }
25794 /^X\(\/\).*/{ s//\1/; q; }
25795 s/.*/./; q'`
bec39cab 25796 done
b4e70030
JB
25797 test ! -n "$as_dirs" || mkdir $as_dirs
25798 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25799echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25800 { (exit 1); exit 1; }; }; }
b4e70030 25801
bec39cab
AC
25802 ac_builddir=.
25803
b4e70030 25804if test "$ac_dir" != .; then
bec39cab 25805 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25806 # A "../" for each directory in $ac_dir_suffix.
25807 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25808else
25809 ac_dir_suffix= ac_top_builddir=
25810fi
bec39cab
AC
25811
25812case $srcdir in
b4e70030 25813 .) # No --srcdir option. We are building in place.
bec39cab 25814 ac_srcdir=.
b4e70030
JB
25815 if test -z "$ac_top_builddir"; then
25816 ac_top_srcdir=.
25817 else
25818 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25819 fi ;;
25820 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25821 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25822 ac_top_srcdir=$srcdir ;;
25823 *) # Relative path.
25824 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25825 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
25826esac
25827
b4e70030
JB
25828# Do not use `cd foo && pwd` to compute absolute paths, because
25829# the directories may not exist.
25830case `pwd` in
25831.) ac_abs_builddir="$ac_dir";;
25832*)
25833 case "$ac_dir" in
25834 .) ac_abs_builddir=`pwd`;;
25835 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25836 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25837 esac;;
25838esac
25839case $ac_abs_builddir in
25840.) ac_abs_top_builddir=${ac_top_builddir}.;;
25841*)
25842 case ${ac_top_builddir}. in
25843 .) ac_abs_top_builddir=$ac_abs_builddir;;
25844 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25845 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25846 esac;;
25847esac
25848case $ac_abs_builddir in
25849.) ac_abs_srcdir=$ac_srcdir;;
25850*)
25851 case $ac_srcdir in
25852 .) ac_abs_srcdir=$ac_abs_builddir;;
25853 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25854 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25855 esac;;
25856esac
25857case $ac_abs_builddir in
25858.) ac_abs_top_srcdir=$ac_top_srcdir;;
25859*)
25860 case $ac_top_srcdir in
25861 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25862 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25863 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25864 esac;;
25865esac
c906108c 25866
c906108c 25867
bec39cab
AC
25868 case $INSTALL in
25869 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 25870 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 25871 esac
121ce6e5 25872
b4e70030
JB
25873 if test x"$ac_file" != x-; then
25874 { echo "$as_me:$LINENO: creating $ac_file" >&5
25875echo "$as_me: creating $ac_file" >&6;}
25876 rm -f "$ac_file"
25877 fi
25878 # Let's still pretend it is `configure' which instantiates (i.e., don't
25879 # use $as_me), people would be surprised to read:
25880 # /* config.h. Generated by config.status. */
25881 if test x"$ac_file" = x-; then
25882 configure_input=
25883 else
25884 configure_input="$ac_file. "
25885 fi
25886 configure_input=$configure_input"Generated from `echo $ac_file_in |
25887 sed 's,.*/,,'` by configure."
25888
25889 # First look for the input files in the build tree, otherwise in the
25890 # src tree.
25891 ac_file_inputs=`IFS=:
25892 for f in $ac_file_in; do
25893 case $f in
25894 -) echo $tmp/stdin ;;
25895 [\\/$]*)
25896 # Absolute (can't be DOS-style, as IFS=:)
25897 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25898echo "$as_me: error: cannot find input file: $f" >&2;}
25899 { (exit 1); exit 1; }; }
25900 echo "$f";;
25901 *) # Relative
25902 if test -f "$f"; then
25903 # Build tree
25904 echo "$f"
25905 elif test -f "$srcdir/$f"; then
25906 # Source tree
25907 echo "$srcdir/$f"
25908 else
25909 # /dev/null tree
25910 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25911echo "$as_me: error: cannot find input file: $f" >&2;}
25912 { (exit 1); exit 1; }; }
25913 fi;;
25914 esac
25915 done` || { (exit 1); exit 1; }
4e8d927d 25916_ACEOF
bec39cab
AC
25917cat >>$CONFIG_STATUS <<_ACEOF
25918 sed "$ac_vpsub
25919$extrasub
25920_ACEOF
25921cat >>$CONFIG_STATUS <<\_ACEOF
25922:t
25923/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
25924s,@configure_input@,$configure_input,;t t
25925s,@srcdir@,$ac_srcdir,;t t
25926s,@abs_srcdir@,$ac_abs_srcdir,;t t
25927s,@top_srcdir@,$ac_top_srcdir,;t t
25928s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25929s,@builddir@,$ac_builddir,;t t
25930s,@abs_builddir@,$ac_abs_builddir,;t t
25931s,@top_builddir@,$ac_top_builddir,;t t
25932s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25933s,@INSTALL@,$ac_INSTALL,;t t
25934" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25935 rm -f $tmp/stdin
25936 if test x"$ac_file" != x-; then
25937 mv $tmp/out $ac_file
25938 else
25939 cat $tmp/out
25940 rm -f $tmp/out
25941 fi
25942
25943done
25944_ACEOF
25945cat >>$CONFIG_STATUS <<\_ACEOF
25946
25947#
25948# CONFIG_HEADER section.
25949#
25950
25951# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25952# NAME is the cpp macro being defined and VALUE is the value it is being given.
25953#
25954# ac_d sets the value in "#define NAME VALUE" lines.
25955ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25956ac_dB='[ ].*$,\1#\2'
25957ac_dC=' '
25958ac_dD=',;t'
25959# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25960ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25961ac_uB='$,\1#\2define\3'
25962ac_uC=' '
25963ac_uD=',;t'
25964
25965for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25966 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 25967 case $ac_file in
b4e70030
JB
25968 - | *:- | *:-:* ) # input from stdin
25969 cat >$tmp/stdin
25970 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25972 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25974 * ) ac_file_in=$ac_file.in ;;
c906108c 25975 esac
b4e70030
JB
25976
25977 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25978echo "$as_me: creating $ac_file" >&6;}
25979
25980 # First look for the input files in the build tree, otherwise in the
25981 # src tree.
25982 ac_file_inputs=`IFS=:
25983 for f in $ac_file_in; do
25984 case $f in
25985 -) echo $tmp/stdin ;;
25986 [\\/$]*)
25987 # Absolute (can't be DOS-style, as IFS=:)
25988 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25989echo "$as_me: error: cannot find input file: $f" >&2;}
25990 { (exit 1); exit 1; }; }
25991 # Do quote $f, to prevent DOS paths from being IFS'd.
25992 echo "$f";;
25993 *) # Relative
25994 if test -f "$f"; then
25995 # Build tree
25996 echo "$f"
25997 elif test -f "$srcdir/$f"; then
25998 # Source tree
25999 echo "$srcdir/$f"
26000 else
26001 # /dev/null tree
26002 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26003echo "$as_me: error: cannot find input file: $f" >&2;}
26004 { (exit 1); exit 1; }; }
26005 fi;;
26006 esac
26007 done` || { (exit 1); exit 1; }
26008 # Remove the trailing spaces.
26009 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26010
26011_ACEOF
26012
26013# Transform confdefs.h into two sed scripts, `conftest.defines' and
26014# `conftest.undefs', that substitutes the proper values into
26015# config.h.in to produce config.h. The first handles `#define'
26016# templates, and the second `#undef' templates.
26017# And first: Protect against being on the right side of a sed subst in
26018# config.status. Protect against being in an unquoted here document
26019# in config.status.
26020rm -f conftest.defines conftest.undefs
26021# Using a here document instead of a string reduces the quoting nightmare.
26022# Putting comments in sed scripts is not portable.
26023#
26024# `end' is used to avoid that the second main sed command (meant for
26025# 0-ary CPP macros) applies to n-ary macro definitions.
26026# See the Autoconf documentation for `clear'.
26027cat >confdef2sed.sed <<\_ACEOF
26028s/[\\&,]/\\&/g
26029s,[\\$`],\\&,g
26030t clear
26031: clear
26032s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26033t end
26034s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26035: end
26036_ACEOF
26037# If some macros were called several times there might be several times
26038# the same #defines, which is useless. Nevertheless, we may not want to
26039# sort them, since we want the *last* AC-DEFINE to be honored.
26040uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26041sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26042rm -f confdef2sed.sed
26043
26044# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
26045# example, in the case of _POSIX_SOURCE, which is predefined and required
26046# on some systems where configure will not decide to define it.
b4e70030
JB
26047cat >>conftest.undefs <<\_ACEOF
26048s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26049_ACEOF
26050
26051# Break up conftest.defines because some shells have a limit on the size
26052# of here documents, and old seds have small limits too (100 cmds).
26053echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26054echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26055echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26056echo ' :' >>$CONFIG_STATUS
26057rm -f conftest.tail
26058while grep . conftest.defines >/dev/null
bec39cab 26059do
b4e70030
JB
26060 # Write a limited-size here document to $tmp/defines.sed.
26061 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26062 # Speed up: don't consider the non `#define' lines.
26063 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26064 # Work around the forget-to-reset-the-flag bug.
26065 echo 't clr' >>$CONFIG_STATUS
26066 echo ': clr' >>$CONFIG_STATUS
26067 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 26068 echo 'CEOF
b4e70030
JB
26069 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26070 rm -f $tmp/in
26071 mv $tmp/out $tmp/in
26072' >>$CONFIG_STATUS
26073 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
26074 rm -f conftest.defines
26075 mv conftest.tail conftest.defines
26076done
b4e70030
JB
26077rm -f conftest.defines
26078echo ' fi # grep' >>$CONFIG_STATUS
26079echo >>$CONFIG_STATUS
26080
26081# Break up conftest.undefs because some shells have a limit on the size
26082# of here documents, and old seds have small limits too (100 cmds).
26083echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26084rm -f conftest.tail
26085while grep . conftest.undefs >/dev/null
26086do
26087 # Write a limited-size here document to $tmp/undefs.sed.
26088 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26089 # Speed up: don't consider the non `#undef'
26090 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26091 # Work around the forget-to-reset-the-flag bug.
26092 echo 't clr' >>$CONFIG_STATUS
26093 echo ': clr' >>$CONFIG_STATUS
26094 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26095 echo 'CEOF
26096 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26097 rm -f $tmp/in
26098 mv $tmp/out $tmp/in
26099' >>$CONFIG_STATUS
26100 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26101 rm -f conftest.undefs
26102 mv conftest.tail conftest.undefs
26103done
26104rm -f conftest.undefs
bec39cab
AC
26105
26106cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
26107 # Let's still pretend it is `configure' which instantiates (i.e., don't
26108 # use $as_me), people would be surprised to read:
26109 # /* config.h. Generated by config.status. */
26110 if test x"$ac_file" = x-; then
26111 echo "/* Generated by configure. */" >$tmp/config.h
26112 else
26113 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26114 fi
26115 cat $tmp/in >>$tmp/config.h
26116 rm -f $tmp/in
bec39cab 26117 if test x"$ac_file" != x-; then
b4e70030 26118 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
26119 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26120echo "$as_me: $ac_file is unchanged" >&6;}
26121 else
b4e70030
JB
26122 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26123$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26124 X"$ac_file" : 'X\(//\)[^/]' \| \
26125 X"$ac_file" : 'X\(//\)$' \| \
26126 X"$ac_file" : 'X\(/\)' \| \
26127 . : '\(.\)' 2>/dev/null ||
26128echo X"$ac_file" |
26129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26131 /^X\(\/\/\)$/{ s//\1/; q; }
26132 /^X\(\/\).*/{ s//\1/; q; }
26133 s/.*/./; q'`
26134 { if $as_mkdir_p; then
26135 mkdir -p "$ac_dir"
26136 else
26137 as_dir="$ac_dir"
26138 as_dirs=
26139 while test ! -d "$as_dir"; do
26140 as_dirs="$as_dir $as_dirs"
26141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26143 X"$as_dir" : 'X\(//\)[^/]' \| \
26144 X"$as_dir" : 'X\(//\)$' \| \
26145 X"$as_dir" : 'X\(/\)' \| \
26146 . : '\(.\)' 2>/dev/null ||
26147echo X"$as_dir" |
26148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26150 /^X\(\/\/\)$/{ s//\1/; q; }
26151 /^X\(\/\).*/{ s//\1/; q; }
26152 s/.*/./; q'`
26153 done
26154 test ! -n "$as_dirs" || mkdir $as_dirs
26155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26156echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26157 { (exit 1); exit 1; }; }; }
26158
bec39cab 26159 rm -f $ac_file
b4e70030 26160 mv $tmp/config.h $ac_file
bec39cab
AC
26161 fi
26162 else
b4e70030
JB
26163 cat $tmp/config.h
26164 rm -f $tmp/config.h
bec39cab 26165 fi
b4e70030
JB
26166done
26167_ACEOF
26168cat >>$CONFIG_STATUS <<\_ACEOF
26169
26170#
26171# CONFIG_LINKS section.
26172#
26173
26174for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26175 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26176 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 26177
b4e70030
JB
26178 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26179echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
26180
26181 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
26182 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26183echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26184 { (exit 1); exit 1; }; }
c906108c 26185 fi
b4e70030
JB
26186 rm -f $ac_dest
26187
26188 # Make relative symlinks.
26189 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26190$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26191 X"$ac_dest" : 'X\(//\)[^/]' \| \
26192 X"$ac_dest" : 'X\(//\)$' \| \
26193 X"$ac_dest" : 'X\(/\)' \| \
26194 . : '\(.\)' 2>/dev/null ||
26195echo X"$ac_dest" |
26196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26198 /^X\(\/\/\)$/{ s//\1/; q; }
26199 /^X\(\/\).*/{ s//\1/; q; }
26200 s/.*/./; q'`
26201 { if $as_mkdir_p; then
26202 mkdir -p "$ac_dest_dir"
26203 else
26204 as_dir="$ac_dest_dir"
26205 as_dirs=
26206 while test ! -d "$as_dir"; do
26207 as_dirs="$as_dir $as_dirs"
26208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26210 X"$as_dir" : 'X\(//\)[^/]' \| \
26211 X"$as_dir" : 'X\(//\)$' \| \
26212 X"$as_dir" : 'X\(/\)' \| \
26213 . : '\(.\)' 2>/dev/null ||
26214echo X"$as_dir" |
26215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26217 /^X\(\/\/\)$/{ s//\1/; q; }
26218 /^X\(\/\).*/{ s//\1/; q; }
26219 s/.*/./; q'`
26220 done
26221 test ! -n "$as_dirs" || mkdir $as_dirs
26222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26223echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26224 { (exit 1); exit 1; }; }; }
26225
26226 ac_builddir=.
26227
26228if test "$ac_dest_dir" != .; then
26229 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26230 # A "../" for each directory in $ac_dir_suffix.
26231 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26232else
26233 ac_dir_suffix= ac_top_builddir=
26234fi
26235
26236case $srcdir in
26237 .) # No --srcdir option. We are building in place.
26238 ac_srcdir=.
26239 if test -z "$ac_top_builddir"; then
26240 ac_top_srcdir=.
26241 else
26242 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26243 fi ;;
26244 [\\/]* | ?:[\\/]* ) # Absolute path.
26245 ac_srcdir=$srcdir$ac_dir_suffix;
26246 ac_top_srcdir=$srcdir ;;
26247 *) # Relative path.
26248 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26249 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26250esac
26251
26252# Do not use `cd foo && pwd` to compute absolute paths, because
26253# the directories may not exist.
26254case `pwd` in
26255.) ac_abs_builddir="$ac_dest_dir";;
26256*)
26257 case "$ac_dest_dir" in
26258 .) ac_abs_builddir=`pwd`;;
26259 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26260 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26261 esac;;
26262esac
26263case $ac_abs_builddir in
26264.) ac_abs_top_builddir=${ac_top_builddir}.;;
26265*)
26266 case ${ac_top_builddir}. in
26267 .) ac_abs_top_builddir=$ac_abs_builddir;;
26268 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26269 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26270 esac;;
26271esac
26272case $ac_abs_builddir in
26273.) ac_abs_srcdir=$ac_srcdir;;
26274*)
26275 case $ac_srcdir in
26276 .) ac_abs_srcdir=$ac_abs_builddir;;
26277 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26278 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26279 esac;;
26280esac
26281case $ac_abs_builddir in
26282.) ac_abs_top_srcdir=$ac_top_srcdir;;
26283*)
26284 case $ac_top_srcdir in
26285 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26286 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26287 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26288 esac;;
26289esac
26290
bec39cab
AC
26291
26292 case $srcdir in
26293 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 26294 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 26295 esac
b4e70030
JB
26296
26297 # Try a symlink, then a hard link, then a copy.
26298 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26299 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26300 cp -p $srcdir/$ac_source $ac_dest ||
26301 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26302echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 26303 { (exit 1); exit 1; }; }
b4e70030
JB
26304done
26305_ACEOF
26306cat >>$CONFIG_STATUS <<\_ACEOF
26307
26308#
26309# CONFIG_COMMANDS section.
26310#
26311for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26312 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26313 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26314 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26315$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26316 X"$ac_dest" : 'X\(//\)[^/]' \| \
26317 X"$ac_dest" : 'X\(//\)$' \| \
26318 X"$ac_dest" : 'X\(/\)' \| \
26319 . : '\(.\)' 2>/dev/null ||
26320echo X"$ac_dest" |
26321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26323 /^X\(\/\/\)$/{ s//\1/; q; }
26324 /^X\(\/\).*/{ s//\1/; q; }
26325 s/.*/./; q'`
26326 { if $as_mkdir_p; then
26327 mkdir -p "$ac_dir"
26328 else
26329 as_dir="$ac_dir"
26330 as_dirs=
26331 while test ! -d "$as_dir"; do
26332 as_dirs="$as_dir $as_dirs"
26333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26335 X"$as_dir" : 'X\(//\)[^/]' \| \
26336 X"$as_dir" : 'X\(//\)$' \| \
26337 X"$as_dir" : 'X\(/\)' \| \
26338 . : '\(.\)' 2>/dev/null ||
26339echo X"$as_dir" |
26340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26342 /^X\(\/\/\)$/{ s//\1/; q; }
26343 /^X\(\/\).*/{ s//\1/; q; }
26344 s/.*/./; q'`
26345 done
26346 test ! -n "$as_dirs" || mkdir $as_dirs
26347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26348echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26349 { (exit 1); exit 1; }; }; }
26350
26351 ac_builddir=.
26352
26353if test "$ac_dir" != .; then
26354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26355 # A "../" for each directory in $ac_dir_suffix.
26356 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26357else
26358 ac_dir_suffix= ac_top_builddir=
26359fi
26360
26361case $srcdir in
26362 .) # No --srcdir option. We are building in place.
26363 ac_srcdir=.
26364 if test -z "$ac_top_builddir"; then
26365 ac_top_srcdir=.
26366 else
26367 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26368 fi ;;
26369 [\\/]* | ?:[\\/]* ) # Absolute path.
26370 ac_srcdir=$srcdir$ac_dir_suffix;
26371 ac_top_srcdir=$srcdir ;;
26372 *) # Relative path.
26373 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26374 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26375esac
26376
26377# Do not use `cd foo && pwd` to compute absolute paths, because
26378# the directories may not exist.
26379case `pwd` in
26380.) ac_abs_builddir="$ac_dir";;
26381*)
26382 case "$ac_dir" in
26383 .) ac_abs_builddir=`pwd`;;
26384 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26385 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26386 esac;;
26387esac
26388case $ac_abs_builddir in
26389.) ac_abs_top_builddir=${ac_top_builddir}.;;
26390*)
26391 case ${ac_top_builddir}. in
26392 .) ac_abs_top_builddir=$ac_abs_builddir;;
26393 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26394 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26395 esac;;
26396esac
26397case $ac_abs_builddir in
26398.) ac_abs_srcdir=$ac_srcdir;;
26399*)
26400 case $ac_srcdir in
26401 .) ac_abs_srcdir=$ac_abs_builddir;;
26402 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26403 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26404 esac;;
26405esac
26406case $ac_abs_builddir in
26407.) ac_abs_top_srcdir=$ac_top_srcdir;;
26408*)
26409 case $ac_top_srcdir in
26410 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26411 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26412 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26413 esac;;
26414esac
bec39cab 26415
bec39cab 26416
b4e70030
JB
26417 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26418echo "$as_me: executing $ac_dest commands" >&6;}
26419 case $ac_dest in
26420 gdb_stdint.h )
4e8d927d
DJ
26421if test "$GCC" = yes; then
26422 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
26423else
26424 echo "/* generated for $CC */" > tmp-stdint.h
26425fi
26426
26427sed 's/^ *//' >> tmp-stdint.h <<EOF
26428
26429 #ifndef GCC_GENERATED_STDINT_H
26430 #define GCC_GENERATED_STDINT_H 1
26431
26432 #include <sys/types.h>
26433EOF
26434
26435if test "$acx_cv_header_stdint" != stdint.h; then
26436 echo "#include <stddef.h>" >> tmp-stdint.h
26437fi
26438if test "$acx_cv_header_stdint" != stddef.h; then
26439 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
26440fi
26441
26442sed 's/^ *//' >> tmp-stdint.h <<EOF
26443 /* glibc uses these symbols as guards to prevent redefinitions. */
26444 #ifdef __int8_t_defined
26445 #define _INT8_T
26446 #define _INT16_T
26447 #define _INT32_T
26448 #endif
26449 #ifdef __uint32_t_defined
26450 #define _UINT32_T
26451 #endif
26452
26453EOF
26454
26455# ----------------- done header, emit basic int types -------------
26456if test "$acx_cv_header_stdint" = stddef.h; then
26457 sed 's/^ *//' >> tmp-stdint.h <<EOF
26458
26459 #ifndef _UINT8_T
26460 #define _UINT8_T
26461 typedef unsigned $acx_cv_type_int8_t uint8_t;
26462 #endif
26463
26464 #ifndef _UINT16_T
26465 #define _UINT16_T
26466 typedef unsigned $acx_cv_type_int16_t uint16_t;
26467 #endif
26468
26469 #ifndef _UINT32_T
26470 #define _UINT32_T
26471 typedef unsigned $acx_cv_type_int32_t uint32_t;
26472 #endif
26473
26474 #ifndef _INT8_T
26475 #define _INT8_T
26476 typedef $acx_cv_type_int8_t int8_t;
26477 #endif
26478
26479 #ifndef _INT16_T
26480 #define _INT16_T
26481 typedef $acx_cv_type_int16_t int16_t;
26482 #endif
26483
26484 #ifndef _INT32_T
26485 #define _INT32_T
26486 typedef $acx_cv_type_int32_t int32_t;
26487 #endif
26488EOF
26489elif test "$ac_cv_type_u_int32_t" = yes; then
26490 sed 's/^ *//' >> tmp-stdint.h <<EOF
26491
26492 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
26493 #ifndef _INT8_T
26494 #define _INT8_T
26495 #endif
26496 #ifndef _INT16_T
26497 #define _INT16_T
26498 #endif
26499 #ifndef _INT32_T
26500 #define _INT32_T
26501 #endif
26502
26503 #ifndef _UINT8_T
26504 #define _UINT8_T
26505 typedef u_int8_t uint8_t;
26506 #endif
26507
26508 #ifndef _UINT16_T
26509 #define _UINT16_T
26510 typedef u_int16_t uint16_t;
26511 #endif
26512
26513 #ifndef _UINT32_T
26514 #define _UINT32_T
26515 typedef u_int32_t uint32_t;
26516 #endif
26517EOF
26518else
26519 sed 's/^ *//' >> tmp-stdint.h <<EOF
26520
26521 /* Some systems have guard macros to prevent redefinitions, define them. */
26522 #ifndef _INT8_T
26523 #define _INT8_T
26524 #endif
26525 #ifndef _INT16_T
26526 #define _INT16_T
26527 #endif
26528 #ifndef _INT32_T
26529 #define _INT32_T
26530 #endif
26531 #ifndef _UINT8_T
26532 #define _UINT8_T
26533 #endif
26534 #ifndef _UINT16_T
26535 #define _UINT16_T
26536 #endif
26537 #ifndef _UINT32_T
26538 #define _UINT32_T
26539 #endif
26540EOF
26541fi
26542
26543# ------------- done basic int types, emit int64_t types ------------
26544if test "$ac_cv_type_uint64_t" = yes; then
26545 sed 's/^ *//' >> tmp-stdint.h <<EOF
26546
26547 /* system headers have good uint64_t and int64_t */
26548 #ifndef _INT64_T
26549 #define _INT64_T
26550 #endif
26551 #ifndef _UINT64_T
26552 #define _UINT64_T
26553 #endif
26554EOF
26555elif test "$ac_cv_type_u_int64_t" = yes; then
26556 sed 's/^ *//' >> tmp-stdint.h <<EOF
26557
26558 /* system headers have an u_int64_t (and int64_t) */
26559 #ifndef _INT64_T
26560 #define _INT64_T
26561 #endif
26562 #ifndef _UINT64_T
26563 #define _UINT64_T
26564 typedef u_int64_t uint64_t;
26565 #endif
26566EOF
26567elif test -n "$acx_cv_type_int64_t"; then
26568 sed 's/^ *//' >> tmp-stdint.h <<EOF
26569
26570 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26571 #ifndef _INT64_T
26572 #define _INT64_T
26573 typedef $acx_cv_type_int64_t int64_t;
26574 #endif
26575 #ifndef _UINT64_T
26576 #define _UINT64_T
26577 typedef unsigned $acx_cv_type_int64_t uint64_t;
26578 #endif
26579EOF
26580else
26581 sed 's/^ *//' >> tmp-stdint.h <<EOF
26582
26583 /* some common heuristics for int64_t, using compiler-specific tests */
26584 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26585 #ifndef _INT64_T
26586 #define _INT64_T
26587 typedef long long int64_t;
26588 #endif
26589 #ifndef _UINT64_T
26590 #define _UINT64_T
26591 typedef unsigned long long uint64_t;
26592 #endif
26593
26594 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26595 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26596 does not implement __extension__. But that compiler doesn't define
26597 __GNUC_MINOR__. */
26598 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26599 # define __extension__
26600 # endif
26601
26602 # ifndef _INT64_T
26603 # define _INT64_T
26604 __extension__ typedef long long int64_t;
26605 # endif
26606 # ifndef _UINT64_T
26607 # define _UINT64_T
26608 __extension__ typedef unsigned long long uint64_t;
26609 # endif
26610
26611 #elif !defined __STRICT_ANSI__
26612 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26613
26614 # ifndef _INT64_T
26615 # define _INT64_T
26616 typedef __int64 int64_t;
26617 # endif
26618 # ifndef _UINT64_T
26619 # define _UINT64_T
26620 typedef unsigned __int64 uint64_t;
26621 # endif
26622 # endif /* compiler */
26623
26624 #endif /* ANSI version */
26625EOF
26626fi
26627
26628# ------------- done int64_t types, emit intptr types ------------
26629if test "$ac_cv_type_uintptr_t" != yes; then
26630 sed 's/^ *//' >> tmp-stdint.h <<EOF
26631
26632 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
26633 typedef u$acx_cv_type_intptr_t uintptr_t;
26634 typedef $acx_cv_type_intptr_t intptr_t;
26635EOF
26636fi
26637
26638# ------------- done intptr types, emit int_least types ------------
26639if test "$ac_cv_type_int_least32_t" != yes; then
26640 sed 's/^ *//' >> tmp-stdint.h <<EOF
26641
26642 /* Define int_least types */
26643 typedef int8_t int_least8_t;
26644 typedef int16_t int_least16_t;
26645 typedef int32_t int_least32_t;
26646 #ifdef _INT64_T
26647 typedef int64_t int_least64_t;
26648 #endif
26649
26650 typedef uint8_t uint_least8_t;
26651 typedef uint16_t uint_least16_t;
26652 typedef uint32_t uint_least32_t;
26653 #ifdef _UINT64_T
26654 typedef uint64_t uint_least64_t;
26655 #endif
26656EOF
26657fi
26658
26659# ------------- done intptr types, emit int_fast types ------------
26660if test "$ac_cv_type_int_fast32_t" != yes; then
26661 sed 's/^ *//' >> tmp-stdint.h <<EOF
26662
26663 /* Define int_fast types. short is often slow */
26664 typedef int8_t int_fast8_t;
26665 typedef int int_fast16_t;
26666 typedef int32_t int_fast32_t;
26667 #ifdef _INT64_T
26668 typedef int64_t int_fast64_t;
26669 #endif
26670
26671 typedef uint8_t uint_fast8_t;
26672 typedef unsigned int uint_fast16_t;
26673 typedef uint32_t uint_fast32_t;
26674 #ifdef _UINT64_T
26675 typedef uint64_t uint_fast64_t;
26676 #endif
26677EOF
26678fi
26679
26680if test "$ac_cv_type_uintmax_t" != yes; then
26681 sed 's/^ *//' >> tmp-stdint.h <<EOF
26682
26683 /* Define intmax based on what we found */
26684 #ifdef _INT64_T
26685 typedef int64_t intmax_t;
26686 #else
26687 typedef long intmax_t;
26688 #endif
26689 #ifdef _UINT64_T
26690 typedef uint64_t uintmax_t;
26691 #else
26692 typedef unsigned long uintmax_t;
26693 #endif
26694EOF
26695fi
26696
26697sed 's/^ *//' >> tmp-stdint.h <<EOF
26698
26699 #endif /* GCC_GENERATED_STDINT_H */
26700EOF
26701
26702if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26703 rm -f tmp-stdint.h
26704else
26705 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
26706fi
26707
4e8d927d 26708 ;;
b4e70030 26709 default )
c906108c 26710
2c0fc042 26711sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
26712/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
26713/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
26714mv -f Makefile.tmp Makefile
26715
2acceee2 26716
c906108c
SS
26717case x$CONFIG_HEADERS in
26718xconfig.h:config.in)
26719echo > stamp-h ;;
26720esac
bec39cab
AC
26721 ;;
26722 esac
b4e70030
JB
26723done
26724_ACEOF
c906108c 26725
b4e70030 26726cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
26727
26728{ (exit 0); exit 0; }
26729_ACEOF
c906108c 26730chmod +x $CONFIG_STATUS
bec39cab
AC
26731ac_clean_files=$ac_clean_files_save
26732
26733
26734# configure is writing to config.log, and then calls config.status.
26735# config.status does its own redirection, appending to config.log.
26736# Unfortunately, on DOS this fails, as config.log is still kept open
26737# by configure, so config.status won't be able to write to it; its
26738# output is simply discarded. So we exec the FD to /dev/null,
26739# effectively closing config.log, so it can be properly (re)opened and
26740# appended to by config.status. When coming back to configure, we
26741# need to make the FD available again.
26742if test "$no_create" != yes; then
26743 ac_cs_success=:
26744 ac_config_status_args=
26745 test "$silent" = yes &&
26746 ac_config_status_args="$ac_config_status_args --quiet"
26747 exec 5>/dev/null
26748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26749 exec 5>>config.log
26750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26751 # would make configure fail if this is the last instruction.
26752 $ac_cs_success || { (exit 1); exit 1; }
26753fi
c906108c 26754
bec39cab
AC
26755#
26756# CONFIG_SUBDIRS section.
26757#
c906108c
SS
26758if test "$no_recursion" != yes; then
26759
26760 # Remove --cache-file and --srcdir arguments so they do not pile up.
26761 ac_sub_configure_args=
26762 ac_prev=
b4e70030 26763 for ac_arg in $ac_configure_args; do
c906108c
SS
26764 if test -n "$ac_prev"; then
26765 ac_prev=
26766 continue
26767 fi
bec39cab 26768 case $ac_arg in
c906108c
SS
26769 -cache-file | --cache-file | --cache-fil | --cache-fi \
26770 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26771 ac_prev=cache_file ;;
26772 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
26773 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26774 | --c=*)
26775 ;;
26776 --config-cache | -C)
c906108c
SS
26777 ;;
26778 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26779 ac_prev=srcdir ;;
26780 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26781 ;;
bec39cab
AC
26782 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26783 ac_prev=prefix ;;
26784 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26785 ;;
b4e70030 26786 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
26787 esac
26788 done
26789
bec39cab
AC
26790 # Always prepend --prefix to ensure using the same prefix
26791 # in subdir configurations.
26792 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26793
b4e70030 26794 ac_popdir=`pwd`
bec39cab 26795 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
26796
26797 # Do not complain, so a configure script can configure whichever
26798 # parts of a large source tree are present.
bec39cab 26799 test -d $srcdir/$ac_dir || continue
c906108c 26800
b4e70030
JB
26801 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26802echo "$as_me: configuring in $ac_dir" >&6;}
26803 { if $as_mkdir_p; then
26804 mkdir -p "$ac_dir"
26805 else
26806 as_dir="$ac_dir"
bec39cab 26807 as_dirs=
b4e70030
JB
26808 while test ! -d "$as_dir"; do
26809 as_dirs="$as_dir $as_dirs"
26810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
26811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26812 X"$as_dir" : 'X\(//\)[^/]' \| \
26813 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
26814 X"$as_dir" : 'X\(/\)' \| \
26815 . : '\(.\)' 2>/dev/null ||
bec39cab 26816echo X"$as_dir" |
b4e70030
JB
26817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26819 /^X\(\/\/\)$/{ s//\1/; q; }
26820 /^X\(\/\).*/{ s//\1/; q; }
26821 s/.*/./; q'`
bec39cab 26822 done
b4e70030
JB
26823 test ! -n "$as_dirs" || mkdir $as_dirs
26824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26825echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 26826 { (exit 1); exit 1; }; }; }
b4e70030 26827
bec39cab
AC
26828 ac_builddir=.
26829
b4e70030 26830if test "$ac_dir" != .; then
bec39cab 26831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
26832 # A "../" for each directory in $ac_dir_suffix.
26833 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26834else
26835 ac_dir_suffix= ac_top_builddir=
26836fi
bec39cab
AC
26837
26838case $srcdir in
b4e70030 26839 .) # No --srcdir option. We are building in place.
bec39cab 26840 ac_srcdir=.
b4e70030
JB
26841 if test -z "$ac_top_builddir"; then
26842 ac_top_srcdir=.
26843 else
26844 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26845 fi ;;
26846 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 26847 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
26848 ac_top_srcdir=$srcdir ;;
26849 *) # Relative path.
26850 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26851 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26852esac
26853
26854# Do not use `cd foo && pwd` to compute absolute paths, because
26855# the directories may not exist.
26856case `pwd` in
26857.) ac_abs_builddir="$ac_dir";;
26858*)
26859 case "$ac_dir" in
26860 .) ac_abs_builddir=`pwd`;;
26861 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26862 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26863 esac;;
26864esac
26865case $ac_abs_builddir in
26866.) ac_abs_top_builddir=${ac_top_builddir}.;;
26867*)
26868 case ${ac_top_builddir}. in
26869 .) ac_abs_top_builddir=$ac_abs_builddir;;
26870 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26871 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26872 esac;;
26873esac
26874case $ac_abs_builddir in
26875.) ac_abs_srcdir=$ac_srcdir;;
26876*)
26877 case $ac_srcdir in
26878 .) ac_abs_srcdir=$ac_abs_builddir;;
26879 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26880 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26881 esac;;
26882esac
26883case $ac_abs_builddir in
26884.) ac_abs_top_srcdir=$ac_top_srcdir;;
26885*)
26886 case $ac_top_srcdir in
26887 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26888 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26889 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26890 esac;;
bec39cab 26891esac
c906108c 26892
c906108c 26893
b4e70030 26894 cd $ac_dir
c906108c
SS
26895
26896 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
26897 if test -f $ac_srcdir/configure.gnu; then
26898 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26899 elif test -f $ac_srcdir/configure; then
26900 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26901 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
26902 ac_sub_configure=$ac_configure
26903 else
bec39cab
AC
26904 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26905echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
26906 ac_sub_configure=
26907 fi
26908
26909 # The recursion is here.
26910 if test -n "$ac_sub_configure"; then
c906108c 26911 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
26912 case $cache_file in
26913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
26914 *) # Relative path.
26915 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 26916 esac
c906108c 26917
bec39cab
AC
26918 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26919echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 26920 # The eval makes quoting arguments work.
b4e70030
JB
26921 eval $ac_sub_configure $ac_sub_configure_args \
26922 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
26923 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26924echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26925 { (exit 1); exit 1; }; }
c906108c
SS
26926 fi
26927
b4e70030 26928 cd $ac_popdir
c906108c
SS
26929 done
26930fi
26931
26932
26933exit 0
This page took 2.690834 seconds and 4 git commands to generate.