* configure.ac: Add arguments to AC_DEFINE calls.
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
bec39cab 3# Generated by GNU Autoconf 2.59.
c906108c 4#
bec39cab 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
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.
33$as_unset ENV MAIL MAILPATH
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
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
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
85
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
97fi
98
99
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
116
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 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
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
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
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.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
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
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
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
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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
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
225as_executable_p="test -f"
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
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
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
249exec 6>&1
250
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
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
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>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
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"
065a1afc
JB
316ac_subdirs_all="$ac_subdirs_all rdi-share"
317ac_subdirs_all="$ac_subdirs_all nlm"
c21a4eee 318ac_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'
bec39cab 319ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
320
321# Initialize some variables set by options.
bec39cab
AC
322ac_init_help=
323ac_init_version=false
c906108c
SS
324# The variables have the same names as the options, with
325# dashes changed to underlines.
bec39cab 326cache_file=/dev/null
c906108c 327exec_prefix=NONE
c906108c 328no_create=
c906108c
SS
329no_recursion=
330prefix=NONE
331program_prefix=NONE
332program_suffix=NONE
333program_transform_name=s,x,x,
334silent=
335site=
336srcdir=
c906108c
SS
337verbose=
338x_includes=NONE
339x_libraries=NONE
bec39cab
AC
340
341# Installation directory options.
342# These are left unexpanded so users can "make install exec_prefix=/foo"
343# and all the variables that are supposed to be based on exec_prefix
344# by default will actually change.
345# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
346bindir='${exec_prefix}/bin'
347sbindir='${exec_prefix}/sbin'
348libexecdir='${exec_prefix}/libexec'
349datadir='${prefix}/share'
350sysconfdir='${prefix}/etc'
351sharedstatedir='${prefix}/com'
352localstatedir='${prefix}/var'
353libdir='${exec_prefix}/lib'
354includedir='${prefix}/include'
355oldincludedir='/usr/include'
356infodir='${prefix}/info'
357mandir='${prefix}/man'
358
c906108c
SS
359ac_prev=
360for ac_option
361do
c906108c
SS
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
bec39cab 369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
bec39cab 373 case $ac_option in
c906108c
SS
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 378 bindir=$ac_optarg ;;
c906108c
SS
379
380 -build | --build | --buil | --bui | --bu)
bec39cab 381 ac_prev=build_alias ;;
c906108c 382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 383 build_alias=$ac_optarg ;;
c906108c
SS
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
c906108c
SS
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
bec39cab 399 datadir=$ac_optarg ;;
c906108c
SS
400
401 -disable-* | --disable-*)
bec39cab 402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 403 # Reject names that are not valid shell variable names.
bec39cab
AC
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
c906108c
SS
409
410 -enable-* | --enable-*)
bec39cab 411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 412 # Reject names that are not valid shell variable names.
bec39cab
AC
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
419 *) ac_optarg=yes ;;
420 esac
bec39cab 421 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
bec39cab 430 exec_prefix=$ac_optarg ;;
c906108c
SS
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
bec39cab
AC
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
c906108c
SS
442
443 -host | --host | --hos | --ho)
bec39cab 444 ac_prev=host_alias ;;
c906108c 445 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 446 host_alias=$ac_optarg ;;
c906108c
SS
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 453 includedir=$ac_optarg ;;
c906108c
SS
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 458 infodir=$ac_optarg ;;
c906108c
SS
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 463 libdir=$ac_optarg ;;
c906108c
SS
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
bec39cab 470 libexecdir=$ac_optarg ;;
c906108c
SS
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 479 localstatedir=$ac_optarg ;;
c906108c
SS
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 484 mandir=$ac_optarg ;;
c906108c
SS
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 491 | --no-cr | --no-c | -n)
c906108c
SS
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 505 oldincludedir=$ac_optarg ;;
c906108c
SS
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 510 prefix=$ac_optarg ;;
c906108c
SS
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 517 program_prefix=$ac_optarg ;;
c906108c
SS
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 524 program_suffix=$ac_optarg ;;
c906108c
SS
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 541 program_transform_name=$ac_optarg ;;
c906108c
SS
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
bec39cab 551 sbindir=$ac_optarg ;;
c906108c
SS
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
bec39cab 562 sharedstatedir=$ac_optarg ;;
c906108c
SS
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
bec39cab 567 site=$ac_optarg ;;
3ace7edb 568
c906108c
SS
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 572 srcdir=$ac_optarg ;;
c906108c
SS
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 579 sysconfdir=$ac_optarg ;;
c906108c
SS
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 582 ac_prev=target_alias ;;
c906108c 583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 584 target_alias=$ac_optarg ;;
c906108c
SS
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
bec39cab
AC
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
c906108c
SS
591
592 -with-* | --with-*)
bec39cab 593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 594 # Reject names that are not valid shell variable names.
bec39cab
AC
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
c906108c 598 ac_package=`echo $ac_package| sed 's/-/_/g'`
bec39cab
AC
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
601 *) ac_optarg=yes ;;
602 esac
bec39cab 603 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
604
605 -without-* | --without-*)
bec39cab 606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 607 # Reject names that are not valid shell variable names.
bec39cab
AC
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
c906108c
SS
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 623 x_includes=$ac_optarg ;;
c906108c
SS
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 630 x_libraries=$ac_optarg ;;
c906108c 631
bec39cab
AC
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
c906108c
SS
635 ;;
636
bec39cab
AC
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
c906108c 647 *)
bec39cab
AC
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
bec39cab
AC
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
c906108c 662fi
c906108c 663
bec39cab
AC
664# Be sure to have absolute paths.
665for ac_var in exec_prefix prefix
666do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673done
c906108c 674
bec39cab
AC
675# Be sure to have absolute paths.
676for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 678do
bec39cab
AC
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
c906108c
SS
684 esac
685done
686
bec39cab
AC
687# There might be people who depend on the old broken behavior: `$host'
688# used to hold the argument of --host etc.
689# FIXME: To remove some day.
690build=$build_alias
691host=$host_alias
692target=$target_alias
693
694# FIXME: To remove some day.
695if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703fi
c906108c 704
bec39cab
AC
705ac_tool_prefix=
706test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708test "$silent" = yes && exec 6>/dev/null
c906108c 709
c906108c
SS
710
711# Find the source files, if location was not specified.
712if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
bec39cab
AC
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
c906108c
SS
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731else
732 ac_srcdir_defaulted=no
733fi
734if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
c906108c 738 else
bec39cab
AC
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
c906108c
SS
741 fi
742fi
bec39cab
AC
743(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747ac_env_build_alias_set=${build_alias+set}
748ac_env_build_alias_value=$build_alias
749ac_cv_env_build_alias_set=${build_alias+set}
750ac_cv_env_build_alias_value=$build_alias
751ac_env_host_alias_set=${host_alias+set}
752ac_env_host_alias_value=$host_alias
753ac_cv_env_host_alias_set=${host_alias+set}
754ac_cv_env_host_alias_value=$host_alias
755ac_env_target_alias_set=${target_alias+set}
756ac_env_target_alias_value=$target_alias
757ac_cv_env_target_alias_set=${target_alias+set}
758ac_cv_env_target_alias_value=$target_alias
759ac_env_CC_set=${CC+set}
760ac_env_CC_value=$CC
761ac_cv_env_CC_set=${CC+set}
762ac_cv_env_CC_value=$CC
763ac_env_CFLAGS_set=${CFLAGS+set}
764ac_env_CFLAGS_value=$CFLAGS
765ac_cv_env_CFLAGS_set=${CFLAGS+set}
766ac_cv_env_CFLAGS_value=$CFLAGS
767ac_env_LDFLAGS_set=${LDFLAGS+set}
768ac_env_LDFLAGS_value=$LDFLAGS
769ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770ac_cv_env_LDFLAGS_value=$LDFLAGS
771ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_env_CPPFLAGS_value=$CPPFLAGS
773ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775ac_env_CPP_set=${CPP+set}
776ac_env_CPP_value=$CPP
777ac_cv_env_CPP_set=${CPP+set}
778ac_cv_env_CPP_value=$CPP
c906108c 779
bec39cab
AC
780#
781# Report the --help message.
782#
783if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787\`configure' configures this package to adapt to many kinds of systems.
788
789Usage: $0 [OPTION]... [VAR=VALUE]...
790
791To assign environment variables (e.g., CC, CFLAGS...), specify them as
792VAR=VALUE. See below for descriptions of some of the useful variables.
793
794Defaults for the options are specified in brackets.
795
796Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807_ACEOF
808
809 cat <<_ACEOF
810Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816By default, \`make install' will install all the files in
817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819for instance \`--prefix=\$HOME'.
820
821For better control, use the options below.
822
823Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836_ACEOF
837
838 cat <<\_ACEOF
839
840Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
bec39cab
AC
865 --disable-nls do not use Native Language Support
866 --disable-gdbcli disable command-line interface (CLI)
867 --disable-gdbmi disable machine-interface (MI)
868 --enable-tui enable full-screen terminal user interface (TUI)
869 --enable-gdbtk enable gdbtk graphical user interface (GUI)
870 --enable-profiling enable profiling of GDB
871 --enable-build-warnings Enable build-time compiler warnings if gcc is used
872 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
873 --enable-sim Link gdb with simulator
874 --enable-multi-ice build the multi-ice-gdb-server
875
876Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-included-gettext use the GNU gettext library included here
880 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
881 --with-libunwind Use libunwind frame unwinding support
882 --without-included-regex don't use included regex; this is the default
883 on systems with version 2 of the GNU C library
884 (use with caution on other system)
885 --with-sysroot=DIR Search for usr/lib et al within DIR.
886 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
887 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
888 --with-tclinclude=DIR Directory where tcl private headers are
889 --with-tkinclude=DIR Directory where tk private headers are
890 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
891 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
892 --with-x use the X Window System
893 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894
895Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
902 CPP C preprocessor
903
904Use these variables to override the choices made by `configure' or to help
905it to find libraries and programs with nonstandard names/locations.
906
907_ACEOF
908fi
909
910if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
916
917if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921else
922 ac_dir_suffix= ac_top_builddir=
923fi
924
925case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939esac
940
941# Do not use `cd foo && pwd` to compute absolute paths, because
942# the directories may not exist.
943case `pwd` in
944.) ac_abs_builddir="$ac_dir";;
945*)
946 case "$ac_dir" in
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_builddir=${ac_top_builddir}.;;
954*)
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_srcdir=$ac_srcdir;;
963*)
964 case $ac_srcdir in
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_top_srcdir=$ac_top_srcdir;;
972*)
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 esac;;
978esac
979
980 cd $ac_dir
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
983 echo
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
986 echo
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
990 echo
991 $ac_configure --help
3ace7edb 992 else
bec39cab
AC
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 fi
995 cd $ac_popdir
996 done
997fi
998
999test -n "$ac_init_help" && exit 0
1000if $ac_init_version; then
1001 cat <<\_ACEOF
1002
1003Copyright (C) 2003 Free Software Foundation, Inc.
1004This configure script is free software; the Free Software Foundation
1005gives unlimited permission to copy, distribute and modify it.
1006_ACEOF
1007 exit 0
1008fi
1009exec 5>config.log
1010cat >&5 <<_ACEOF
1011This file contains any messages produced by compilers while
1012running configure, to aid debugging if configure makes a mistake.
1013
1014It was created by $as_me, which was
1015generated by GNU Autoconf 2.59. Invocation command line was
1016
1017 $ $0 $@
1018
1019_ACEOF
1020{
1021cat <<_ASUNAME
1022## --------- ##
1023## Platform. ##
1024## --------- ##
1025
1026hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034
1035/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042
1043_ASUNAME
1044
1045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046for as_dir in $PATH
1047do
1048 IFS=$as_save_IFS
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1051done
1052
1053} >&5
1054
1055cat >&5 <<_ACEOF
1056
1057
1058## ----------- ##
1059## Core tests. ##
1060## ----------- ##
1061
1062_ACEOF
1063
1064
1065# Keep a trace of the command line.
1066# Strip out --no-create and --no-recursion so they do not pile up.
1067# Strip out --silent because we don't want to record it for future runs.
1068# Also quote any args containing shell meta-characters.
1069# Make two passes to allow for proper duplicate-argument suppression.
1070ac_configure_args=
1071ac_configure_args0=
1072ac_configure_args1=
1073ac_sep=
1074ac_must_keep_next=false
1075for ac_pass in 1 2
1076do
1077 for ac_arg
1078 do
1079 case $ac_arg in
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 continue ;;
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 esac
1087 case $ac_pass in
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 2)
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1093 else
1094 case $ac_arg in
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 esac
1102 ;;
1103 -* ) ac_must_keep_next=true ;;
1104 esac
1105 fi
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1108 ac_sep=" "
1109 ;;
1110 esac
1111 done
1112done
1113$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116# When interrupted or exit'd, cleanup temporary files, and complete
1117# config.log. We remove comments because anyway the quotes in there
1118# would cause problems or look ugly.
1119# WARNING: Be sure not to use single quotes in there, as some shells,
1120# such as our DU 5.0 friend, will then `close' the trap.
1121trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1123 {
1124 echo
1125
1126 cat <<\_ASBOX
1127## ---------------- ##
1128## Cache variables. ##
1129## ---------------- ##
1130_ASBOX
1131 echo
1132 # The following way of writing the cache mishandles newlines in values,
1133{
1134 (set) 2>&1 |
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 *ac_space=\ *)
1137 sed -n \
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140 ;;
1141 *)
1142 sed -n \
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ;;
1145 esac;
1146}
1147 echo
1148
1149 cat <<\_ASBOX
1150## ----------------- ##
1151## Output variables. ##
1152## ----------------- ##
1153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_vars
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161
1162 if test -n "$ac_subst_files"; then
1163 cat <<\_ASBOX
1164## ------------- ##
1165## Output files. ##
1166## ------------- ##
1167_ASBOX
1168 echo
1169 for ac_var in $ac_subst_files
1170 do
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1175 fi
1176
1177 if test -s confdefs.h; then
1178 cat <<\_ASBOX
1179## ----------- ##
1180## confdefs.h. ##
1181## ----------- ##
1182_ASBOX
1183 echo
1184 sed "/^$/d" confdefs.h | sort
1185 echo
3ace7edb 1186 fi
bec39cab
AC
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1190 } >&5
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 exit $exit_status
1194 ' 0
1195for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197done
1198ac_signal=0
1199
1200# confdefs.h avoids OS command line length limits that DEFS can exceed.
1201rm -rf conftest* confdefs.h
1202# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203echo >confdefs.h
1204
1205# Predefined preprocessor variables.
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_NAME "$PACKAGE_NAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_VERSION "$PACKAGE_VERSION"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_STRING "$PACKAGE_STRING"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229_ACEOF
1230
1231
1232# Let the site file select an alternate cache file if it wants to.
1233# Prefer explicitly selected file to automatically selected ones.
1234if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 else
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c906108c
SS
1239 fi
1240fi
1241for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
bec39cab
AC
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1246 . "$ac_site_file"
1247 fi
1248done
1249
1250if test -r "$cache_file"; then
bec39cab
AC
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255echo "$as_me: loading cache $cache_file" >&6;}
1256 case $cache_file in
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1259 esac
1260 fi
c906108c 1261else
bec39cab
AC
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263echo "$as_me: creating cache $cache_file" >&6;}
1264 >$cache_file
1265fi
1266
1267# Check that the precious variables saved in the cache have kept the same
1268# value.
1269ac_cache_corrupted=false
1270for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1277 set,)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,set)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,);;
1286 *)
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1295 fi;;
1296 esac
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1299 case $ac_new_val in
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1303 esac
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307 esac
1308 fi
1309done
1310if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
c906108c
SS
1316fi
1317
1318ac_ext=c
c906108c 1319ac_cpp='$CPP $CPPFLAGS'
bec39cab
AC
1320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1323
1324
1325
bec39cab
AC
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342 ac_config_headers="$ac_config_headers config.h:config.in"
1343
1344echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1345echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
413ccac7
AC
1346 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1347if test "${enable_maintainer_mode+set}" = set; then
1348 enableval="$enable_maintainer_mode"
1349 USE_MAINTAINER_MODE=$enableval
1350else
1351 USE_MAINTAINER_MODE=no
bec39cab
AC
1352fi;
1353 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1354echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1355
413ccac7
AC
1356
1357if test $USE_MAINTAINER_MODE = yes; then
1358 MAINTAINER_MODE_TRUE=
1359 MAINTAINER_MODE_FALSE='#'
1360else
1361 MAINTAINER_MODE_TRUE='#'
1362 MAINTAINER_MODE_FALSE=
1363fi
85981d60 1364
413ccac7 1365 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1366
c906108c 1367
bec39cab
AC
1368
1369ac_ext=c
1370ac_cpp='$CPP $CPPFLAGS'
1371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1376set dummy ${ac_tool_prefix}gcc; ac_word=$2
1377echo "$as_me:$LINENO: checking for $ac_word" >&5
1378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379if test "${ac_cv_prog_CC+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381else
1382 if test -n "$CC"; then
1383 ac_cv_prog_CC="$CC" # Let the user override the test.
1384else
1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386for as_dir in $PATH
1387do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394 break 2
1395 fi
1396done
1397done
1398
1399fi
1400fi
1401CC=$ac_cv_prog_CC
1402if test -n "$CC"; then
1403 echo "$as_me:$LINENO: result: $CC" >&5
1404echo "${ECHO_T}$CC" >&6
1405else
1406 echo "$as_me:$LINENO: result: no" >&5
1407echo "${ECHO_T}no" >&6
1408fi
1409
1410fi
1411if test -z "$ac_cv_prog_CC"; then
1412 ac_ct_CC=$CC
1413 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1414set dummy gcc; ac_word=$2
bec39cab
AC
1415echo "$as_me:$LINENO: checking for $ac_word" >&5
1416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420 if test -n "$ac_ct_CC"; then
1421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422else
1423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424for as_dir in $PATH
1425do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_ac_ct_CC="gcc"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434done
1435done
1436
1437fi
1438fi
1439ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440if test -n "$ac_ct_CC"; then
1441 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1442echo "${ECHO_T}$ac_ct_CC" >&6
1443else
1444 echo "$as_me:$LINENO: result: no" >&5
1445echo "${ECHO_T}no" >&6
1446fi
1447
1448 CC=$ac_ct_CC
1449else
1450 CC="$ac_cv_prog_CC"
1451fi
1452
1453if test -z "$CC"; then
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1456set dummy ${ac_tool_prefix}cc; ac_word=$2
1457echo "$as_me:$LINENO: checking for $ac_word" >&5
1458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459if test "${ac_cv_prog_CC+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1461else
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1464else
bec39cab
AC
1465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466for as_dir in $PATH
1467do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_CC="${ac_tool_prefix}cc"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 break 2
1475 fi
1476done
1477done
1478
c906108c
SS
1479fi
1480fi
bec39cab 1481CC=$ac_cv_prog_CC
c906108c 1482if test -n "$CC"; then
bec39cab
AC
1483 echo "$as_me:$LINENO: result: $CC" >&5
1484echo "${ECHO_T}$CC" >&6
1485else
1486 echo "$as_me:$LINENO: result: no" >&5
1487echo "${ECHO_T}no" >&6
1488fi
1489
1490fi
1491if test -z "$ac_cv_prog_CC"; then
1492 ac_ct_CC=$CC
1493 # Extract the first word of "cc", so it can be a program name with args.
1494set dummy cc; ac_word=$2
1495echo "$as_me:$LINENO: checking for $ac_word" >&5
1496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499else
1500 if test -n "$ac_ct_CC"; then
1501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502else
1503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504for as_dir in $PATH
1505do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_CC="cc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514done
1515done
1516
1517fi
1518fi
1519ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520if test -n "$ac_ct_CC"; then
1521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1523else
bec39cab
AC
1524 echo "$as_me:$LINENO: result: no" >&5
1525echo "${ECHO_T}no" >&6
c906108c
SS
1526fi
1527
bec39cab
AC
1528 CC=$ac_ct_CC
1529else
1530 CC="$ac_cv_prog_CC"
1531fi
1532
1533fi
c906108c
SS
1534if test -z "$CC"; then
1535 # Extract the first word of "cc", so it can be a program name with args.
1536set dummy cc; ac_word=$2
bec39cab
AC
1537echo "$as_me:$LINENO: checking for $ac_word" >&5
1538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539if test "${ac_cv_prog_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1541else
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1544else
c906108c 1545 ac_prog_rejected=no
bec39cab
AC
1546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547for as_dir in $PATH
1548do
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1554 ac_prog_rejected=yes
1555 continue
1556 fi
1557 ac_cv_prog_CC="cc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561done
1562done
1563
c906108c
SS
1564if test $ac_prog_rejected = yes; then
1565 # We found a bogon in the path, so make sure we never use it.
1566 set dummy $ac_cv_prog_CC
1567 shift
bec39cab 1568 if test $# != 0; then
c906108c
SS
1569 # We chose a different compiler from the bogus one.
1570 # However, it has the same basename, so the bogon will be chosen
1571 # first if we set CC to just the basename; use the full file name.
1572 shift
bec39cab 1573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1574 fi
1575fi
1576fi
1577fi
bec39cab 1578CC=$ac_cv_prog_CC
c906108c 1579if test -n "$CC"; then
bec39cab
AC
1580 echo "$as_me:$LINENO: result: $CC" >&5
1581echo "${ECHO_T}$CC" >&6
c906108c 1582else
bec39cab
AC
1583 echo "$as_me:$LINENO: result: no" >&5
1584echo "${ECHO_T}no" >&6
c906108c
SS
1585fi
1586
bec39cab
AC
1587fi
1588if test -z "$CC"; then
1589 if test -n "$ac_tool_prefix"; then
1590 for ac_prog in cl
1591 do
1592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1594echo "$as_me:$LINENO: checking for $ac_word" >&5
1595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1598else
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1601else
bec39cab
AC
1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603for as_dir in $PATH
1604do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 break 2
1612 fi
1613done
1614done
1615
c906108c
SS
1616fi
1617fi
bec39cab 1618CC=$ac_cv_prog_CC
c906108c 1619if test -n "$CC"; then
bec39cab
AC
1620 echo "$as_me:$LINENO: result: $CC" >&5
1621echo "${ECHO_T}$CC" >&6
c906108c 1622else
bec39cab
AC
1623 echo "$as_me:$LINENO: result: no" >&5
1624echo "${ECHO_T}no" >&6
c906108c 1625fi
bec39cab
AC
1626
1627 test -n "$CC" && break
1628 done
1629fi
1630if test -z "$CC"; then
1631 ac_ct_CC=$CC
1632 for ac_prog in cl
1633do
1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
1635set dummy $ac_prog; ac_word=$2
1636echo "$as_me:$LINENO: checking for $ac_word" >&5
1637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643else
1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="$ac_prog"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
c906108c 1654 fi
bec39cab
AC
1655done
1656done
1657
1658fi
1659fi
1660ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663echo "${ECHO_T}$ac_ct_CC" >&6
1664else
1665 echo "$as_me:$LINENO: result: no" >&5
1666echo "${ECHO_T}no" >&6
c906108c
SS
1667fi
1668
bec39cab
AC
1669 test -n "$ac_ct_CC" && break
1670done
c906108c 1671
bec39cab
AC
1672 CC=$ac_ct_CC
1673fi
1674
1675fi
1676
1677
1678test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1679See \`config.log' for more details." >&5
1680echo "$as_me: error: no acceptable C compiler found in \$PATH
1681See \`config.log' for more details." >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684# Provide some information about the compiler.
1685echo "$as_me:$LINENO:" \
1686 "checking for C compiler version" >&5
1687ac_compiler=`set X $ac_compile; echo $2`
1688{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689 (eval $ac_compiler --version </dev/null >&5) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694 (eval $ac_compiler -v </dev/null >&5) 2>&5
1695 ac_status=$?
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699 (eval $ac_compiler -V </dev/null >&5) 2>&5
1700 ac_status=$?
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1703
1704cat >conftest.$ac_ext <<_ACEOF
1705/* confdefs.h. */
1706_ACEOF
1707cat confdefs.h >>conftest.$ac_ext
1708cat >>conftest.$ac_ext <<_ACEOF
1709/* end confdefs.h. */
1710
1711int
1712main ()
1713{
1714
1715 ;
1716 return 0;
1717}
1718_ACEOF
1719ac_clean_files_save=$ac_clean_files
1720ac_clean_files="$ac_clean_files a.out a.exe b.out"
1721# Try to create an executable without -o first, disregard a.out.
1722# It will help us diagnose broken compilers, and finding out an intuition
1723# of exeext.
1724echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1725echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1726ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1728 (eval $ac_link_default) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # Find the output, starting from the most likely. This scheme is
1733# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1734# resort.
1735
1736# Be careful to initialize this variable, since it used to be cached.
1737# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1738ac_cv_exeext=
1739# b.out is created by i960 compilers.
1740for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1741do
1742 test -f "$ac_file" || continue
1743 case $ac_file in
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1745 ;;
1746 conftest.$ac_ext )
1747 # This is the source file.
1748 ;;
1749 [ab].out )
1750 # We found the default executable, but exeext='' is most
1751 # certainly right.
1752 break;;
1753 *.* )
1754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool,
1756 # but it would be cool to find out if it's true. Does anybody
1757 # maintain Libtool? --akim.
1758 export ac_cv_exeext
1759 break;;
1760 * )
1761 break;;
1762 esac
1763done
1764else
1765 echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1769See \`config.log' for more details." >&5
1770echo "$as_me: error: C compiler cannot create executables
1771See \`config.log' for more details." >&2;}
1772 { (exit 77); exit 77; }; }
1773fi
1774
1775ac_exeext=$ac_cv_exeext
1776echo "$as_me:$LINENO: result: $ac_file" >&5
1777echo "${ECHO_T}$ac_file" >&6
1778
1779# Check the compiler produces executables we can run. If not, either
1780# the compiler is broken, or we cross compile.
1781echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784# If not cross compiling, check that we can run a simple program.
1785if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 (eval $ac_try) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1792 cross_compiling=no
c906108c 1793 else
bec39cab
AC
1794 if test "$cross_compiling" = maybe; then
1795 cross_compiling=yes
1796 else
1797 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798If you meant to cross compile, use \`--host'.
1799See \`config.log' for more details." >&5
1800echo "$as_me: error: cannot run C compiled programs.
1801If you meant to cross compile, use \`--host'.
1802See \`config.log' for more details." >&2;}
1803 { (exit 1); exit 1; }; }
1804 fi
c906108c 1805 fi
bec39cab
AC
1806fi
1807echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
1809
1810rm -f a.out a.exe conftest$ac_cv_exeext b.out
1811ac_clean_files=$ac_clean_files_save
1812# Check the compiler produces executables we can run. If not, either
1813# the compiler is broken, or we cross compile.
1814echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1815echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816echo "$as_me:$LINENO: result: $cross_compiling" >&5
1817echo "${ECHO_T}$cross_compiling" >&6
1818
1819echo "$as_me:$LINENO: checking for suffix of executables" >&5
1820echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1823 ac_status=$?
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828# work properly (i.e., refer to `conftest.exe'), while it won't with
1829# `rm'.
1830for ac_file in conftest.exe conftest conftest.*; do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 export ac_cv_exeext
1836 break;;
1837 * ) break;;
1838 esac
1839done
c906108c 1840else
bec39cab
AC
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1842See \`config.log' for more details." >&5
1843echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1844See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
c906108c 1846fi
c906108c 1847
bec39cab
AC
1848rm -f conftest$ac_cv_exeext
1849echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1850echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1851
bec39cab
AC
1852rm -f conftest.$ac_ext
1853EXEEXT=$ac_cv_exeext
1854ac_exeext=$EXEEXT
1855echo "$as_me:$LINENO: checking for suffix of object files" >&5
1856echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1857if test "${ac_cv_objext+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860 cat >conftest.$ac_ext <<_ACEOF
1861/* confdefs.h. */
1862_ACEOF
1863cat confdefs.h >>conftest.$ac_ext
1864cat >>conftest.$ac_ext <<_ACEOF
1865/* end confdefs.h. */
c906108c 1866
bec39cab
AC
1867int
1868main ()
1869{
c906108c 1870
bec39cab
AC
1871 ;
1872 return 0;
1873}
1874_ACEOF
1875rm -f conftest.o conftest.obj
1876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877 (eval $ac_compile) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1882 case $ac_file in
1883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1885 break;;
1886 esac
1887done
c906108c 1888else
bec39cab
AC
1889 echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1893See \`config.log' for more details." >&5
1894echo "$as_me: error: cannot compute suffix of object files: cannot compile
1895See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
c906108c
SS
1897fi
1898
bec39cab
AC
1899rm -f conftest.$ac_cv_objext conftest.$ac_ext
1900fi
1901echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1902echo "${ECHO_T}$ac_cv_objext" >&6
1903OBJEXT=$ac_cv_objext
1904ac_objext=$OBJEXT
1905echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1906echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1907if test "${ac_cv_c_compiler_gnu+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1909else
bec39cab
AC
1910 cat >conftest.$ac_ext <<_ACEOF
1911/* confdefs.h. */
1912_ACEOF
1913cat confdefs.h >>conftest.$ac_ext
1914cat >>conftest.$ac_ext <<_ACEOF
1915/* end confdefs.h. */
1916
1917int
1918main ()
1919{
1920#ifndef __GNUC__
1921 choke me
1922#endif
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928rm -f conftest.$ac_objext
1929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>conftest.er1
1931 ac_status=$?
1932 grep -v '^ *+' conftest.er1 >conftest.err
1933 rm -f conftest.er1
1934 cat conftest.err >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); } &&
1937 { ac_try='test -z "$ac_c_werror_flag"
1938 || test ! -s conftest.err'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 (eval $ac_try) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 (eval $ac_try) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1950 ac_compiler_gnu=yes
1951else
1952 echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955ac_compiler_gnu=no
1956fi
1957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958ac_cv_c_compiler_gnu=$ac_compiler_gnu
1959
1960fi
1961echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963GCC=`test $ac_compiler_gnu = yes && echo yes`
1964ac_test_CFLAGS=${CFLAGS+set}
1965ac_save_CFLAGS=$CFLAGS
1966CFLAGS="-g"
1967echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969if test "${ac_cv_prog_cc_g+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972 cat >conftest.$ac_ext <<_ACEOF
1973/* confdefs.h. */
1974_ACEOF
1975cat confdefs.h >>conftest.$ac_ext
1976cat >>conftest.$ac_ext <<_ACEOF
1977/* end confdefs.h. */
1978
1979int
1980main ()
1981{
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987rm -f conftest.$ac_objext
1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
c906108c
SS
2009 ac_cv_prog_cc_g=yes
2010else
bec39cab
AC
2011 echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2013
bec39cab 2014ac_cv_prog_cc_g=no
c906108c 2015fi
bec39cab
AC
2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017fi
2018echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2019echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2020if test "$ac_test_CFLAGS" = set; then
bec39cab 2021 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2022elif test $ac_cv_prog_cc_g = yes; then
2023 if test "$GCC" = yes; then
2024 CFLAGS="-g -O2"
2025 else
2026 CFLAGS="-g"
2027 fi
2028else
2029 if test "$GCC" = yes; then
2030 CFLAGS="-O2"
2031 else
2032 CFLAGS=
2033 fi
2034fi
bec39cab
AC
2035echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2036echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2037if test "${ac_cv_prog_cc_stdc+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040 ac_cv_prog_cc_stdc=no
2041ac_save_CC=$CC
2042cat >conftest.$ac_ext <<_ACEOF
2043/* confdefs.h. */
2044_ACEOF
2045cat confdefs.h >>conftest.$ac_ext
2046cat >>conftest.$ac_ext <<_ACEOF
2047/* end confdefs.h. */
c906108c
SS
2048#include <stdarg.h>
2049#include <stdio.h>
2050#include <sys/types.h>
2051#include <sys/stat.h>
2052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2053struct buf { int x; };
2054FILE * (*rcsopen) (struct buf *, struct stat *, int);
2055static char *e (p, i)
2056 char **p;
2057 int i;
2058{
2059 return p[i];
2060}
2061static char *f (char * (*g) (char **, int), char **p, ...)
2062{
2063 char *s;
2064 va_list v;
2065 va_start (v,p);
2066 s = g (p, va_arg (v,int));
2067 va_end (v);
2068 return s;
2069}
bec39cab
AC
2070
2071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2072 function prototypes and stuff, but not '\xHH' hex character constants.
2073 These don't provoke an error unfortunately, instead are silently treated
2074 as 'x'. The following induces an error, until -std1 is added to get
2075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2076 array size at least. It's necessary to write '\x00'==0 to get something
2077 that's true only with -std1. */
2078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079
c906108c
SS
2080int test (int i, double x);
2081struct s1 {int (*f) (int a);};
2082struct s2 {int (*f) (double a);};
2083int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2084int argc;
2085char **argv;
bec39cab
AC
2086int
2087main ()
2088{
c906108c 2089return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094# Don't try gcc -ansi; that turns off useful extensions and
2095# breaks some systems' header files.
2096# AIX -qlanglvl=ansi
2097# Ultrix and OSF/1 -std1
2098# HP-UX 10.20 and later -Ae
2099# HP-UX older versions -Aa -D_HPUX_SOURCE
2100# SVR4 -Xc -D__EXTENSIONS__
2101for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102do
2103 CC="$ac_save_CC $ac_arg"
2104 rm -f conftest.$ac_objext
2105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2107 ac_status=$?
2108 grep -v '^ *+' conftest.er1 >conftest.err
2109 rm -f conftest.er1
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_c_werror_flag"
2114 || test ! -s conftest.err'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 ac_cv_prog_cc_stdc=$ac_arg
2127break
c906108c 2128else
bec39cab
AC
2129 echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
c906108c 2132fi
bec39cab 2133rm -f conftest.err conftest.$ac_objext
c906108c 2134done
bec39cab
AC
2135rm -f conftest.$ac_ext conftest.$ac_objext
2136CC=$ac_save_CC
c906108c
SS
2137
2138fi
2139
bec39cab
AC
2140case "x$ac_cv_prog_cc_stdc" in
2141 x|xno)
2142 echo "$as_me:$LINENO: result: none needed" >&5
2143echo "${ECHO_T}none needed" >&6 ;;
2144 *)
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2146echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2147 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2148esac
2149
bec39cab
AC
2150# Some people use a C++ compiler to compile C. Since we use `exit',
2151# in C++ we need to declare it. In case someone uses the same compiler
2152# for both compiling C and C++ we need to have the C++ compiler decide
2153# the declaration of exit, since it's the most demanding environment.
2154cat >conftest.$ac_ext <<_ACEOF
2155#ifndef __cplusplus
2156 choke me
2157#endif
2158_ACEOF
2159rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2162 ac_status=$?
2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 for ac_declaration in \
2182 '' \
2183 'extern "C" void std::exit (int) throw (); using std::exit;' \
2184 'extern "C" void std::exit (int); using std::exit;' \
2185 'extern "C" void exit (int) throw ();' \
2186 'extern "C" void exit (int);' \
2187 'void exit (int);'
2188do
2189 cat >conftest.$ac_ext <<_ACEOF
2190/* confdefs.h. */
2191_ACEOF
2192cat confdefs.h >>conftest.$ac_ext
2193cat >>conftest.$ac_ext <<_ACEOF
2194/* end confdefs.h. */
2195$ac_declaration
2196#include <stdlib.h>
2197int
2198main ()
2199{
2200exit (42);
2201 ;
2202 return 0;
2203}
2204_ACEOF
2205rm -f conftest.$ac_objext
2206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag"
2215 || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 :
2228else
2229 echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2231
bec39cab 2232continue
c906108c 2233fi
bec39cab
AC
2234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235 cat >conftest.$ac_ext <<_ACEOF
2236/* confdefs.h. */
2237_ACEOF
2238cat confdefs.h >>conftest.$ac_ext
2239cat >>conftest.$ac_ext <<_ACEOF
2240/* end confdefs.h. */
2241$ac_declaration
2242int
2243main ()
2244{
2245exit (42);
2246 ;
2247 return 0;
2248}
2249_ACEOF
2250rm -f conftest.$ac_objext
2251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 break
2273else
2274 echo "$as_me: failed program was:" >&5
2275sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2276
bec39cab
AC
2277fi
2278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279done
2280rm -f conftest*
2281if test -n "$ac_declaration"; then
2282 echo '#ifdef __cplusplus' >>confdefs.h
2283 echo $ac_declaration >>confdefs.h
2284 echo '#endif' >>confdefs.h
c906108c
SS
2285fi
2286
bec39cab
AC
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2290
bec39cab
AC
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293ac_ext=c
2294ac_cpp='$CPP $CPPFLAGS'
2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2298
60ca704f 2299
bec39cab
AC
2300cat >>confdefs.h <<\_ACEOF
2301#define _GNU_SOURCE 1
2302_ACEOF
c906108c
SS
2303
2304
8bb2c122 2305
bec39cab
AC
2306ac_ext=c
2307ac_cpp='$CPP $CPPFLAGS'
2308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2312echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2313# On Suns, sometimes $CPP names a directory.
2314if test -n "$CPP" && test -d "$CPP"; then
2315 CPP=
8bb2c122 2316fi
bec39cab
AC
2317if test -z "$CPP"; then
2318 if test "${ac_cv_prog_CPP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 # Double quotes because CPP needs to be expanded
2322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2323 do
2324 ac_preproc_ok=false
2325for ac_c_preproc_warn_flag in '' yes
2326do
2327 # Use a header file that comes with gcc, so configuring glibc
2328 # with a fresh cross-compiler works.
2329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 # <limits.h> exists even on freestanding compilers.
2331 # On the NeXT, cc -E runs the code through the compiler's parser,
2332 # not just through cpp. "Syntax error" is here to catch this case.
2333 cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h. */
2339#ifdef __STDC__
2340# include <limits.h>
2341#else
2342# include <assert.h>
2343#endif
2344 Syntax error
2345_ACEOF
2346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } >/dev/null; then
2354 if test -s conftest.err; then
2355 ac_cpp_err=$ac_c_preproc_warn_flag
2356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2357 else
2358 ac_cpp_err=
2359 fi
8bb2c122 2360else
bec39cab 2361 ac_cpp_err=yes
8bb2c122 2362fi
bec39cab
AC
2363if test -z "$ac_cpp_err"; then
2364 :
8bb2c122 2365else
bec39cab
AC
2366 echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 # Broken: fails on valid input.
2370continue
2371fi
2372rm -f conftest.err conftest.$ac_ext
2373
2374 # OK, works on sane cases. Now check whether non-existent headers
2375 # can be detected and how.
2376 cat >conftest.$ac_ext <<_ACEOF
2377/* confdefs.h. */
2378_ACEOF
2379cat confdefs.h >>conftest.$ac_ext
2380cat >>conftest.$ac_ext <<_ACEOF
2381/* end confdefs.h. */
2382#include <ac_nonexistent.h>
2383_ACEOF
2384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } >/dev/null; then
2392 if test -s conftest.err; then
2393 ac_cpp_err=$ac_c_preproc_warn_flag
2394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2395 else
2396 ac_cpp_err=
2397 fi
8bb2c122 2398else
bec39cab 2399 ac_cpp_err=yes
8bb2c122 2400fi
bec39cab
AC
2401if test -z "$ac_cpp_err"; then
2402 # Broken: success on invalid input.
2403continue
8bb2c122 2404else
bec39cab
AC
2405 echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2407
bec39cab
AC
2408 # Passes both tests.
2409ac_preproc_ok=:
2410break
8bb2c122 2411fi
bec39cab 2412rm -f conftest.err conftest.$ac_ext
8bb2c122 2413
bec39cab
AC
2414done
2415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2416rm -f conftest.err conftest.$ac_ext
2417if $ac_preproc_ok; then
2418 break
2419fi
8bb2c122 2420
bec39cab
AC
2421 done
2422 ac_cv_prog_CPP=$CPP
ddc9cd0f 2423
c906108c 2424fi
bec39cab
AC
2425 CPP=$ac_cv_prog_CPP
2426else
2427 ac_cv_prog_CPP=$CPP
c906108c 2428fi
bec39cab
AC
2429echo "$as_me:$LINENO: result: $CPP" >&5
2430echo "${ECHO_T}$CPP" >&6
2431ac_preproc_ok=false
2432for ac_c_preproc_warn_flag in '' yes
2433do
2434 # Use a header file that comes with gcc, so configuring glibc
2435 # with a fresh cross-compiler works.
2436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2437 # <limits.h> exists even on freestanding compilers.
2438 # On the NeXT, cc -E runs the code through the compiler's parser,
2439 # not just through cpp. "Syntax error" is here to catch this case.
2440 cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h. */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h. */
2446#ifdef __STDC__
2447# include <limits.h>
2448#else
2449# include <assert.h>
2450#endif
2451 Syntax error
2452_ACEOF
2453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } >/dev/null; then
2461 if test -s conftest.err; then
2462 ac_cpp_err=$ac_c_preproc_warn_flag
2463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2464 else
2465 ac_cpp_err=
2466 fi
c906108c 2467else
bec39cab 2468 ac_cpp_err=yes
c906108c 2469fi
bec39cab
AC
2470if test -z "$ac_cpp_err"; then
2471 :
c906108c 2472else
bec39cab
AC
2473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 # Broken: fails on valid input.
2477continue
2478fi
2479rm -f conftest.err conftest.$ac_ext
2480
2481 # OK, works on sane cases. Now check whether non-existent headers
2482 # can be detected and how.
2483 cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h. */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h. */
2489#include <ac_nonexistent.h>
2490_ACEOF
2491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502 else
2503 ac_cpp_err=
2504 fi
c906108c 2505else
bec39cab 2506 ac_cpp_err=yes
c906108c 2507fi
bec39cab
AC
2508if test -z "$ac_cpp_err"; then
2509 # Broken: success on invalid input.
2510continue
c906108c 2511else
bec39cab
AC
2512 echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2514
bec39cab
AC
2515 # Passes both tests.
2516ac_preproc_ok=:
2517break
c906108c 2518fi
bec39cab 2519rm -f conftest.err conftest.$ac_ext
c906108c 2520
bec39cab
AC
2521done
2522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2523rm -f conftest.err conftest.$ac_ext
2524if $ac_preproc_ok; then
c906108c
SS
2525 :
2526else
bec39cab
AC
2527 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2528See \`config.log' for more details." >&5
2529echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2530See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
c906108c 2532fi
c906108c 2533
bec39cab
AC
2534ac_ext=c
2535ac_cpp='$CPP $CPPFLAGS'
2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541echo "$as_me:$LINENO: checking for egrep" >&5
2542echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2543if test "${ac_cv_prog_egrep+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2547 then ac_cv_prog_egrep='grep -E'
2548 else ac_cv_prog_egrep='egrep'
2549 fi
c906108c 2550fi
bec39cab
AC
2551echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2552echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2553 EGREP=$ac_cv_prog_egrep
c906108c 2554
bec39cab
AC
2555
2556
2557echo "$as_me:$LINENO: checking for AIX" >&5
2558echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2559cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h. */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
2564/* end confdefs.h. */
2565#ifdef _AIX
2566 yes
2567#endif
2568
2569_ACEOF
c906108c 2570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2571 $EGREP "yes" >/dev/null 2>&1; then
2572 echo "$as_me:$LINENO: result: yes" >&5
2573echo "${ECHO_T}yes" >&6
2574cat >>confdefs.h <<\_ACEOF
2575#define _ALL_SOURCE 1
2576_ACEOF
2577
c906108c 2578else
bec39cab
AC
2579 echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6
c906108c
SS
2581fi
2582rm -f conftest*
2583
c906108c 2584
bec39cab
AC
2585echo "$as_me:$LINENO: checking for library containing strerror" >&5
2586echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2587if test "${ac_cv_search_strerror+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2589else
bec39cab
AC
2590 ac_func_search_save_LIBS=$LIBS
2591ac_cv_search_strerror=no
2592cat >conftest.$ac_ext <<_ACEOF
2593/* confdefs.h. */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h. */
c906108c 2598
bec39cab
AC
2599/* Override any gcc2 internal prototype to avoid an error. */
2600#ifdef __cplusplus
2601extern "C"
2602#endif
2603/* We use char because int might match the return type of a gcc2
2604 builtin and then its argument prototype would still apply. */
2605char strerror ();
2606int
2607main ()
2608{
2609strerror ();
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614rm -f conftest.$ac_objext conftest$ac_exeext
2615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2616 (eval $ac_link) 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag"
2624 || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest$ac_exeext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 ac_cv_search_strerror="none required"
2637else
2638 echo "$as_me: failed program was:" >&5
2639sed 's/^/| /' conftest.$ac_ext >&5
2640
2641fi
2642rm -f conftest.err conftest.$ac_objext \
2643 conftest$ac_exeext conftest.$ac_ext
2644if test "$ac_cv_search_strerror" = no; then
2645 for ac_lib in cposix; do
2646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2647 cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
2653
2654/* Override any gcc2 internal prototype to avoid an error. */
2655#ifdef __cplusplus
2656extern "C"
2657#endif
2658/* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2660char strerror ();
2661int
2662main ()
2663{
2664strerror ();
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669rm -f conftest.$ac_objext conftest$ac_exeext
2670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671 (eval $ac_link) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag"
2679 || test ! -s conftest.err'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 (eval $ac_try) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; } &&
2685 { ac_try='test -s conftest$ac_exeext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_search_strerror="-l$ac_lib"
2692break
c906108c 2693else
bec39cab
AC
2694 echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2696
2697fi
bec39cab
AC
2698rm -f conftest.err conftest.$ac_objext \
2699 conftest$ac_exeext conftest.$ac_ext
2700 done
c906108c 2701fi
bec39cab 2702LIBS=$ac_func_search_save_LIBS
c906108c 2703fi
bec39cab
AC
2704echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2705echo "${ECHO_T}$ac_cv_search_strerror" >&6
2706if test "$ac_cv_search_strerror" != no; then
2707 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2708
c906108c
SS
2709fi
2710
c906108c 2711
c906108c 2712
bec39cab
AC
2713
2714echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2715echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2716if test "${am_cv_prog_cc_stdc+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2718else
bec39cab
AC
2719 am_cv_prog_cc_stdc=no
2720ac_save_CC="$CC"
2721# Don't try gcc -ansi; that turns off useful extensions and
2722# breaks some systems' header files.
2723# AIX -qlanglvl=ansi
2724# Ultrix and OSF/1 -std1
2725# HP-UX 10.20 and later -Ae
2726# HP-UX older versions -Aa -D_HPUX_SOURCE
2727# SVR4 -Xc -D__EXTENSIONS__
2728for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729do
2730 CC="$ac_save_CC $ac_arg"
2731 cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h. */
2737#include <stdarg.h>
2738#include <stdio.h>
2739#include <sys/types.h>
2740#include <sys/stat.h>
2741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2742struct buf { int x; };
2743FILE * (*rcsopen) (struct buf *, struct stat *, int);
2744static char *e (p, i)
2745 char **p;
2746 int i;
2747{
2748 return p[i];
2749}
2750static char *f (char * (*g) (char **, int), char **p, ...)
2751{
2752 char *s;
2753 va_list v;
2754 va_start (v,p);
2755 s = g (p, va_arg (v,int));
2756 va_end (v);
2757 return s;
2758}
2759int test (int i, double x);
2760struct s1 {int (*f) (int a);};
2761struct s2 {int (*f) (double a);};
2762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2763int argc;
2764char **argv;
c906108c 2765
bec39cab
AC
2766int
2767main ()
2768{
c906108c 2769
bec39cab 2770return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2771
bec39cab
AC
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776rm -f conftest.$ac_objext
2777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_c_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2799else
bec39cab
AC
2800 echo "$as_me: failed program was:" >&5
2801sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2802
2803fi
bec39cab
AC
2804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805done
2806CC="$ac_save_CC"
c906108c
SS
2807
2808fi
2809
bec39cab
AC
2810if test -z "$am_cv_prog_cc_stdc"; then
2811 echo "$as_me:$LINENO: result: none needed" >&5
2812echo "${ECHO_T}none needed" >&6
c906108c 2813else
bec39cab
AC
2814 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2815echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2816fi
bec39cab
AC
2817case "x$am_cv_prog_cc_stdc" in
2818 x|xno) ;;
2819 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2820esac
c906108c 2821
c906108c 2822
bec39cab
AC
2823ac_aux_dir=
2824for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2825 if test -f $ac_dir/install-sh; then
2826 ac_aux_dir=$ac_dir
2827 ac_install_sh="$ac_aux_dir/install-sh -c"
2828 break
2829 elif test -f $ac_dir/install.sh; then
2830 ac_aux_dir=$ac_dir
2831 ac_install_sh="$ac_aux_dir/install.sh -c"
2832 break
2833 elif test -f $ac_dir/shtool; then
2834 ac_aux_dir=$ac_dir
2835 ac_install_sh="$ac_aux_dir/shtool install -c"
2836 break
2837 fi
2838done
2839if test -z "$ac_aux_dir"; then
2840 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2841echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2842 { (exit 1); exit 1; }; }
c906108c 2843fi
bec39cab
AC
2844ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2845ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2846ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2847
bec39cab
AC
2848# Make sure we can run config.sub.
2849$ac_config_sub sun4 >/dev/null 2>&1 ||
2850 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2851echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2852 { (exit 1); exit 1; }; }
2853
2854echo "$as_me:$LINENO: checking build system type" >&5
2855echo $ECHO_N "checking build system type... $ECHO_C" >&6
2856if test "${ac_cv_build+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859 ac_cv_build_alias=$build_alias
2860test -z "$ac_cv_build_alias" &&
2861 ac_cv_build_alias=`$ac_config_guess`
2862test -z "$ac_cv_build_alias" &&
2863 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2864echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2865 { (exit 1); exit 1; }; }
2866ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2867 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2868echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2869 { (exit 1); exit 1; }; }
2870
2871fi
2872echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2873echo "${ECHO_T}$ac_cv_build" >&6
2874build=$ac_cv_build
2875build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2876build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2877build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2878
2879
2880echo "$as_me:$LINENO: checking host system type" >&5
2881echo $ECHO_N "checking host system type... $ECHO_C" >&6
2882if test "${ac_cv_host+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885 ac_cv_host_alias=$host_alias
2886test -z "$ac_cv_host_alias" &&
2887 ac_cv_host_alias=$ac_cv_build_alias
2888ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2889 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2890echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2891 { (exit 1); exit 1; }; }
2892
2893fi
2894echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2895echo "${ECHO_T}$ac_cv_host" >&6
2896host=$ac_cv_host
2897host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2898host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2899host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2900
2901
2902echo "$as_me:$LINENO: checking target system type" >&5
2903echo $ECHO_N "checking target system type... $ECHO_C" >&6
2904if test "${ac_cv_target+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906else
2907 ac_cv_target_alias=$target_alias
2908test "x$ac_cv_target_alias" = "x" &&
2909 ac_cv_target_alias=$ac_cv_host_alias
2910ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2911 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2912echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2913 { (exit 1); exit 1; }; }
2914
2915fi
2916echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2917echo "${ECHO_T}$ac_cv_target" >&6
2918target=$ac_cv_target
2919target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2920target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2921target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2922
c906108c 2923
bec39cab
AC
2924# The aliases save the names the user supplied, while $host etc.
2925# will get canonicalized.
2926test -n "$target_alias" &&
2927 test "$program_prefix$program_suffix$program_transform_name" = \
2928 NONENONEs,x,x, &&
2929 program_prefix=${target_alias}-
c906108c 2930
c906108c 2931
bec39cab
AC
2932CONFIG_OBS=
2933CONFIG_DEPS=
2934CONFIG_SRCS=
2935ENABLE_CFLAGS=
c906108c 2936
bec39cab
AC
2937CONFIG_ALL=
2938CONFIG_CLEAN=
2939CONFIG_INSTALL=
2940CONFIG_UNINSTALL=
2941
2942
2943echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2944echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2945set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2946if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948else
2949 cat >conftest.make <<\_ACEOF
2950all:
2951 @echo 'ac_maketemp="$(MAKE)"'
2952_ACEOF
2953# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2954eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2955if test -n "$ac_maketemp"; then
2956 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 2957else
bec39cab 2958 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 2959fi
bec39cab
AC
2960rm -f conftest.make
2961fi
2962if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2963 echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6
2965 SET_MAKE=
2966else
2967 echo "$as_me:$LINENO: result: no" >&5
2968echo "${ECHO_T}no" >&6
2969 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
2970fi
2971
bec39cab
AC
2972if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2974set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2975echo "$as_me:$LINENO: checking for $ac_word" >&5
2976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977if test "${ac_cv_prog_RANLIB+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 if test -n "$RANLIB"; then
2981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995done
c906108c 2996
bec39cab
AC
2997fi
2998fi
2999RANLIB=$ac_cv_prog_RANLIB
3000if test -n "$RANLIB"; then
3001 echo "$as_me:$LINENO: result: $RANLIB" >&5
3002echo "${ECHO_T}$RANLIB" >&6
c906108c 3003else
bec39cab
AC
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
c906108c
SS
3006fi
3007
bec39cab
AC
3008fi
3009if test -z "$ac_cv_prog_RANLIB"; then
3010 ac_ct_RANLIB=$RANLIB
3011 # Extract the first word of "ranlib", so it can be a program name with args.
3012set dummy ranlib; ac_word=$2
3013echo "$as_me:$LINENO: checking for $ac_word" >&5
3014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3015if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 if test -n "$ac_ct_RANLIB"; then
3019 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_ac_ct_RANLIB="ranlib"
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032done
c906108c 3033done
bec39cab
AC
3034
3035 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3036fi
3037fi
3038ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3039if test -n "$ac_ct_RANLIB"; then
3040 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3041echo "${ECHO_T}$ac_ct_RANLIB" >&6
3042else
3043 echo "$as_me:$LINENO: result: no" >&5
3044echo "${ECHO_T}no" >&6
c906108c
SS
3045fi
3046
bec39cab 3047 RANLIB=$ac_ct_RANLIB
c906108c 3048else
bec39cab
AC
3049 RANLIB="$ac_cv_prog_RANLIB"
3050fi
3051
3052echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3053echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3054if test "${ac_cv_header_stdc+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3056else
bec39cab
AC
3057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
3063#include <stdlib.h>
3064#include <stdarg.h>
3065#include <string.h>
3066#include <float.h>
3067
3068int
c906108c
SS
3069main ()
3070{
bec39cab
AC
3071
3072 ;
3073 return 0;
c906108c 3074}
bec39cab
AC
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -z "$ac_c_werror_flag"
3086 || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_header_stdc=yes
c906108c 3099else
bec39cab
AC
3100 echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3102
bec39cab 3103ac_cv_header_stdc=no
c906108c 3104fi
bec39cab 3105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3106
bec39cab
AC
3107if test $ac_cv_header_stdc = yes; then
3108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115#include <string.h>
c906108c 3116
bec39cab
AC
3117_ACEOF
3118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3119 $EGREP "memchr" >/dev/null 2>&1; then
3120 :
c906108c 3121else
bec39cab 3122 ac_cv_header_stdc=no
c906108c 3123fi
bec39cab 3124rm -f conftest*
c906108c 3125
bec39cab 3126fi
c906108c 3127
bec39cab
AC
3128if test $ac_cv_header_stdc = yes; then
3129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3130 cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
3136#include <stdlib.h>
c906108c 3137
bec39cab
AC
3138_ACEOF
3139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3140 $EGREP "free" >/dev/null 2>&1; then
3141 :
c906108c 3142else
bec39cab 3143 ac_cv_header_stdc=no
c906108c
SS
3144fi
3145rm -f conftest*
c906108c 3146
c906108c 3147fi
c906108c 3148
bec39cab
AC
3149if test $ac_cv_header_stdc = yes; then
3150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3151 if test "$cross_compiling" = yes; then
bec39cab 3152 :
c906108c 3153else
bec39cab
AC
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */
3160#include <ctype.h>
3161#if ((' ' & 0x0FF) == 0x020)
3162# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3163# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3164#else
3165# define ISLOWER(c) \
3166 (('a' <= (c) && (c) <= 'i') \
3167 || ('j' <= (c) && (c) <= 'r') \
3168 || ('s' <= (c) && (c) <= 'z'))
3169# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3170#endif
c906108c 3171
bec39cab
AC
3172#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3173int
3174main ()
3175{
3176 int i;
3177 for (i = 0; i < 256; i++)
3178 if (XOR (islower (i), ISLOWER (i))
3179 || toupper (i) != TOUPPER (i))
3180 exit(2);
3181 exit (0);
3182}
3183_ACEOF
3184rm -f conftest$ac_exeext
3185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3186 (eval $ac_link) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 (eval $ac_try) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3195 :
3196else
3197 echo "$as_me: program exited with status $ac_status" >&5
3198echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3200
bec39cab
AC
3201( exit $ac_status )
3202ac_cv_header_stdc=no
3203fi
3204rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3205fi
3206fi
3207fi
3208echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3209echo "${ECHO_T}$ac_cv_header_stdc" >&6
3210if test $ac_cv_header_stdc = yes; then
c906108c 3211
bec39cab
AC
3212cat >>confdefs.h <<\_ACEOF
3213#define STDC_HEADERS 1
3214_ACEOF
c906108c 3215
bec39cab 3216fi
c906108c 3217
bec39cab
AC
3218echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3219echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3220if test "${ac_cv_c_const+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223 cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
c906108c 3229
bec39cab
AC
3230int
3231main ()
3232{
3233/* FIXME: Include the comments suggested by Paul. */
3234#ifndef __cplusplus
3235 /* Ultrix mips cc rejects this. */
3236 typedef int charset[2];
3237 const charset x;
3238 /* SunOS 4.1.1 cc rejects this. */
3239 char const *const *ccp;
3240 char **p;
3241 /* NEC SVR4.0.2 mips cc rejects this. */
3242 struct point {int x, y;};
3243 static struct point const zero = {0,0};
3244 /* AIX XL C 1.02.0.0 rejects this.
3245 It does not let you subtract one const X* pointer from another in
3246 an arm of an if-expression whose if-part is not a constant
3247 expression */
3248 const char *g = "string";
3249 ccp = &g + (g ? g-g : 0);
3250 /* HPUX 7.0 cc rejects these. */
3251 ++ccp;
3252 p = (char**) ccp;
3253 ccp = (char const *const *) p;
3254 { /* SCO 3.2v4 cc rejects this. */
3255 char *t;
3256 char const *s = 0 ? (char *) 0 : (char const *) 0;
3257
3258 *t++ = 0;
3259 }
3260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3261 int x[] = {25, 17};
3262 const int *foo = &x[0];
3263 ++foo;
3264 }
3265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3266 typedef const int *iptr;
3267 iptr p = 0;
3268 ++p;
3269 }
3270 { /* AIX XL C 1.02.0.0 rejects this saying
3271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3272 struct s { int j; const int *ap[3]; };
3273 struct s *b; b->j = 5;
3274 }
3275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3276 const int foo = 10;
3277 }
3278#endif
c906108c 3279
bec39cab
AC
3280 ;
3281 return 0;
3282}
3283_ACEOF
3284rm -f conftest.$ac_objext
3285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>conftest.er1
3287 ac_status=$?
3288 grep -v '^ *+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try='test -z "$ac_c_werror_flag"
3294 || test ! -s conftest.err'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 (eval $ac_try) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; } &&
3300 { ac_try='test -s conftest.$ac_objext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_cv_c_const=yes
c906108c 3307else
bec39cab
AC
3308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3310
bec39cab
AC
3311ac_cv_c_const=no
3312fi
3313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3314fi
bec39cab
AC
3315echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3316echo "${ECHO_T}$ac_cv_c_const" >&6
3317if test $ac_cv_c_const = no; then
c906108c 3318
bec39cab
AC
3319cat >>confdefs.h <<\_ACEOF
3320#define const
3321_ACEOF
c906108c
SS
3322
3323fi
3324
bec39cab
AC
3325echo "$as_me:$LINENO: checking for inline" >&5
3326echo $ECHO_N "checking for inline... $ECHO_C" >&6
3327if test "${ac_cv_c_inline+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3329else
bec39cab
AC
3330 ac_cv_c_inline=no
3331for ac_kw in inline __inline__ __inline; do
3332 cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h. */
3338#ifndef __cplusplus
3339typedef int foo_t;
3340static $ac_kw foo_t static_foo () {return 0; }
3341$ac_kw foo_t foo () {return 0; }
c906108c
SS
3342#endif
3343
bec39cab
AC
3344_ACEOF
3345rm -f conftest.$ac_objext
3346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -z "$ac_c_werror_flag"
3355 || test ! -s conftest.err'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 (eval $ac_try) 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 (eval $ac_try) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 ac_cv_c_inline=$ac_kw; break
c906108c 3368else
bec39cab
AC
3369 echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3371
c906108c 3372fi
bec39cab 3373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3374done
3375
bec39cab
AC
3376fi
3377echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3378echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3379
c906108c 3380
bec39cab
AC
3381case $ac_cv_c_inline in
3382 inline | yes) ;;
3383 *)
3384 case $ac_cv_c_inline in
3385 no) ac_val=;;
3386 *) ac_val=$ac_cv_c_inline;;
3387 esac
3388 cat >>confdefs.h <<_ACEOF
3389#ifndef __cplusplus
3390#define inline $ac_val
c906108c 3391#endif
bec39cab
AC
3392_ACEOF
3393 ;;
3394esac
c906108c 3395
bec39cab 3396# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3397
c906108c 3398
c906108c 3399
c906108c 3400
c906108c 3401
c906108c 3402
c906108c 3403
c906108c 3404
c906108c 3405
bec39cab
AC
3406for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3407 inttypes.h stdint.h unistd.h
3408do
3409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3410echo "$as_me:$LINENO: checking for $ac_header" >&5
3411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3412if eval "test \"\${$as_ac_Header+set}\" = set"; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421$ac_includes_default
3422
3423#include <$ac_header>
3424_ACEOF
3425rm -f conftest.$ac_objext
3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427 (eval $ac_compile) 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag"
3435 || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 eval "$as_ac_Header=yes"
3448else
3449 echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452eval "$as_ac_Header=no"
3453fi
3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455fi
3456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3458if test `eval echo '${'$as_ac_Header'}'` = yes; then
3459 cat >>confdefs.h <<_ACEOF
3460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3461_ACEOF
c906108c 3462
c906108c
SS
3463fi
3464
bec39cab 3465done
c906108c 3466
c906108c 3467
bec39cab
AC
3468echo "$as_me:$LINENO: checking for off_t" >&5
3469echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3470if test "${ac_cv_type_off_t+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3472else
bec39cab
AC
3473 cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h. */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h. */
3479$ac_includes_default
3480int
3481main ()
3482{
3483if ((off_t *) 0)
3484 return 0;
3485if (sizeof (off_t))
3486 return 0;
3487 ;
3488 return 0;
3489}
3490_ACEOF
3491rm -f conftest.$ac_objext
3492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } &&
3500 { ac_try='test -z "$ac_c_werror_flag"
3501 || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_type_off_t=yes
3514else
3515 echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518ac_cv_type_off_t=no
c906108c 3519fi
bec39cab 3520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3521fi
bec39cab
AC
3522echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3523echo "${ECHO_T}$ac_cv_type_off_t" >&6
3524if test $ac_cv_type_off_t = yes; then
3525 :
c906108c 3526else
bec39cab
AC
3527
3528cat >>confdefs.h <<_ACEOF
3529#define off_t long
3530_ACEOF
3531
3532fi
3533
3534echo "$as_me:$LINENO: checking for size_t" >&5
3535echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3536if test "${ac_cv_type_size_t+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539 cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
3545$ac_includes_default
3546int
3547main ()
3548{
3549if ((size_t *) 0)
3550 return 0;
3551if (sizeof (size_t))
3552 return 0;
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557rm -f conftest.$ac_objext
3558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_c_werror_flag"
3567 || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 ac_cv_type_size_t=yes
c906108c 3580else
bec39cab
AC
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584ac_cv_type_size_t=no
c906108c 3585fi
bec39cab 3586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3587fi
bec39cab
AC
3588echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3589echo "${ECHO_T}$ac_cv_type_size_t" >&6
3590if test $ac_cv_type_size_t = yes; then
3591 :
3592else
c906108c 3593
bec39cab
AC
3594cat >>confdefs.h <<_ACEOF
3595#define size_t unsigned
3596_ACEOF
c906108c 3597
c906108c 3598fi
bec39cab
AC
3599
3600# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3601# for constant arguments. Useless!
3602echo "$as_me:$LINENO: checking for working alloca.h" >&5
3603echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3604if test "${ac_cv_working_alloca_h+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607 cat >conftest.$ac_ext <<_ACEOF
3608/* confdefs.h. */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h. */
3613#include <alloca.h>
3614int
3615main ()
3616{
3617char *p = (char *) alloca (2 * sizeof (int));
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622rm -f conftest.$ac_objext conftest$ac_exeext
3623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3624 (eval $ac_link) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest$ac_exeext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_cv_working_alloca_h=yes
3645else
3646 echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649ac_cv_working_alloca_h=no
3650fi
3651rm -f conftest.err conftest.$ac_objext \
3652 conftest$ac_exeext conftest.$ac_ext
3653fi
3654echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3655echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3656if test $ac_cv_working_alloca_h = yes; then
3657
3658cat >>confdefs.h <<\_ACEOF
3659#define HAVE_ALLOCA_H 1
3660_ACEOF
c906108c
SS
3661
3662fi
bec39cab
AC
3663
3664echo "$as_me:$LINENO: checking for alloca" >&5
3665echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3666if test "${ac_cv_func_alloca_works+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3668else
bec39cab
AC
3669 cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
3675#ifdef __GNUC__
3676# define alloca __builtin_alloca
3677#else
3678# ifdef _MSC_VER
3679# include <malloc.h>
3680# define alloca _alloca
3681# else
3682# if HAVE_ALLOCA_H
3683# include <alloca.h>
3684# else
3685# ifdef _AIX
3686 #pragma alloca
3687# else
3688# ifndef alloca /* predefined by HP cc +Olibcalls */
3689char *alloca ();
3690# endif
3691# endif
3692# endif
3693# endif
3694#endif
c906108c 3695
bec39cab
AC
3696int
3697main ()
3698{
3699char *p = (char *) alloca (1);
3700 ;
3701 return 0;
3702}
3703_ACEOF
3704rm -f conftest.$ac_objext conftest$ac_exeext
3705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706 (eval $ac_link) 2>conftest.er1
3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -z "$ac_c_werror_flag"
3714 || test ! -s conftest.err'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } &&
3720 { ac_try='test -s conftest$ac_exeext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_cv_func_alloca_works=yes
c906108c 3727else
bec39cab
AC
3728 echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731ac_cv_func_alloca_works=no
c906108c 3732fi
bec39cab
AC
3733rm -f conftest.err conftest.$ac_objext \
3734 conftest$ac_exeext conftest.$ac_ext
c906108c 3735fi
bec39cab
AC
3736echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3737echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3738
3739if test $ac_cv_func_alloca_works = yes; then
3740
3741cat >>confdefs.h <<\_ACEOF
3742#define HAVE_ALLOCA 1
3743_ACEOF
c906108c 3744
c906108c 3745else
bec39cab
AC
3746 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3747# that cause trouble. Some versions do not even contain alloca or
3748# contain a buggy version. If you still want to use their alloca,
3749# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3750
bec39cab 3751ALLOCA=alloca.$ac_objext
c906108c 3752
bec39cab
AC
3753cat >>confdefs.h <<\_ACEOF
3754#define C_ALLOCA 1
3755_ACEOF
c906108c 3756
bec39cab
AC
3757
3758echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3759echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3760if test "${ac_cv_os_cray+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3762else
bec39cab
AC
3763 cat >conftest.$ac_ext <<_ACEOF
3764/* confdefs.h. */
3765_ACEOF
3766cat confdefs.h >>conftest.$ac_ext
3767cat >>conftest.$ac_ext <<_ACEOF
3768/* end confdefs.h. */
3769#if defined(CRAY) && ! defined(CRAY2)
3770webecray
3771#else
3772wenotbecray
3773#endif
3774
3775_ACEOF
3776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 $EGREP "webecray" >/dev/null 2>&1; then
3778 ac_cv_os_cray=yes
c906108c 3779else
bec39cab 3780 ac_cv_os_cray=no
c906108c 3781fi
bec39cab
AC
3782rm -f conftest*
3783
3784fi
3785echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3786echo "${ECHO_T}$ac_cv_os_cray" >&6
3787if test $ac_cv_os_cray = yes; then
3788 for ac_func in _getb67 GETB67 getb67; do
3789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3790echo "$as_me:$LINENO: checking for $ac_func" >&5
3791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3792if eval "test \"\${$as_ac_var+set}\" = set"; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
3801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3803#define $ac_func innocuous_$ac_func
3804
c906108c 3805/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3806 which can conflict with char $ac_func (); below.
3807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3808 <limits.h> exists even on freestanding compilers. */
3809
3810#ifdef __STDC__
3811# include <limits.h>
3812#else
3813# include <assert.h>
3814#endif
c906108c 3815
bec39cab 3816#undef $ac_func
c906108c 3817
bec39cab
AC
3818/* Override any gcc2 internal prototype to avoid an error. */
3819#ifdef __cplusplus
3820extern "C"
3821{
3822#endif
3823/* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3825char $ac_func ();
c906108c
SS
3826/* The GNU C library defines this for functions which it implements
3827 to always fail with ENOSYS. Some functions are actually named
3828 something starting with __ and the normal name is an alias. */
3829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3830choke me
3831#else
bec39cab
AC
3832char (*f) () = $ac_func;
3833#endif
3834#ifdef __cplusplus
3835}
c906108c
SS
3836#endif
3837
bec39cab
AC
3838int
3839main ()
3840{
3841return f != $ac_func;
3842 ;
3843 return 0;
3844}
3845_ACEOF
3846rm -f conftest.$ac_objext conftest$ac_exeext
3847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848 (eval $ac_link) 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_c_werror_flag"
3856 || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest$ac_exeext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 eval "$as_ac_var=yes"
3869else
3870 echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873eval "$as_ac_var=no"
3874fi
3875rm -f conftest.err conftest.$ac_objext \
3876 conftest$ac_exeext conftest.$ac_ext
3877fi
3878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3880if test `eval echo '${'$as_ac_var'}'` = yes; then
3881
3882cat >>confdefs.h <<_ACEOF
3883#define CRAY_STACKSEG_END $ac_func
3884_ACEOF
c906108c 3885
bec39cab 3886 break
c906108c 3887fi
c906108c 3888
c906108c 3889 done
c906108c 3890fi
bec39cab
AC
3891
3892echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3893echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3894if test "${ac_cv_c_stack_direction+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3896else
bec39cab
AC
3897 if test "$cross_compiling" = yes; then
3898 ac_cv_c_stack_direction=0
3899else
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906int
3907find_stack_direction ()
3908{
3909 static char *addr = 0;
3910 auto char dummy;
3911 if (addr == 0)
3912 {
3913 addr = &dummy;
3914 return find_stack_direction ();
3915 }
3916 else
3917 return (&dummy > addr) ? 1 : -1;
3918}
c906108c 3919
bec39cab
AC
3920int
3921main ()
3922{
3923 exit (find_stack_direction () < 0);
3924}
3925_ACEOF
3926rm -f conftest$ac_exeext
3927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_c_stack_direction=1
c906108c 3938else
bec39cab
AC
3939 echo "$as_me: program exited with status $ac_status" >&5
3940echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943( exit $ac_status )
3944ac_cv_c_stack_direction=-1
3945fi
3946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3947fi
c906108c 3948fi
bec39cab
AC
3949echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3950echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3951
3952cat >>confdefs.h <<_ACEOF
3953#define STACK_DIRECTION $ac_cv_c_stack_direction
3954_ACEOF
c906108c 3955
c906108c 3956
c906108c
SS
3957fi
3958
3959
c906108c 3960
bec39cab
AC
3961for ac_header in stdlib.h unistd.h
3962do
3963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3964if eval "test \"\${$as_ac_Header+set}\" = set"; then
3965 echo "$as_me:$LINENO: checking for $ac_header" >&5
3966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3967if eval "test \"\${$as_ac_Header+set}\" = set"; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969fi
3970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3972else
3973 # Is the header compilable?
3974echo "$as_me:$LINENO: checking $ac_header usability" >&5
3975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3976cat >conftest.$ac_ext <<_ACEOF
3977/* confdefs.h. */
3978_ACEOF
3979cat confdefs.h >>conftest.$ac_ext
3980cat >>conftest.$ac_ext <<_ACEOF
3981/* end confdefs.h. */
3982$ac_includes_default
3983#include <$ac_header>
3984_ACEOF
3985rm -f conftest.$ac_objext
3986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_header_compiler=yes
4008else
4009 echo "$as_me: failed program was:" >&5
4010sed 's/^/| /' conftest.$ac_ext >&5
4011
4012ac_header_compiler=no
4013fi
4014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4016echo "${ECHO_T}$ac_header_compiler" >&6
4017
4018# Is the header present?
4019echo "$as_me:$LINENO: checking $ac_header presence" >&5
4020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4021cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027#include <$ac_header>
4028_ACEOF
4029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } >/dev/null; then
4037 if test -s conftest.err; then
4038 ac_cpp_err=$ac_c_preproc_warn_flag
4039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4040 else
4041 ac_cpp_err=
4042 fi
c906108c 4043else
bec39cab 4044 ac_cpp_err=yes
c906108c 4045fi
bec39cab
AC
4046if test -z "$ac_cpp_err"; then
4047 ac_header_preproc=yes
c906108c 4048else
bec39cab
AC
4049 echo "$as_me: failed program was:" >&5
4050sed 's/^/| /' conftest.$ac_ext >&5
4051
4052 ac_header_preproc=no
c906108c 4053fi
bec39cab
AC
4054rm -f conftest.err conftest.$ac_ext
4055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4056echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4057
bec39cab
AC
4058# So? What about this header?
4059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4060 yes:no: )
4061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4065 ac_header_preproc=yes
4066 ;;
4067 no:yes:* )
4068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4080 (
4081 cat <<\_ASBOX
4082## ------------------------------------------ ##
4083## Report this to the AC_PACKAGE_NAME lists. ##
4084## ------------------------------------------ ##
4085_ASBOX
4086 ) |
4087 sed "s/^/$as_me: WARNING: /" >&2
4088 ;;
4089esac
4090echo "$as_me:$LINENO: checking for $ac_header" >&5
4091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4092if eval "test \"\${$as_ac_Header+set}\" = set"; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095 eval "$as_ac_Header=\$ac_header_preproc"
4096fi
4097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4099
4100fi
4101if test `eval echo '${'$as_ac_Header'}'` = yes; then
4102 cat >>confdefs.h <<_ACEOF
4103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104_ACEOF
4105
4106fi
4107
4108done
4109
4110
4111for ac_func in getpagesize
4112do
4113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4114echo "$as_me:$LINENO: checking for $ac_func" >&5
4115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4116if eval "test \"\${$as_ac_var+set}\" = set"; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119 cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h. */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h. */
4125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4127#define $ac_func innocuous_$ac_func
4128
4129/* System header to define __stub macros and hopefully few prototypes,
4130 which can conflict with char $ac_func (); below.
4131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4132 <limits.h> exists even on freestanding compilers. */
4133
4134#ifdef __STDC__
4135# include <limits.h>
4136#else
4137# include <assert.h>
4138#endif
4139
4140#undef $ac_func
4141
4142/* Override any gcc2 internal prototype to avoid an error. */
4143#ifdef __cplusplus
4144extern "C"
4145{
4146#endif
4147/* We use char because int might match the return type of a gcc2
4148 builtin and then its argument prototype would still apply. */
4149char $ac_func ();
4150/* The GNU C library defines this for functions which it implements
4151 to always fail with ENOSYS. Some functions are actually named
4152 something starting with __ and the normal name is an alias. */
4153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4154choke me
4155#else
4156char (*f) () = $ac_func;
4157#endif
4158#ifdef __cplusplus
4159}
4160#endif
4161
4162int
4163main ()
4164{
4165return f != $ac_func;
4166 ;
4167 return 0;
4168}
4169_ACEOF
4170rm -f conftest.$ac_objext conftest$ac_exeext
4171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172 (eval $ac_link) 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest$ac_exeext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 eval "$as_ac_var=yes"
4193else
4194 echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197eval "$as_ac_var=no"
4198fi
4199rm -f conftest.err conftest.$ac_objext \
4200 conftest$ac_exeext conftest.$ac_ext
4201fi
4202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4204if test `eval echo '${'$as_ac_var'}'` = yes; then
4205 cat >>confdefs.h <<_ACEOF
4206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4207_ACEOF
4208
4209fi
4210done
4211
4212echo "$as_me:$LINENO: checking for working mmap" >&5
4213echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4214if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 if test "$cross_compiling" = yes; then
4218 ac_cv_func_mmap_fixed_mapped=no
4219else
4220 cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h. */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h. */
4226$ac_includes_default
4227/* malloc might have been renamed as rpl_malloc. */
4228#undef malloc
4229
4230/* Thanks to Mike Haertel and Jim Avera for this test.
4231 Here is a matrix of mmap possibilities:
4232 mmap private not fixed
4233 mmap private fixed at somewhere currently unmapped
4234 mmap private fixed at somewhere already mapped
4235 mmap shared not fixed
4236 mmap shared fixed at somewhere currently unmapped
4237 mmap shared fixed at somewhere already mapped
4238 For private mappings, we should verify that changes cannot be read()
4239 back from the file, nor mmap's back from the file at a different
4240 address. (There have been systems where private was not correctly
4241 implemented like the infamous i386 svr4.0, and systems where the
4242 VM page cache was not coherent with the file system buffer cache
4243 like early versions of FreeBSD and possibly contemporary NetBSD.)
4244 For shared mappings, we should conversely verify that changes get
4245 propagated back to all the places they're supposed to be.
4246
4247 Grep wants private fixed already mapped.
4248 The main things grep needs to know about mmap are:
4249 * does it exist and is it safe to write into the mmap'd area
4250 * how to use it (BSD variants) */
4251
4252#include <fcntl.h>
4253#include <sys/mman.h>
4254
4255#if !STDC_HEADERS && !HAVE_STDLIB_H
4256char *malloc ();
4257#endif
4258
4259/* This mess was copied from the GNU getpagesize.h. */
4260#if !HAVE_GETPAGESIZE
4261/* Assume that all systems that can run configure have sys/param.h. */
4262# if !HAVE_SYS_PARAM_H
4263# define HAVE_SYS_PARAM_H 1
4264# endif
4265
4266# ifdef _SC_PAGESIZE
4267# define getpagesize() sysconf(_SC_PAGESIZE)
4268# else /* no _SC_PAGESIZE */
4269# if HAVE_SYS_PARAM_H
4270# include <sys/param.h>
4271# ifdef EXEC_PAGESIZE
4272# define getpagesize() EXEC_PAGESIZE
4273# else /* no EXEC_PAGESIZE */
4274# ifdef NBPG
4275# define getpagesize() NBPG * CLSIZE
4276# ifndef CLSIZE
4277# define CLSIZE 1
4278# endif /* no CLSIZE */
4279# else /* no NBPG */
4280# ifdef NBPC
4281# define getpagesize() NBPC
4282# else /* no NBPC */
4283# ifdef PAGESIZE
4284# define getpagesize() PAGESIZE
4285# endif /* PAGESIZE */
4286# endif /* no NBPC */
4287# endif /* no NBPG */
4288# endif /* no EXEC_PAGESIZE */
4289# else /* no HAVE_SYS_PARAM_H */
4290# define getpagesize() 8192 /* punt totally */
4291# endif /* no HAVE_SYS_PARAM_H */
4292# endif /* no _SC_PAGESIZE */
4293
4294#endif /* no HAVE_GETPAGESIZE */
4295
4296int
4297main ()
4298{
4299 char *data, *data2, *data3;
4300 int i, pagesize;
4301 int fd;
4302
4303 pagesize = getpagesize ();
4304
4305 /* First, make a file with some known garbage in it. */
4306 data = (char *) malloc (pagesize);
4307 if (!data)
4308 exit (1);
4309 for (i = 0; i < pagesize; ++i)
4310 *(data + i) = rand ();
4311 umask (0);
4312 fd = creat ("conftest.mmap", 0600);
4313 if (fd < 0)
4314 exit (1);
4315 if (write (fd, data, pagesize) != pagesize)
4316 exit (1);
4317 close (fd);
4318
4319 /* Next, try to mmap the file at a fixed address which already has
4320 something else allocated at it. If we can, also make sure that
4321 we see the same garbage. */
4322 fd = open ("conftest.mmap", O_RDWR);
4323 if (fd < 0)
4324 exit (1);
4325 data2 = (char *) malloc (2 * pagesize);
4326 if (!data2)
4327 exit (1);
4328 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4329 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4330 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4331 exit (1);
4332 for (i = 0; i < pagesize; ++i)
4333 if (*(data + i) != *(data2 + i))
4334 exit (1);
4335
4336 /* Finally, make sure that changes to the mapped area do not
4337 percolate back to the file as seen by read(). (This is a bug on
4338 some variants of i386 svr4.0.) */
4339 for (i = 0; i < pagesize; ++i)
4340 *(data2 + i) = *(data2 + i) + 1;
4341 data3 = (char *) malloc (pagesize);
4342 if (!data3)
4343 exit (1);
4344 if (read (fd, data3, pagesize) != pagesize)
4345 exit (1);
4346 for (i = 0; i < pagesize; ++i)
4347 if (*(data + i) != *(data3 + i))
4348 exit (1);
4349 close (fd);
4350 exit (0);
4351}
4352_ACEOF
4353rm -f conftest$ac_exeext
4354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355 (eval $ac_link) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 ac_cv_func_mmap_fixed_mapped=yes
4365else
4366 echo "$as_me: program exited with status $ac_status" >&5
4367echo "$as_me: failed program was:" >&5
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
4370( exit $ac_status )
4371ac_cv_func_mmap_fixed_mapped=no
4372fi
4373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4374fi
4375fi
4376echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4377echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4378if test $ac_cv_func_mmap_fixed_mapped = yes; then
4379
4380cat >>confdefs.h <<\_ACEOF
4381#define HAVE_MMAP 1
4382_ACEOF
4383
4384fi
4385rm -f conftest.mmap
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4398unistd.h values.h sys/param.h
4399do
4400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4401if eval "test \"\${$as_ac_Header+set}\" = set"; then
4402 echo "$as_me:$LINENO: checking for $ac_header" >&5
4403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4404if eval "test \"\${$as_ac_Header+set}\" = set"; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406fi
4407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409else
4410 # Is the header compilable?
4411echo "$as_me:$LINENO: checking $ac_header usability" >&5
4412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4413cat >conftest.$ac_ext <<_ACEOF
4414/* confdefs.h. */
4415_ACEOF
4416cat confdefs.h >>conftest.$ac_ext
4417cat >>conftest.$ac_ext <<_ACEOF
4418/* end confdefs.h. */
4419$ac_includes_default
4420#include <$ac_header>
4421_ACEOF
4422rm -f conftest.$ac_objext
4423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>conftest.er1
4425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -z "$ac_c_werror_flag"
4432 || test ! -s conftest.err'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 (eval $ac_try) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; } &&
4438 { ac_try='test -s conftest.$ac_objext'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4444 ac_header_compiler=yes
4445else
4446 echo "$as_me: failed program was:" >&5
4447sed 's/^/| /' conftest.$ac_ext >&5
4448
4449ac_header_compiler=no
4450fi
4451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4453echo "${ECHO_T}$ac_header_compiler" >&6
4454
4455# Is the header present?
4456echo "$as_me:$LINENO: checking $ac_header presence" >&5
4457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4458cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h. */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h. */
4464#include <$ac_header>
4465_ACEOF
4466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } >/dev/null; then
4474 if test -s conftest.err; then
4475 ac_cpp_err=$ac_c_preproc_warn_flag
4476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4477 else
4478 ac_cpp_err=
4479 fi
4480else
4481 ac_cpp_err=yes
4482fi
4483if test -z "$ac_cpp_err"; then
4484 ac_header_preproc=yes
4485else
4486 echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 ac_header_preproc=no
4490fi
4491rm -f conftest.err conftest.$ac_ext
4492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4493echo "${ECHO_T}$ac_header_preproc" >&6
4494
4495# So? What about this header?
4496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4497 yes:no: )
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4502 ac_header_preproc=yes
4503 ;;
4504 no:yes:* )
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4517 (
4518 cat <<\_ASBOX
4519## ------------------------------------------ ##
4520## Report this to the AC_PACKAGE_NAME lists. ##
4521## ------------------------------------------ ##
4522_ASBOX
4523 ) |
4524 sed "s/^/$as_me: WARNING: /" >&2
4525 ;;
4526esac
4527echo "$as_me:$LINENO: checking for $ac_header" >&5
4528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4529if eval "test \"\${$as_ac_Header+set}\" = set"; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 eval "$as_ac_Header=\$ac_header_preproc"
4533fi
4534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4536
4537fi
4538if test `eval echo '${'$as_ac_Header'}'` = yes; then
4539 cat >>confdefs.h <<_ACEOF
4540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4541_ACEOF
4542
4543fi
4544
4545done
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4558__argz_count __argz_stringify __argz_next
4559do
4560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4561echo "$as_me:$LINENO: checking for $ac_func" >&5
4562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4563if eval "test \"\${$as_ac_var+set}\" = set"; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565else
4566 cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h. */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h. */
4572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4574#define $ac_func innocuous_$ac_func
4575
4576/* System header to define __stub macros and hopefully few prototypes,
4577 which can conflict with char $ac_func (); below.
4578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4579 <limits.h> exists even on freestanding compilers. */
4580
4581#ifdef __STDC__
4582# include <limits.h>
4583#else
4584# include <assert.h>
4585#endif
4586
4587#undef $ac_func
4588
4589/* Override any gcc2 internal prototype to avoid an error. */
4590#ifdef __cplusplus
4591extern "C"
4592{
4593#endif
4594/* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4596char $ac_func ();
4597/* The GNU C library defines this for functions which it implements
4598 to always fail with ENOSYS. Some functions are actually named
4599 something starting with __ and the normal name is an alias. */
4600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4601choke me
4602#else
4603char (*f) () = $ac_func;
4604#endif
4605#ifdef __cplusplus
4606}
4607#endif
4608
4609int
4610main ()
4611{
4612return f != $ac_func;
4613 ;
4614 return 0;
4615}
4616_ACEOF
4617rm -f conftest.$ac_objext conftest$ac_exeext
4618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 eval "$as_ac_var=yes"
4640else
4641 echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644eval "$as_ac_var=no"
4645fi
4646rm -f conftest.err conftest.$ac_objext \
4647 conftest$ac_exeext conftest.$ac_ext
4648fi
4649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4651if test `eval echo '${'$as_ac_var'}'` = yes; then
4652 cat >>confdefs.h <<_ACEOF
4653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4654_ACEOF
4655
4656fi
4657done
4658
4659
4660 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4661
4662for ac_func in stpcpy
4663do
4664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4665echo "$as_me:$LINENO: checking for $ac_func" >&5
4666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4667if eval "test \"\${$as_ac_var+set}\" = set"; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 cat >conftest.$ac_ext <<_ACEOF
4671/* confdefs.h. */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h. */
4676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4678#define $ac_func innocuous_$ac_func
4679
4680/* System header to define __stub macros and hopefully few prototypes,
4681 which can conflict with char $ac_func (); below.
4682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4683 <limits.h> exists even on freestanding compilers. */
4684
4685#ifdef __STDC__
4686# include <limits.h>
4687#else
4688# include <assert.h>
4689#endif
4690
4691#undef $ac_func
4692
4693/* Override any gcc2 internal prototype to avoid an error. */
4694#ifdef __cplusplus
4695extern "C"
4696{
4697#endif
4698/* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4700char $ac_func ();
4701/* The GNU C library defines this for functions which it implements
4702 to always fail with ENOSYS. Some functions are actually named
4703 something starting with __ and the normal name is an alias. */
4704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4705choke me
4706#else
4707char (*f) () = $ac_func;
4708#endif
4709#ifdef __cplusplus
4710}
4711#endif
4712
4713int
4714main ()
4715{
4716return f != $ac_func;
4717 ;
4718 return 0;
4719}
4720_ACEOF
4721rm -f conftest.$ac_objext conftest$ac_exeext
4722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 eval "$as_ac_var=yes"
4744else
4745 echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748eval "$as_ac_var=no"
4749fi
4750rm -f conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752fi
4753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4755if test `eval echo '${'$as_ac_var'}'` = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4758_ACEOF
4759
4760fi
4761done
4762
4763 fi
4764 if test "${ac_cv_func_stpcpy}" = "yes"; then
4765
4766cat >>confdefs.h <<\_ACEOF
4767#define HAVE_STPCPY 1
4768_ACEOF
4769
4770 fi
4771
4772 if test $ac_cv_header_locale_h = yes; then
4773 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4774echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4775if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4777else
4778 cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h. */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h. */
4784#include <locale.h>
4785int
4786main ()
4787{
4788return LC_MESSAGES
4789 ;
4790 return 0;
4791}
4792_ACEOF
4793rm -f conftest.$ac_objext conftest$ac_exeext
4794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4795 (eval $ac_link) 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -z "$ac_c_werror_flag"
4803 || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest$ac_exeext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 am_cv_val_LC_MESSAGES=yes
4816else
4817 echo "$as_me: failed program was:" >&5
4818sed 's/^/| /' conftest.$ac_ext >&5
4819
4820am_cv_val_LC_MESSAGES=no
4821fi
4822rm -f conftest.err conftest.$ac_objext \
4823 conftest$ac_exeext conftest.$ac_ext
4824fi
4825echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4826echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4827 if test $am_cv_val_LC_MESSAGES = yes; then
4828
4829cat >>confdefs.h <<\_ACEOF
4830#define HAVE_LC_MESSAGES 1
4831_ACEOF
4832
4833 fi
4834 fi
4835 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4836echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4837 # Check whether --enable-nls or --disable-nls was given.
4838if test "${enable_nls+set}" = set; then
4839 enableval="$enable_nls"
4840 USE_NLS=$enableval
4841else
4842 USE_NLS=yes
4843fi;
4844 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4845echo "${ECHO_T}$USE_NLS" >&6
4846
4847
4848 USE_INCLUDED_LIBINTL=no
4849
4850 if test "$USE_NLS" = "yes"; then
bec39cab
AC
4851 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4852echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4853
4854# Check whether --with-included-gettext or --without-included-gettext was given.
4855if test "${with_included_gettext+set}" = set; then
4856 withval="$with_included_gettext"
4857 nls_cv_force_use_gnu_gettext=$withval
4858else
4859 nls_cv_force_use_gnu_gettext=no
4860fi;
4861 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4862echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4863
4864 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4865 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4866 nls_cv_header_intl=
4867 nls_cv_header_libgt=
a53bf506 4868 CATOBJEXT=
bec39cab
AC
4869
4870 if test "${ac_cv_header_libintl_h+set}" = set; then
4871 echo "$as_me:$LINENO: checking for libintl.h" >&5
4872echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4873if test "${ac_cv_header_libintl_h+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875fi
4876echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4877echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4878else
4879 # Is the header compilable?
4880echo "$as_me:$LINENO: checking libintl.h usability" >&5
4881echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4882cat >conftest.$ac_ext <<_ACEOF
4883/* confdefs.h. */
4884_ACEOF
4885cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h. */
4888$ac_includes_default
4889#include <libintl.h>
4890_ACEOF
4891rm -f conftest.$ac_objext
4892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } &&
4900 { ac_try='test -z "$ac_c_werror_flag"
4901 || test ! -s conftest.err'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; } &&
4907 { ac_try='test -s conftest.$ac_objext'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 ac_header_compiler=yes
4914else
4915 echo "$as_me: failed program was:" >&5
4916sed 's/^/| /' conftest.$ac_ext >&5
4917
4918ac_header_compiler=no
4919fi
4920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4922echo "${ECHO_T}$ac_header_compiler" >&6
4923
4924# Is the header present?
4925echo "$as_me:$LINENO: checking libintl.h presence" >&5
4926echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4927cat >conftest.$ac_ext <<_ACEOF
4928/* confdefs.h. */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h. */
4933#include <libintl.h>
4934_ACEOF
4935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } >/dev/null; then
4943 if test -s conftest.err; then
4944 ac_cpp_err=$ac_c_preproc_warn_flag
4945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4946 else
4947 ac_cpp_err=
4948 fi
4949else
4950 ac_cpp_err=yes
4951fi
4952if test -z "$ac_cpp_err"; then
4953 ac_header_preproc=yes
4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 ac_header_preproc=no
4959fi
4960rm -f conftest.err conftest.$ac_ext
4961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4962echo "${ECHO_T}$ac_header_preproc" >&6
4963
4964# So? What about this header?
4965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4966 yes:no: )
4967 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4968echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4969 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4970echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4971 ac_header_preproc=yes
4972 ;;
4973 no:yes:* )
4974 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4975echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4976 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4977echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4978 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4979echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4981echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4982 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4983echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4984 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4985echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4986 (
4987 cat <<\_ASBOX
4988## ------------------------------------------ ##
4989## Report this to the AC_PACKAGE_NAME lists. ##
4990## ------------------------------------------ ##
4991_ASBOX
4992 ) |
4993 sed "s/^/$as_me: WARNING: /" >&2
4994 ;;
4995esac
4996echo "$as_me:$LINENO: checking for libintl.h" >&5
4997echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4998if test "${ac_cv_header_libintl_h+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001 ac_cv_header_libintl_h=$ac_header_preproc
5002fi
5003echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5004echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5005
5006fi
5007if test $ac_cv_header_libintl_h = yes; then
5008 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5009echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5010if test "${gt_cv_func_gettext_libc+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012else
5013 cat >conftest.$ac_ext <<_ACEOF
5014/* confdefs.h. */
5015_ACEOF
5016cat confdefs.h >>conftest.$ac_ext
5017cat >>conftest.$ac_ext <<_ACEOF
5018/* end confdefs.h. */
5019#include <libintl.h>
5020int
5021main ()
5022{
5023return (int) gettext ("")
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028rm -f conftest.$ac_objext conftest$ac_exeext
5029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5030 (eval $ac_link) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest$ac_exeext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 gt_cv_func_gettext_libc=yes
5051else
5052 echo "$as_me: failed program was:" >&5
5053sed 's/^/| /' conftest.$ac_ext >&5
5054
5055gt_cv_func_gettext_libc=no
5056fi
5057rm -f conftest.err conftest.$ac_objext \
5058 conftest$ac_exeext conftest.$ac_ext
5059fi
5060echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5061echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5062
5063 if test "$gt_cv_func_gettext_libc" != "yes"; then
5064 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5065echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5066if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 ac_check_lib_save_LIBS=$LIBS
5070LIBS="-lintl $LIBS"
5071cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077
5078/* Override any gcc2 internal prototype to avoid an error. */
5079#ifdef __cplusplus
5080extern "C"
5081#endif
5082/* We use char because int might match the return type of a gcc2
5083 builtin and then its argument prototype would still apply. */
5084char bindtextdomain ();
5085int
5086main ()
5087{
5088bindtextdomain ();
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093rm -f conftest.$ac_objext conftest$ac_exeext
5094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest$ac_exeext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_cv_lib_intl_bindtextdomain=yes
5116else
5117 echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120ac_cv_lib_intl_bindtextdomain=no
5121fi
5122rm -f conftest.err conftest.$ac_objext \
5123 conftest$ac_exeext conftest.$ac_ext
5124LIBS=$ac_check_lib_save_LIBS
5125fi
5126echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5127echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5128if test $ac_cv_lib_intl_bindtextdomain = yes; then
5129 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5130echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5131if test "${gt_cv_func_gettext_libintl+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134 cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h. */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h. */
5140
5141int
5142main ()
5143{
5144return (int) gettext ("")
5145 ;
5146 return 0;
5147}
5148_ACEOF
5149rm -f conftest.$ac_objext conftest$ac_exeext
5150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5151 (eval $ac_link) 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } &&
5158 { ac_try='test -z "$ac_c_werror_flag"
5159 || test ! -s conftest.err'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; } &&
5165 { ac_try='test -s conftest$ac_exeext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 gt_cv_func_gettext_libintl=yes
5172else
5173 echo "$as_me: failed program was:" >&5
5174sed 's/^/| /' conftest.$ac_ext >&5
5175
5176gt_cv_func_gettext_libintl=no
5177fi
5178rm -f conftest.err conftest.$ac_objext \
5179 conftest$ac_exeext conftest.$ac_ext
5180fi
5181echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5182echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5183fi
5184
5185 fi
5186
5187 if test "$gt_cv_func_gettext_libc" = "yes" \
5188 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5189
5190cat >>confdefs.h <<\_ACEOF
5191#define HAVE_GETTEXT 1
5192_ACEOF
5193
5194 # Extract the first word of "msgfmt", so it can be a program name with args.
5195set dummy msgfmt; ac_word=$2
5196echo "$as_me:$LINENO: checking for $ac_word" >&5
5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198if test "${ac_cv_path_MSGFMT+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201 case "$MSGFMT" in
5202 /*)
5203 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5204 ;;
5205 *)
5206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5207 for ac_dir in $PATH; do
5208 test -z "$ac_dir" && ac_dir=.
5209 if test -f $ac_dir/$ac_word; then
5210 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5211 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5212 break
5213 fi
5214 fi
5215 done
5216 IFS="$ac_save_ifs"
5217 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5218 ;;
5219esac
5220fi
5221MSGFMT="$ac_cv_path_MSGFMT"
5222if test -n "$MSGFMT"; then
5223 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5224echo "${ECHO_T}$MSGFMT" >&6
5225else
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228fi
5229 if test "$MSGFMT" != "no"; then
5230
5231for ac_func in dcgettext
5232do
5233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5234echo "$as_me:$LINENO: checking for $ac_func" >&5
5235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5236if eval "test \"\${$as_ac_var+set}\" = set"; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h. */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h. */
5245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5247#define $ac_func innocuous_$ac_func
5248
5249/* System header to define __stub macros and hopefully few prototypes,
5250 which can conflict with char $ac_func (); below.
5251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5252 <limits.h> exists even on freestanding compilers. */
5253
5254#ifdef __STDC__
5255# include <limits.h>
5256#else
5257# include <assert.h>
5258#endif
5259
5260#undef $ac_func
5261
5262/* Override any gcc2 internal prototype to avoid an error. */
5263#ifdef __cplusplus
5264extern "C"
5265{
5266#endif
5267/* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5269char $ac_func ();
5270/* The GNU C library defines this for functions which it implements
5271 to always fail with ENOSYS. Some functions are actually named
5272 something starting with __ and the normal name is an alias. */
5273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5274choke me
5275#else
5276char (*f) () = $ac_func;
5277#endif
5278#ifdef __cplusplus
5279}
5280#endif
5281
5282int
5283main ()
5284{
5285return f != $ac_func;
5286 ;
5287 return 0;
5288}
5289_ACEOF
5290rm -f conftest.$ac_objext conftest$ac_exeext
5291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292 (eval $ac_link) 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_c_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest$ac_exeext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 eval "$as_ac_var=yes"
5313else
5314 echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317eval "$as_ac_var=no"
5318fi
5319rm -f conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
5321fi
5322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5324if test `eval echo '${'$as_ac_var'}'` = yes; then
5325 cat >>confdefs.h <<_ACEOF
5326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5327_ACEOF
5328
5329fi
5330done
5331
5332 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5333set dummy gmsgfmt; ac_word=$2
5334echo "$as_me:$LINENO: checking for $ac_word" >&5
5335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5336if test "${ac_cv_path_GMSGFMT+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339 case $GMSGFMT in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5342 ;;
5343 *)
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355done
5356done
5357
5358 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5359 ;;
5360esac
5361fi
5362GMSGFMT=$ac_cv_path_GMSGFMT
5363
5364if test -n "$GMSGFMT"; then
5365 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5366echo "${ECHO_T}$GMSGFMT" >&6
5367else
5368 echo "$as_me:$LINENO: result: no" >&5
5369echo "${ECHO_T}no" >&6
5370fi
5371
5372 # Extract the first word of "xgettext", so it can be a program name with args.
5373set dummy xgettext; ac_word=$2
5374echo "$as_me:$LINENO: checking for $ac_word" >&5
5375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376if test "${ac_cv_path_XGETTEXT+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378else
5379 case "$XGETTEXT" in
5380 /*)
5381 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5382 ;;
5383 *)
5384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5385 for ac_dir in $PATH; do
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f $ac_dir/$ac_word; then
5388 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5389 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5390 break
5391 fi
5392 fi
5393 done
5394 IFS="$ac_save_ifs"
5395 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5396 ;;
5397esac
5398fi
5399XGETTEXT="$ac_cv_path_XGETTEXT"
5400if test -n "$XGETTEXT"; then
5401 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5402echo "${ECHO_T}$XGETTEXT" >&6
5403else
5404 echo "$as_me:$LINENO: result: no" >&5
5405echo "${ECHO_T}no" >&6
5406fi
5407
5408 cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414
5415int
5416main ()
5417{
5418extern int _nl_msg_cat_cntr;
5419 return _nl_msg_cat_cntr
5420 ;
5421 return 0;
5422}
5423_ACEOF
5424rm -f conftest.$ac_objext conftest$ac_exeext
5425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5426 (eval $ac_link) 2>conftest.er1
5427 ac_status=$?
5428 grep -v '^ *+' conftest.er1 >conftest.err
5429 rm -f conftest.er1
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try='test -z "$ac_c_werror_flag"
5434 || test ! -s conftest.err'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; } &&
5440 { ac_try='test -s conftest$ac_exeext'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; }; then
5446 CATOBJEXT=.gmo
5447 DATADIRNAME=share
5448else
5449 echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452CATOBJEXT=.mo
5453 DATADIRNAME=lib
5454fi
5455rm -f conftest.err conftest.$ac_objext \
5456 conftest$ac_exeext conftest.$ac_ext
5457 INSTOBJEXT=.mo
5458 fi
5459 fi
5460
5461fi
5462
5463
5464
5465
a53bf506 5466 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
5467 # Neither gettext nor catgets in included in the C library.
5468 # Fall back on GNU gettext library (assuming it is present).
5469 nls_cv_use_gnu_gettext=yes
bec39cab
AC
5470 fi
5471 fi
5472
5473 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5474 INTLOBJS="\$(GETTOBJS)"
5475 # Extract the first word of "msgfmt", so it can be a program name with args.
5476set dummy msgfmt; ac_word=$2
5477echo "$as_me:$LINENO: checking for $ac_word" >&5
5478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5479if test "${ac_cv_path_MSGFMT+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482 case "$MSGFMT" in
5483 /*)
5484 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5485 ;;
5486 *)
5487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5488 for ac_dir in $PATH; do
5489 test -z "$ac_dir" && ac_dir=.
5490 if test -f $ac_dir/$ac_word; then
5491 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5492 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5493 break
5494 fi
5495 fi
5496 done
5497 IFS="$ac_save_ifs"
5498 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5499 ;;
5500esac
5501fi
5502MSGFMT="$ac_cv_path_MSGFMT"
5503if test -n "$MSGFMT"; then
5504 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5505echo "${ECHO_T}$MSGFMT" >&6
5506else
5507 echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6
5509fi
5510
5511 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5512set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5513echo "$as_me:$LINENO: checking for $ac_word" >&5
5514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515if test "${ac_cv_path_GMSGFMT+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 case $GMSGFMT in
5519 [\\/]* | ?:[\\/]*)
5520 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5521 ;;
5522 *)
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534done
5535done
5536
5537 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5538 ;;
5539esac
5540fi
5541GMSGFMT=$ac_cv_path_GMSGFMT
5542
5543if test -n "$GMSGFMT"; then
5544 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5545echo "${ECHO_T}$GMSGFMT" >&6
5546else
5547 echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549fi
5550
5551 # Extract the first word of "xgettext", so it can be a program name with args.
5552set dummy xgettext; ac_word=$2
5553echo "$as_me:$LINENO: checking for $ac_word" >&5
5554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5555if test "${ac_cv_path_XGETTEXT+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558 case "$XGETTEXT" in
5559 /*)
5560 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5561 ;;
5562 *)
5563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5564 for ac_dir in $PATH; do
5565 test -z "$ac_dir" && ac_dir=.
5566 if test -f $ac_dir/$ac_word; then
5567 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5568 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5569 break
5570 fi
5571 fi
5572 done
5573 IFS="$ac_save_ifs"
5574 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5575 ;;
5576esac
5577fi
5578XGETTEXT="$ac_cv_path_XGETTEXT"
5579if test -n "$XGETTEXT"; then
5580 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5581echo "${ECHO_T}$XGETTEXT" >&6
5582else
5583 echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585fi
5586
5587
5588 USE_INCLUDED_LIBINTL=yes
5589 CATOBJEXT=.gmo
5590 INSTOBJEXT=.mo
5591 DATADIRNAME=share
5592 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5593 INTLLIBS=$INTLDEPS
5594 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5595 nls_cv_header_intl=libintl.h
5596 nls_cv_header_libgt=libgettext.h
5597 fi
5598
5599 if test "$XGETTEXT" != ":"; then
5600 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5601 : ;
5602 else
5603 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5604echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5605 XGETTEXT=":"
5606 fi
5607 fi
5608
5609 # We need to process the po/ directory.
5610 POSUB=po
5611 else
5612 DATADIRNAME=share
5613 nls_cv_header_intl=libintl.h
5614 nls_cv_header_libgt=libgettext.h
5615 fi
5616
5617 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5618 # because some of the sources are only built for this goal.
5619 if test "$PACKAGE" = gettext; then
5620 USE_NLS=yes
5621 USE_INCLUDED_LIBINTL=yes
5622 fi
5623
5624 for lang in $ALL_LINGUAS; do
5625 GMOFILES="$GMOFILES $lang.gmo"
5626 POFILES="$POFILES $lang.po"
5627 done
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
c46f8c51
AC
5640 if test "x$CATOBJEXT" != "x"; then
5641
5642cat >>confdefs.h <<\_ACEOF
5643#define ENABLE_NLS 1
5644_ACEOF
5645
5646 fi
bec39cab
AC
5647
5648
5649 if test "x$CATOBJEXT" != "x"; then
5650 if test "x$ALL_LINGUAS" = "x"; then
5651 LINGUAS=
5652 else
5653 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5654echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5655 NEW_LINGUAS=
5656 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5657 case "$ALL_LINGUAS" in
5658 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5659 esac
5660 done
5661 LINGUAS=$NEW_LINGUAS
5662 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5663echo "${ECHO_T}$LINGUAS" >&6
5664 fi
5665
5666 if test -n "$LINGUAS"; then
5667 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5668 fi
5669 fi
5670
5671 if test $ac_cv_header_locale_h = yes; then
5672 INCLUDE_LOCALE_H="#include <locale.h>"
5673 else
5674 INCLUDE_LOCALE_H="\
5675/* The system does not provide the header <locale.h>. Take care yourself. */"
5676 fi
5677
5678
5679 if test -f $srcdir/po2tbl.sed.in; then
5680 if test "$CATOBJEXT" = ".cat"; then
5681 if test "${ac_cv_header_linux_version_h+set}" = set; then
5682 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5683echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5684if test "${ac_cv_header_linux_version_h+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686fi
5687echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5688echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5689else
5690 # Is the header compilable?
5691echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5692echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5693cat >conftest.$ac_ext <<_ACEOF
5694/* confdefs.h. */
5695_ACEOF
5696cat confdefs.h >>conftest.$ac_ext
5697cat >>conftest.$ac_ext <<_ACEOF
5698/* end confdefs.h. */
5699$ac_includes_default
5700#include <linux/version.h>
5701_ACEOF
5702rm -f conftest.$ac_objext
5703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704 (eval $ac_compile) 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -z "$ac_c_werror_flag"
5712 || test ! -s conftest.err'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try='test -s conftest.$ac_objext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 ac_header_compiler=yes
5725else
5726 echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
5729ac_header_compiler=no
5730fi
5731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5732echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5733echo "${ECHO_T}$ac_header_compiler" >&6
5734
5735# Is the header present?
5736echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5737echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5738cat >conftest.$ac_ext <<_ACEOF
5739/* confdefs.h. */
5740_ACEOF
5741cat confdefs.h >>conftest.$ac_ext
5742cat >>conftest.$ac_ext <<_ACEOF
5743/* end confdefs.h. */
5744#include <linux/version.h>
5745_ACEOF
5746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } >/dev/null; then
5754 if test -s conftest.err; then
5755 ac_cpp_err=$ac_c_preproc_warn_flag
5756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5757 else
5758 ac_cpp_err=
5759 fi
5760else
5761 ac_cpp_err=yes
5762fi
5763if test -z "$ac_cpp_err"; then
5764 ac_header_preproc=yes
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_header_preproc=no
5770fi
5771rm -f conftest.err conftest.$ac_ext
5772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5773echo "${ECHO_T}$ac_header_preproc" >&6
5774
5775# So? What about this header?
5776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5777 yes:no: )
5778 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5779echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5781echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5782 ac_header_preproc=yes
5783 ;;
5784 no:yes:* )
5785 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5786echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5787 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5788echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5789 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5790echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5791 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5792echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5793 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5794echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5796echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5797 (
5798 cat <<\_ASBOX
5799## ------------------------------------------ ##
5800## Report this to the AC_PACKAGE_NAME lists. ##
5801## ------------------------------------------ ##
5802_ASBOX
5803 ) |
5804 sed "s/^/$as_me: WARNING: /" >&2
5805 ;;
5806esac
5807echo "$as_me:$LINENO: checking for linux/version.h" >&5
5808echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5809if test "${ac_cv_header_linux_version_h+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812 ac_cv_header_linux_version_h=$ac_header_preproc
5813fi
5814echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5815echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5816
5817fi
5818if test $ac_cv_header_linux_version_h = yes; then
5819 msgformat=linux
5820else
5821 msgformat=xopen
5822fi
5823
5824
5825
5826 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5827 fi
5828 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5829 $srcdir/po2tbl.sed.in > po2tbl.sed
5830 fi
5831
5832 if test "$PACKAGE" = "gettext"; then
5833 GT_NO="#NO#"
5834 GT_YES=
5835 else
5836 GT_NO=
5837 GT_YES="#YES#"
5838 fi
5839
5840
5841
5842 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5843
5844
5845 l=
5846
5847
5848 if test -f $srcdir/po/POTFILES.in; then
5849 test -d po || mkdir po
5850 if test "x$srcdir" != "x."; then
5851 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5852 posrcprefix="$srcdir/"
5853 else
5854 posrcprefix="../$srcdir/"
5855 fi
5856 else
5857 posrcprefix="../"
5858 fi
5859 rm -f po/POTFILES
5860 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5861 < $srcdir/po/POTFILES.in > po/POTFILES
5862 fi
5863
5864
5865localedir='${datadir}/locale'
5866
5867
5868if test "x$POSUB" != x; then
5869
5870 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5871echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5872 # Look for .po and .gmo files in the source directory.
5873 CATALOGS=
5874 XLINGUAS=
5875 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5876 # If there aren't any .gmo files the shell will give us the
5877 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5878 # weeded out.
5879 case "$cat" in *\**)
5880 continue;;
5881 esac
5882 # The quadruple backslash is collapsed to a double backslash
5883 # by the backticks, then collapsed again by the double quotes,
5884 # leaving us with one backslash in the sed expression (right
5885 # before the dot that mustn't act as a wildcard).
5886 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5887 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5888 # The user is allowed to set LINGUAS to a list of languages to
5889 # install catalogs for. If it's empty that means "all of them."
5890 if test "x$LINGUAS" = x; then
5891 CATALOGS="$CATALOGS $cat"
5892 XLINGUAS="$XLINGUAS $lang"
5893 else
5894 case "$LINGUAS" in *$lang*)
5895 CATALOGS="$CATALOGS $cat"
5896 XLINGUAS="$XLINGUAS $lang"
5897 ;;
5898 esac
5899 fi
5900 done
5901 LINGUAS="$XLINGUAS"
5902 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5903echo "${ECHO_T}$LINGUAS" >&6
5904
5905 CONFIG_ALL="$CONFIG_ALL all-po"
5906 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5907 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5908 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5909fi
5910
5911PACKAGE=gdb
5912
5913cat >>confdefs.h <<_ACEOF
5914#define PACKAGE "$PACKAGE"
5915_ACEOF
5916
5917
5918
5919debugdir=${libdir}/debug
5920
5921
5922# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5923if test "${with_separate_debug_dir+set}" = set; then
5924 withval="$with_separate_debug_dir"
5925 debugdir="${withval}"
5926fi;
5927
5928
5929 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5931 ac_define_dir=`eval echo $debugdir`
5932 ac_define_dir=`eval echo $ac_define_dir`
5933
5934cat >>confdefs.h <<_ACEOF
5935#define DEBUGDIR "$ac_define_dir"
5936_ACEOF
5937
5938
5939#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5940
5941
5942
5943subdirs="$subdirs doc testsuite"
5944
5945
5946. $srcdir/configure.host
5947
5948. $srcdir/configure.tgt
5949
5950# Fetch the default architecture and default target vector from BFD.
5951targ=$target; . $srcdir/../bfd/config.bfd
5952
5953# We only want the first architecture, so strip off the others if
5954# there is more than one.
5955targ_archs=`echo $targ_archs | sed 's/ .*//'`
5956
5957if test "x$targ_archs" != x; then
5958
5959cat >>confdefs.h <<_ACEOF
5960#define DEFAULT_BFD_ARCH $targ_archs
5961_ACEOF
5962
5963fi
5964if test "x$targ_defvec" != x; then
5965
5966cat >>confdefs.h <<_ACEOF
5967#define DEFAULT_BFD_VEC $targ_defvec
5968_ACEOF
5969
5970fi
5971
5972test "$program_prefix" != NONE &&
5973 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5974# Use a double $ so make ignores it.
5975test "$program_suffix" != NONE &&
5976 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5977# Double any \ or $. echo might interpret backslashes.
5978# By default was `s,x,x', remove it if useless.
5979cat <<\_ACEOF >conftest.sed
5980s/[\\$]/&&/g;s/;s,x,x,$//
5981_ACEOF
5982program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5983rm conftest.sed
5984
5985
5986# The CLI cannot be disabled yet, but may be in the future.
5987
5988# Enable CLI.
5989# Check whether --enable-gdbcli or --disable-gdbcli was given.
5990if test "${enable_gdbcli+set}" = set; then
5991 enableval="$enable_gdbcli"
5992 case $enableval in
5993 yes)
5994 ;;
5995 no)
5996 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5997echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5998 { (exit 1); exit 1; }; } ;;
5999 *)
6000 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6001echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6002 { (exit 1); exit 1; }; } ;;
6003 esac
6004else
6005 enable_gdbcli=yes
6006fi;
6007if test x"$enable_gdbcli" = xyes; then
6008 if test -d $srcdir/cli; then
6009 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6010 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6011 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6012 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6013 fi
6014fi
6015
6016# Enable MI.
6017# Check whether --enable-gdbmi or --disable-gdbmi was given.
6018if test "${enable_gdbmi+set}" = set; then
6019 enableval="$enable_gdbmi"
6020 case $enableval in
6021 yes | no)
6022 ;;
6023 *)
6024 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6025echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6026 { (exit 1); exit 1; }; } ;;
6027 esac
6028else
6029 enable_gdbmi=yes
6030fi;
6031if test x"$enable_gdbmi" = xyes; then
6032 if test -d $srcdir/mi; then
6033 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6034 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6035 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6036 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6037 fi
6038fi
6039
6040# Enable TUI.
6041# Check whether --enable-tui or --disable-tui was given.
6042if test "${enable_tui+set}" = set; then
6043 enableval="$enable_tui"
6044 case $enableval in
6045 yes | no)
6046 ;;
6047 *)
6048 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6049echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6050 { (exit 1); exit 1; }; } ;;
6051 esac
6052else
6053 enable_tui=yes
6054fi;
6055
6056# Enable gdbtk.
6057# Check whether --enable-gdbtk or --disable-gdbtk was given.
6058if test "${enable_gdbtk+set}" = set; then
6059 enableval="$enable_gdbtk"
6060 case $enableval in
6061 yes | no)
6062 ;;
6063 *)
6064 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6065echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6066 { (exit 1); exit 1; }; } ;;
6067 esac
6068else
04ac69aa 6069 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
6070 enable_gdbtk=yes
6071 else
6072 enable_gdbtk=no
6073 fi
6074fi;
6075# We unconditionally disable gdbtk tests on selected platforms.
6076case $host_os in
6077 go32* | windows*)
6078 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6079echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6080 enable_gdbtk=no ;;
6081esac
6082
6083# Libunwind support.
6084
6085# Check whether --with-libunwind or --without-libunwind was given.
6086if test "${with_libunwind+set}" = set; then
6087 withval="$with_libunwind"
6088 case "${withval}" in
6089 yes) enable_libunwind=yes ;;
6090 no) enable_libunwind=no ;;
6091 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6092echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6093 { (exit 1); exit 1; }; } ;;
6094esac
6095else
6096
6097
6098for ac_header in libunwind.h
6099do
6100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6101if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo "$as_me:$LINENO: checking for $ac_header" >&5
6103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6104if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106fi
6107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6109else
6110 # Is the header compilable?
6111echo "$as_me:$LINENO: checking $ac_header usability" >&5
6112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6113cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h. */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h. */
6119$ac_includes_default
6120#include <$ac_header>
6121_ACEOF
6122rm -f conftest.$ac_objext
6123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag"
6132 || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try='test -s conftest.$ac_objext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 ac_header_compiler=yes
6145else
6146 echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149ac_header_compiler=no
6150fi
6151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6153echo "${ECHO_T}$ac_header_compiler" >&6
6154
6155# Is the header present?
6156echo "$as_me:$LINENO: checking $ac_header presence" >&5
6157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6158cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
6164#include <$ac_header>
6165_ACEOF
6166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } >/dev/null; then
6174 if test -s conftest.err; then
6175 ac_cpp_err=$ac_c_preproc_warn_flag
6176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6177 else
6178 ac_cpp_err=
6179 fi
6180else
6181 ac_cpp_err=yes
6182fi
6183if test -z "$ac_cpp_err"; then
6184 ac_header_preproc=yes
6185else
6186 echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 ac_header_preproc=no
6190fi
6191rm -f conftest.err conftest.$ac_ext
6192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6193echo "${ECHO_T}$ac_header_preproc" >&6
6194
6195# So? What about this header?
6196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6197 yes:no: )
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6202 ac_header_preproc=yes
6203 ;;
6204 no:yes:* )
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6217 (
6218 cat <<\_ASBOX
6219## ------------------------------------------ ##
6220## Report this to the AC_PACKAGE_NAME lists. ##
6221## ------------------------------------------ ##
6222_ASBOX
6223 ) |
6224 sed "s/^/$as_me: WARNING: /" >&2
6225 ;;
6226esac
6227echo "$as_me:$LINENO: checking for $ac_header" >&5
6228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6229if eval "test \"\${$as_ac_Header+set}\" = set"; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231else
6232 eval "$as_ac_Header=\$ac_header_preproc"
6233fi
6234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6236
6237fi
6238if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239 cat >>confdefs.h <<_ACEOF
6240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6241_ACEOF
6242
6243fi
6244
6245done
6246
6247
6248for ac_header in libunwind-ia64.h
6249do
6250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6251if eval "test \"\${$as_ac_Header+set}\" = set"; then
6252 echo "$as_me:$LINENO: checking for $ac_header" >&5
6253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6254if eval "test \"\${$as_ac_Header+set}\" = set"; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256fi
6257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6259else
6260 # Is the header compilable?
6261echo "$as_me:$LINENO: checking $ac_header usability" >&5
6262echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6263cat >conftest.$ac_ext <<_ACEOF
6264/* confdefs.h. */
6265_ACEOF
6266cat confdefs.h >>conftest.$ac_ext
6267cat >>conftest.$ac_ext <<_ACEOF
6268/* end confdefs.h. */
6269$ac_includes_default
6270#include <$ac_header>
6271_ACEOF
6272rm -f conftest.$ac_objext
6273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_header_compiler=yes
6295else
6296 echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299ac_header_compiler=no
6300fi
6301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6303echo "${ECHO_T}$ac_header_compiler" >&6
6304
6305# Is the header present?
6306echo "$as_me:$LINENO: checking $ac_header presence" >&5
6307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6308cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h. */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h. */
6314#include <$ac_header>
6315_ACEOF
6316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } >/dev/null; then
6324 if test -s conftest.err; then
6325 ac_cpp_err=$ac_c_preproc_warn_flag
6326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6327 else
6328 ac_cpp_err=
6329 fi
6330else
6331 ac_cpp_err=yes
6332fi
6333if test -z "$ac_cpp_err"; then
6334 ac_header_preproc=yes
6335else
6336 echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ac_header_preproc=no
6340fi
6341rm -f conftest.err conftest.$ac_ext
6342echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6343echo "${ECHO_T}$ac_header_preproc" >&6
6344
6345# So? What about this header?
6346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6347 yes:no: )
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6352 ac_header_preproc=yes
6353 ;;
6354 no:yes:* )
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6367 (
6368 cat <<\_ASBOX
6369## ------------------------------------------ ##
6370## Report this to the AC_PACKAGE_NAME lists. ##
6371## ------------------------------------------ ##
6372_ASBOX
6373 ) |
6374 sed "s/^/$as_me: WARNING: /" >&2
6375 ;;
6376esac
6377echo "$as_me:$LINENO: checking for $ac_header" >&5
6378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6379if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
6382 eval "$as_ac_Header=\$ac_header_preproc"
6383fi
6384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386
6387fi
6388if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6391_ACEOF
6392
6393fi
6394
6395done
6396
6397 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6398 enable_libunwind=yes;
6399 fi
6400
6401fi;
6402
6403if test x"$enable_libunwind" = xyes; then
6404
6405for ac_header in libunwind.h
6406do
6407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6408if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409 echo "$as_me:$LINENO: checking for $ac_header" >&5
6410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6411if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413fi
6414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6416else
6417 # Is the header compilable?
6418echo "$as_me:$LINENO: checking $ac_header usability" >&5
6419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6420cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h. */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h. */
6426$ac_includes_default
6427#include <$ac_header>
6428_ACEOF
6429rm -f conftest.$ac_objext
6430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -z "$ac_c_werror_flag"
6439 || test ! -s conftest.err'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; } &&
6445 { ac_try='test -s conftest.$ac_objext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 (eval $ac_try) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_header_compiler=yes
6452else
6453 echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
6455
6456ac_header_compiler=no
6457fi
6458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6459echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6460echo "${ECHO_T}$ac_header_compiler" >&6
6461
6462# Is the header present?
6463echo "$as_me:$LINENO: checking $ac_header presence" >&5
6464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6465cat >conftest.$ac_ext <<_ACEOF
6466/* confdefs.h. */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h. */
6471#include <$ac_header>
6472_ACEOF
6473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6475 ac_status=$?
6476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } >/dev/null; then
6481 if test -s conftest.err; then
6482 ac_cpp_err=$ac_c_preproc_warn_flag
6483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6484 else
6485 ac_cpp_err=
6486 fi
6487else
6488 ac_cpp_err=yes
6489fi
6490if test -z "$ac_cpp_err"; then
6491 ac_header_preproc=yes
6492else
6493 echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 ac_header_preproc=no
6497fi
6498rm -f conftest.err conftest.$ac_ext
6499echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6500echo "${ECHO_T}$ac_header_preproc" >&6
6501
6502# So? What about this header?
6503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6504 yes:no: )
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6509 ac_header_preproc=yes
6510 ;;
6511 no:yes:* )
6512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6515echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6519echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6524 (
6525 cat <<\_ASBOX
6526## ------------------------------------------ ##
6527## Report this to the AC_PACKAGE_NAME lists. ##
6528## ------------------------------------------ ##
6529_ASBOX
6530 ) |
6531 sed "s/^/$as_me: WARNING: /" >&2
6532 ;;
6533esac
6534echo "$as_me:$LINENO: checking for $ac_header" >&5
6535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539 eval "$as_ac_Header=\$ac_header_preproc"
6540fi
6541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6543
6544fi
6545if test `eval echo '${'$as_ac_Header'}'` = yes; then
6546 cat >>confdefs.h <<_ACEOF
6547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6548_ACEOF
6549
6550fi
6551
6552done
6553
6554
6555for ac_header in libunwind-ia64.h
6556do
6557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6558if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo "$as_me:$LINENO: checking for $ac_header" >&5
6560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6561if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563fi
6564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566else
6567 # Is the header compilable?
6568echo "$as_me:$LINENO: checking $ac_header usability" >&5
6569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6570cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h. */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h. */
6576$ac_includes_default
6577#include <$ac_header>
6578_ACEOF
6579rm -f conftest.$ac_objext
6580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest.$ac_objext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_header_compiler=yes
6602else
6603 echo "$as_me: failed program was:" >&5
6604sed 's/^/| /' conftest.$ac_ext >&5
6605
6606ac_header_compiler=no
6607fi
6608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6610echo "${ECHO_T}$ac_header_compiler" >&6
6611
6612# Is the header present?
6613echo "$as_me:$LINENO: checking $ac_header presence" >&5
6614echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6615cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
6621#include <$ac_header>
6622_ACEOF
6623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } >/dev/null; then
6631 if test -s conftest.err; then
6632 ac_cpp_err=$ac_c_preproc_warn_flag
6633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6634 else
6635 ac_cpp_err=
6636 fi
6637else
6638 ac_cpp_err=yes
6639fi
6640if test -z "$ac_cpp_err"; then
6641 ac_header_preproc=yes
6642else
6643 echo "$as_me: failed program was:" >&5
6644sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 ac_header_preproc=no
6647fi
6648rm -f conftest.err conftest.$ac_ext
6649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650echo "${ECHO_T}$ac_header_preproc" >&6
6651
6652# So? What about this header?
6653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6654 yes:no: )
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6659 ac_header_preproc=yes
6660 ;;
6661 no:yes:* )
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6674 (
6675 cat <<\_ASBOX
6676## ------------------------------------------ ##
6677## Report this to the AC_PACKAGE_NAME lists. ##
6678## ------------------------------------------ ##
6679_ASBOX
6680 ) |
6681 sed "s/^/$as_me: WARNING: /" >&2
6682 ;;
6683esac
6684echo "$as_me:$LINENO: checking for $ac_header" >&5
6685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689 eval "$as_ac_Header=\$ac_header_preproc"
6690fi
6691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6693
6694fi
6695if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698_ACEOF
6699
6700fi
6701
6702done
6703
60ca704f
SE
6704
6705cat >>confdefs.h <<\_ACEOF
bec39cab
AC
6706#define HAVE_LIBUNWIND 1
6707_ACEOF
6708
6709 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6710 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6711 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6712fi
6713
6714# Profiling support.
6715# Check whether --enable-profiling or --disable-profiling was given.
6716if test "${enable_profiling+set}" = set; then
6717 enableval="$enable_profiling"
6718 case $enableval in
6719 yes | no)
6720 ;;
6721 *)
6722 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6723echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6724 { (exit 1); exit 1; }; } ;;
6725 esac
6726else
6727 enable_profiling=no
6728fi;
6729
6730
6731
6732for ac_func in monstartup _mcleanup
6733do
6734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6735echo "$as_me:$LINENO: checking for $ac_func" >&5
6736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6737if eval "test \"\${$as_ac_var+set}\" = set"; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740 cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h. */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h. */
6746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6748#define $ac_func innocuous_$ac_func
6749
6750/* System header to define __stub macros and hopefully few prototypes,
6751 which can conflict with char $ac_func (); below.
6752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6753 <limits.h> exists even on freestanding compilers. */
6754
6755#ifdef __STDC__
6756# include <limits.h>
6757#else
6758# include <assert.h>
6759#endif
6760
6761#undef $ac_func
6762
6763/* Override any gcc2 internal prototype to avoid an error. */
6764#ifdef __cplusplus
6765extern "C"
6766{
6767#endif
6768/* We use char because int might match the return type of a gcc2
6769 builtin and then its argument prototype would still apply. */
6770char $ac_func ();
6771/* The GNU C library defines this for functions which it implements
6772 to always fail with ENOSYS. Some functions are actually named
6773 something starting with __ and the normal name is an alias. */
6774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6775choke me
6776#else
6777char (*f) () = $ac_func;
6778#endif
6779#ifdef __cplusplus
6780}
6781#endif
6782
6783int
6784main ()
6785{
6786return f != $ac_func;
6787 ;
6788 return 0;
6789}
6790_ACEOF
6791rm -f conftest.$ac_objext conftest$ac_exeext
6792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6793 (eval $ac_link) 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } &&
6800 { ac_try='test -z "$ac_c_werror_flag"
6801 || test ! -s conftest.err'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; } &&
6807 { ac_try='test -s conftest$ac_exeext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 eval "$as_ac_var=yes"
6814else
6815 echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818eval "$as_ac_var=no"
6819fi
6820rm -f conftest.err conftest.$ac_objext \
6821 conftest$ac_exeext conftest.$ac_ext
6822fi
6823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6825if test `eval echo '${'$as_ac_var'}'` = yes; then
6826 cat >>confdefs.h <<_ACEOF
6827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6828_ACEOF
6829
6830fi
6831done
6832
6833echo "$as_me:$LINENO: checking for _etext" >&5
6834echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6835if test "${ac_cv_var__etext+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838 cat >conftest.$ac_ext <<_ACEOF
6839/* confdefs.h. */
6840_ACEOF
6841cat confdefs.h >>conftest.$ac_ext
6842cat >>conftest.$ac_ext <<_ACEOF
6843/* end confdefs.h. */
6844#include <stdlib.h>
6845extern char _etext;
6846
6847int
6848main ()
6849{
6850free (&_etext);
6851 ;
6852 return 0;
6853}
6854_ACEOF
6855rm -f conftest.$ac_objext conftest$ac_exeext
6856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6857 (eval $ac_link) 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest$ac_exeext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_cv_var__etext=yes
6878else
6879 echo "$as_me: failed program was:" >&5
6880sed 's/^/| /' conftest.$ac_ext >&5
6881
6882ac_cv_var__etext=no
6883fi
6884rm -f conftest.err conftest.$ac_objext \
6885 conftest$ac_exeext conftest.$ac_ext
6886fi
6887echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6888echo "${ECHO_T}$ac_cv_var__etext" >&6
6889if test $ac_cv_var__etext = yes; then
6890
6891cat >>confdefs.h <<\_ACEOF
6892#define HAVE__ETEXT 1
6893_ACEOF
6894
6895fi
6896if test "$enable_profiling" = yes ; then
6897 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6898 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6899echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6900 { (exit 1); exit 1; }; }
6901 fi
6902 PROFILE_CFLAGS=-pg
6903 OLD_CFLAGS="$CFLAGS"
6904 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6905
6906 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6907echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6908if test "${ac_cv_cc_supports_pg+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6910else
bec39cab
AC
6911 cat >conftest.$ac_ext <<_ACEOF
6912/* confdefs.h. */
6913_ACEOF
6914cat confdefs.h >>conftest.$ac_ext
6915cat >>conftest.$ac_ext <<_ACEOF
6916/* end confdefs.h. */
6917
6918int
6919main ()
6920{
6921int x;
6922 ;
6923 return 0;
6924}
6925_ACEOF
6926rm -f conftest.$ac_objext
6927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6928 (eval $ac_compile) 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try='test -z "$ac_c_werror_flag"
6936 || test ! -s conftest.err'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; } &&
6942 { ac_try='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_cc_supports_pg=yes
6949else
6950 echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
6953ac_cv_cc_supports_pg=no
6954fi
6955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956fi
6957echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6958echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6959
6960 if test $ac_cv_cc_supports_pg = no; then
6961 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6962echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6963 { (exit 1); exit 1; }; }
6964 fi
6965
6966 CFLAGS="$OLD_CFLAGS"
6967fi
6968
6969# --------------------- #
6970# Checks for programs. #
6971# --------------------- #
6972
6973for ac_prog in gawk mawk nawk awk
6974do
6975 # Extract the first word of "$ac_prog", so it can be a program name with args.
6976set dummy $ac_prog; ac_word=$2
6977echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6979if test "${ac_cv_prog_AWK+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982 if test -n "$AWK"; then
6983 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6984else
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_AWK="$ac_prog"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996done
6997done
6998
6999fi
7000fi
7001AWK=$ac_cv_prog_AWK
7002if test -n "$AWK"; then
7003 echo "$as_me:$LINENO: result: $AWK" >&5
7004echo "${ECHO_T}$AWK" >&6
7005else
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
7008fi
7009
7010 test -n "$AWK" && break
7011done
7012
7013# Find a good install program. We prefer a C program (faster),
7014# so one script is as good as another. But avoid the broken or
7015# incompatible versions:
7016# SysV /etc/install, /usr/sbin/install
7017# SunOS /usr/etc/install
7018# IRIX /sbin/install
7019# AIX /bin/install
7020# AmigaOS /C/install, which installs bootblocks on floppy discs
7021# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7022# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7023# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7024# OS/2's system install, which has a completely different semantic
7025# ./install, which can be erroneously created by make from ./install.sh.
7026echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7027echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7028if test -z "$INSTALL"; then
7029if test "${ac_cv_path_install+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 # Account for people who put trailing slashes in PATH elements.
7038case $as_dir/ in
7039 ./ | .// | /cC/* | \
7040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7042 /usr/ucb/* ) ;;
c906108c 7043 *)
bec39cab
AC
7044 # OSF1 and SCO ODT 3.0 have their own names for install.
7045 # Don't use installbsd from OSF since it installs stuff as root
7046 # by default.
7047 for ac_prog in ginstall scoinst install; do
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7050 if test $ac_prog = install &&
7051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052 # AIX install. It has an incompatible calling convention.
7053 :
7054 elif test $ac_prog = install &&
7055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056 # program-specific install script used by HP pwplus--don't use.
7057 :
7058 else
7059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7060 break 3
7061 fi
7062 fi
7063 done
7064 done
7065 ;;
c906108c 7066esac
bec39cab
AC
7067done
7068
7069
7070fi
7071 if test "${ac_cv_path_install+set}" = set; then
7072 INSTALL=$ac_cv_path_install
7073 else
7074 # As a last resort, use the slow shell script. We don't cache a
7075 # path for INSTALL within a source directory, because that will
7076 # break other packages using the cache if that directory is
7077 # removed, or if the path is relative.
7078 INSTALL=$ac_install_sh
7079 fi
7080fi
7081echo "$as_me:$LINENO: result: $INSTALL" >&5
7082echo "${ECHO_T}$INSTALL" >&6
7083
7084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7085# It thinks the first close brace ends the variable substitution.
7086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7087
7088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7089
7090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7091
7092echo "$as_me:$LINENO: checking whether ln -s works" >&5
7093echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7094LN_S=$as_ln_s
7095if test "$LN_S" = "ln -s"; then
7096 echo "$as_me:$LINENO: result: yes" >&5
7097echo "${ECHO_T}yes" >&6
7098else
7099 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7100echo "${ECHO_T}no, using $LN_S" >&6
7101fi
7102
7103if test -n "$ac_tool_prefix"; then
7104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7105set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7106echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7108if test "${ac_cv_prog_RANLIB+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111 if test -n "$RANLIB"; then
7112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125done
7126done
7127
7128fi
7129fi
7130RANLIB=$ac_cv_prog_RANLIB
7131if test -n "$RANLIB"; then
7132 echo "$as_me:$LINENO: result: $RANLIB" >&5
7133echo "${ECHO_T}$RANLIB" >&6
7134else
7135 echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6
7137fi
7138
7139fi
7140if test -z "$ac_cv_prog_RANLIB"; then
7141 ac_ct_RANLIB=$RANLIB
7142 # Extract the first word of "ranlib", so it can be a program name with args.
7143set dummy ranlib; ac_word=$2
7144echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7146if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149 if test -n "$ac_ct_RANLIB"; then
7150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7151else
7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_RANLIB="ranlib"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163done
7164done
7165
7166 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7167fi
7168fi
7169ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7170if test -n "$ac_ct_RANLIB"; then
7171 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7172echo "${ECHO_T}$ac_ct_RANLIB" >&6
7173else
7174 echo "$as_me:$LINENO: result: no" >&5
7175echo "${ECHO_T}no" >&6
7176fi
7177
7178 RANLIB=$ac_ct_RANLIB
7179else
7180 RANLIB="$ac_cv_prog_RANLIB"
7181fi
7182
7183for ac_prog in 'bison -y' byacc
7184do
7185 # Extract the first word of "$ac_prog", so it can be a program name with args.
7186set dummy $ac_prog; ac_word=$2
7187echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7189if test "${ac_cv_prog_YACC+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 if test -n "$YACC"; then
7193 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7194else
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_YACC="$ac_prog"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207done
7208
7209fi
7210fi
7211YACC=$ac_cv_prog_YACC
7212if test -n "$YACC"; then
7213 echo "$as_me:$LINENO: result: $YACC" >&5
7214echo "${ECHO_T}$YACC" >&6
7215else
7216 echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6
7218fi
7219
7220 test -n "$YACC" && break
7221done
7222test -n "$YACC" || YACC="yacc"
7223
7224
7225if test -n "$ac_tool_prefix"; then
7226 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7227set dummy ${ac_tool_prefix}ar; ac_word=$2
7228echo "$as_me:$LINENO: checking for $ac_word" >&5
7229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7230if test "${ac_cv_prog_AR+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 if test -n "$AR"; then
7234 ac_cv_prog_AR="$AR" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_AR="${ac_tool_prefix}ar"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247done
7248done
7249
7250fi
7251fi
7252AR=$ac_cv_prog_AR
7253if test -n "$AR"; then
7254 echo "$as_me:$LINENO: result: $AR" >&5
7255echo "${ECHO_T}$AR" >&6
7256else
7257 echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6
7259fi
7260
7261fi
7262if test -z "$ac_cv_prog_AR"; then
7263 ac_ct_AR=$AR
7264 # Extract the first word of "ar", so it can be a program name with args.
7265set dummy ar; ac_word=$2
7266echo "$as_me:$LINENO: checking for $ac_word" >&5
7267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7268if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271 if test -n "$ac_ct_AR"; then
7272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_AR="ar"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286done
7287
7288fi
7289fi
7290ac_ct_AR=$ac_cv_prog_ac_ct_AR
7291if test -n "$ac_ct_AR"; then
7292 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7293echo "${ECHO_T}$ac_ct_AR" >&6
7294else
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297fi
7298
7299 AR=$ac_ct_AR
7300else
7301 AR="$ac_cv_prog_AR"
7302fi
7303
7304if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7306set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7307echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 if test -n "$DLLTOOL"; then
7313 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327done
7328
7329fi
7330fi
7331DLLTOOL=$ac_cv_prog_DLLTOOL
7332if test -n "$DLLTOOL"; then
7333 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7334echo "${ECHO_T}$DLLTOOL" >&6
7335else
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338fi
7339
7340fi
7341if test -z "$ac_cv_prog_DLLTOOL"; then
7342 ac_ct_DLLTOOL=$DLLTOOL
7343 # Extract the first word of "dlltool", so it can be a program name with args.
7344set dummy dlltool; ac_word=$2
7345echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 if test -n "$ac_ct_DLLTOOL"; then
7351 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365done
7366
7367fi
7368fi
7369ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7370if test -n "$ac_ct_DLLTOOL"; then
7371 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7372echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7373else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376fi
7377
7378 DLLTOOL=$ac_ct_DLLTOOL
7379else
7380 DLLTOOL="$ac_cv_prog_DLLTOOL"
7381fi
7382
7383if test -n "$ac_tool_prefix"; then
7384 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7385set dummy ${ac_tool_prefix}windres; ac_word=$2
7386echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7388if test "${ac_cv_prog_WINDRES+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391 if test -n "$WINDRES"; then
7392 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405done
7406done
7407
7408fi
7409fi
7410WINDRES=$ac_cv_prog_WINDRES
7411if test -n "$WINDRES"; then
7412 echo "$as_me:$LINENO: result: $WINDRES" >&5
7413echo "${ECHO_T}$WINDRES" >&6
7414else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417fi
7418
7419fi
7420if test -z "$ac_cv_prog_WINDRES"; then
7421 ac_ct_WINDRES=$WINDRES
7422 # Extract the first word of "windres", so it can be a program name with args.
7423set dummy windres; ac_word=$2
7424echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7426if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428else
7429 if test -n "$ac_ct_WINDRES"; then
7430 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7431else
7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_ac_ct_WINDRES="windres"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443done
7444done
7445
7446fi
7447fi
7448ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7449if test -n "$ac_ct_WINDRES"; then
7450 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7451echo "${ECHO_T}$ac_ct_WINDRES" >&6
7452else
7453 echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6
c906108c 7455fi
bec39cab
AC
7456
7457 WINDRES=$ac_ct_WINDRES
c906108c 7458else
bec39cab 7459 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7460fi
7461
bec39cab
AC
7462
7463# Needed for GNU/Hurd.
7464if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7466set dummy ${ac_tool_prefix}mig; ac_word=$2
7467echo "$as_me:$LINENO: checking for $ac_word" >&5
7468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7469if test "${ac_cv_prog_MIG+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7471else
bec39cab
AC
7472 if test -n "$MIG"; then
7473 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486done
7487done
7488
c906108c 7489fi
bec39cab
AC
7490fi
7491MIG=$ac_cv_prog_MIG
7492if test -n "$MIG"; then
7493 echo "$as_me:$LINENO: result: $MIG" >&5
7494echo "${ECHO_T}$MIG" >&6
c906108c 7495else
bec39cab
AC
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
c906108c
SS
7498fi
7499
bec39cab
AC
7500fi
7501if test -z "$ac_cv_prog_MIG"; then
7502 ac_ct_MIG=$MIG
7503 # Extract the first word of "mig", so it can be a program name with args.
7504set dummy mig; ac_word=$2
7505echo "$as_me:$LINENO: checking for $ac_word" >&5
7506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7507if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 if test -n "$ac_ct_MIG"; then
7511 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_ac_ct_MIG="mig"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524done
7525done
c906108c 7526
bec39cab
AC
7527fi
7528fi
7529ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7530if test -n "$ac_ct_MIG"; then
7531 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7532echo "${ECHO_T}$ac_ct_MIG" >&6
7533else
7534 echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6
7536fi
c906108c 7537
bec39cab
AC
7538 MIG=$ac_ct_MIG
7539else
7540 MIG="$ac_cv_prog_MIG"
7541fi
c906108c 7542
c906108c 7543
bec39cab
AC
7544# ---------------------- #
7545# Checks for libraries. #
7546# ---------------------- #
c906108c 7547
bec39cab 7548# We might need to link with -lm; most simulators need it.
c906108c 7549
bec39cab
AC
7550echo "$as_me:$LINENO: checking for main in -lm" >&5
7551echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7552if test "${ac_cv_lib_m_main+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 ac_check_lib_save_LIBS=$LIBS
7556LIBS="-lm $LIBS"
7557cat >conftest.$ac_ext <<_ACEOF
7558/* confdefs.h. */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */
c906108c 7563
c906108c 7564
bec39cab
AC
7565int
7566main ()
7567{
7568main ();
7569 ;
7570 return 0;
7571}
7572_ACEOF
7573rm -f conftest.$ac_objext conftest$ac_exeext
7574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7575 (eval $ac_link) 2>conftest.er1
7576 ac_status=$?
7577 grep -v '^ *+' conftest.er1 >conftest.err
7578 rm -f conftest.er1
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } &&
7582 { ac_try='test -z "$ac_c_werror_flag"
7583 || test ! -s conftest.err'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 (eval $ac_try) 2>&5
7586 ac_status=$?
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; } &&
7589 { ac_try='test -s conftest$ac_exeext'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 (eval $ac_try) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7595 ac_cv_lib_m_main=yes
7596else
7597 echo "$as_me: failed program was:" >&5
7598sed 's/^/| /' conftest.$ac_ext >&5
7599
7600ac_cv_lib_m_main=no
7601fi
7602rm -f conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
7604LIBS=$ac_check_lib_save_LIBS
7605fi
7606echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7607echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7608if test $ac_cv_lib_m_main = yes; then
7609 cat >>confdefs.h <<_ACEOF
7610#define HAVE_LIBM 1
7611_ACEOF
7612
7613 LIBS="-lm $LIBS"
c906108c 7614
c906108c 7615fi
bec39cab
AC
7616
7617
7618# We need to link with -lw to get `wctype' on Solaris before Solaris
7619# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7620# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7621# is known to have this problem). Therefore we avoid libw if we can.
7622echo "$as_me:$LINENO: checking for wctype" >&5
7623echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7624if test "${ac_cv_func_wctype+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 cat >conftest.$ac_ext <<_ACEOF
7628/* confdefs.h. */
7629_ACEOF
7630cat confdefs.h >>conftest.$ac_ext
7631cat >>conftest.$ac_ext <<_ACEOF
7632/* end confdefs.h. */
7633/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7635#define wctype innocuous_wctype
7636
7637/* System header to define __stub macros and hopefully few prototypes,
7638 which can conflict with char wctype (); below.
7639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7640 <limits.h> exists even on freestanding compilers. */
7641
7642#ifdef __STDC__
7643# include <limits.h>
7644#else
7645# include <assert.h>
7646#endif
7647
7648#undef wctype
7649
7650/* Override any gcc2 internal prototype to avoid an error. */
7651#ifdef __cplusplus
7652extern "C"
7653{
7654#endif
7655/* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657char wctype ();
7658/* The GNU C library defines this for functions which it implements
7659 to always fail with ENOSYS. Some functions are actually named
7660 something starting with __ and the normal name is an alias. */
7661#if defined (__stub_wctype) || defined (__stub___wctype)
7662choke me
7663#else
7664char (*f) () = wctype;
7665#endif
7666#ifdef __cplusplus
7667}
7668#endif
7669
7670int
7671main ()
7672{
7673return f != wctype;
7674 ;
7675 return 0;
7676}
7677_ACEOF
7678rm -f conftest.$ac_objext conftest$ac_exeext
7679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7680 (eval $ac_link) 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -z "$ac_c_werror_flag"
7688 || test ! -s conftest.err'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 ac_cv_func_wctype=yes
7701else
7702 echo "$as_me: failed program was:" >&5
7703sed 's/^/| /' conftest.$ac_ext >&5
7704
7705ac_cv_func_wctype=no
7706fi
7707rm -f conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7709fi
7710echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7711echo "${ECHO_T}$ac_cv_func_wctype" >&6
7712if test $ac_cv_func_wctype = yes; then
7713 :
c906108c 7714else
c906108c 7715
bec39cab
AC
7716echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7717echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7718if test "${ac_cv_lib_w_wctype+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721 ac_check_lib_save_LIBS=$LIBS
7722LIBS="-lw $LIBS"
7723cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
c906108c 7729
bec39cab
AC
7730/* Override any gcc2 internal prototype to avoid an error. */
7731#ifdef __cplusplus
7732extern "C"
7733#endif
7734/* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7736char wctype ();
7737int
7738main ()
7739{
7740wctype ();
7741 ;
7742 return 0;
7743}
7744_ACEOF
7745rm -f conftest.$ac_objext conftest$ac_exeext
7746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>conftest.er1
7748 ac_status=$?
7749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_c_werror_flag"
7755 || test ! -s conftest.err'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; } &&
7761 { ac_try='test -s conftest$ac_exeext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 ac_cv_lib_w_wctype=yes
7768else
7769 echo "$as_me: failed program was:" >&5
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7772ac_cv_lib_w_wctype=no
7773fi
7774rm -f conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776LIBS=$ac_check_lib_save_LIBS
7777fi
7778echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7779echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7780if test $ac_cv_lib_w_wctype = yes; then
7781 cat >>confdefs.h <<_ACEOF
7782#define HAVE_LIBW 1
7783_ACEOF
c906108c 7784
bec39cab 7785 LIBS="-lw $LIBS"
c906108c 7786
bec39cab 7787fi
c906108c 7788
bec39cab 7789fi
c906108c 7790
ddc9cd0f 7791
bec39cab
AC
7792# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7793echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7794echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7795if test "${ac_cv_search_gethostbyname+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798 ac_func_search_save_LIBS=$LIBS
7799ac_cv_search_gethostbyname=no
7800cat >conftest.$ac_ext <<_ACEOF
7801/* confdefs.h. */
7802_ACEOF
7803cat confdefs.h >>conftest.$ac_ext
7804cat >>conftest.$ac_ext <<_ACEOF
7805/* end confdefs.h. */
ddc9cd0f 7806
bec39cab
AC
7807/* Override any gcc2 internal prototype to avoid an error. */
7808#ifdef __cplusplus
7809extern "C"
7810#endif
7811/* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7813char gethostbyname ();
7814int
7815main ()
7816{
7817gethostbyname ();
7818 ;
7819 return 0;
7820}
7821_ACEOF
7822rm -f conftest.$ac_objext conftest$ac_exeext
7823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7824 (eval $ac_link) 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -z "$ac_c_werror_flag"
7832 || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_search_gethostbyname="none required"
7845else
7846 echo "$as_me: failed program was:" >&5
7847sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7848
bec39cab
AC
7849fi
7850rm -f conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852if test "$ac_cv_search_gethostbyname" = no; then
7853 for ac_lib in nsl; do
7854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7855 cat >conftest.$ac_ext <<_ACEOF
7856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
ddc9cd0f 7861
bec39cab
AC
7862/* Override any gcc2 internal prototype to avoid an error. */
7863#ifdef __cplusplus
7864extern "C"
7865#endif
7866/* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7868char gethostbyname ();
7869int
7870main ()
7871{
7872gethostbyname ();
7873 ;
7874 return 0;
7875}
7876_ACEOF
7877rm -f conftest.$ac_objext conftest$ac_exeext
7878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879 (eval $ac_link) 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag"
7887 || test ! -s conftest.err'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest$ac_exeext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 ac_cv_search_gethostbyname="-l$ac_lib"
7900break
7901else
7902 echo "$as_me: failed program was:" >&5
7903sed 's/^/| /' conftest.$ac_ext >&5
7904
7905fi
7906rm -f conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7908 done
bec39cab
AC
7909fi
7910LIBS=$ac_func_search_save_LIBS
7911fi
7912echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7913echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7914if test "$ac_cv_search_gethostbyname" != no; then
7915 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7916
ddc9cd0f
AC
7917fi
7918
0fbb3da7 7919
bec39cab
AC
7920# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7921echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7922echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7923if test "${ac_cv_search_socketpair+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925else
7926 ac_func_search_save_LIBS=$LIBS
7927ac_cv_search_socketpair=no
7928cat >conftest.$ac_ext <<_ACEOF
7929/* confdefs.h. */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h. */
0fbb3da7 7934
bec39cab
AC
7935/* Override any gcc2 internal prototype to avoid an error. */
7936#ifdef __cplusplus
7937extern "C"
7938#endif
7939/* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7941char socketpair ();
7942int
7943main ()
7944{
7945socketpair ();
7946 ;
7947 return 0;
7948}
7949_ACEOF
7950rm -f conftest.$ac_objext conftest$ac_exeext
7951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7952 (eval $ac_link) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_search_socketpair="none required"
7973else
7974 echo "$as_me: failed program was:" >&5
7975sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7976
5b5d99cf 7977fi
bec39cab
AC
7978rm -f conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7980if test "$ac_cv_search_socketpair" = no; then
7981 for ac_lib in socket; do
7982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7983 cat >conftest.$ac_ext <<_ACEOF
7984/* confdefs.h. */
7985_ACEOF
7986cat confdefs.h >>conftest.$ac_ext
7987cat >>conftest.$ac_ext <<_ACEOF
7988/* end confdefs.h. */
5b5d99cf 7989
bec39cab
AC
7990/* Override any gcc2 internal prototype to avoid an error. */
7991#ifdef __cplusplus
7992extern "C"
7993#endif
7994/* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
7996char socketpair ();
7997int
7998main ()
7999{
8000socketpair ();
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext conftest$ac_exeext
8006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -z "$ac_c_werror_flag"
8015 || test ! -s conftest.err'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest$ac_exeext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 ac_cv_search_socketpair="-l$ac_lib"
8028break
8029else
8030 echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8032
bec39cab
AC
8033fi
8034rm -f conftest.err conftest.$ac_objext \
8035 conftest$ac_exeext conftest.$ac_ext
8036 done
8037fi
8038LIBS=$ac_func_search_save_LIBS
8039fi
8040echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8041echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8042if test "$ac_cv_search_socketpair" != no; then
8043 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8044
bec39cab 8045fi
96baa820 8046
c906108c 8047
bec39cab
AC
8048# For the TUI, we need enhanced curses functionality.
8049#
8050# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8051# curses library because the latter might not provide all the
8052# functionality we need. However, this leads to problems on systems
8053# where the linker searches /usr/local/lib, but the compiler doesn't
8054# search /usr/local/include, if ncurses is installed in /usr/local. A
8055# default installation of ncurses on alpha*-dec-osf* will lead to such
8056# a situation.
8057echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8058echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8059if test "${ac_cv_search_waddstr+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062 ac_func_search_save_LIBS=$LIBS
8063ac_cv_search_waddstr=no
8064cat >conftest.$ac_ext <<_ACEOF
8065/* confdefs.h. */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
8069/* end confdefs.h. */
c906108c 8070
bec39cab
AC
8071/* Override any gcc2 internal prototype to avoid an error. */
8072#ifdef __cplusplus
8073extern "C"
8074#endif
8075/* We use char because int might match the return type of a gcc2
8076 builtin and then its argument prototype would still apply. */
8077char waddstr ();
8078int
8079main ()
8080{
8081waddstr ();
8082 ;
8083 return 0;
8084}
8085_ACEOF
8086rm -f conftest.$ac_objext conftest$ac_exeext
8087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 (eval $ac_try) 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_cv_search_waddstr="none required"
8109else
8110 echo "$as_me: failed program was:" >&5
8111sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8112
bec39cab
AC
8113fi
8114rm -f conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116if test "$ac_cv_search_waddstr" = no; then
8117 for ac_lib in ncurses cursesX curses; do
8118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8119 cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
1ba607ad 8125
bec39cab
AC
8126/* Override any gcc2 internal prototype to avoid an error. */
8127#ifdef __cplusplus
8128extern "C"
8129#endif
8130/* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8132char waddstr ();
8133int
8134main ()
8135{
8136waddstr ();
8137 ;
8138 return 0;
8139}
8140_ACEOF
8141rm -f conftest.$ac_objext conftest$ac_exeext
8142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143 (eval $ac_link) 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -z "$ac_c_werror_flag"
8151 || test ! -s conftest.err'
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 (eval $ac_try) 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 (eval $ac_try) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 ac_cv_search_waddstr="-l$ac_lib"
8164break
8165else
8166 echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8168
8169fi
bec39cab
AC
8170rm -f conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172 done
1ba607ad 8173fi
bec39cab
AC
8174LIBS=$ac_func_search_save_LIBS
8175fi
8176echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8177echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8178if test "$ac_cv_search_waddstr" != no; then
8179 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8180
8bb2c122 8181fi
8bb2c122 8182
8bb2c122 8183
bec39cab
AC
8184# Since GDB uses Readline, we need termcap functionality. In many
8185# cases this will be provided by the curses library, but some systems
8186# have a seperate termcap library, or no curses library at all.
8bb2c122 8187
bec39cab
AC
8188case $host_os in
8189 cygwin*)
8190 if test -d $srcdir/libtermcap; then
8191 LIBS="../libtermcap/libtermcap.a $LIBS"
8192 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8193 fi ;;
8194 go32* | *djgpp*)
8195 ac_cv_search_tgetent="none required"
8196 ;;
8197esac
627af7ea 8198
bec39cab
AC
8199# These are the libraries checked by Readline.
8200echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8201echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8202if test "${ac_cv_search_tgetent+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204else
8205 ac_func_search_save_LIBS=$LIBS
8206ac_cv_search_tgetent=no
8207cat >conftest.$ac_ext <<_ACEOF
8208/* confdefs.h. */
8209_ACEOF
8210cat confdefs.h >>conftest.$ac_ext
8211cat >>conftest.$ac_ext <<_ACEOF
8212/* end confdefs.h. */
8213
8214/* Override any gcc2 internal prototype to avoid an error. */
8215#ifdef __cplusplus
8216extern "C"
8217#endif
8218/* We use char because int might match the return type of a gcc2
8219 builtin and then its argument prototype would still apply. */
8220char tgetent ();
8221int
8222main ()
8223{
8224tgetent ();
8225 ;
8226 return 0;
8227}
8228_ACEOF
8229rm -f conftest.$ac_objext conftest$ac_exeext
8230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8231 (eval $ac_link) 2>conftest.er1
8232 ac_status=$?
8233 grep -v '^ *+' conftest.er1 >conftest.err
8234 rm -f conftest.er1
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try='test -z "$ac_c_werror_flag"
8239 || test ! -s conftest.err'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; } &&
8245 { ac_try='test -s conftest$ac_exeext'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 (eval $ac_try) 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
8251 ac_cv_search_tgetent="none required"
627af7ea 8252else
bec39cab
AC
8253 echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8255
627af7ea 8256fi
bec39cab
AC
8257rm -f conftest.err conftest.$ac_objext \
8258 conftest$ac_exeext conftest.$ac_ext
8259if test "$ac_cv_search_tgetent" = no; then
8260 for ac_lib in termcap tinfo curses ncurses; do
8261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8262 cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
627af7ea 8268
bec39cab
AC
8269/* Override any gcc2 internal prototype to avoid an error. */
8270#ifdef __cplusplus
8271extern "C"
8272#endif
8273/* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8275char tgetent ();
8276int
8277main ()
8278{
8279tgetent ();
8280 ;
8281 return 0;
8282}
8283_ACEOF
8284rm -f conftest.$ac_objext conftest$ac_exeext
8285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286 (eval $ac_link) 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag"
8294 || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_search_tgetent="-l$ac_lib"
8307break
627af7ea 8308else
bec39cab
AC
8309 echo "$as_me: failed program was:" >&5
8310sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8311
627af7ea 8312fi
bec39cab
AC
8313rm -f conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 done
8316fi
8317LIBS=$ac_func_search_save_LIBS
8318fi
8319echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8320echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8321if test "$ac_cv_search_tgetent" != no; then
8322 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8323
06825bd1
MK
8324fi
8325
06825bd1 8326
bec39cab
AC
8327if test "$ac_cv_search_tgetent" = no; then
8328 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8329echo "$as_me: error: no termcap library found" >&2;}
8330 { (exit 1); exit 1; }; }
8ee53726
MK
8331fi
8332
bec39cab
AC
8333# ------------------------- #
8334# Checks for header files. #
8335# ------------------------- #
8ee53726 8336
0e5d83e3 8337
bec39cab
AC
8338
8339
8340
8341
8342ac_header_dirent=no
8343for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8344 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8345echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8346echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8347if eval "test \"\${$as_ac_Header+set}\" = set"; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
8350 cat >conftest.$ac_ext <<_ACEOF
8351/* confdefs.h. */
8352_ACEOF
8353cat confdefs.h >>conftest.$ac_ext
8354cat >>conftest.$ac_ext <<_ACEOF
8355/* end confdefs.h. */
8356#include <sys/types.h>
0e5d83e3 8357#include <$ac_hdr>
bec39cab
AC
8358
8359int
8360main ()
8361{
8362if ((DIR *) 0)
8363return 0;
8364 ;
8365 return 0;
8366}
8367_ACEOF
8368rm -f conftest.$ac_objext
8369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8370 (eval $ac_compile) 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -z "$ac_c_werror_flag"
8378 || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 eval "$as_ac_Header=yes"
8391else
8392 echo "$as_me: failed program was:" >&5
8393sed 's/^/| /' conftest.$ac_ext >&5
8394
8395eval "$as_ac_Header=no"
8396fi
8397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8398fi
8399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8401if test `eval echo '${'$as_ac_Header'}'` = yes; then
8402 cat >>confdefs.h <<_ACEOF
8403#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8404_ACEOF
8405
8406ac_header_dirent=$ac_hdr; break
0e5d83e3 8407fi
0e5d83e3 8408
bec39cab
AC
8409done
8410# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8411if test $ac_header_dirent = dirent.h; then
8412 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8413echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8414if test "${ac_cv_search_opendir+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417 ac_func_search_save_LIBS=$LIBS
8418ac_cv_search_opendir=no
8419cat >conftest.$ac_ext <<_ACEOF
8420/* confdefs.h. */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h. */
0e5d83e3 8425
bec39cab
AC
8426/* Override any gcc2 internal prototype to avoid an error. */
8427#ifdef __cplusplus
8428extern "C"
8429#endif
8430/* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432char opendir ();
8433int
8434main ()
8435{
8436opendir ();
8437 ;
8438 return 0;
8439}
8440_ACEOF
8441rm -f conftest.$ac_objext conftest$ac_exeext
8442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 ac_cv_search_opendir="none required"
8464else
8465 echo "$as_me: failed program was:" >&5
8466sed 's/^/| /' conftest.$ac_ext >&5
8467
8468fi
8469rm -f conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471if test "$ac_cv_search_opendir" = no; then
8472 for ac_lib in dir; do
8473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8474 cat >conftest.$ac_ext <<_ACEOF
8475/* confdefs.h. */
8476_ACEOF
8477cat confdefs.h >>conftest.$ac_ext
8478cat >>conftest.$ac_ext <<_ACEOF
8479/* end confdefs.h. */
0e5d83e3 8480
bec39cab
AC
8481/* Override any gcc2 internal prototype to avoid an error. */
8482#ifdef __cplusplus
8483extern "C"
8484#endif
8485/* We use char because int might match the return type of a gcc2
8486 builtin and then its argument prototype would still apply. */
8487char opendir ();
8488int
8489main ()
8490{
8491opendir ();
8492 ;
8493 return 0;
8494}
8495_ACEOF
8496rm -f conftest.$ac_objext conftest$ac_exeext
8497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8498 (eval $ac_link) 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -z "$ac_c_werror_flag"
8506 || test ! -s conftest.err'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; } &&
8512 { ac_try='test -s conftest$ac_exeext'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 (eval $ac_try) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8518 ac_cv_search_opendir="-l$ac_lib"
8519break
0e5d83e3 8520else
bec39cab
AC
8521 echo "$as_me: failed program was:" >&5
8522sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8523
0e5d83e3 8524fi
bec39cab
AC
8525rm -f conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527 done
0e5d83e3 8528fi
bec39cab 8529LIBS=$ac_func_search_save_LIBS
0e5d83e3 8530fi
bec39cab
AC
8531echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8532echo "${ECHO_T}$ac_cv_search_opendir" >&6
8533if test "$ac_cv_search_opendir" != no; then
8534 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8535
0e5d83e3
JJ
8536fi
8537
d28f9cdf 8538else
bec39cab
AC
8539 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8540echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8541if test "${ac_cv_search_opendir+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544 ac_func_search_save_LIBS=$LIBS
8545ac_cv_search_opendir=no
8546cat >conftest.$ac_ext <<_ACEOF
8547/* confdefs.h. */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h. */
d28f9cdf 8552
d28f9cdf 8553/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8554#ifdef __cplusplus
8555extern "C"
8556#endif
d28f9cdf 8557/* We use char because int might match the return type of a gcc2
bec39cab
AC
8558 builtin and then its argument prototype would still apply. */
8559char opendir ();
8560int
8561main ()
8562{
8563opendir ();
8564 ;
8565 return 0;
8566}
8567_ACEOF
8568rm -f conftest.$ac_objext conftest$ac_exeext
8569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -z "$ac_c_werror_flag"
8578 || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest$ac_exeext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_search_opendir="none required"
8591else
8592 echo "$as_me: failed program was:" >&5
8593sed 's/^/| /' conftest.$ac_ext >&5
8594
8595fi
8596rm -f conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
8598if test "$ac_cv_search_opendir" = no; then
8599 for ac_lib in x; do
8600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
8602/* confdefs.h. */
8603_ACEOF
8604cat confdefs.h >>conftest.$ac_ext
8605cat >>conftest.$ac_ext <<_ACEOF
8606/* end confdefs.h. */
d28f9cdf 8607
bec39cab
AC
8608/* Override any gcc2 internal prototype to avoid an error. */
8609#ifdef __cplusplus
8610extern "C"
d28f9cdf 8611#endif
bec39cab
AC
8612/* We use char because int might match the return type of a gcc2
8613 builtin and then its argument prototype would still apply. */
8614char opendir ();
8615int
8616main ()
8617{
8618opendir ();
8619 ;
8620 return 0;
8621}
8622_ACEOF
8623rm -f conftest.$ac_objext conftest$ac_exeext
8624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625 (eval $ac_link) 2>conftest.er1
8626 ac_status=$?
8627 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_c_werror_flag"
8633 || test ! -s conftest.err'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 (eval $ac_try) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try='test -s conftest$ac_exeext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_cv_search_opendir="-l$ac_lib"
8646break
d28f9cdf 8647else
bec39cab
AC
8648 echo "$as_me: failed program was:" >&5
8649sed 's/^/| /' conftest.$ac_ext >&5
8650
d28f9cdf 8651fi
bec39cab
AC
8652rm -f conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8654 done
8655fi
8656LIBS=$ac_func_search_save_LIBS
d28f9cdf 8657fi
bec39cab
AC
8658echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8659echo "${ECHO_T}$ac_cv_search_opendir" >&6
8660if test "$ac_cv_search_opendir" != no; then
8661 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8662
d28f9cdf
DJ
8663fi
8664
bec39cab 8665fi
b0b1c2c0 8666
bec39cab
AC
8667echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8668echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8669if test "${ac_cv_header_stat_broken+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8671else
bec39cab
AC
8672 cat >conftest.$ac_ext <<_ACEOF
8673/* confdefs.h. */
8674_ACEOF
8675cat confdefs.h >>conftest.$ac_ext
8676cat >>conftest.$ac_ext <<_ACEOF
8677/* end confdefs.h. */
8678#include <sys/types.h>
8679#include <sys/stat.h>
b0b1c2c0 8680
bec39cab
AC
8681#if defined(S_ISBLK) && defined(S_IFDIR)
8682# if S_ISBLK (S_IFDIR)
8683You lose.
8684# endif
8685#endif
b0b1c2c0 8686
bec39cab
AC
8687#if defined(S_ISBLK) && defined(S_IFCHR)
8688# if S_ISBLK (S_IFCHR)
8689You lose.
8690# endif
8691#endif
d28f9cdf 8692
bec39cab
AC
8693#if defined(S_ISLNK) && defined(S_IFREG)
8694# if S_ISLNK (S_IFREG)
8695You lose.
8696# endif
8697#endif
d28f9cdf 8698
bec39cab
AC
8699#if defined(S_ISSOCK) && defined(S_IFREG)
8700# if S_ISSOCK (S_IFREG)
8701You lose.
8702# endif
8703#endif
8704
8705_ACEOF
8706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8707 $EGREP "You lose" >/dev/null 2>&1; then
8708 ac_cv_header_stat_broken=yes
d28f9cdf 8709else
bec39cab 8710 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8711fi
8712rm -f conftest*
d28f9cdf 8713
d28f9cdf 8714fi
bec39cab
AC
8715echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8716echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8717if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8718
bec39cab
AC
8719cat >>confdefs.h <<\_ACEOF
8720#define STAT_MACROS_BROKEN 1
8721_ACEOF
8bb2c122 8722
7a292a7a 8723fi
bec39cab
AC
8724
8725echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8726echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8727if test "${ac_cv_header_stdc+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8729else
bec39cab
AC
8730 cat >conftest.$ac_ext <<_ACEOF
8731/* confdefs.h. */
8732_ACEOF
8733cat confdefs.h >>conftest.$ac_ext
8734cat >>conftest.$ac_ext <<_ACEOF
8735/* end confdefs.h. */
8736#include <stdlib.h>
8737#include <stdarg.h>
8738#include <string.h>
8739#include <float.h>
7a292a7a 8740
bec39cab
AC
8741int
8742main ()
8743{
7a292a7a 8744
bec39cab
AC
8745 ;
8746 return 0;
8747}
8748_ACEOF
8749rm -f conftest.$ac_objext
8750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8751 (eval $ac_compile) 2>conftest.er1
8752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag"
8759 || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest.$ac_objext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 ac_cv_header_stdc=yes
c906108c 8772else
bec39cab
AC
8773 echo "$as_me: failed program was:" >&5
8774sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8775
bec39cab 8776ac_cv_header_stdc=no
c906108c 8777fi
bec39cab 8778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8779
bec39cab
AC
8780if test $ac_cv_header_stdc = yes; then
8781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8782 cat >conftest.$ac_ext <<_ACEOF
8783/* confdefs.h. */
8784_ACEOF
8785cat confdefs.h >>conftest.$ac_ext
8786cat >>conftest.$ac_ext <<_ACEOF
8787/* end confdefs.h. */
8788#include <string.h>
c906108c 8789
bec39cab
AC
8790_ACEOF
8791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8792 $EGREP "memchr" >/dev/null 2>&1; then
8793 :
8bb2c122 8794else
bec39cab 8795 ac_cv_header_stdc=no
8bb2c122 8796fi
bec39cab
AC
8797rm -f conftest*
8798
c906108c
SS
8799fi
8800
bec39cab
AC
8801if test $ac_cv_header_stdc = yes; then
8802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8803 cat >conftest.$ac_ext <<_ACEOF
8804/* confdefs.h. */
8805_ACEOF
8806cat confdefs.h >>conftest.$ac_ext
8807cat >>conftest.$ac_ext <<_ACEOF
8808/* end confdefs.h. */
8809#include <stdlib.h>
8810
8811_ACEOF
8812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8813 $EGREP "free" >/dev/null 2>&1; then
8814 :
c906108c 8815else
bec39cab 8816 ac_cv_header_stdc=no
c906108c 8817fi
bec39cab
AC
8818rm -f conftest*
8819
c906108c
SS
8820fi
8821
bec39cab
AC
8822if test $ac_cv_header_stdc = yes; then
8823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8824 if test "$cross_compiling" = yes; then
8825 :
c906108c 8826else
bec39cab
AC
8827 cat >conftest.$ac_ext <<_ACEOF
8828/* confdefs.h. */
8829_ACEOF
8830cat confdefs.h >>conftest.$ac_ext
8831cat >>conftest.$ac_ext <<_ACEOF
8832/* end confdefs.h. */
8833#include <ctype.h>
8834#if ((' ' & 0x0FF) == 0x020)
8835# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8836# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8837#else
8838# define ISLOWER(c) \
8839 (('a' <= (c) && (c) <= 'i') \
8840 || ('j' <= (c) && (c) <= 'r') \
8841 || ('s' <= (c) && (c) <= 'z'))
8842# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8843#endif
8844
8845#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8846int
8847main ()
8848{
8849 int i;
8850 for (i = 0; i < 256; i++)
8851 if (XOR (islower (i), ISLOWER (i))
8852 || toupper (i) != TOUPPER (i))
8853 exit(2);
8854 exit (0);
8855}
8856_ACEOF
8857rm -f conftest$ac_exeext
8858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 :
8869else
8870 echo "$as_me: program exited with status $ac_status" >&5
8871echo "$as_me: failed program was:" >&5
8872sed 's/^/| /' conftest.$ac_ext >&5
8873
8874( exit $ac_status )
8875ac_cv_header_stdc=no
c906108c 8876fi
bec39cab 8877rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8878fi
c906108c 8879fi
bec39cab
AC
8880fi
8881echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8882echo "${ECHO_T}$ac_cv_header_stdc" >&6
8883if test $ac_cv_header_stdc = yes; then
c906108c 8884
bec39cab
AC
8885cat >>confdefs.h <<\_ACEOF
8886#define STDC_HEADERS 1
8887_ACEOF
c906108c 8888
bec39cab 8889fi
8bb2c122 8890
bec39cab 8891
7cb9022a 8892for ac_header in nlist.h
bec39cab
AC
8893do
8894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8895if eval "test \"\${$as_ac_Header+set}\" = set"; then
8896 echo "$as_me:$LINENO: checking for $ac_header" >&5
8897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8898if eval "test \"\${$as_ac_Header+set}\" = set"; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900fi
8901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903else
8904 # Is the header compilable?
8905echo "$as_me:$LINENO: checking $ac_header usability" >&5
8906echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8907cat >conftest.$ac_ext <<_ACEOF
8908/* confdefs.h. */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h. */
8913$ac_includes_default
8914#include <$ac_header>
8915_ACEOF
8916rm -f conftest.$ac_objext
8917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918 (eval $ac_compile) 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest.$ac_objext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_header_compiler=yes
8939else
8940 echo "$as_me: failed program was:" >&5
8941sed 's/^/| /' conftest.$ac_ext >&5
8942
8943ac_header_compiler=no
8944fi
8945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8946echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8947echo "${ECHO_T}$ac_header_compiler" >&6
8948
8949# Is the header present?
8950echo "$as_me:$LINENO: checking $ac_header presence" >&5
8951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8952cat >conftest.$ac_ext <<_ACEOF
8953/* confdefs.h. */
8954_ACEOF
8955cat confdefs.h >>conftest.$ac_ext
8956cat >>conftest.$ac_ext <<_ACEOF
8957/* end confdefs.h. */
8958#include <$ac_header>
8959_ACEOF
8960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null; then
8968 if test -s conftest.err; then
8969 ac_cpp_err=$ac_c_preproc_warn_flag
8970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8971 else
8972 ac_cpp_err=
8973 fi
c906108c 8974else
bec39cab 8975 ac_cpp_err=yes
c906108c 8976fi
bec39cab
AC
8977if test -z "$ac_cpp_err"; then
8978 ac_header_preproc=yes
c906108c 8979else
bec39cab
AC
8980 echo "$as_me: failed program was:" >&5
8981sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 8982
bec39cab
AC
8983 ac_header_preproc=no
8984fi
8985rm -f conftest.err conftest.$ac_ext
8986echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8987echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8988
bec39cab
AC
8989# So? What about this header?
8990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8991 yes:no: )
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8996 ac_header_preproc=yes
8997 ;;
8998 no:yes:* )
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9011 (
9012 cat <<\_ASBOX
9013## ------------------------------------------ ##
9014## Report this to the AC_PACKAGE_NAME lists. ##
9015## ------------------------------------------ ##
9016_ASBOX
9017 ) |
9018 sed "s/^/$as_me: WARNING: /" >&2
9019 ;;
9020esac
9021echo "$as_me:$LINENO: checking for $ac_header" >&5
9022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9023if eval "test \"\${$as_ac_Header+set}\" = set"; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9025else
bec39cab 9026 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9027fi
bec39cab
AC
9028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9030
95ca63c4 9031fi
bec39cab
AC
9032if test `eval echo '${'$as_ac_Header'}'` = yes; then
9033 cat >>confdefs.h <<_ACEOF
9034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9035_ACEOF
9036
95ca63c4
CF
9037fi
9038
bec39cab 9039done
95ca63c4
CF
9040
9041
7cb9022a 9042for ac_header in link.h
bec39cab
AC
9043do
9044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 9045echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
9046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9047if eval "test \"\${$as_ac_Header+set}\" = set"; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9049else
7cb9022a 9050 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9051/* confdefs.h. */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h. */
7cb9022a
MK
9056#if HAVE_SYS_TYPES_H
9057# include <sys/types.h>
9058#endif
9059#if HAVE_NLIST_H
9060# include <nlist.h>
9061#endif
9062
9063
bec39cab
AC
9064#include <$ac_header>
9065_ACEOF
9066rm -f conftest.$ac_objext
9067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068 (eval $ac_compile) 2>conftest.er1
9069 ac_status=$?
9070 grep -v '^ *+' conftest.er1 >conftest.err
9071 rm -f conftest.er1
9072 cat conftest.err >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -z "$ac_c_werror_flag"
9076 || test ! -s conftest.err'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 (eval $ac_try) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; } &&
9082 { ac_try='test -s conftest.$ac_objext'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 (eval $ac_try) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
7cb9022a 9088 eval "$as_ac_Header=yes"
bec39cab
AC
9089else
9090 echo "$as_me: failed program was:" >&5
9091sed 's/^/| /' conftest.$ac_ext >&5
9092
7cb9022a 9093eval "$as_ac_Header=no"
bec39cab
AC
9094fi
9095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9096fi
9097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9099if test `eval echo '${'$as_ac_Header'}'` = yes; then
9100 cat >>confdefs.h <<_ACEOF
9101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9102_ACEOF
95ca63c4 9103
bec39cab 9104fi
95ca63c4 9105
bec39cab 9106done
95ca63c4 9107
c906108c 9108
7cb9022a 9109for ac_header in machine/reg.h
bec39cab
AC
9110do
9111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9112if eval "test \"\${$as_ac_Header+set}\" = set"; then
9113 echo "$as_me:$LINENO: checking for $ac_header" >&5
9114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9115if eval "test \"\${$as_ac_Header+set}\" = set"; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117fi
9118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9120else
9121 # Is the header compilable?
9122echo "$as_me:$LINENO: checking $ac_header usability" >&5
9123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9124cat >conftest.$ac_ext <<_ACEOF
9125/* confdefs.h. */
9126_ACEOF
9127cat confdefs.h >>conftest.$ac_ext
9128cat >>conftest.$ac_ext <<_ACEOF
9129/* end confdefs.h. */
9130$ac_includes_default
9131#include <$ac_header>
9132_ACEOF
9133rm -f conftest.$ac_objext
9134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9135 (eval $ac_compile) 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -z "$ac_c_werror_flag"
9143 || test ! -s conftest.err'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 (eval $ac_try) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; } &&
9149 { ac_try='test -s conftest.$ac_objext'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 (eval $ac_try) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; }; then
9155 ac_header_compiler=yes
9156else
9157 echo "$as_me: failed program was:" >&5
9158sed 's/^/| /' conftest.$ac_ext >&5
9159
9160ac_header_compiler=no
9161fi
9162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9163echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9164echo "${ECHO_T}$ac_header_compiler" >&6
9165
9166# Is the header present?
9167echo "$as_me:$LINENO: checking $ac_header presence" >&5
9168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9169cat >conftest.$ac_ext <<_ACEOF
9170/* confdefs.h. */
9171_ACEOF
9172cat confdefs.h >>conftest.$ac_ext
9173cat >>conftest.$ac_ext <<_ACEOF
9174/* end confdefs.h. */
9175#include <$ac_header>
9176_ACEOF
9177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } >/dev/null; then
9185 if test -s conftest.err; then
9186 ac_cpp_err=$ac_c_preproc_warn_flag
9187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9188 else
9189 ac_cpp_err=
9190 fi
75c6e08a 9191else
bec39cab 9192 ac_cpp_err=yes
75c6e08a 9193fi
bec39cab
AC
9194if test -z "$ac_cpp_err"; then
9195 ac_header_preproc=yes
9196else
9197 echo "$as_me: failed program was:" >&5
9198sed 's/^/| /' conftest.$ac_ext >&5
9199
9200 ac_header_preproc=no
75c6e08a 9201fi
bec39cab
AC
9202rm -f conftest.err conftest.$ac_ext
9203echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9204echo "${ECHO_T}$ac_header_preproc" >&6
9205
9206# So? What about this header?
9207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9208 yes:no: )
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9210echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9212echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9213 ac_header_preproc=yes
9214 ;;
9215 no:yes:* )
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9221echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9223echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9227echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9228 (
9229 cat <<\_ASBOX
9230## ------------------------------------------ ##
9231## Report this to the AC_PACKAGE_NAME lists. ##
9232## ------------------------------------------ ##
9233_ASBOX
9234 ) |
9235 sed "s/^/$as_me: WARNING: /" >&2
9236 ;;
9237esac
9238echo "$as_me:$LINENO: checking for $ac_header" >&5
9239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9240if eval "test \"\${$as_ac_Header+set}\" = set"; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9242else
bec39cab
AC
9243 eval "$as_ac_Header=\$ac_header_preproc"
9244fi
9245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9247
75c6e08a 9248fi
bec39cab
AC
9249if test `eval echo '${'$as_ac_Header'}'` = yes; then
9250 cat >>confdefs.h <<_ACEOF
9251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9252_ACEOF
75c6e08a 9253
bec39cab 9254fi
75c6e08a 9255
bec39cab 9256done
75c6e08a
MK
9257
9258
9a156167 9259
bec39cab
AC
9260for ac_header in poll.h sys/poll.h
9261do
9262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9263if eval "test \"\${$as_ac_Header+set}\" = set"; then
9264 echo "$as_me:$LINENO: checking for $ac_header" >&5
9265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9266if eval "test \"\${$as_ac_Header+set}\" = set"; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9268fi
9269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271else
9272 # Is the header compilable?
9273echo "$as_me:$LINENO: checking $ac_header usability" >&5
9274echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9275cat >conftest.$ac_ext <<_ACEOF
9276/* confdefs.h. */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h. */
9281$ac_includes_default
9282#include <$ac_header>
9283_ACEOF
9284rm -f conftest.$ac_objext
9285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9286 (eval $ac_compile) 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag"
9294 || test ! -s conftest.err'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest.$ac_objext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_header_compiler=yes
9307else
9308 echo "$as_me: failed program was:" >&5
9309sed 's/^/| /' conftest.$ac_ext >&5
9310
9311ac_header_compiler=no
9312fi
9313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9314echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9315echo "${ECHO_T}$ac_header_compiler" >&6
9316
9317# Is the header present?
9318echo "$as_me:$LINENO: checking $ac_header presence" >&5
9319echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9320cat >conftest.$ac_ext <<_ACEOF
9321/* confdefs.h. */
9322_ACEOF
9323cat confdefs.h >>conftest.$ac_ext
9324cat >>conftest.$ac_ext <<_ACEOF
9325/* end confdefs.h. */
9326#include <$ac_header>
9327_ACEOF
9328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9330 ac_status=$?
9331 grep -v '^ *+' conftest.er1 >conftest.err
9332 rm -f conftest.er1
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } >/dev/null; then
9336 if test -s conftest.err; then
9337 ac_cpp_err=$ac_c_preproc_warn_flag
9338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9339 else
9340 ac_cpp_err=
9341 fi
9a156167 9342else
bec39cab 9343 ac_cpp_err=yes
9a156167 9344fi
bec39cab
AC
9345if test -z "$ac_cpp_err"; then
9346 ac_header_preproc=yes
9347else
9348 echo "$as_me: failed program was:" >&5
9349sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9350
bec39cab 9351 ac_header_preproc=no
9a156167 9352fi
bec39cab
AC
9353rm -f conftest.err conftest.$ac_ext
9354echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9355echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9356
bec39cab
AC
9357# So? What about this header?
9358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9359 yes:no: )
9360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9361echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9363echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9364 ac_header_preproc=yes
9365 ;;
9366 no:yes:* )
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9368echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9370echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9372echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9374echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9376echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9378echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9379 (
9380 cat <<\_ASBOX
9381## ------------------------------------------ ##
9382## Report this to the AC_PACKAGE_NAME lists. ##
9383## ------------------------------------------ ##
9384_ASBOX
9385 ) |
9386 sed "s/^/$as_me: WARNING: /" >&2
9387 ;;
9388esac
9389echo "$as_me:$LINENO: checking for $ac_header" >&5
9390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9391if eval "test \"\${$as_ac_Header+set}\" = set"; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9393else
bec39cab 9394 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9395fi
bec39cab
AC
9396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9398
bec39cab
AC
9399fi
9400if test `eval echo '${'$as_ac_Header'}'` = yes; then
9401 cat >>confdefs.h <<_ACEOF
9402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9403_ACEOF
9a156167 9404
bec39cab 9405fi
9a156167 9406
bec39cab 9407done
9a156167 9408
9a156167 9409
9a156167 9410
bec39cab
AC
9411
9412for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9413do
9414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9415if eval "test \"\${$as_ac_Header+set}\" = set"; then
9416 echo "$as_me:$LINENO: checking for $ac_header" >&5
9417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9418if eval "test \"\${$as_ac_Header+set}\" = set"; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420fi
9421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9423else
9424 # Is the header compilable?
9425echo "$as_me:$LINENO: checking $ac_header usability" >&5
9426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9427cat >conftest.$ac_ext <<_ACEOF
9428/* confdefs.h. */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h. */
9433$ac_includes_default
9434#include <$ac_header>
9435_ACEOF
9436rm -f conftest.$ac_objext
9437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>conftest.er1
9439 ac_status=$?
9440 grep -v '^ *+' conftest.er1 >conftest.err
9441 rm -f conftest.er1
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -z "$ac_c_werror_flag"
9446 || test ! -s conftest.err'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; } &&
9452 { ac_try='test -s conftest.$ac_objext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 (eval $ac_try) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 ac_header_compiler=yes
9459else
9460 echo "$as_me: failed program was:" >&5
9461sed 's/^/| /' conftest.$ac_ext >&5
9462
9463ac_header_compiler=no
9464fi
9465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9467echo "${ECHO_T}$ac_header_compiler" >&6
9468
9469# Is the header present?
9470echo "$as_me:$LINENO: checking $ac_header presence" >&5
9471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9472cat >conftest.$ac_ext <<_ACEOF
9473/* confdefs.h. */
9474_ACEOF
9475cat confdefs.h >>conftest.$ac_ext
9476cat >>conftest.$ac_ext <<_ACEOF
9477/* end confdefs.h. */
9478#include <$ac_header>
9479_ACEOF
9480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } >/dev/null; then
9488 if test -s conftest.err; then
9489 ac_cpp_err=$ac_c_preproc_warn_flag
9490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9491 else
9492 ac_cpp_err=
9493 fi
9a156167 9494else
bec39cab 9495 ac_cpp_err=yes
9a156167 9496fi
bec39cab
AC
9497if test -z "$ac_cpp_err"; then
9498 ac_header_preproc=yes
9499else
9500 echo "$as_me: failed program was:" >&5
9501sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9502
bec39cab 9503 ac_header_preproc=no
9a156167 9504fi
bec39cab
AC
9505rm -f conftest.err conftest.$ac_ext
9506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9507echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9508
bec39cab
AC
9509# So? What about this header?
9510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9511 yes:no: )
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9516 ac_header_preproc=yes
9517 ;;
9518 no:yes:* )
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9531 (
9532 cat <<\_ASBOX
9533## ------------------------------------------ ##
9534## Report this to the AC_PACKAGE_NAME lists. ##
9535## ------------------------------------------ ##
9536_ASBOX
9537 ) |
9538 sed "s/^/$as_me: WARNING: /" >&2
9539 ;;
9540esac
9541echo "$as_me:$LINENO: checking for $ac_header" >&5
9542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9543if eval "test \"\${$as_ac_Header+set}\" = set"; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9545else
bec39cab 9546 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9547fi
bec39cab
AC
9548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9550
9551fi
bec39cab
AC
9552if test `eval echo '${'$as_ac_Header'}'` = yes; then
9553 cat >>confdefs.h <<_ACEOF
9554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9555_ACEOF
9a156167 9556
bec39cab
AC
9557fi
9558
9559done
9a156167 9560
c890192f 9561
bec39cab
AC
9562for ac_header in stddef.h
9563do
9564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9565if eval "test \"\${$as_ac_Header+set}\" = set"; then
9566 echo "$as_me:$LINENO: checking for $ac_header" >&5
9567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9568if eval "test \"\${$as_ac_Header+set}\" = set"; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570fi
9571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9573else
9574 # Is the header compilable?
9575echo "$as_me:$LINENO: checking $ac_header usability" >&5
9576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9577cat >conftest.$ac_ext <<_ACEOF
9578/* confdefs.h. */
9579_ACEOF
9580cat confdefs.h >>conftest.$ac_ext
9581cat >>conftest.$ac_ext <<_ACEOF
9582/* end confdefs.h. */
9583$ac_includes_default
9584#include <$ac_header>
9585_ACEOF
9586rm -f conftest.$ac_objext
9587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try='test -z "$ac_c_werror_flag"
9596 || test ! -s conftest.err'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 (eval $ac_try) 2>&5
9599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try='test -s conftest.$ac_objext'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 (eval $ac_try) 2>&5
9605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9608 ac_header_compiler=yes
9609else
9610 echo "$as_me: failed program was:" >&5
9611sed 's/^/| /' conftest.$ac_ext >&5
9612
9613ac_header_compiler=no
9614fi
9615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9617echo "${ECHO_T}$ac_header_compiler" >&6
9618
9619# Is the header present?
9620echo "$as_me:$LINENO: checking $ac_header presence" >&5
9621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9622cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h. */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h. */
9628#include <$ac_header>
9629_ACEOF
9630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } >/dev/null; then
9638 if test -s conftest.err; then
9639 ac_cpp_err=$ac_c_preproc_warn_flag
9640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9641 else
9642 ac_cpp_err=
9643 fi
c890192f 9644else
bec39cab
AC
9645 ac_cpp_err=yes
9646fi
9647if test -z "$ac_cpp_err"; then
9648 ac_header_preproc=yes
c890192f 9649else
bec39cab
AC
9650 echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
9653 ac_header_preproc=no
c890192f 9654fi
bec39cab
AC
9655rm -f conftest.err conftest.$ac_ext
9656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9657echo "${ECHO_T}$ac_header_preproc" >&6
9658
9659# So? What about this header?
9660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9661 yes:no: )
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9666 ac_header_preproc=yes
9667 ;;
9668 no:yes:* )
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9681 (
9682 cat <<\_ASBOX
9683## ------------------------------------------ ##
9684## Report this to the AC_PACKAGE_NAME lists. ##
9685## ------------------------------------------ ##
9686_ASBOX
9687 ) |
9688 sed "s/^/$as_me: WARNING: /" >&2
9689 ;;
9690esac
9691echo "$as_me:$LINENO: checking for $ac_header" >&5
9692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9693if eval "test \"\${$as_ac_Header+set}\" = set"; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9695else
bec39cab 9696 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9697fi
bec39cab
AC
9698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9700
c890192f 9701fi
bec39cab
AC
9702if test `eval echo '${'$as_ac_Header'}'` = yes; then
9703 cat >>confdefs.h <<_ACEOF
9704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9705_ACEOF
c890192f 9706
c890192f
MK
9707fi
9708
bec39cab 9709done
9a156167 9710
bec39cab
AC
9711
9712for ac_header in stdlib.h
9713do
9714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9715if eval "test \"\${$as_ac_Header+set}\" = set"; then
9716 echo "$as_me:$LINENO: checking for $ac_header" >&5
9717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9718if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720fi
9721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723else
9724 # Is the header compilable?
9725echo "$as_me:$LINENO: checking $ac_header usability" >&5
9726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9727cat >conftest.$ac_ext <<_ACEOF
9728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
9733$ac_includes_default
9734#include <$ac_header>
9735_ACEOF
9736rm -f conftest.$ac_objext
9737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 (eval $ac_compile) 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -z "$ac_c_werror_flag"
9746 || test ! -s conftest.err'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_header_compiler=yes
9759else
9760 echo "$as_me: failed program was:" >&5
9761sed 's/^/| /' conftest.$ac_ext >&5
9762
9763ac_header_compiler=no
9764fi
9765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9767echo "${ECHO_T}$ac_header_compiler" >&6
9768
9769# Is the header present?
9770echo "$as_me:$LINENO: checking $ac_header presence" >&5
9771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9772cat >conftest.$ac_ext <<_ACEOF
9773/* confdefs.h. */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
9777/* end confdefs.h. */
9778#include <$ac_header>
9779_ACEOF
9780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } >/dev/null; then
9788 if test -s conftest.err; then
9789 ac_cpp_err=$ac_c_preproc_warn_flag
9790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9791 else
9792 ac_cpp_err=
9793 fi
9a156167 9794else
bec39cab
AC
9795 ac_cpp_err=yes
9796fi
9797if test -z "$ac_cpp_err"; then
9798 ac_header_preproc=yes
9a156167 9799else
bec39cab
AC
9800 echo "$as_me: failed program was:" >&5
9801sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_header_preproc=no
9a156167 9804fi
bec39cab
AC
9805rm -f conftest.err conftest.$ac_ext
9806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9807echo "${ECHO_T}$ac_header_preproc" >&6
9808
9809# So? What about this header?
9810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9811 yes:no: )
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9816 ac_header_preproc=yes
9817 ;;
9818 no:yes:* )
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9822echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9826echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9831 (
9832 cat <<\_ASBOX
9833## ------------------------------------------ ##
9834## Report this to the AC_PACKAGE_NAME lists. ##
9835## ------------------------------------------ ##
9836_ASBOX
9837 ) |
9838 sed "s/^/$as_me: WARNING: /" >&2
9839 ;;
9840esac
9841echo "$as_me:$LINENO: checking for $ac_header" >&5
9842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9843if eval "test \"\${$as_ac_Header+set}\" = set"; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9845else
bec39cab 9846 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9847fi
bec39cab
AC
9848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9850
9a156167 9851fi
bec39cab
AC
9852if test `eval echo '${'$as_ac_Header'}'` = yes; then
9853 cat >>confdefs.h <<_ACEOF
9854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9855_ACEOF
9a156167 9856
9a156167
MK
9857fi
9858
bec39cab
AC
9859done
9860
06825bd1 9861
bec39cab
AC
9862for ac_header in stdint.h
9863do
9864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9865if eval "test \"\${$as_ac_Header+set}\" = set"; then
9866 echo "$as_me:$LINENO: checking for $ac_header" >&5
9867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9868if eval "test \"\${$as_ac_Header+set}\" = set"; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870fi
9871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9873else
9874 # Is the header compilable?
9875echo "$as_me:$LINENO: checking $ac_header usability" >&5
9876echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9877cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h. */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h. */
9883$ac_includes_default
9884#include <$ac_header>
9885_ACEOF
9886rm -f conftest.$ac_objext
9887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9888 (eval $ac_compile) 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try='test -z "$ac_c_werror_flag"
9896 || test ! -s conftest.err'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 (eval $ac_try) 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest.$ac_objext'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 (eval $ac_try) 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9908 ac_header_compiler=yes
9909else
9910 echo "$as_me: failed program was:" >&5
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
9913ac_header_compiler=no
9914fi
9915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9917echo "${ECHO_T}$ac_header_compiler" >&6
9918
9919# Is the header present?
9920echo "$as_me:$LINENO: checking $ac_header presence" >&5
9921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9922cat >conftest.$ac_ext <<_ACEOF
9923/* confdefs.h. */
9924_ACEOF
9925cat confdefs.h >>conftest.$ac_ext
9926cat >>conftest.$ac_ext <<_ACEOF
9927/* end confdefs.h. */
9928#include <$ac_header>
9929_ACEOF
9930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9932 ac_status=$?
9933 grep -v '^ *+' conftest.er1 >conftest.err
9934 rm -f conftest.er1
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } >/dev/null; then
9938 if test -s conftest.err; then
9939 ac_cpp_err=$ac_c_preproc_warn_flag
9940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9941 else
9942 ac_cpp_err=
9943 fi
06825bd1 9944else
bec39cab
AC
9945 ac_cpp_err=yes
9946fi
9947if test -z "$ac_cpp_err"; then
9948 ac_header_preproc=yes
06825bd1 9949else
bec39cab
AC
9950 echo "$as_me: failed program was:" >&5
9951sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_header_preproc=no
06825bd1 9954fi
bec39cab
AC
9955rm -f conftest.err conftest.$ac_ext
9956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9957echo "${ECHO_T}$ac_header_preproc" >&6
9958
9959# So? What about this header?
9960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9961 yes:no: )
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9965echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9966 ac_header_preproc=yes
9967 ;;
9968 no:yes:* )
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9970echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9972echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9974echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9976echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9980echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9981 (
9982 cat <<\_ASBOX
9983## ------------------------------------------ ##
9984## Report this to the AC_PACKAGE_NAME lists. ##
9985## ------------------------------------------ ##
9986_ASBOX
9987 ) |
9988 sed "s/^/$as_me: WARNING: /" >&2
9989 ;;
9990esac
9991echo "$as_me:$LINENO: checking for $ac_header" >&5
9992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9993if eval "test \"\${$as_ac_Header+set}\" = set"; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 9995else
bec39cab 9996 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 9997fi
bec39cab
AC
9998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10000
06825bd1 10001fi
bec39cab
AC
10002if test `eval echo '${'$as_ac_Header'}'` = yes; then
10003 cat >>confdefs.h <<_ACEOF
10004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10005_ACEOF
06825bd1 10006
06825bd1 10007fi
4f0be353 10008
bec39cab 10009done
4f0be353 10010
06825bd1 10011
06825bd1 10012
bec39cab
AC
10013
10014for ac_header in string.h memory.h strings.h
10015do
10016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10017if eval "test \"\${$as_ac_Header+set}\" = set"; then
10018 echo "$as_me:$LINENO: checking for $ac_header" >&5
10019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022fi
10023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10025else
10026 # Is the header compilable?
10027echo "$as_me:$LINENO: checking $ac_header usability" >&5
10028echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10029cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h. */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h. */
10035$ac_includes_default
10036#include <$ac_header>
10037_ACEOF
10038rm -f conftest.$ac_objext
10039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10040 (eval $ac_compile) 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -z "$ac_c_werror_flag"
10048 || test ! -s conftest.err'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; } &&
10054 { ac_try='test -s conftest.$ac_objext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_header_compiler=yes
10061else
10062 echo "$as_me: failed program was:" >&5
10063sed 's/^/| /' conftest.$ac_ext >&5
10064
10065ac_header_compiler=no
10066fi
10067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10068echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10069echo "${ECHO_T}$ac_header_compiler" >&6
10070
10071# Is the header present?
10072echo "$as_me:$LINENO: checking $ac_header presence" >&5
10073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10074cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h. */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h. */
10080#include <$ac_header>
10081_ACEOF
10082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } >/dev/null; then
10090 if test -s conftest.err; then
10091 ac_cpp_err=$ac_c_preproc_warn_flag
10092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10093 else
10094 ac_cpp_err=
10095 fi
06825bd1 10096else
bec39cab
AC
10097 ac_cpp_err=yes
10098fi
10099if test -z "$ac_cpp_err"; then
10100 ac_header_preproc=yes
06825bd1 10101else
bec39cab
AC
10102 echo "$as_me: failed program was:" >&5
10103sed 's/^/| /' conftest.$ac_ext >&5
10104
10105 ac_header_preproc=no
06825bd1 10106fi
bec39cab
AC
10107rm -f conftest.err conftest.$ac_ext
10108echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10109echo "${ECHO_T}$ac_header_preproc" >&6
10110
10111# So? What about this header?
10112case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10113 yes:no: )
10114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10115echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10117echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10118 ac_header_preproc=yes
10119 ;;
10120 no:yes:* )
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10122echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10124echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10126echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10128echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10130echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10132echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10133 (
10134 cat <<\_ASBOX
10135## ------------------------------------------ ##
10136## Report this to the AC_PACKAGE_NAME lists. ##
10137## ------------------------------------------ ##
10138_ASBOX
10139 ) |
10140 sed "s/^/$as_me: WARNING: /" >&2
10141 ;;
10142esac
10143echo "$as_me:$LINENO: checking for $ac_header" >&5
10144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10145if eval "test \"\${$as_ac_Header+set}\" = set"; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10149fi
bec39cab
AC
10150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10152
06825bd1 10153fi
bec39cab
AC
10154if test `eval echo '${'$as_ac_Header'}'` = yes; then
10155 cat >>confdefs.h <<_ACEOF
10156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10157_ACEOF
06825bd1 10158
06825bd1
MK
10159fi
10160
bec39cab 10161done
5ee754fc 10162
bec39cab
AC
10163
10164for ac_header in sys/fault.h
5ee754fc 10165do
bec39cab
AC
10166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10167if eval "test \"\${$as_ac_Header+set}\" = set"; then
10168 echo "$as_me:$LINENO: checking for $ac_header" >&5
10169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10170if eval "test \"\${$as_ac_Header+set}\" = set"; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172fi
10173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10175else
10176 # Is the header compilable?
10177echo "$as_me:$LINENO: checking $ac_header usability" >&5
10178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10179cat >conftest.$ac_ext <<_ACEOF
10180/* confdefs.h. */
10181_ACEOF
10182cat confdefs.h >>conftest.$ac_ext
10183cat >>conftest.$ac_ext <<_ACEOF
10184/* end confdefs.h. */
10185$ac_includes_default
10186#include <$ac_header>
10187_ACEOF
10188rm -f conftest.$ac_objext
10189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190 (eval $ac_compile) 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -z "$ac_c_werror_flag"
10198 || test ! -s conftest.err'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest.$ac_objext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_header_compiler=yes
10211else
10212 echo "$as_me: failed program was:" >&5
10213sed 's/^/| /' conftest.$ac_ext >&5
10214
10215ac_header_compiler=no
10216fi
10217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10219echo "${ECHO_T}$ac_header_compiler" >&6
10220
10221# Is the header present?
10222echo "$as_me:$LINENO: checking $ac_header presence" >&5
10223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10224cat >conftest.$ac_ext <<_ACEOF
10225/* confdefs.h. */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
10229/* end confdefs.h. */
10230#include <$ac_header>
10231_ACEOF
10232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } >/dev/null; then
10240 if test -s conftest.err; then
10241 ac_cpp_err=$ac_c_preproc_warn_flag
10242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10243 else
10244 ac_cpp_err=
10245 fi
5ee754fc 10246else
bec39cab 10247 ac_cpp_err=yes
5ee754fc 10248fi
bec39cab
AC
10249if test -z "$ac_cpp_err"; then
10250 ac_header_preproc=yes
10251else
10252 echo "$as_me: failed program was:" >&5
10253sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10254
bec39cab 10255 ac_header_preproc=no
5ee754fc 10256fi
bec39cab
AC
10257rm -f conftest.err conftest.$ac_ext
10258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10259echo "${ECHO_T}$ac_header_preproc" >&6
10260
10261# So? What about this header?
10262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10263 yes:no: )
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10268 ac_header_preproc=yes
10269 ;;
10270 no:yes:* )
10271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10283 (
10284 cat <<\_ASBOX
10285## ------------------------------------------ ##
10286## Report this to the AC_PACKAGE_NAME lists. ##
10287## ------------------------------------------ ##
10288_ASBOX
10289 ) |
10290 sed "s/^/$as_me: WARNING: /" >&2
10291 ;;
10292esac
10293echo "$as_me:$LINENO: checking for $ac_header" >&5
10294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10295if eval "test \"\${$as_ac_Header+set}\" = set"; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10297else
bec39cab 10298 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10299fi
bec39cab
AC
10300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10302
5ee754fc 10303fi
bec39cab
AC
10304if test `eval echo '${'$as_ac_Header'}'` = yes; then
10305 cat >>confdefs.h <<_ACEOF
10306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10307_ACEOF
c906108c 10308
5ee754fc 10309fi
bec39cab
AC
10310
10311done
10312
10313
10314for ac_header in sys/file.h
10315do
10316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10317if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318 echo "$as_me:$LINENO: checking for $ac_header" >&5
10319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10320if eval "test \"\${$as_ac_Header+set}\" = set"; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322fi
10323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10325else
10326 # Is the header compilable?
10327echo "$as_me:$LINENO: checking $ac_header usability" >&5
10328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10329cat >conftest.$ac_ext <<_ACEOF
10330/* confdefs.h. */
10331_ACEOF
10332cat confdefs.h >>conftest.$ac_ext
10333cat >>conftest.$ac_ext <<_ACEOF
10334/* end confdefs.h. */
10335$ac_includes_default
10336#include <$ac_header>
10337_ACEOF
10338rm -f conftest.$ac_objext
10339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10340 (eval $ac_compile) 2>conftest.er1
10341 ac_status=$?
10342 grep -v '^ *+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } &&
10347 { ac_try='test -z "$ac_c_werror_flag"
10348 || test ! -s conftest.err'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; } &&
10354 { ac_try='test -s conftest.$ac_objext'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_header_compiler=yes
10361else
10362 echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
10365ac_header_compiler=no
10366fi
10367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10369echo "${ECHO_T}$ac_header_compiler" >&6
10370
10371# Is the header present?
10372echo "$as_me:$LINENO: checking $ac_header presence" >&5
10373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10374cat >conftest.$ac_ext <<_ACEOF
10375/* confdefs.h. */
10376_ACEOF
10377cat confdefs.h >>conftest.$ac_ext
10378cat >>conftest.$ac_ext <<_ACEOF
10379/* end confdefs.h. */
10380#include <$ac_header>
10381_ACEOF
10382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } >/dev/null; then
10390 if test -s conftest.err; then
10391 ac_cpp_err=$ac_c_preproc_warn_flag
10392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10393 else
10394 ac_cpp_err=
10395 fi
5ee754fc 10396else
bec39cab 10397 ac_cpp_err=yes
5ee754fc 10398fi
bec39cab
AC
10399if test -z "$ac_cpp_err"; then
10400 ac_header_preproc=yes
10401else
10402 echo "$as_me: failed program was:" >&5
10403sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10404
bec39cab 10405 ac_header_preproc=no
5ee754fc 10406fi
bec39cab
AC
10407rm -f conftest.err conftest.$ac_ext
10408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10409echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10410
bec39cab
AC
10411# So? What about this header?
10412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10413 yes:no: )
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10418 ac_header_preproc=yes
10419 ;;
10420 no:yes:* )
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10433 (
10434 cat <<\_ASBOX
10435## ------------------------------------------ ##
10436## Report this to the AC_PACKAGE_NAME lists. ##
10437## ------------------------------------------ ##
10438_ASBOX
10439 ) |
10440 sed "s/^/$as_me: WARNING: /" >&2
10441 ;;
10442esac
10443echo "$as_me:$LINENO: checking for $ac_header" >&5
10444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10445if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10447else
bec39cab
AC
10448 eval "$as_ac_Header=\$ac_header_preproc"
10449fi
10450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10452
bec39cab
AC
10453fi
10454if test `eval echo '${'$as_ac_Header'}'` = yes; then
10455 cat >>confdefs.h <<_ACEOF
10456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10457_ACEOF
5ee754fc 10458
bec39cab 10459fi
5ee754fc 10460
bec39cab 10461done
5ee754fc 10462
5ee754fc 10463
bec39cab
AC
10464for ac_header in sys/filio.h
10465do
10466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10467if eval "test \"\${$as_ac_Header+set}\" = set"; then
10468 echo "$as_me:$LINENO: checking for $ac_header" >&5
10469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10470if eval "test \"\${$as_ac_Header+set}\" = set"; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472fi
10473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10475else
10476 # Is the header compilable?
10477echo "$as_me:$LINENO: checking $ac_header usability" >&5
10478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10479cat >conftest.$ac_ext <<_ACEOF
10480/* confdefs.h. */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h. */
10485$ac_includes_default
10486#include <$ac_header>
10487_ACEOF
10488rm -f conftest.$ac_objext
10489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10490 (eval $ac_compile) 2>conftest.er1
10491 ac_status=$?
10492 grep -v '^ *+' conftest.er1 >conftest.err
10493 rm -f conftest.er1
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } &&
10497 { ac_try='test -z "$ac_c_werror_flag"
10498 || test ! -s conftest.err'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; } &&
10504 { ac_try='test -s conftest.$ac_objext'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 ac_header_compiler=yes
10511else
10512 echo "$as_me: failed program was:" >&5
10513sed 's/^/| /' conftest.$ac_ext >&5
10514
10515ac_header_compiler=no
10516fi
10517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10519echo "${ECHO_T}$ac_header_compiler" >&6
10520
10521# Is the header present?
10522echo "$as_me:$LINENO: checking $ac_header presence" >&5
10523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10524cat >conftest.$ac_ext <<_ACEOF
10525/* confdefs.h. */
10526_ACEOF
10527cat confdefs.h >>conftest.$ac_ext
10528cat >>conftest.$ac_ext <<_ACEOF
10529/* end confdefs.h. */
10530#include <$ac_header>
10531_ACEOF
10532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } >/dev/null; then
10540 if test -s conftest.err; then
10541 ac_cpp_err=$ac_c_preproc_warn_flag
10542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10543 else
10544 ac_cpp_err=
10545 fi
5ee754fc 10546else
bec39cab 10547 ac_cpp_err=yes
5ee754fc 10548fi
bec39cab
AC
10549if test -z "$ac_cpp_err"; then
10550 ac_header_preproc=yes
10551else
10552 echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10554
bec39cab 10555 ac_header_preproc=no
5ee754fc 10556fi
bec39cab
AC
10557rm -f conftest.err conftest.$ac_ext
10558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10559echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10560
bec39cab
AC
10561# So? What about this header?
10562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10563 yes:no: )
10564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10568 ac_header_preproc=yes
10569 ;;
10570 no:yes:* )
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10583 (
10584 cat <<\_ASBOX
10585## ------------------------------------------ ##
10586## Report this to the AC_PACKAGE_NAME lists. ##
10587## ------------------------------------------ ##
10588_ASBOX
10589 ) |
10590 sed "s/^/$as_me: WARNING: /" >&2
10591 ;;
10592esac
10593echo "$as_me:$LINENO: checking for $ac_header" >&5
10594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10595if eval "test \"\${$as_ac_Header+set}\" = set"; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10597else
bec39cab 10598 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10599fi
bec39cab
AC
10600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10602
5ee754fc 10603fi
bec39cab
AC
10604if test `eval echo '${'$as_ac_Header'}'` = yes; then
10605 cat >>confdefs.h <<_ACEOF
10606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10607_ACEOF
5ee754fc
MK
10608
10609fi
10610
bec39cab
AC
10611done
10612
10613
10614for ac_header in sys/ioctl.h
10615do
10616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617if eval "test \"\${$as_ac_Header+set}\" = set"; then
10618 echo "$as_me:$LINENO: checking for $ac_header" >&5
10619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10620if eval "test \"\${$as_ac_Header+set}\" = set"; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622fi
10623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10625else
10626 # Is the header compilable?
10627echo "$as_me:$LINENO: checking $ac_header usability" >&5
10628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10629cat >conftest.$ac_ext <<_ACEOF
10630/* confdefs.h. */
10631_ACEOF
10632cat confdefs.h >>conftest.$ac_ext
10633cat >>conftest.$ac_ext <<_ACEOF
10634/* end confdefs.h. */
10635$ac_includes_default
10636#include <$ac_header>
10637_ACEOF
10638rm -f conftest.$ac_objext
10639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10640 (eval $ac_compile) 2>conftest.er1
10641 ac_status=$?
10642 grep -v '^ *+' conftest.er1 >conftest.err
10643 rm -f conftest.er1
10644 cat conftest.err >&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -z "$ac_c_werror_flag"
10648 || test ! -s conftest.err'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; } &&
10654 { ac_try='test -s conftest.$ac_objext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_header_compiler=yes
10661else
10662 echo "$as_me: failed program was:" >&5
10663sed 's/^/| /' conftest.$ac_ext >&5
10664
10665ac_header_compiler=no
10666fi
10667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10669echo "${ECHO_T}$ac_header_compiler" >&6
10670
10671# Is the header present?
10672echo "$as_me:$LINENO: checking $ac_header presence" >&5
10673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680#include <$ac_header>
10681_ACEOF
10682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } >/dev/null; then
10690 if test -s conftest.err; then
10691 ac_cpp_err=$ac_c_preproc_warn_flag
10692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10693 else
10694 ac_cpp_err=
10695 fi
5ee754fc 10696else
bec39cab 10697 ac_cpp_err=yes
5ee754fc 10698fi
bec39cab
AC
10699if test -z "$ac_cpp_err"; then
10700 ac_header_preproc=yes
10701else
10702 echo "$as_me: failed program was:" >&5
10703sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10704
bec39cab 10705 ac_header_preproc=no
5ee754fc 10706fi
bec39cab
AC
10707rm -f conftest.err conftest.$ac_ext
10708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10709echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10710
bec39cab
AC
10711# So? What about this header?
10712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10713 yes:no: )
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10718 ac_header_preproc=yes
10719 ;;
10720 no:yes:* )
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10724echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10728echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10733 (
10734 cat <<\_ASBOX
10735## ------------------------------------------ ##
10736## Report this to the AC_PACKAGE_NAME lists. ##
10737## ------------------------------------------ ##
10738_ASBOX
10739 ) |
10740 sed "s/^/$as_me: WARNING: /" >&2
10741 ;;
10742esac
10743echo "$as_me:$LINENO: checking for $ac_header" >&5
10744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10745if eval "test \"\${$as_ac_Header+set}\" = set"; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10747else
bec39cab 10748 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10749fi
bec39cab
AC
10750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10752
10753fi
bec39cab
AC
10754if test `eval echo '${'$as_ac_Header'}'` = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10757_ACEOF
10758
5ee754fc
MK
10759fi
10760
bec39cab 10761done
5ee754fc 10762
5ee754fc 10763
bec39cab 10764for ac_header in sys/param.h
5ee754fc 10765do
bec39cab
AC
10766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10767if eval "test \"\${$as_ac_Header+set}\" = set"; then
10768 echo "$as_me:$LINENO: checking for $ac_header" >&5
10769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10770if eval "test \"\${$as_ac_Header+set}\" = set"; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772fi
10773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10775else
10776 # Is the header compilable?
10777echo "$as_me:$LINENO: checking $ac_header usability" >&5
10778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10779cat >conftest.$ac_ext <<_ACEOF
10780/* confdefs.h. */
10781_ACEOF
10782cat confdefs.h >>conftest.$ac_ext
10783cat >>conftest.$ac_ext <<_ACEOF
10784/* end confdefs.h. */
10785$ac_includes_default
10786#include <$ac_header>
10787_ACEOF
10788rm -f conftest.$ac_objext
10789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10790 (eval $ac_compile) 2>conftest.er1
10791 ac_status=$?
10792 grep -v '^ *+' conftest.er1 >conftest.err
10793 rm -f conftest.er1
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -z "$ac_c_werror_flag"
10798 || test ! -s conftest.err'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try='test -s conftest.$ac_objext'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_header_compiler=yes
10811else
10812 echo "$as_me: failed program was:" >&5
10813sed 's/^/| /' conftest.$ac_ext >&5
10814
10815ac_header_compiler=no
10816fi
10817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10819echo "${ECHO_T}$ac_header_compiler" >&6
10820
10821# Is the header present?
10822echo "$as_me:$LINENO: checking $ac_header presence" >&5
10823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10824cat >conftest.$ac_ext <<_ACEOF
10825/* confdefs.h. */
10826_ACEOF
10827cat confdefs.h >>conftest.$ac_ext
10828cat >>conftest.$ac_ext <<_ACEOF
10829/* end confdefs.h. */
10830#include <$ac_header>
10831_ACEOF
10832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } >/dev/null; then
10840 if test -s conftest.err; then
10841 ac_cpp_err=$ac_c_preproc_warn_flag
10842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10843 else
10844 ac_cpp_err=
10845 fi
5ee754fc 10846else
bec39cab 10847 ac_cpp_err=yes
5ee754fc 10848fi
bec39cab
AC
10849if test -z "$ac_cpp_err"; then
10850 ac_header_preproc=yes
10851else
10852 echo "$as_me: failed program was:" >&5
10853sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10854
bec39cab 10855 ac_header_preproc=no
5ee754fc 10856fi
bec39cab
AC
10857rm -f conftest.err conftest.$ac_ext
10858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10859echo "${ECHO_T}$ac_header_preproc" >&6
10860
10861# So? What about this header?
10862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10863 yes:no: )
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10868 ac_header_preproc=yes
10869 ;;
10870 no:yes:* )
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10883 (
10884 cat <<\_ASBOX
10885## ------------------------------------------ ##
10886## Report this to the AC_PACKAGE_NAME lists. ##
10887## ------------------------------------------ ##
10888_ASBOX
10889 ) |
10890 sed "s/^/$as_me: WARNING: /" >&2
10891 ;;
10892esac
10893echo "$as_me:$LINENO: checking for $ac_header" >&5
10894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10895if eval "test \"\${$as_ac_Header+set}\" = set"; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10897else
bec39cab 10898 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10899fi
bec39cab
AC
10900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10902
5ee754fc 10903fi
bec39cab
AC
10904if test `eval echo '${'$as_ac_Header'}'` = yes; then
10905 cat >>confdefs.h <<_ACEOF
10906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10907_ACEOF
10908
5ee754fc 10909fi
bec39cab 10910
5ee754fc
MK
10911done
10912
bec39cab
AC
10913
10914for ac_header in sys/proc.h
5ee754fc 10915do
bec39cab 10916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 10917echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
10918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10919if eval "test \"\${$as_ac_Header+set}\" = set"; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10921else
7cb9022a 10922 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10923/* confdefs.h. */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
10927/* end confdefs.h. */
7cb9022a
MK
10928#if HAVE_SYS_PARAM_H
10929# include <sys/param.h>
10930#endif
10931
10932
bec39cab
AC
10933#include <$ac_header>
10934_ACEOF
10935rm -f conftest.$ac_objext
10936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
7cb9022a 10957 eval "$as_ac_Header=yes"
bec39cab
AC
10958else
10959 echo "$as_me: failed program was:" >&5
10960sed 's/^/| /' conftest.$ac_ext >&5
10961
7cb9022a 10962eval "$as_ac_Header=no"
bec39cab
AC
10963fi
10964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10965fi
bec39cab
AC
10966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10968if test `eval echo '${'$as_ac_Header'}'` = yes; then
10969 cat >>confdefs.h <<_ACEOF
10970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10971_ACEOF
10972
5ee754fc 10973fi
bec39cab 10974
5ee754fc
MK
10975done
10976
bec39cab
AC
10977
10978for ac_header in sys/procfs.h
5ee754fc 10979do
bec39cab
AC
10980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10981if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982 echo "$as_me:$LINENO: checking for $ac_header" >&5
10983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10984if eval "test \"\${$as_ac_Header+set}\" = set"; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986fi
10987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10989else
10990 # Is the header compilable?
10991echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10993cat >conftest.$ac_ext <<_ACEOF
10994/* confdefs.h. */
10995_ACEOF
10996cat confdefs.h >>conftest.$ac_ext
10997cat >>conftest.$ac_ext <<_ACEOF
10998/* end confdefs.h. */
10999$ac_includes_default
11000#include <$ac_header>
11001_ACEOF
11002rm -f conftest.$ac_objext
11003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag"
11012 || test ! -s conftest.err'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; } &&
11018 { ac_try='test -s conftest.$ac_objext'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 ac_header_compiler=yes
11025else
11026 echo "$as_me: failed program was:" >&5
11027sed 's/^/| /' conftest.$ac_ext >&5
11028
11029ac_header_compiler=no
11030fi
11031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11033echo "${ECHO_T}$ac_header_compiler" >&6
11034
11035# Is the header present?
11036echo "$as_me:$LINENO: checking $ac_header presence" >&5
11037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11038cat >conftest.$ac_ext <<_ACEOF
11039/* confdefs.h. */
11040_ACEOF
11041cat confdefs.h >>conftest.$ac_ext
11042cat >>conftest.$ac_ext <<_ACEOF
11043/* end confdefs.h. */
11044#include <$ac_header>
11045_ACEOF
11046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11048 ac_status=$?
11049 grep -v '^ *+' conftest.er1 >conftest.err
11050 rm -f conftest.er1
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } >/dev/null; then
11054 if test -s conftest.err; then
11055 ac_cpp_err=$ac_c_preproc_warn_flag
11056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11057 else
11058 ac_cpp_err=
11059 fi
11060else
11061 ac_cpp_err=yes
5ee754fc 11062fi
bec39cab
AC
11063if test -z "$ac_cpp_err"; then
11064 ac_header_preproc=yes
5ee754fc 11065else
bec39cab
AC
11066 echo "$as_me: failed program was:" >&5
11067sed 's/^/| /' conftest.$ac_ext >&5
11068
11069 ac_header_preproc=no
5ee754fc 11070fi
bec39cab
AC
11071rm -f conftest.err conftest.$ac_ext
11072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11073echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11074
bec39cab
AC
11075# So? What about this header?
11076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11077 yes:no: )
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11082 ac_header_preproc=yes
11083 ;;
11084 no:yes:* )
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11088echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11092echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11097 (
11098 cat <<\_ASBOX
11099## ------------------------------------------ ##
11100## Report this to the AC_PACKAGE_NAME lists. ##
11101## ------------------------------------------ ##
11102_ASBOX
11103 ) |
11104 sed "s/^/$as_me: WARNING: /" >&2
11105 ;;
11106esac
11107echo "$as_me:$LINENO: checking for $ac_header" >&5
11108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11109if eval "test \"\${$as_ac_Header+set}\" = set"; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11113fi
bec39cab
AC
11114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11116
5ee754fc 11117fi
bec39cab
AC
11118if test `eval echo '${'$as_ac_Header'}'` = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11121_ACEOF
11122
5ee754fc 11123fi
bec39cab 11124
5ee754fc
MK
11125done
11126
bec39cab
AC
11127
11128
11129for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11130do
bec39cab
AC
11131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11132if eval "test \"\${$as_ac_Header+set}\" = set"; then
11133 echo "$as_me:$LINENO: checking for $ac_header" >&5
11134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11135if eval "test \"\${$as_ac_Header+set}\" = set"; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137fi
11138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11140else
11141 # Is the header compilable?
11142echo "$as_me:$LINENO: checking $ac_header usability" >&5
11143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11144cat >conftest.$ac_ext <<_ACEOF
11145/* confdefs.h. */
11146_ACEOF
11147cat confdefs.h >>conftest.$ac_ext
11148cat >>conftest.$ac_ext <<_ACEOF
11149/* end confdefs.h. */
11150$ac_includes_default
11151#include <$ac_header>
11152_ACEOF
11153rm -f conftest.$ac_objext
11154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155 (eval $ac_compile) 2>conftest.er1
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag"
11163 || test ! -s conftest.err'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 ac_header_compiler=yes
11176else
11177 echo "$as_me: failed program was:" >&5
11178sed 's/^/| /' conftest.$ac_ext >&5
11179
11180ac_header_compiler=no
11181fi
11182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11184echo "${ECHO_T}$ac_header_compiler" >&6
11185
11186# Is the header present?
11187echo "$as_me:$LINENO: checking $ac_header presence" >&5
11188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11189cat >conftest.$ac_ext <<_ACEOF
11190/* confdefs.h. */
11191_ACEOF
11192cat confdefs.h >>conftest.$ac_ext
11193cat >>conftest.$ac_ext <<_ACEOF
11194/* end confdefs.h. */
11195#include <$ac_header>
11196_ACEOF
11197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } >/dev/null; then
11205 if test -s conftest.err; then
11206 ac_cpp_err=$ac_c_preproc_warn_flag
11207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11208 else
11209 ac_cpp_err=
11210 fi
11211else
11212 ac_cpp_err=yes
5ee754fc 11213fi
bec39cab
AC
11214if test -z "$ac_cpp_err"; then
11215 ac_header_preproc=yes
5ee754fc 11216else
bec39cab
AC
11217 echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
11220 ac_header_preproc=no
5ee754fc 11221fi
bec39cab
AC
11222rm -f conftest.err conftest.$ac_ext
11223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11225
bec39cab
AC
11226# So? What about this header?
11227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11228 yes:no: )
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233 ac_header_preproc=yes
11234 ;;
11235 no:yes:* )
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11248 (
11249 cat <<\_ASBOX
11250## ------------------------------------------ ##
11251## Report this to the AC_PACKAGE_NAME lists. ##
11252## ------------------------------------------ ##
11253_ASBOX
11254 ) |
11255 sed "s/^/$as_me: WARNING: /" >&2
11256 ;;
11257esac
11258echo "$as_me:$LINENO: checking for $ac_header" >&5
11259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11260if eval "test \"\${$as_ac_Header+set}\" = set"; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262else
11263 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11264fi
bec39cab
AC
11265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11267
5ee754fc 11268fi
bec39cab
AC
11269if test `eval echo '${'$as_ac_Header'}'` = yes; then
11270 cat >>confdefs.h <<_ACEOF
11271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11272_ACEOF
11273
5ee754fc 11274fi
bec39cab 11275
5ee754fc
MK
11276done
11277
bec39cab
AC
11278
11279
11280for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11281do
bec39cab
AC
11282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11283if eval "test \"\${$as_ac_Header+set}\" = set"; then
11284 echo "$as_me:$LINENO: checking for $ac_header" >&5
11285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11286if eval "test \"\${$as_ac_Header+set}\" = set"; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288fi
11289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11291else
11292 # Is the header compilable?
11293echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11295cat >conftest.$ac_ext <<_ACEOF
11296/* confdefs.h. */
11297_ACEOF
11298cat confdefs.h >>conftest.$ac_ext
11299cat >>conftest.$ac_ext <<_ACEOF
11300/* end confdefs.h. */
11301$ac_includes_default
11302#include <$ac_header>
11303_ACEOF
11304rm -f conftest.$ac_objext
11305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11306 (eval $ac_compile) 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -z "$ac_c_werror_flag"
11314 || test ! -s conftest.err'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest.$ac_objext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 ac_header_compiler=yes
11327else
11328 echo "$as_me: failed program was:" >&5
11329sed 's/^/| /' conftest.$ac_ext >&5
11330
11331ac_header_compiler=no
11332fi
11333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335echo "${ECHO_T}$ac_header_compiler" >&6
11336
11337# Is the header present?
11338echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11340cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346#include <$ac_header>
11347_ACEOF
11348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } >/dev/null; then
11356 if test -s conftest.err; then
11357 ac_cpp_err=$ac_c_preproc_warn_flag
11358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11359 else
11360 ac_cpp_err=
11361 fi
11362else
11363 ac_cpp_err=yes
5ee754fc 11364fi
bec39cab
AC
11365if test -z "$ac_cpp_err"; then
11366 ac_header_preproc=yes
5ee754fc 11367else
bec39cab
AC
11368 echo "$as_me: failed program was:" >&5
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
11371 ac_header_preproc=no
5ee754fc 11372fi
bec39cab
AC
11373rm -f conftest.err conftest.$ac_ext
11374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11375echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11376
bec39cab
AC
11377# So? What about this header?
11378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11379 yes:no: )
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11384 ac_header_preproc=yes
11385 ;;
11386 no:yes:* )
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11399 (
11400 cat <<\_ASBOX
11401## ------------------------------------------ ##
11402## Report this to the AC_PACKAGE_NAME lists. ##
11403## ------------------------------------------ ##
11404_ASBOX
11405 ) |
11406 sed "s/^/$as_me: WARNING: /" >&2
11407 ;;
11408esac
11409echo "$as_me:$LINENO: checking for $ac_header" >&5
11410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11411if eval "test \"\${$as_ac_Header+set}\" = set"; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413else
11414 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11415fi
bec39cab
AC
11416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11418
5ee754fc 11419fi
bec39cab
AC
11420if test `eval echo '${'$as_ac_Header'}'` = yes; then
11421 cat >>confdefs.h <<_ACEOF
11422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11423_ACEOF
11424
5ee754fc 11425fi
bec39cab 11426
5ee754fc
MK
11427done
11428
bec39cab
AC
11429
11430for ac_header in sys/select.h
5ee754fc 11431do
bec39cab
AC
11432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11433if eval "test \"\${$as_ac_Header+set}\" = set"; then
11434 echo "$as_me:$LINENO: checking for $ac_header" >&5
11435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11436if eval "test \"\${$as_ac_Header+set}\" = set"; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438fi
11439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11441else
11442 # Is the header compilable?
11443echo "$as_me:$LINENO: checking $ac_header usability" >&5
11444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11445cat >conftest.$ac_ext <<_ACEOF
11446/* confdefs.h. */
11447_ACEOF
11448cat confdefs.h >>conftest.$ac_ext
11449cat >>conftest.$ac_ext <<_ACEOF
11450/* end confdefs.h. */
11451$ac_includes_default
11452#include <$ac_header>
11453_ACEOF
11454rm -f conftest.$ac_objext
11455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456 (eval $ac_compile) 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -z "$ac_c_werror_flag"
11464 || test ! -s conftest.err'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 ac_header_compiler=yes
11477else
11478 echo "$as_me: failed program was:" >&5
11479sed 's/^/| /' conftest.$ac_ext >&5
11480
11481ac_header_compiler=no
11482fi
11483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11485echo "${ECHO_T}$ac_header_compiler" >&6
11486
11487# Is the header present?
11488echo "$as_me:$LINENO: checking $ac_header presence" >&5
11489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11490cat >conftest.$ac_ext <<_ACEOF
11491/* confdefs.h. */
11492_ACEOF
11493cat confdefs.h >>conftest.$ac_ext
11494cat >>conftest.$ac_ext <<_ACEOF
11495/* end confdefs.h. */
11496#include <$ac_header>
11497_ACEOF
11498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } >/dev/null; then
11506 if test -s conftest.err; then
11507 ac_cpp_err=$ac_c_preproc_warn_flag
11508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11509 else
11510 ac_cpp_err=
11511 fi
11512else
11513 ac_cpp_err=yes
5ee754fc 11514fi
bec39cab
AC
11515if test -z "$ac_cpp_err"; then
11516 ac_header_preproc=yes
5ee754fc 11517else
bec39cab
AC
11518 echo "$as_me: failed program was:" >&5
11519sed 's/^/| /' conftest.$ac_ext >&5
11520
11521 ac_header_preproc=no
5ee754fc 11522fi
bec39cab
AC
11523rm -f conftest.err conftest.$ac_ext
11524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11525echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11526
bec39cab
AC
11527# So? What about this header?
11528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11529 yes:no: )
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11534 ac_header_preproc=yes
11535 ;;
11536 no:yes:* )
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11549 (
11550 cat <<\_ASBOX
11551## ------------------------------------------ ##
11552## Report this to the AC_PACKAGE_NAME lists. ##
11553## ------------------------------------------ ##
11554_ASBOX
11555 ) |
11556 sed "s/^/$as_me: WARNING: /" >&2
11557 ;;
11558esac
11559echo "$as_me:$LINENO: checking for $ac_header" >&5
11560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11561if eval "test \"\${$as_ac_Header+set}\" = set"; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11563else
11564 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11565fi
bec39cab
AC
11566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11568
5ee754fc 11569fi
bec39cab
AC
11570if test `eval echo '${'$as_ac_Header'}'` = yes; then
11571 cat >>confdefs.h <<_ACEOF
11572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11573_ACEOF
11574
5ee754fc 11575fi
bec39cab 11576
5ee754fc
MK
11577done
11578
bec39cab
AC
11579
11580for ac_header in sys/syscall.h
5ee754fc 11581do
bec39cab
AC
11582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11583if eval "test \"\${$as_ac_Header+set}\" = set"; then
11584 echo "$as_me:$LINENO: checking for $ac_header" >&5
11585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11586if eval "test \"\${$as_ac_Header+set}\" = set"; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588fi
11589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11591else
11592 # Is the header compilable?
11593echo "$as_me:$LINENO: checking $ac_header usability" >&5
11594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11595cat >conftest.$ac_ext <<_ACEOF
11596/* confdefs.h. */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h. */
11601$ac_includes_default
11602#include <$ac_header>
11603_ACEOF
11604rm -f conftest.$ac_objext
11605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -z "$ac_c_werror_flag"
11614 || test ! -s conftest.err'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try='test -s conftest.$ac_objext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 ac_header_compiler=yes
11627else
11628 echo "$as_me: failed program was:" >&5
11629sed 's/^/| /' conftest.$ac_ext >&5
11630
11631ac_header_compiler=no
11632fi
11633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635echo "${ECHO_T}$ac_header_compiler" >&6
11636
11637# Is the header present?
11638echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11640cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
11646#include <$ac_header>
11647_ACEOF
11648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } >/dev/null; then
11656 if test -s conftest.err; then
11657 ac_cpp_err=$ac_c_preproc_warn_flag
11658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11659 else
11660 ac_cpp_err=
11661 fi
11662else
11663 ac_cpp_err=yes
5ee754fc 11664fi
bec39cab
AC
11665if test -z "$ac_cpp_err"; then
11666 ac_header_preproc=yes
5ee754fc 11667else
bec39cab
AC
11668 echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 ac_header_preproc=no
5ee754fc 11672fi
bec39cab
AC
11673rm -f conftest.err conftest.$ac_ext
11674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11675echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11676
bec39cab
AC
11677# So? What about this header?
11678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11679 yes:no: )
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11684 ac_header_preproc=yes
11685 ;;
11686 no:yes:* )
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11699 (
11700 cat <<\_ASBOX
11701## ------------------------------------------ ##
11702## Report this to the AC_PACKAGE_NAME lists. ##
11703## ------------------------------------------ ##
11704_ASBOX
11705 ) |
11706 sed "s/^/$as_me: WARNING: /" >&2
11707 ;;
11708esac
11709echo "$as_me:$LINENO: checking for $ac_header" >&5
11710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11711if eval "test \"\${$as_ac_Header+set}\" = set"; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713else
11714 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11715fi
bec39cab
AC
11716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11718
5ee754fc 11719fi
bec39cab
AC
11720if test `eval echo '${'$as_ac_Header'}'` = yes; then
11721 cat >>confdefs.h <<_ACEOF
11722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11723_ACEOF
11724
5ee754fc 11725fi
bec39cab 11726
5ee754fc
MK
11727done
11728
bec39cab
AC
11729
11730for ac_header in sys/types.h
5ee754fc 11731do
bec39cab
AC
11732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11733if eval "test \"\${$as_ac_Header+set}\" = set"; then
11734 echo "$as_me:$LINENO: checking for $ac_header" >&5
11735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11736if eval "test \"\${$as_ac_Header+set}\" = set"; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738fi
11739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11741else
11742 # Is the header compilable?
11743echo "$as_me:$LINENO: checking $ac_header usability" >&5
11744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11745cat >conftest.$ac_ext <<_ACEOF
11746/* confdefs.h. */
11747_ACEOF
11748cat confdefs.h >>conftest.$ac_ext
11749cat >>conftest.$ac_ext <<_ACEOF
11750/* end confdefs.h. */
11751$ac_includes_default
11752#include <$ac_header>
11753_ACEOF
11754rm -f conftest.$ac_objext
11755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>conftest.er1
11757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -z "$ac_c_werror_flag"
11764 || test ! -s conftest.err'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; } &&
11770 { ac_try='test -s conftest.$ac_objext'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 ac_header_compiler=yes
11777else
11778 echo "$as_me: failed program was:" >&5
11779sed 's/^/| /' conftest.$ac_ext >&5
11780
11781ac_header_compiler=no
11782fi
11783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11785echo "${ECHO_T}$ac_header_compiler" >&6
11786
11787# Is the header present?
11788echo "$as_me:$LINENO: checking $ac_header presence" >&5
11789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11790cat >conftest.$ac_ext <<_ACEOF
11791/* confdefs.h. */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */
11796#include <$ac_header>
11797_ACEOF
11798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } >/dev/null; then
11806 if test -s conftest.err; then
11807 ac_cpp_err=$ac_c_preproc_warn_flag
11808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11809 else
11810 ac_cpp_err=
11811 fi
11812else
11813 ac_cpp_err=yes
5ee754fc 11814fi
bec39cab
AC
11815if test -z "$ac_cpp_err"; then
11816 ac_header_preproc=yes
5ee754fc 11817else
bec39cab
AC
11818 echo "$as_me: failed program was:" >&5
11819sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 ac_header_preproc=no
5ee754fc 11822fi
bec39cab
AC
11823rm -f conftest.err conftest.$ac_ext
11824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11825echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11826
bec39cab
AC
11827# So? What about this header?
11828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11829 yes:no: )
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11834 ac_header_preproc=yes
11835 ;;
11836 no:yes:* )
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11849 (
11850 cat <<\_ASBOX
11851## ------------------------------------------ ##
11852## Report this to the AC_PACKAGE_NAME lists. ##
11853## ------------------------------------------ ##
11854_ASBOX
11855 ) |
11856 sed "s/^/$as_me: WARNING: /" >&2
11857 ;;
11858esac
11859echo "$as_me:$LINENO: checking for $ac_header" >&5
11860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11861if eval "test \"\${$as_ac_Header+set}\" = set"; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863else
11864 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11865fi
bec39cab
AC
11866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11868
5ee754fc 11869fi
bec39cab
AC
11870if test `eval echo '${'$as_ac_Header'}'` = yes; then
11871 cat >>confdefs.h <<_ACEOF
11872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11873_ACEOF
11874
5ee754fc 11875fi
bec39cab 11876
5ee754fc
MK
11877done
11878
bec39cab
AC
11879
11880for ac_header in sys/user.h
5ee754fc 11881do
bec39cab 11882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11883echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11885if eval "test \"\${$as_ac_Header+set}\" = set"; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11887else
7cb9022a 11888 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
7cb9022a
MK
11894#if HAVE_SYS_PARAM_H
11895# include <sys/param.h>
11896#endif
11897
11898
bec39cab
AC
11899#include <$ac_header>
11900_ACEOF
11901rm -f conftest.$ac_objext
11902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11903 (eval $ac_compile) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_c_werror_flag"
11911 || test ! -s conftest.err'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest.$ac_objext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
7cb9022a 11923 eval "$as_ac_Header=yes"
bec39cab
AC
11924else
11925 echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
7cb9022a 11928eval "$as_ac_Header=no"
bec39cab
AC
11929fi
11930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11931fi
bec39cab
AC
11932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11934if test `eval echo '${'$as_ac_Header'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11937_ACEOF
11938
5ee754fc 11939fi
bec39cab 11940
5ee754fc
MK
11941done
11942
bec39cab
AC
11943
11944
11945for ac_header in sys/wait.h wait.h
5ee754fc 11946do
bec39cab
AC
11947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11948if eval "test \"\${$as_ac_Header+set}\" = set"; then
11949 echo "$as_me:$LINENO: checking for $ac_header" >&5
11950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11951if eval "test \"\${$as_ac_Header+set}\" = set"; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953fi
11954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11956else
11957 # Is the header compilable?
11958echo "$as_me:$LINENO: checking $ac_header usability" >&5
11959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11960cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
11966$ac_includes_default
11967#include <$ac_header>
11968_ACEOF
11969rm -f conftest.$ac_objext
11970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971 (eval $ac_compile) 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 ac_header_compiler=yes
11992else
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996ac_header_compiler=no
11997fi
11998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12000echo "${ECHO_T}$ac_header_compiler" >&6
12001
12002# Is the header present?
12003echo "$as_me:$LINENO: checking $ac_header presence" >&5
12004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12005cat >conftest.$ac_ext <<_ACEOF
12006/* confdefs.h. */
12007_ACEOF
12008cat confdefs.h >>conftest.$ac_ext
12009cat >>conftest.$ac_ext <<_ACEOF
12010/* end confdefs.h. */
12011#include <$ac_header>
12012_ACEOF
12013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } >/dev/null; then
12021 if test -s conftest.err; then
12022 ac_cpp_err=$ac_c_preproc_warn_flag
12023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12024 else
12025 ac_cpp_err=
12026 fi
12027else
12028 ac_cpp_err=yes
5ee754fc 12029fi
bec39cab
AC
12030if test -z "$ac_cpp_err"; then
12031 ac_header_preproc=yes
5ee754fc 12032else
bec39cab
AC
12033 echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_header_preproc=no
5ee754fc 12037fi
bec39cab
AC
12038rm -f conftest.err conftest.$ac_ext
12039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12040echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 12041
bec39cab
AC
12042# So? What about this header?
12043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12044 yes:no: )
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12049 ac_header_preproc=yes
12050 ;;
12051 no:yes:* )
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12055echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12059echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12064 (
12065 cat <<\_ASBOX
12066## ------------------------------------------ ##
12067## Report this to the AC_PACKAGE_NAME lists. ##
12068## ------------------------------------------ ##
12069_ASBOX
12070 ) |
12071 sed "s/^/$as_me: WARNING: /" >&2
12072 ;;
12073esac
12074echo "$as_me:$LINENO: checking for $ac_header" >&5
12075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12076if eval "test \"\${$as_ac_Header+set}\" = set"; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12080fi
bec39cab
AC
12081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12083
9608ab8b 12084fi
bec39cab
AC
12085if test `eval echo '${'$as_ac_Header'}'` = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12088_ACEOF
12089
9608ab8b 12090fi
bec39cab 12091
9608ab8b 12092done
5ee754fc 12093
bec39cab
AC
12094
12095
12096
12097for ac_header in termios.h termio.h sgtty.h
5ee754fc 12098do
bec39cab
AC
12099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12100if eval "test \"\${$as_ac_Header+set}\" = set"; then
12101 echo "$as_me:$LINENO: checking for $ac_header" >&5
12102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12103if eval "test \"\${$as_ac_Header+set}\" = set"; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105fi
12106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12108else
12109 # Is the header compilable?
12110echo "$as_me:$LINENO: checking $ac_header usability" >&5
12111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12112cat >conftest.$ac_ext <<_ACEOF
12113/* confdefs.h. */
12114_ACEOF
12115cat confdefs.h >>conftest.$ac_ext
12116cat >>conftest.$ac_ext <<_ACEOF
12117/* end confdefs.h. */
12118$ac_includes_default
12119#include <$ac_header>
12120_ACEOF
12121rm -f conftest.$ac_objext
12122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12123 (eval $ac_compile) 2>conftest.er1
12124 ac_status=$?
12125 grep -v '^ *+' conftest.er1 >conftest.err
12126 rm -f conftest.er1
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try='test -s conftest.$ac_objext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_header_compiler=yes
12144else
12145 echo "$as_me: failed program was:" >&5
12146sed 's/^/| /' conftest.$ac_ext >&5
12147
12148ac_header_compiler=no
12149fi
12150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12152echo "${ECHO_T}$ac_header_compiler" >&6
12153
12154# Is the header present?
12155echo "$as_me:$LINENO: checking $ac_header presence" >&5
12156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12157cat >conftest.$ac_ext <<_ACEOF
12158/* confdefs.h. */
12159_ACEOF
12160cat confdefs.h >>conftest.$ac_ext
12161cat >>conftest.$ac_ext <<_ACEOF
12162/* end confdefs.h. */
12163#include <$ac_header>
12164_ACEOF
12165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } >/dev/null; then
12173 if test -s conftest.err; then
12174 ac_cpp_err=$ac_c_preproc_warn_flag
12175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12176 else
12177 ac_cpp_err=
12178 fi
12179else
12180 ac_cpp_err=yes
9608ab8b 12181fi
bec39cab
AC
12182if test -z "$ac_cpp_err"; then
12183 ac_header_preproc=yes
9608ab8b 12184else
bec39cab
AC
12185 echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
12188 ac_header_preproc=no
9608ab8b 12189fi
bec39cab
AC
12190rm -f conftest.err conftest.$ac_ext
12191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12192echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12193
bec39cab
AC
12194# So? What about this header?
12195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12196 yes:no: )
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12201 ac_header_preproc=yes
12202 ;;
12203 no:yes:* )
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12216 (
12217 cat <<\_ASBOX
12218## ------------------------------------------ ##
12219## Report this to the AC_PACKAGE_NAME lists. ##
12220## ------------------------------------------ ##
12221_ASBOX
12222 ) |
12223 sed "s/^/$as_me: WARNING: /" >&2
12224 ;;
12225esac
12226echo "$as_me:$LINENO: checking for $ac_header" >&5
12227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12228if eval "test \"\${$as_ac_Header+set}\" = set"; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12232fi
bec39cab
AC
12233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12235
9608ab8b 12236fi
bec39cab
AC
12237if test `eval echo '${'$as_ac_Header'}'` = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12240_ACEOF
12241
9608ab8b 12242fi
bec39cab 12243
5ee754fc 12244done
9608ab8b 12245
bec39cab
AC
12246
12247for ac_header in unistd.h
78434e59 12248do
bec39cab
AC
12249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12250if eval "test \"\${$as_ac_Header+set}\" = set"; then
12251 echo "$as_me:$LINENO: checking for $ac_header" >&5
12252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12253if eval "test \"\${$as_ac_Header+set}\" = set"; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255fi
12256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12258else
12259 # Is the header compilable?
12260echo "$as_me:$LINENO: checking $ac_header usability" >&5
12261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12262cat >conftest.$ac_ext <<_ACEOF
12263/* confdefs.h. */
12264_ACEOF
12265cat confdefs.h >>conftest.$ac_ext
12266cat >>conftest.$ac_ext <<_ACEOF
12267/* end confdefs.h. */
12268$ac_includes_default
12269#include <$ac_header>
12270_ACEOF
12271rm -f conftest.$ac_objext
12272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12273 (eval $ac_compile) 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag"
12281 || test ! -s conftest.err'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; } &&
12287 { ac_try='test -s conftest.$ac_objext'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_header_compiler=yes
12294else
12295 echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298ac_header_compiler=no
12299fi
12300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12302echo "${ECHO_T}$ac_header_compiler" >&6
12303
12304# Is the header present?
12305echo "$as_me:$LINENO: checking $ac_header presence" >&5
12306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12307cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313#include <$ac_header>
12314_ACEOF
12315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } >/dev/null; then
12323 if test -s conftest.err; then
12324 ac_cpp_err=$ac_c_preproc_warn_flag
12325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12326 else
12327 ac_cpp_err=
12328 fi
12329else
12330 ac_cpp_err=yes
78434e59 12331fi
bec39cab
AC
12332if test -z "$ac_cpp_err"; then
12333 ac_header_preproc=yes
78434e59 12334else
bec39cab
AC
12335 echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338 ac_header_preproc=no
78434e59 12339fi
bec39cab
AC
12340rm -f conftest.err conftest.$ac_ext
12341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12342echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12343
bec39cab
AC
12344# So? What about this header?
12345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12346 yes:no: )
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12351 ac_header_preproc=yes
12352 ;;
12353 no:yes:* )
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12366 (
12367 cat <<\_ASBOX
12368## ------------------------------------------ ##
12369## Report this to the AC_PACKAGE_NAME lists. ##
12370## ------------------------------------------ ##
12371_ASBOX
12372 ) |
12373 sed "s/^/$as_me: WARNING: /" >&2
12374 ;;
12375esac
12376echo "$as_me:$LINENO: checking for $ac_header" >&5
12377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12378if eval "test \"\${$as_ac_Header+set}\" = set"; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12380else
12381 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12382fi
bec39cab
AC
12383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12385
086ec9eb 12386fi
bec39cab
AC
12387if test `eval echo '${'$as_ac_Header'}'` = yes; then
12388 cat >>confdefs.h <<_ACEOF
12389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12390_ACEOF
12391
086ec9eb 12392fi
bec39cab 12393
086ec9eb
MK
12394done
12395
9608ab8b 12396
b1d19a62 12397# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12398# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12399# think that we don't have <curses.h> if we're using GCC.
12400case $host_os in
b1d19a62 12401 solaris2.[789])
5ee754fc 12402 if test "$GCC" = yes; then
bec39cab
AC
12403
12404cat >>confdefs.h <<\_ACEOF
5ee754fc 12405#define _MSE_INT_H 1
bec39cab 12406_ACEOF
5ee754fc
MK
12407
12408 fi ;;
12409esac
bec39cab
AC
12410
12411
12412
12413
12414for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12415do
bec39cab
AC
12416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12417if eval "test \"\${$as_ac_Header+set}\" = set"; then
12418 echo "$as_me:$LINENO: checking for $ac_header" >&5
12419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12420if eval "test \"\${$as_ac_Header+set}\" = set"; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422fi
12423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12425else
12426 # Is the header compilable?
12427echo "$as_me:$LINENO: checking $ac_header usability" >&5
12428echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12429cat >conftest.$ac_ext <<_ACEOF
12430/* confdefs.h. */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext
12433cat >>conftest.$ac_ext <<_ACEOF
12434/* end confdefs.h. */
12435$ac_includes_default
12436#include <$ac_header>
12437_ACEOF
12438rm -f conftest.$ac_objext
12439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest.$ac_objext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_header_compiler=yes
12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465ac_header_compiler=no
12466fi
12467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12468echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12469echo "${ECHO_T}$ac_header_compiler" >&6
12470
12471# Is the header present?
12472echo "$as_me:$LINENO: checking $ac_header presence" >&5
12473echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12474cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480#include <$ac_header>
12481_ACEOF
12482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12484 ac_status=$?
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } >/dev/null; then
12490 if test -s conftest.err; then
12491 ac_cpp_err=$ac_c_preproc_warn_flag
12492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12493 else
12494 ac_cpp_err=
12495 fi
12496else
12497 ac_cpp_err=yes
c906108c 12498fi
bec39cab
AC
12499if test -z "$ac_cpp_err"; then
12500 ac_header_preproc=yes
12501else
12502 echo "$as_me: failed program was:" >&5
12503sed 's/^/| /' conftest.$ac_ext >&5
12504
12505 ac_header_preproc=no
c906108c 12506fi
bec39cab
AC
12507rm -f conftest.err conftest.$ac_ext
12508echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12509echo "${ECHO_T}$ac_header_preproc" >&6
12510
12511# So? What about this header?
12512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12513 yes:no: )
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12518 ac_header_preproc=yes
12519 ;;
12520 no:yes:* )
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12533 (
12534 cat <<\_ASBOX
12535## ------------------------------------------ ##
12536## Report this to the AC_PACKAGE_NAME lists. ##
12537## ------------------------------------------ ##
12538_ASBOX
12539 ) |
12540 sed "s/^/$as_me: WARNING: /" >&2
12541 ;;
12542esac
12543echo "$as_me:$LINENO: checking for $ac_header" >&5
12544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12545if eval "test \"\${$as_ac_Header+set}\" = set"; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12547else
bec39cab 12548 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12549fi
bec39cab
AC
12550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12552
12553fi
12554if test `eval echo '${'$as_ac_Header'}'` = yes; then
12555 cat >>confdefs.h <<_ACEOF
12556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12557_ACEOF
12558
12559fi
12560
5ee754fc 12561done
c906108c 12562
bec39cab 12563
065a1afc 12564for ac_header in ncurses/term.h
3b78cdbb 12565do
bec39cab
AC
12566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12567if eval "test \"\${$as_ac_Header+set}\" = set"; then
12568 echo "$as_me:$LINENO: checking for $ac_header" >&5
12569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12570if eval "test \"\${$as_ac_Header+set}\" = set"; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572fi
12573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12575else
12576 # Is the header compilable?
12577echo "$as_me:$LINENO: checking $ac_header usability" >&5
12578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12579cat >conftest.$ac_ext <<_ACEOF
12580/* confdefs.h. */
12581_ACEOF
12582cat confdefs.h >>conftest.$ac_ext
12583cat >>conftest.$ac_ext <<_ACEOF
12584/* end confdefs.h. */
12585$ac_includes_default
12586#include <$ac_header>
12587_ACEOF
12588rm -f conftest.$ac_objext
12589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12590 (eval $ac_compile) 2>conftest.er1
12591 ac_status=$?
12592 grep -v '^ *+' conftest.er1 >conftest.err
12593 rm -f conftest.er1
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try='test -z "$ac_c_werror_flag"
12598 || test ! -s conftest.err'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try='test -s conftest.$ac_objext'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_header_compiler=yes
12611else
12612 echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
12615ac_header_compiler=no
12616fi
12617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12619echo "${ECHO_T}$ac_header_compiler" >&6
12620
12621# Is the header present?
12622echo "$as_me:$LINENO: checking $ac_header presence" >&5
12623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12624cat >conftest.$ac_ext <<_ACEOF
12625/* confdefs.h. */
12626_ACEOF
12627cat confdefs.h >>conftest.$ac_ext
12628cat >>conftest.$ac_ext <<_ACEOF
12629/* end confdefs.h. */
12630#include <$ac_header>
12631_ACEOF
12632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } >/dev/null; then
12640 if test -s conftest.err; then
12641 ac_cpp_err=$ac_c_preproc_warn_flag
12642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12643 else
12644 ac_cpp_err=
12645 fi
12646else
12647 ac_cpp_err=yes
3b78cdbb 12648fi
bec39cab
AC
12649if test -z "$ac_cpp_err"; then
12650 ac_header_preproc=yes
12651else
12652 echo "$as_me: failed program was:" >&5
12653sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 ac_header_preproc=no
3b78cdbb 12656fi
bec39cab
AC
12657rm -f conftest.err conftest.$ac_ext
12658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12659echo "${ECHO_T}$ac_header_preproc" >&6
12660
12661# So? What about this header?
12662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12663 yes:no: )
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12668 ac_header_preproc=yes
12669 ;;
12670 no:yes:* )
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12683 (
12684 cat <<\_ASBOX
12685## ------------------------------------------ ##
12686## Report this to the AC_PACKAGE_NAME lists. ##
12687## ------------------------------------------ ##
12688_ASBOX
12689 ) |
12690 sed "s/^/$as_me: WARNING: /" >&2
12691 ;;
12692esac
12693echo "$as_me:$LINENO: checking for $ac_header" >&5
12694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12695if eval "test \"\${$as_ac_Header+set}\" = set"; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12697else
bec39cab
AC
12698 eval "$as_ac_Header=\$ac_header_preproc"
12699fi
12700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12702
3b78cdbb 12703fi
bec39cab
AC
12704if test `eval echo '${'$as_ac_Header'}'` = yes; then
12705 cat >>confdefs.h <<_ACEOF
12706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12707_ACEOF
12708
12709fi
12710
3b78cdbb
DA
12711done
12712
c906108c 12713
065a1afc
JB
12714for ac_header in term.h
12715do
12716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12717echo "$as_me:$LINENO: checking for $ac_header" >&5
12718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12719if eval "test \"\${$as_ac_Header+set}\" = set"; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721else
12722 cat >conftest.$ac_ext <<_ACEOF
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
12728#if HAVE_CURSES_H
12729# include <curses.h>
12730#endif
12731
12732
12733#include <$ac_header>
12734_ACEOF
12735rm -f conftest.$ac_objext
12736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12737 (eval $ac_compile) 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -z "$ac_c_werror_flag"
12745 || test ! -s conftest.err'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 eval "$as_ac_Header=yes"
12758else
12759 echo "$as_me: failed program was:" >&5
12760sed 's/^/| /' conftest.$ac_ext >&5
12761
12762eval "$as_ac_Header=no"
12763fi
12764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12765fi
12766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12768if test `eval echo '${'$as_ac_Header'}'` = yes; then
12769 cat >>confdefs.h <<_ACEOF
12770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12771_ACEOF
12772
12773fi
12774
12775done
12776
12777
5ee754fc
MK
12778# FIXME: kettenis/20030102: In most cases we include these
12779# unconditionally, so what's the point in checking these?
bec39cab
AC
12780
12781
12782for ac_header in ctype.h time.h
c906108c 12783do
bec39cab
AC
12784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12785if eval "test \"\${$as_ac_Header+set}\" = set"; then
12786 echo "$as_me:$LINENO: checking for $ac_header" >&5
12787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12788if eval "test \"\${$as_ac_Header+set}\" = set"; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790fi
12791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12793else
12794 # Is the header compilable?
12795echo "$as_me:$LINENO: checking $ac_header usability" >&5
12796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12797cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
12803$ac_includes_default
12804#include <$ac_header>
12805_ACEOF
12806rm -f conftest.$ac_objext
12807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_c_werror_flag"
12816 || test ! -s conftest.err'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } &&
12822 { ac_try='test -s conftest.$ac_objext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_header_compiler=yes
12829else
12830 echo "$as_me: failed program was:" >&5
12831sed 's/^/| /' conftest.$ac_ext >&5
12832
12833ac_header_compiler=no
12834fi
12835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12837echo "${ECHO_T}$ac_header_compiler" >&6
12838
12839# Is the header present?
12840echo "$as_me:$LINENO: checking $ac_header presence" >&5
12841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12842cat >conftest.$ac_ext <<_ACEOF
12843/* confdefs.h. */
12844_ACEOF
12845cat confdefs.h >>conftest.$ac_ext
12846cat >>conftest.$ac_ext <<_ACEOF
12847/* end confdefs.h. */
12848#include <$ac_header>
12849_ACEOF
12850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } >/dev/null; then
12858 if test -s conftest.err; then
12859 ac_cpp_err=$ac_c_preproc_warn_flag
12860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12861 else
12862 ac_cpp_err=
12863 fi
12864else
12865 ac_cpp_err=yes
c906108c 12866fi
bec39cab
AC
12867if test -z "$ac_cpp_err"; then
12868 ac_header_preproc=yes
12869else
12870 echo "$as_me: failed program was:" >&5
12871sed 's/^/| /' conftest.$ac_ext >&5
12872
12873 ac_header_preproc=no
c906108c 12874fi
bec39cab
AC
12875rm -f conftest.err conftest.$ac_ext
12876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12877echo "${ECHO_T}$ac_header_preproc" >&6
12878
12879# So? What about this header?
12880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12881 yes:no: )
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12886 ac_header_preproc=yes
12887 ;;
12888 no:yes:* )
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12892echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12896echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12901 (
12902 cat <<\_ASBOX
12903## ------------------------------------------ ##
12904## Report this to the AC_PACKAGE_NAME lists. ##
12905## ------------------------------------------ ##
12906_ASBOX
12907 ) |
12908 sed "s/^/$as_me: WARNING: /" >&2
12909 ;;
12910esac
12911echo "$as_me:$LINENO: checking for $ac_header" >&5
12912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12913if eval "test \"\${$as_ac_Header+set}\" = set"; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12915else
bec39cab
AC
12916 eval "$as_ac_Header=\$ac_header_preproc"
12917fi
12918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12920
12921fi
12922if test `eval echo '${'$as_ac_Header'}'` = yes; then
12923 cat >>confdefs.h <<_ACEOF
12924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12925_ACEOF
12926
c906108c 12927fi
bec39cab 12928
c906108c
SS
12929done
12930
5ee754fc 12931
666ec76f
MK
12932# ------------------------- #
12933# Checks for declarations. #
12934# ------------------------- #
12935
a3828db0
MK
12936echo "$as_me:$LINENO: checking whether free is declared" >&5
12937echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12938if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 12939 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12940else
bec39cab
AC
12941 cat >conftest.$ac_ext <<_ACEOF
12942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h. */
a3828db0 12947$ac_includes_default
bec39cab
AC
12948int
12949main ()
12950{
a3828db0
MK
12951#ifndef free
12952 char *p = (char *) free;
666ec76f 12953#endif
a3828db0 12954
bec39cab
AC
12955 ;
12956 return 0;
12957}
12958_ACEOF
12959rm -f conftest.$ac_objext
12960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>conftest.er1
12962 ac_status=$?
12963 grep -v '^ *+' conftest.er1 >conftest.err
12964 rm -f conftest.er1
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -z "$ac_c_werror_flag"
12969 || test ! -s conftest.err'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
a3828db0 12981 ac_cv_have_decl_free=yes
40a7debc 12982else
bec39cab
AC
12983 echo "$as_me: failed program was:" >&5
12984sed 's/^/| /' conftest.$ac_ext >&5
12985
a3828db0 12986ac_cv_have_decl_free=no
40a7debc 12987fi
bec39cab 12988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 12989fi
a3828db0
MK
12990echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12991echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12992if test $ac_cv_have_decl_free = yes; then
40a7debc 12993
a3828db0
MK
12994cat >>confdefs.h <<_ACEOF
12995#define HAVE_DECL_FREE 1
666ec76f
MK
12996_ACEOF
12997
a3828db0 12998
666ec76f 12999else
a3828db0
MK
13000 cat >>confdefs.h <<_ACEOF
13001#define HAVE_DECL_FREE 0
bec39cab 13002_ACEOF
40a7debc 13003
b9362cc7 13004
666ec76f 13005fi
a3828db0
MK
13006echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13007echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13008if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010else
13011 cat >conftest.$ac_ext <<_ACEOF
13012/* confdefs.h. */
13013_ACEOF
13014cat confdefs.h >>conftest.$ac_ext
13015cat >>conftest.$ac_ext <<_ACEOF
13016/* end confdefs.h. */
666ec76f
MK
13017$ac_includes_default
13018int
13019main ()
13020{
a3828db0
MK
13021#ifndef malloc
13022 char *p = (char *) malloc;
13023#endif
13024
666ec76f
MK
13025 ;
13026 return 0;
13027}
13028_ACEOF
13029rm -f conftest.$ac_objext
13030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13031 (eval $ac_compile) 2>conftest.er1
13032 ac_status=$?
13033 grep -v '^ *+' conftest.er1 >conftest.err
13034 rm -f conftest.er1
13035 cat conftest.err >&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -z "$ac_c_werror_flag"
13039 || test ! -s conftest.err'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } &&
13045 { ac_try='test -s conftest.$ac_objext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
a3828db0 13051 ac_cv_have_decl_malloc=yes
666ec76f
MK
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 13055
a3828db0
MK
13056ac_cv_have_decl_malloc=no
13057fi
13058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13059fi
13060echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13061echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13062if test $ac_cv_have_decl_malloc = yes; then
13063
13064cat >>confdefs.h <<_ACEOF
13065#define HAVE_DECL_MALLOC 1
13066_ACEOF
13067
13068
13069else
13070 cat >>confdefs.h <<_ACEOF
13071#define HAVE_DECL_MALLOC 0
13072_ACEOF
13073
13074
13075fi
13076echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13077echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13078if test "${ac_cv_have_decl_realloc+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080else
13081 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
13087$ac_includes_default
bec39cab
AC
13088int
13089main ()
13090{
a3828db0
MK
13091#ifndef realloc
13092 char *p = (char *) realloc;
13093#endif
13094
bec39cab
AC
13095 ;
13096 return 0;
13097}
13098_ACEOF
13099rm -f conftest.$ac_objext
13100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
a3828db0 13121 ac_cv_have_decl_realloc=yes
b9362cc7 13122else
bec39cab
AC
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
a3828db0 13126ac_cv_have_decl_realloc=no
b9362cc7 13127fi
bec39cab 13128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13129fi
a3828db0
MK
13130echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13131echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13132if test $ac_cv_have_decl_realloc = yes; then
b9362cc7 13133
666ec76f 13134cat >>confdefs.h <<_ACEOF
a3828db0 13135#define HAVE_DECL_REALLOC 1
bec39cab
AC
13136_ACEOF
13137
bec39cab 13138
a3828db0
MK
13139else
13140 cat >>confdefs.h <<_ACEOF
13141#define HAVE_DECL_REALLOC 0
13142_ACEOF
b9362cc7
AC
13143
13144
a3828db0 13145fi
5ee754fc 13146
a3828db0
MK
13147
13148echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13149echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13150if test "${ac_cv_have_decl_strerror+set}" = set; then
bec39cab
AC
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13152else
13153 cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
a3828db0 13159$ac_includes_default
bec39cab
AC
13160int
13161main ()
13162{
a3828db0
MK
13163#ifndef strerror
13164 char *p = (char *) strerror;
13165#endif
13166
bec39cab
AC
13167 ;
13168 return 0;
13169}
13170_ACEOF
13171rm -f conftest.$ac_objext
13172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13173 (eval $ac_compile) 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag"
13181 || test ! -s conftest.err'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try='test -s conftest.$ac_objext'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
a3828db0 13193 ac_cv_have_decl_strerror=yes
c906108c 13194else
bec39cab
AC
13195 echo "$as_me: failed program was:" >&5
13196sed 's/^/| /' conftest.$ac_ext >&5
13197
a3828db0 13198ac_cv_have_decl_strerror=no
c906108c 13199fi
bec39cab 13200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13201fi
a3828db0
MK
13202echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13203echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13204if test $ac_cv_have_decl_strerror = yes; then
c906108c 13205
bec39cab 13206cat >>confdefs.h <<_ACEOF
a3828db0 13207#define HAVE_DECL_STRERROR 1
bec39cab 13208_ACEOF
c906108c 13209
c906108c 13210
a3828db0
MK
13211else
13212 cat >>confdefs.h <<_ACEOF
13213#define HAVE_DECL_STRERROR 0
13214_ACEOF
c906108c 13215
5ee754fc 13216
a3828db0
MK
13217fi
13218echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13219echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13220if test "${ac_cv_have_decl_strstr+set}" = set; then
bec39cab
AC
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222else
13223 cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
a3828db0 13229$ac_includes_default
bec39cab
AC
13230int
13231main ()
13232{
a3828db0
MK
13233#ifndef strstr
13234 char *p = (char *) strstr;
bec39cab
AC
13235#endif
13236
13237 ;
13238 return 0;
13239}
13240_ACEOF
13241rm -f conftest.$ac_objext
13242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
a3828db0 13263 ac_cv_have_decl_strstr=yes
c906108c 13264else
bec39cab
AC
13265 echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
a3828db0 13268ac_cv_have_decl_strstr=no
c906108c 13269fi
bec39cab 13270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13271fi
a3828db0
MK
13272echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13273echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13274if test $ac_cv_have_decl_strstr = yes; then
bec39cab 13275
a3828db0
MK
13276cat >>confdefs.h <<_ACEOF
13277#define HAVE_DECL_STRSTR 1
13278_ACEOF
13279
13280
13281else
13282 cat >>confdefs.h <<_ACEOF
13283#define HAVE_DECL_STRSTR 0
bec39cab 13284_ACEOF
c906108c 13285
a3828db0 13286
c906108c
SS
13287fi
13288
a3828db0
MK
13289
13290echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13291echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13292if test "${ac_cv_have_decl_getopt+set}" = set; then
bec39cab 13293 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13294else
bec39cab
AC
13295 cat >conftest.$ac_ext <<_ACEOF
13296/* confdefs.h. */
13297_ACEOF
13298cat confdefs.h >>conftest.$ac_ext
13299cat >>conftest.$ac_ext <<_ACEOF
13300/* end confdefs.h. */
a3828db0
MK
13301$ac_includes_default
13302int
13303main ()
13304{
13305#ifndef getopt
13306 char *p = (char *) getopt;
bec39cab
AC
13307#endif
13308
a3828db0
MK
13309 ;
13310 return 0;
13311}
bec39cab
AC
13312_ACEOF
13313rm -f conftest.$ac_objext
13314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315 (eval $ac_compile) 2>conftest.er1
13316 ac_status=$?
13317 grep -v '^ *+' conftest.er1 >conftest.err
13318 rm -f conftest.er1
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -z "$ac_c_werror_flag"
13323 || test ! -s conftest.err'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; } &&
13329 { ac_try='test -s conftest.$ac_objext'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
a3828db0 13335 ac_cv_have_decl_getopt=yes
bce58c09 13336else
bec39cab
AC
13337 echo "$as_me: failed program was:" >&5
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
a3828db0 13340ac_cv_have_decl_getopt=no
bce58c09 13341fi
bec39cab 13342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13343fi
a3828db0
MK
13344echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13345echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13346if test $ac_cv_have_decl_getopt = yes; then
bec39cab 13347
a3828db0
MK
13348cat >>confdefs.h <<_ACEOF
13349#define HAVE_DECL_GETOPT 1
13350_ACEOF
bce58c09 13351
a3828db0
MK
13352
13353else
13354 cat >>confdefs.h <<_ACEOF
13355#define HAVE_DECL_GETOPT 0
bec39cab 13356_ACEOF
bce58c09 13357
c906108c 13358
e5a7de23
EZ
13359fi
13360echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13361echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13362if test "${ac_cv_have_decl_snprintf+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365 cat >conftest.$ac_ext <<_ACEOF
13366/* confdefs.h. */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
13370/* end confdefs.h. */
13371$ac_includes_default
13372int
13373main ()
13374{
13375#ifndef snprintf
13376 char *p = (char *) snprintf;
13377#endif
13378
13379 ;
13380 return 0;
13381}
13382_ACEOF
13383rm -f conftest.$ac_objext
13384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13385 (eval $ac_compile) 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag"
13393 || test ! -s conftest.err'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest.$ac_objext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 ac_cv_have_decl_snprintf=yes
13406else
13407 echo "$as_me: failed program was:" >&5
13408sed 's/^/| /' conftest.$ac_ext >&5
13409
13410ac_cv_have_decl_snprintf=no
13411fi
13412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13413fi
13414echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13415echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13416if test $ac_cv_have_decl_snprintf = yes; then
13417
13418cat >>confdefs.h <<_ACEOF
13419#define HAVE_DECL_SNPRINTF 1
13420_ACEOF
13421
13422
13423else
13424 cat >>confdefs.h <<_ACEOF
13425#define HAVE_DECL_SNPRINTF 0
13426_ACEOF
13427
13428
13429fi
13430echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13431echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13432if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13434else
13435 cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h. */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
13440/* end confdefs.h. */
13441$ac_includes_default
13442int
13443main ()
13444{
13445#ifndef vsnprintf
13446 char *p = (char *) vsnprintf;
13447#endif
13448
13449 ;
13450 return 0;
13451}
13452_ACEOF
13453rm -f conftest.$ac_objext
13454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13455 (eval $ac_compile) 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest.$ac_objext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_cv_have_decl_vsnprintf=yes
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
13480ac_cv_have_decl_vsnprintf=no
13481fi
13482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13483fi
13484echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13485echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13486if test $ac_cv_have_decl_vsnprintf = yes; then
13487
13488cat >>confdefs.h <<_ACEOF
13489#define HAVE_DECL_VSNPRINTF 1
13490_ACEOF
13491
13492
13493else
13494 cat >>confdefs.h <<_ACEOF
13495#define HAVE_DECL_VSNPRINTF 0
13496_ACEOF
13497
13498
a3828db0 13499fi
5ee754fc 13500
a3828db0
MK
13501
13502
13503# ----------------------- #
13504# Checks for structures. #
13505# ----------------------- #
13506
13507echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13508echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13509if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
bec39cab
AC
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511else
13512 cat >conftest.$ac_ext <<_ACEOF
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
a3828db0 13518$ac_includes_default
bec39cab
AC
13519int
13520main ()
13521{
a3828db0
MK
13522static struct stat ac_aggr;
13523if (ac_aggr.st_blocks)
13524return 0;
bec39cab
AC
13525 ;
13526 return 0;
13527}
13528_ACEOF
a3828db0
MK
13529rm -f conftest.$ac_objext
13530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13531 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13532 ac_status=$?
13533 grep -v '^ *+' conftest.er1 >conftest.err
13534 rm -f conftest.er1
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } &&
13538 { ac_try='test -z "$ac_c_werror_flag"
13539 || test ! -s conftest.err'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13542 ac_status=$?
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; } &&
a3828db0 13545 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }; then
a3828db0 13551 ac_cv_member_struct_stat_st_blocks=yes
bec39cab
AC
13552else
13553 echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
13555
a3828db0
MK
13556cat >conftest.$ac_ext <<_ACEOF
13557/* confdefs.h. */
bec39cab
AC
13558_ACEOF
13559cat confdefs.h >>conftest.$ac_ext
13560cat >>conftest.$ac_ext <<_ACEOF
13561/* end confdefs.h. */
a3828db0 13562$ac_includes_default
bec39cab
AC
13563int
13564main ()
13565{
a3828db0
MK
13566static struct stat ac_aggr;
13567if (sizeof ac_aggr.st_blocks)
13568return 0;
bec39cab
AC
13569 ;
13570 return 0;
13571}
13572_ACEOF
a3828db0
MK
13573rm -f conftest.$ac_objext
13574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } &&
13582 { ac_try='test -z "$ac_c_werror_flag"
13583 || test ! -s conftest.err'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; } &&
a3828db0 13589 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
a3828db0 13595 ac_cv_member_struct_stat_st_blocks=yes
46711df8 13596else
bec39cab
AC
13597 echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
a3828db0 13600ac_cv_member_struct_stat_st_blocks=no
46711df8 13601fi
a3828db0 13602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13603fi
a3828db0
MK
13604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13605fi
13606echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13607echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13608if test $ac_cv_member_struct_stat_st_blocks = yes; then
46711df8 13609
a3828db0
MK
13610cat >>confdefs.h <<_ACEOF
13611#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab 13612_ACEOF
46711df8 13613
46711df8 13614
d3ea6809
MM
13615fi
13616
13617echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13618echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13619if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622 cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
13628$ac_includes_default
13629int
13630main ()
13631{
13632static struct stat ac_aggr;
13633if (ac_aggr.st_blksize)
13634return 0;
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639rm -f conftest.$ac_objext
13640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13641 (eval $ac_compile) 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_c_werror_flag"
13649 || test ! -s conftest.err'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 ac_cv_member_struct_stat_st_blksize=yes
13662else
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666cat >conftest.$ac_ext <<_ACEOF
13667/* confdefs.h. */
13668_ACEOF
13669cat confdefs.h >>conftest.$ac_ext
13670cat >>conftest.$ac_ext <<_ACEOF
13671/* end confdefs.h. */
13672$ac_includes_default
13673int
13674main ()
13675{
13676static struct stat ac_aggr;
13677if (sizeof ac_aggr.st_blksize)
13678return 0;
13679 ;
13680 return 0;
13681}
13682_ACEOF
13683rm -f conftest.$ac_objext
13684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685 (eval $ac_compile) 2>conftest.er1
13686 ac_status=$?
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_c_werror_flag"
13693 || test ! -s conftest.err'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; } &&
13699 { ac_try='test -s conftest.$ac_objext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_cv_member_struct_stat_st_blksize=yes
13706else
13707 echo "$as_me: failed program was:" >&5
13708sed 's/^/| /' conftest.$ac_ext >&5
13709
13710ac_cv_member_struct_stat_st_blksize=no
13711fi
13712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713fi
13714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13715fi
13716echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13717echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13718if test $ac_cv_member_struct_stat_st_blksize = yes; then
13719
13720cat >>confdefs.h <<_ACEOF
13721#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13722_ACEOF
13723
13724
a3828db0 13725fi
46711df8 13726
46711df8 13727
a3828db0
MK
13728# ------------------ #
13729# Checks for types. #
13730# ------------------ #
46711df8 13731
a3828db0
MK
13732echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13733echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13734if test "${ac_cv_type_signal+set}" = set; then
bec39cab
AC
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736else
13737 cat >conftest.$ac_ext <<_ACEOF
13738/* confdefs.h. */
13739_ACEOF
13740cat confdefs.h >>conftest.$ac_ext
13741cat >>conftest.$ac_ext <<_ACEOF
13742/* end confdefs.h. */
a3828db0
MK
13743#include <sys/types.h>
13744#include <signal.h>
13745#ifdef signal
13746# undef signal
bec39cab 13747#endif
bec39cab 13748#ifdef __cplusplus
a3828db0 13749extern "C" void (*signal (int, void (*)(int)))(int);
46711df8 13750#else
a3828db0 13751void (*signal ()) ();
46711df8
MK
13752#endif
13753
bec39cab
AC
13754int
13755main ()
13756{
a3828db0 13757int i;
bec39cab
AC
13758 ;
13759 return 0;
13760}
13761_ACEOF
a3828db0
MK
13762rm -f conftest.$ac_objext
13763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_c_werror_flag"
13772 || test ! -s conftest.err'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
a3828db0 13778 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
a3828db0 13784 ac_cv_type_signal=void
bec39cab
AC
13785else
13786 echo "$as_me: failed program was:" >&5
13787sed 's/^/| /' conftest.$ac_ext >&5
13788
a3828db0 13789ac_cv_type_signal=int
bec39cab 13790fi
a3828db0 13791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 13792fi
a3828db0
MK
13793echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13794echo "${ECHO_T}$ac_cv_type_signal" >&6
bec39cab
AC
13795
13796cat >>confdefs.h <<_ACEOF
a3828db0 13797#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13798_ACEOF
46711df8 13799
46711df8 13800
f9f87d2c
MK
13801echo "$as_me:$LINENO: checking for socklen_t" >&5
13802echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13803if test "${ac_cv_type_socklen_t+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13805else
13806 cat >conftest.$ac_ext <<_ACEOF
13807/* confdefs.h. */
13808_ACEOF
13809cat confdefs.h >>conftest.$ac_ext
13810cat >>conftest.$ac_ext <<_ACEOF
13811/* end confdefs.h. */
13812#include <sys/types.h>
13813#include <sys/socket.h>
13814
13815
13816int
13817main ()
13818{
13819if ((socklen_t *) 0)
13820 return 0;
13821if (sizeof (socklen_t))
13822 return 0;
13823 ;
13824 return 0;
13825}
13826_ACEOF
13827rm -f conftest.$ac_objext
13828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13829 (eval $ac_compile) 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -z "$ac_c_werror_flag"
13837 || test ! -s conftest.err'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest.$ac_objext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_cv_type_socklen_t=yes
13850else
13851 echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854ac_cv_type_socklen_t=no
13855fi
13856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13857fi
13858echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13859echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13860if test $ac_cv_type_socklen_t = yes; then
13861
13862cat >>confdefs.h <<_ACEOF
13863#define HAVE_SOCKLEN_T 1
13864_ACEOF
13865
13866
3be60c3d
MK
13867fi
13868
13869echo "$as_me:$LINENO: checking for uintptr_t" >&5
13870echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13871if test "${ac_cv_type_uintptr_t+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873else
13874 cat >conftest.$ac_ext <<_ACEOF
13875/* confdefs.h. */
13876_ACEOF
13877cat confdefs.h >>conftest.$ac_ext
13878cat >>conftest.$ac_ext <<_ACEOF
13879/* end confdefs.h. */
13880#include <stdint.h>
13881
13882int
13883main ()
13884{
13885if ((uintptr_t *) 0)
13886 return 0;
13887if (sizeof (uintptr_t))
13888 return 0;
13889 ;
13890 return 0;
13891}
13892_ACEOF
13893rm -f conftest.$ac_objext
13894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag"
13903 || test ! -s conftest.err'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_type_uintptr_t=yes
13916else
13917 echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
13920ac_cv_type_uintptr_t=no
13921fi
13922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13923fi
13924echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13925echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13926if test $ac_cv_type_uintptr_t = yes; then
13927
13928cat >>confdefs.h <<_ACEOF
13929#define HAVE_UINTPTR_T 1
13930_ACEOF
13931
13932
f9f87d2c
MK
13933fi
13934
46711df8 13935
a3828db0
MK
13936# ------------------------------------- #
13937# Checks for compiler characteristics. #
13938# ------------------------------------- #
13939
13940echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13941echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13942if test "${ac_cv_c_const+set}" = set; then
bec39cab 13943 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13944else
bec39cab
AC
13945 cat >conftest.$ac_ext <<_ACEOF
13946/* confdefs.h. */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h. */
bec39cab
AC
13951
13952int
46711df8
MK
13953main ()
13954{
a3828db0
MK
13955/* FIXME: Include the comments suggested by Paul. */
13956#ifndef __cplusplus
13957 /* Ultrix mips cc rejects this. */
13958 typedef int charset[2];
13959 const charset x;
13960 /* SunOS 4.1.1 cc rejects this. */
13961 char const *const *ccp;
13962 char **p;
13963 /* NEC SVR4.0.2 mips cc rejects this. */
13964 struct point {int x, y;};
13965 static struct point const zero = {0,0};
13966 /* AIX XL C 1.02.0.0 rejects this.
13967 It does not let you subtract one const X* pointer from another in
13968 an arm of an if-expression whose if-part is not a constant
13969 expression */
13970 const char *g = "string";
13971 ccp = &g + (g ? g-g : 0);
13972 /* HPUX 7.0 cc rejects these. */
13973 ++ccp;
13974 p = (char**) ccp;
13975 ccp = (char const *const *) p;
13976 { /* SCO 3.2v4 cc rejects this. */
13977 char *t;
13978 char const *s = 0 ? (char *) 0 : (char const *) 0;
13979
13980 *t++ = 0;
13981 }
13982 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13983 int x[] = {25, 17};
13984 const int *foo = &x[0];
13985 ++foo;
13986 }
13987 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13988 typedef const int *iptr;
13989 iptr p = 0;
13990 ++p;
13991 }
13992 { /* AIX XL C 1.02.0.0 rejects this saying
13993 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13994 struct s { int j; const int *ap[3]; };
13995 struct s *b; b->j = 5;
13996 }
13997 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13998 const int foo = 10;
13999 }
14000#endif
14001
14002 ;
14003 return 0;
46711df8 14004}
bec39cab 14005_ACEOF
a3828db0
MK
14006rm -f conftest.$ac_objext
14007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14008 (eval $ac_compile) 2>conftest.er1
14009 ac_status=$?
14010 grep -v '^ *+' conftest.er1 >conftest.err
14011 rm -f conftest.er1
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -z "$ac_c_werror_flag"
14016 || test ! -s conftest.err'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
bec39cab
AC
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
a3828db0 14028 ac_cv_c_const=yes
46711df8 14029else
a3828db0 14030 echo "$as_me: failed program was:" >&5
bec39cab
AC
14031sed 's/^/| /' conftest.$ac_ext >&5
14032
a3828db0 14033ac_cv_c_const=no
46711df8 14034fi
a3828db0 14035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 14036fi
a3828db0
MK
14037echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14038echo "${ECHO_T}$ac_cv_c_const" >&6
14039if test $ac_cv_c_const = no; then
46711df8 14040
a3828db0
MK
14041cat >>confdefs.h <<\_ACEOF
14042#define const
bec39cab
AC
14043_ACEOF
14044
46711df8
MK
14045fi
14046
a3828db0
MK
14047echo "$as_me:$LINENO: checking for inline" >&5
14048echo $ECHO_N "checking for inline... $ECHO_C" >&6
14049if test "${ac_cv_c_inline+set}" = set; then
bec39cab 14050 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14051else
a3828db0
MK
14052 ac_cv_c_inline=no
14053for ac_kw in inline __inline__ __inline; do
14054 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
14059/* end confdefs.h. */
a3828db0
MK
14060#ifndef __cplusplus
14061typedef int foo_t;
14062static $ac_kw foo_t static_foo () {return 0; }
14063$ac_kw foo_t foo () {return 0; }
14064#endif
14065
bec39cab
AC
14066_ACEOF
14067rm -f conftest.$ac_objext
14068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14069 (eval $ac_compile) 2>conftest.er1
14070 ac_status=$?
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -z "$ac_c_werror_flag"
14077 || test ! -s conftest.err'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
a3828db0 14089 ac_cv_c_inline=$ac_kw; break
bec39cab
AC
14090else
14091 echo "$as_me: failed program was:" >&5
14092sed 's/^/| /' conftest.$ac_ext >&5
14093
bec39cab
AC
14094fi
14095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0 14096done
bec39cab 14097
74c1b268 14098fi
a3828db0
MK
14099echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14100echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 14101
bec39cab 14102
a3828db0
MK
14103case $ac_cv_c_inline in
14104 inline | yes) ;;
14105 *)
14106 case $ac_cv_c_inline in
14107 no) ac_val=;;
14108 *) ac_val=$ac_cv_c_inline;;
14109 esac
14110 cat >>confdefs.h <<_ACEOF
14111#ifndef __cplusplus
14112#define inline $ac_val
14113#endif
14114_ACEOF
bec39cab
AC
14115 ;;
14116esac
bec39cab 14117
74c1b268 14118
a3828db0
MK
14119# ------------------------------ #
14120# Checks for library functions. #
14121# ------------------------------ #
bec39cab 14122
a3828db0
MK
14123# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14124# for constant arguments. Useless!
14125echo "$as_me:$LINENO: checking for working alloca.h" >&5
14126echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14127if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14129else
14130 cat >conftest.$ac_ext <<_ACEOF
14131/* confdefs.h. */
14132_ACEOF
14133cat confdefs.h >>conftest.$ac_ext
14134cat >>conftest.$ac_ext <<_ACEOF
14135/* end confdefs.h. */
a3828db0 14136#include <alloca.h>
bec39cab
AC
14137int
14138main ()
14139{
a3828db0 14140char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
14141 ;
14142 return 0;
14143}
14144_ACEOF
14145rm -f conftest.$ac_objext conftest$ac_exeext
14146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14147 (eval $ac_link) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
14154 { ac_try='test -z "$ac_c_werror_flag"
14155 || test ! -s conftest.err'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest$ac_exeext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
a3828db0 14167 ac_cv_working_alloca_h=yes
bec39cab
AC
14168else
14169 echo "$as_me: failed program was:" >&5
14170sed 's/^/| /' conftest.$ac_ext >&5
14171
a3828db0 14172ac_cv_working_alloca_h=no
bec39cab
AC
14173fi
14174rm -f conftest.err conftest.$ac_objext \
14175 conftest$ac_exeext conftest.$ac_ext
14176fi
a3828db0
MK
14177echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14178echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14179if test $ac_cv_working_alloca_h = yes; then
14180
14181cat >>confdefs.h <<\_ACEOF
14182#define HAVE_ALLOCA_H 1
bec39cab 14183_ACEOF
74c1b268 14184
74c1b268
AC
14185fi
14186
a3828db0
MK
14187echo "$as_me:$LINENO: checking for alloca" >&5
14188echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14189if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 14190 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 14191else
bec39cab
AC
14192 cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
a3828db0
MK
14198#ifdef __GNUC__
14199# define alloca __builtin_alloca
14200#else
14201# ifdef _MSC_VER
14202# include <malloc.h>
14203# define alloca _alloca
14204# else
14205# if HAVE_ALLOCA_H
14206# include <alloca.h>
14207# else
14208# ifdef _AIX
14209 #pragma alloca
14210# else
14211# ifndef alloca /* predefined by HP cc +Olibcalls */
14212char *alloca ();
14213# endif
14214# endif
14215# endif
97bf5e38 14216# endif
a3828db0 14217#endif
97bf5e38 14218
bec39cab
AC
14219int
14220main ()
14221{
a3828db0 14222char *p = (char *) alloca (1);
bec39cab
AC
14223 ;
14224 return 0;
14225}
14226_ACEOF
a3828db0
MK
14227rm -f conftest.$ac_objext conftest$ac_exeext
14228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14229 (eval $ac_link) 2>conftest.er1
bec39cab
AC
14230 ac_status=$?
14231 grep -v '^ *+' conftest.er1 >conftest.err
14232 rm -f conftest.er1
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_c_werror_flag"
14237 || test ! -s conftest.err'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
a3828db0 14243 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
a3828db0 14249 ac_cv_func_alloca_works=yes
0200359f 14250else
bec39cab
AC
14251 echo "$as_me: failed program was:" >&5
14252sed 's/^/| /' conftest.$ac_ext >&5
0200359f 14253
a3828db0 14254ac_cv_func_alloca_works=no
0200359f 14255fi
a3828db0
MK
14256rm -f conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
72473524 14258fi
a3828db0
MK
14259echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14260echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 14261
a3828db0
MK
14262if test $ac_cv_func_alloca_works = yes; then
14263
14264cat >>confdefs.h <<\_ACEOF
14265#define HAVE_ALLOCA 1
bec39cab
AC
14266_ACEOF
14267
a3828db0
MK
14268else
14269 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14270# that cause trouble. Some versions do not even contain alloca or
14271# contain a buggy version. If you still want to use their alloca,
14272# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 14273
a3828db0 14274ALLOCA=alloca.$ac_objext
bec39cab 14275
a3828db0
MK
14276cat >>confdefs.h <<\_ACEOF
14277#define C_ALLOCA 1
14278_ACEOF
bec39cab 14279
a3828db0
MK
14280
14281echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14282echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14283if test "${ac_cv_os_cray+set}" = set; then
bec39cab 14284 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14285else
a3828db0 14286 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14287/* confdefs.h. */
14288_ACEOF
14289cat confdefs.h >>conftest.$ac_ext
14290cat >>conftest.$ac_ext <<_ACEOF
14291/* end confdefs.h. */
a3828db0
MK
14292#if defined(CRAY) && ! defined(CRAY2)
14293webecray
14294#else
14295wenotbecray
14296#endif
14297
14298_ACEOF
14299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14300 $EGREP "webecray" >/dev/null 2>&1; then
14301 ac_cv_os_cray=yes
14302else
14303 ac_cv_os_cray=no
14304fi
14305rm -f conftest*
14306
14307fi
14308echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14309echo "${ECHO_T}$ac_cv_os_cray" >&6
14310if test $ac_cv_os_cray = yes; then
14311 for ac_func in _getb67 GETB67 getb67; do
14312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14313echo "$as_me:$LINENO: checking for $ac_func" >&5
14314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14315if eval "test \"\${$as_ac_var+set}\" = set"; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14317else
14318 cat >conftest.$ac_ext <<_ACEOF
14319/* confdefs.h. */
14320_ACEOF
14321cat confdefs.h >>conftest.$ac_ext
14322cat >>conftest.$ac_ext <<_ACEOF
14323/* end confdefs.h. */
14324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14326#define $ac_func innocuous_$ac_func
14327
14328/* System header to define __stub macros and hopefully few prototypes,
14329 which can conflict with char $ac_func (); below.
14330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14331 <limits.h> exists even on freestanding compilers. */
14332
14333#ifdef __STDC__
14334# include <limits.h>
14335#else
14336# include <assert.h>
14337#endif
14338
14339#undef $ac_func
14340
14341/* Override any gcc2 internal prototype to avoid an error. */
14342#ifdef __cplusplus
14343extern "C"
14344{
14345#endif
14346/* We use char because int might match the return type of a gcc2
14347 builtin and then its argument prototype would still apply. */
14348char $ac_func ();
14349/* The GNU C library defines this for functions which it implements
14350 to always fail with ENOSYS. Some functions are actually named
14351 something starting with __ and the normal name is an alias. */
14352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14353choke me
14354#else
14355char (*f) () = $ac_func;
14356#endif
14357#ifdef __cplusplus
14358}
14359#endif
14360
14361int
14362main ()
14363{
14364return f != $ac_func;
14365 ;
14366 return 0;
14367}
14368_ACEOF
14369rm -f conftest.$ac_objext conftest$ac_exeext
14370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371 (eval $ac_link) 2>conftest.er1
14372 ac_status=$?
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -z "$ac_c_werror_flag"
14379 || test ! -s conftest.err'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; } &&
14385 { ac_try='test -s conftest$ac_exeext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 eval "$as_ac_var=yes"
14392else
14393 echo "$as_me: failed program was:" >&5
14394sed 's/^/| /' conftest.$ac_ext >&5
14395
14396eval "$as_ac_var=no"
14397fi
14398rm -f conftest.err conftest.$ac_objext \
14399 conftest$ac_exeext conftest.$ac_ext
14400fi
14401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14403if test `eval echo '${'$as_ac_var'}'` = yes; then
14404
14405cat >>confdefs.h <<_ACEOF
14406#define CRAY_STACKSEG_END $ac_func
14407_ACEOF
14408
14409 break
14410fi
14411
14412 done
14413fi
14414
14415echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14416echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14417if test "${ac_cv_c_stack_direction+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419else
14420 if test "$cross_compiling" = yes; then
14421 ac_cv_c_stack_direction=0
14422else
14423 cat >conftest.$ac_ext <<_ACEOF
14424/* confdefs.h. */
14425_ACEOF
14426cat confdefs.h >>conftest.$ac_ext
14427cat >>conftest.$ac_ext <<_ACEOF
14428/* end confdefs.h. */
14429int
14430find_stack_direction ()
14431{
14432 static char *addr = 0;
14433 auto char dummy;
14434 if (addr == 0)
14435 {
14436 addr = &dummy;
14437 return find_stack_direction ();
14438 }
14439 else
14440 return (&dummy > addr) ? 1 : -1;
14441}
14442
14443int
14444main ()
14445{
14446 exit (find_stack_direction () < 0);
14447}
14448_ACEOF
14449rm -f conftest$ac_exeext
14450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451 (eval $ac_link) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_c_stack_direction=1
14461else
14462 echo "$as_me: program exited with status $ac_status" >&5
14463echo "$as_me: failed program was:" >&5
14464sed 's/^/| /' conftest.$ac_ext >&5
14465
14466( exit $ac_status )
14467ac_cv_c_stack_direction=-1
14468fi
14469rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14470fi
14471fi
14472echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14473echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14474
14475cat >>confdefs.h <<_ACEOF
14476#define STACK_DIRECTION $ac_cv_c_stack_direction
14477_ACEOF
14478
14479
14480fi
14481
14482
14483
14484for ac_header in stdlib.h unistd.h
14485do
14486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14487if eval "test \"\${$as_ac_Header+set}\" = set"; then
14488 echo "$as_me:$LINENO: checking for $ac_header" >&5
14489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14490if eval "test \"\${$as_ac_Header+set}\" = set"; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492fi
14493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14495else
14496 # Is the header compilable?
14497echo "$as_me:$LINENO: checking $ac_header usability" >&5
14498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14499cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505$ac_includes_default
14506#include <$ac_header>
14507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14511 ac_status=$?
bec39cab
AC
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_header_compiler=yes
14531else
14532 echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
14535ac_header_compiler=no
14536fi
14537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14539echo "${ECHO_T}$ac_header_compiler" >&6
14540
14541# Is the header present?
14542echo "$as_me:$LINENO: checking $ac_header presence" >&5
14543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550#include <$ac_header>
14551_ACEOF
14552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14553 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
14560 if test -s conftest.err; then
14561 ac_cpp_err=$ac_c_preproc_warn_flag
14562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14563 else
14564 ac_cpp_err=
14565 fi
14566else
14567 ac_cpp_err=yes
14568fi
14569if test -z "$ac_cpp_err"; then
14570 ac_header_preproc=yes
97bf5e38 14571else
bec39cab
AC
14572 echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
14575 ac_header_preproc=no
72473524 14576fi
bec39cab
AC
14577rm -f conftest.err conftest.$ac_ext
14578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14579echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14580
bec39cab
AC
14581# So? What about this header?
14582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14583 yes:no: )
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14588 ac_header_preproc=yes
14589 ;;
14590 no:yes:* )
14591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14603 (
14604 cat <<\_ASBOX
14605## ------------------------------------------ ##
14606## Report this to the AC_PACKAGE_NAME lists. ##
14607## ------------------------------------------ ##
14608_ASBOX
14609 ) |
14610 sed "s/^/$as_me: WARNING: /" >&2
14611 ;;
14612esac
14613echo "$as_me:$LINENO: checking for $ac_header" >&5
14614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14615if eval "test \"\${$as_ac_Header+set}\" = set"; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14617else
bec39cab
AC
14618 eval "$as_ac_Header=\$ac_header_preproc"
14619fi
14620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14622
14623fi
14624if test `eval echo '${'$as_ac_Header'}'` = yes; then
14625 cat >>confdefs.h <<_ACEOF
14626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14627_ACEOF
14628
14629fi
14630
14631done
14632
14633
a3828db0 14634for ac_func in getpagesize
bec39cab
AC
14635do
14636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14637echo "$as_me:$LINENO: checking for $ac_func" >&5
14638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14639if eval "test \"\${$as_ac_var+set}\" = set"; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641else
14642 cat >conftest.$ac_ext <<_ACEOF
14643/* confdefs.h. */
14644_ACEOF
14645cat confdefs.h >>conftest.$ac_ext
14646cat >>conftest.$ac_ext <<_ACEOF
14647/* end confdefs.h. */
14648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14650#define $ac_func innocuous_$ac_func
14651
97bf5e38 14652/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14653 which can conflict with char $ac_func (); below.
14654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14655 <limits.h> exists even on freestanding compilers. */
2b2d558c 14656
bec39cab
AC
14657#ifdef __STDC__
14658# include <limits.h>
14659#else
14660# include <assert.h>
14661#endif
97bf5e38 14662
bec39cab
AC
14663#undef $ac_func
14664
14665/* Override any gcc2 internal prototype to avoid an error. */
14666#ifdef __cplusplus
14667extern "C"
14668{
14669#endif
14670/* We use char because int might match the return type of a gcc2
14671 builtin and then its argument prototype would still apply. */
14672char $ac_func ();
97bf5e38
MK
14673/* The GNU C library defines this for functions which it implements
14674 to always fail with ENOSYS. Some functions are actually named
14675 something starting with __ and the normal name is an alias. */
bec39cab 14676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14677choke me
14678#else
bec39cab
AC
14679char (*f) () = $ac_func;
14680#endif
14681#ifdef __cplusplus
14682}
97bf5e38
MK
14683#endif
14684
bec39cab
AC
14685int
14686main ()
14687{
14688return f != $ac_func;
14689 ;
14690 return 0;
14691}
14692_ACEOF
14693rm -f conftest.$ac_objext conftest$ac_exeext
14694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14695 (eval $ac_link) 2>conftest.er1
14696 ac_status=$?
14697 grep -v '^ *+' conftest.er1 >conftest.err
14698 rm -f conftest.er1
14699 cat conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try='test -z "$ac_c_werror_flag"
14703 || test ! -s conftest.err'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; } &&
14709 { ac_try='test -s conftest$ac_exeext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 eval "$as_ac_var=yes"
14716else
14717 echo "$as_me: failed program was:" >&5
14718sed 's/^/| /' conftest.$ac_ext >&5
14719
14720eval "$as_ac_var=no"
14721fi
14722rm -f conftest.err conftest.$ac_objext \
14723 conftest$ac_exeext conftest.$ac_ext
14724fi
14725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14727if test `eval echo '${'$as_ac_var'}'` = yes; then
14728 cat >>confdefs.h <<_ACEOF
14729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14730_ACEOF
14731
2b2d558c 14732fi
bec39cab 14733done
2b2d558c 14734
a3828db0
MK
14735echo "$as_me:$LINENO: checking for working mmap" >&5
14736echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14737if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 14738 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14739else
bec39cab 14740 if test "$cross_compiling" = yes; then
a3828db0 14741 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
14742else
14743 cat >conftest.$ac_ext <<_ACEOF
a3828db0 14744/* confdefs.h. */
bec39cab
AC
14745_ACEOF
14746cat confdefs.h >>conftest.$ac_ext
14747cat >>conftest.$ac_ext <<_ACEOF
14748/* end confdefs.h. */
a3828db0
MK
14749$ac_includes_default
14750/* malloc might have been renamed as rpl_malloc. */
14751#undef malloc
bec39cab 14752
a3828db0
MK
14753/* Thanks to Mike Haertel and Jim Avera for this test.
14754 Here is a matrix of mmap possibilities:
14755 mmap private not fixed
14756 mmap private fixed at somewhere currently unmapped
14757 mmap private fixed at somewhere already mapped
14758 mmap shared not fixed
14759 mmap shared fixed at somewhere currently unmapped
14760 mmap shared fixed at somewhere already mapped
14761 For private mappings, we should verify that changes cannot be read()
14762 back from the file, nor mmap's back from the file at a different
14763 address. (There have been systems where private was not correctly
14764 implemented like the infamous i386 svr4.0, and systems where the
14765 VM page cache was not coherent with the file system buffer cache
14766 like early versions of FreeBSD and possibly contemporary NetBSD.)
14767 For shared mappings, we should conversely verify that changes get
14768 propagated back to all the places they're supposed to be.
7dfa765c 14769
a3828db0
MK
14770 Grep wants private fixed already mapped.
14771 The main things grep needs to know about mmap are:
14772 * does it exist and is it safe to write into the mmap'd area
14773 * how to use it (BSD variants) */
7dfa765c 14774
a3828db0
MK
14775#include <fcntl.h>
14776#include <sys/mman.h>
7dfa765c 14777
a3828db0
MK
14778#if !STDC_HEADERS && !HAVE_STDLIB_H
14779char *malloc ();
14780#endif
7dfa765c 14781
a3828db0
MK
14782/* This mess was copied from the GNU getpagesize.h. */
14783#if !HAVE_GETPAGESIZE
14784/* Assume that all systems that can run configure have sys/param.h. */
14785# if !HAVE_SYS_PARAM_H
14786# define HAVE_SYS_PARAM_H 1
14787# endif
64bb1671 14788
a3828db0
MK
14789# ifdef _SC_PAGESIZE
14790# define getpagesize() sysconf(_SC_PAGESIZE)
14791# else /* no _SC_PAGESIZE */
14792# if HAVE_SYS_PARAM_H
14793# include <sys/param.h>
14794# ifdef EXEC_PAGESIZE
14795# define getpagesize() EXEC_PAGESIZE
14796# else /* no EXEC_PAGESIZE */
14797# ifdef NBPG
14798# define getpagesize() NBPG * CLSIZE
14799# ifndef CLSIZE
14800# define CLSIZE 1
14801# endif /* no CLSIZE */
14802# else /* no NBPG */
14803# ifdef NBPC
14804# define getpagesize() NBPC
14805# else /* no NBPC */
14806# ifdef PAGESIZE
14807# define getpagesize() PAGESIZE
14808# endif /* PAGESIZE */
14809# endif /* no NBPC */
14810# endif /* no NBPG */
14811# endif /* no EXEC_PAGESIZE */
14812# else /* no HAVE_SYS_PARAM_H */
14813# define getpagesize() 8192 /* punt totally */
14814# endif /* no HAVE_SYS_PARAM_H */
14815# endif /* no _SC_PAGESIZE */
64bb1671 14816
a3828db0 14817#endif /* no HAVE_GETPAGESIZE */
64bb1671 14818
a3828db0
MK
14819int
14820main ()
14821{
14822 char *data, *data2, *data3;
14823 int i, pagesize;
14824 int fd;
97bf5e38 14825
a3828db0
MK
14826 pagesize = getpagesize ();
14827
14828 /* First, make a file with some known garbage in it. */
14829 data = (char *) malloc (pagesize);
14830 if (!data)
14831 exit (1);
14832 for (i = 0; i < pagesize; ++i)
14833 *(data + i) = rand ();
14834 umask (0);
14835 fd = creat ("conftest.mmap", 0600);
14836 if (fd < 0)
14837 exit (1);
14838 if (write (fd, data, pagesize) != pagesize)
14839 exit (1);
14840 close (fd);
14841
14842 /* Next, try to mmap the file at a fixed address which already has
14843 something else allocated at it. If we can, also make sure that
14844 we see the same garbage. */
14845 fd = open ("conftest.mmap", O_RDWR);
14846 if (fd < 0)
14847 exit (1);
14848 data2 = (char *) malloc (2 * pagesize);
14849 if (!data2)
14850 exit (1);
14851 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14852 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14853 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14854 exit (1);
14855 for (i = 0; i < pagesize; ++i)
14856 if (*(data + i) != *(data2 + i))
14857 exit (1);
14858
14859 /* Finally, make sure that changes to the mapped area do not
14860 percolate back to the file as seen by read(). (This is a bug on
14861 some variants of i386 svr4.0.) */
14862 for (i = 0; i < pagesize; ++i)
14863 *(data2 + i) = *(data2 + i) + 1;
14864 data3 = (char *) malloc (pagesize);
14865 if (!data3)
14866 exit (1);
14867 if (read (fd, data3, pagesize) != pagesize)
14868 exit (1);
14869 for (i = 0; i < pagesize; ++i)
14870 if (*(data + i) != *(data3 + i))
14871 exit (1);
14872 close (fd);
14873 exit (0);
97bf5e38 14874}
bec39cab
AC
14875_ACEOF
14876rm -f conftest$ac_exeext
14877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
a3828db0 14887 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 14888else
bec39cab
AC
14889 echo "$as_me: program exited with status $ac_status" >&5
14890echo "$as_me: failed program was:" >&5
14891sed 's/^/| /' conftest.$ac_ext >&5
14892
14893( exit $ac_status )
a3828db0 14894ac_cv_func_mmap_fixed_mapped=no
0afdd437 14895fi
a3828db0 14896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 14897fi
a3828db0
MK
14898fi
14899echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14900echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14901if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14902
14903cat >>confdefs.h <<\_ACEOF
a3828db0 14904#define HAVE_MMAP 1
bec39cab 14905_ACEOF
0afdd437
MK
14906
14907fi
a3828db0 14908rm -f conftest.mmap
0afdd437 14909
a3828db0
MK
14910echo "$as_me:$LINENO: checking for pid_t" >&5
14911echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14912if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14914else
14915 cat >conftest.$ac_ext <<_ACEOF
14916/* confdefs.h. */
14917_ACEOF
14918cat confdefs.h >>conftest.$ac_ext
14919cat >>conftest.$ac_ext <<_ACEOF
14920/* end confdefs.h. */
a3828db0 14921$ac_includes_default
bec39cab
AC
14922int
14923main ()
14924{
a3828db0
MK
14925if ((pid_t *) 0)
14926 return 0;
14927if (sizeof (pid_t))
14928 return 0;
bec39cab
AC
14929 ;
14930 return 0;
14931}
14932_ACEOF
a3828db0
MK
14933rm -f conftest.$ac_objext
14934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -z "$ac_c_werror_flag"
14943 || test ! -s conftest.err'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
a3828db0 14949 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
a3828db0 14955 ac_cv_type_pid_t=yes
bec39cab
AC
14956else
14957 echo "$as_me: failed program was:" >&5
14958sed 's/^/| /' conftest.$ac_ext >&5
14959
a3828db0 14960ac_cv_type_pid_t=no
bec39cab 14961fi
a3828db0 14962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 14963fi
a3828db0
MK
14964echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14965echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14966if test $ac_cv_type_pid_t = yes; then
14967 :
14968else
14969
14970cat >>confdefs.h <<_ACEOF
14971#define pid_t int
bec39cab 14972_ACEOF
7e89e357 14973
7e89e357
JT
14974fi
14975
bec39cab 14976
a3828db0
MK
14977
14978for ac_header in unistd.h vfork.h
7be570e7 14979do
a3828db0
MK
14980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14981if eval "test \"\${$as_ac_Header+set}\" = set"; then
14982 echo "$as_me:$LINENO: checking for $ac_header" >&5
14983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14984if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14985 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
14986fi
14987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14989else
a3828db0
MK
14990 # Is the header compilable?
14991echo "$as_me:$LINENO: checking $ac_header usability" >&5
14992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14993cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14994/* confdefs.h. */
14995_ACEOF
14996cat confdefs.h >>conftest.$ac_ext
14997cat >>conftest.$ac_ext <<_ACEOF
14998/* end confdefs.h. */
a3828db0
MK
14999$ac_includes_default
15000#include <$ac_header>
bec39cab 15001_ACEOF
a3828db0
MK
15002rm -f conftest.$ac_objext
15003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15005 ac_status=$?
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
a3828db0 15018 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
a3828db0 15024 ac_header_compiler=yes
bec39cab
AC
15025else
15026 echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
a3828db0 15029ac_header_compiler=no
bec39cab 15030fi
a3828db0
MK
15031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15033echo "${ECHO_T}$ac_header_compiler" >&6
15034
15035# Is the header present?
15036echo "$as_me:$LINENO: checking $ac_header presence" >&5
15037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15038cat >conftest.$ac_ext <<_ACEOF
15039/* confdefs.h. */
15040_ACEOF
15041cat confdefs.h >>conftest.$ac_ext
15042cat >>conftest.$ac_ext <<_ACEOF
15043/* end confdefs.h. */
15044#include <$ac_header>
15045_ACEOF
15046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } >/dev/null; then
15054 if test -s conftest.err; then
15055 ac_cpp_err=$ac_c_preproc_warn_flag
15056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15057 else
15058 ac_cpp_err=
15059 fi
15060else
15061 ac_cpp_err=yes
15062fi
15063if test -z "$ac_cpp_err"; then
15064 ac_header_preproc=yes
15065else
15066 echo "$as_me: failed program was:" >&5
15067sed 's/^/| /' conftest.$ac_ext >&5
15068
15069 ac_header_preproc=no
15070fi
15071rm -f conftest.err conftest.$ac_ext
15072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15073echo "${ECHO_T}$ac_header_preproc" >&6
15074
15075# So? What about this header?
15076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15077 yes:no: )
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15082 ac_header_preproc=yes
15083 ;;
15084 no:yes:* )
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15088echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15092echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15097 (
15098 cat <<\_ASBOX
15099## ------------------------------------------ ##
15100## Report this to the AC_PACKAGE_NAME lists. ##
15101## ------------------------------------------ ##
15102_ASBOX
15103 ) |
15104 sed "s/^/$as_me: WARNING: /" >&2
15105 ;;
15106esac
15107echo "$as_me:$LINENO: checking for $ac_header" >&5
15108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15109if eval "test \"\${$as_ac_Header+set}\" = set"; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15111else
15112 eval "$as_ac_Header=\$ac_header_preproc"
15113fi
15114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15116
bec39cab 15117fi
a3828db0 15118if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 15119 cat >>confdefs.h <<_ACEOF
a3828db0 15120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 15121_ACEOF
14abd0fb 15122
14abd0fb 15123fi
a3828db0 15124
14abd0fb
MK
15125done
15126
bec39cab 15127
a3828db0
MK
15128
15129for ac_func in fork vfork
14abd0fb 15130do
bec39cab
AC
15131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15132echo "$as_me:$LINENO: checking for $ac_func" >&5
15133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15134if eval "test \"\${$as_ac_var+set}\" = set"; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136else
15137 cat >conftest.$ac_ext <<_ACEOF
15138/* confdefs.h. */
15139_ACEOF
15140cat confdefs.h >>conftest.$ac_ext
15141cat >>conftest.$ac_ext <<_ACEOF
15142/* end confdefs.h. */
15143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15145#define $ac_func innocuous_$ac_func
15146
14abd0fb 15147/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15148 which can conflict with char $ac_func (); below.
15149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15150 <limits.h> exists even on freestanding compilers. */
15151
15152#ifdef __STDC__
15153# include <limits.h>
15154#else
15155# include <assert.h>
15156#endif
14abd0fb 15157
bec39cab 15158#undef $ac_func
14abd0fb 15159
bec39cab
AC
15160/* Override any gcc2 internal prototype to avoid an error. */
15161#ifdef __cplusplus
15162extern "C"
15163{
15164#endif
15165/* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15167char $ac_func ();
14abd0fb
MK
15168/* The GNU C library defines this for functions which it implements
15169 to always fail with ENOSYS. Some functions are actually named
15170 something starting with __ and the normal name is an alias. */
15171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15172choke me
15173#else
bec39cab
AC
15174char (*f) () = $ac_func;
15175#endif
15176#ifdef __cplusplus
15177}
14abd0fb
MK
15178#endif
15179
bec39cab
AC
15180int
15181main ()
15182{
15183return f != $ac_func;
15184 ;
15185 return 0;
15186}
15187_ACEOF
15188rm -f conftest.$ac_objext conftest$ac_exeext
15189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15190 (eval $ac_link) 2>conftest.er1
15191 ac_status=$?
15192 grep -v '^ *+' conftest.er1 >conftest.err
15193 rm -f conftest.er1
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -z "$ac_c_werror_flag"
15198 || test ! -s conftest.err'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; } &&
15204 { ac_try='test -s conftest$ac_exeext'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 eval "$as_ac_var=yes"
15211else
15212 echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215eval "$as_ac_var=no"
15216fi
15217rm -f conftest.err conftest.$ac_objext \
15218 conftest$ac_exeext conftest.$ac_ext
15219fi
15220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15221echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15222if test `eval echo '${'$as_ac_var'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15225_ACEOF
7be570e7 15226
7be570e7
JM
15227fi
15228done
15229
a3828db0
MK
15230if test "x$ac_cv_func_fork" = xyes; then
15231 echo "$as_me:$LINENO: checking for working fork" >&5
15232echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15233if test "${ac_cv_func_fork_works+set}" = set; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235else
15236 if test "$cross_compiling" = yes; then
15237 ac_cv_func_fork_works=cross
15238else
15239 cat >conftest.$ac_ext <<_ACEOF
15240/* By Ruediger Kuhlmann. */
15241 #include <sys/types.h>
15242 #if HAVE_UNISTD_H
15243 # include <unistd.h>
15244 #endif
15245 /* Some systems only have a dummy stub for fork() */
15246 int main ()
15247 {
15248 if (fork() < 0)
15249 exit (1);
15250 exit (0);
15251 }
15252_ACEOF
15253rm -f conftest$ac_exeext
15254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15255 (eval $ac_link) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_cv_func_fork_works=yes
15265else
15266 echo "$as_me: program exited with status $ac_status" >&5
15267echo "$as_me: failed program was:" >&5
15268sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 15269
a3828db0
MK
15270( exit $ac_status )
15271ac_cv_func_fork_works=no
15272fi
15273rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15274fi
15275fi
15276echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15277echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15278
15279else
15280 ac_cv_func_fork_works=$ac_cv_func_fork
15281fi
15282if test "x$ac_cv_func_fork_works" = xcross; then
15283 case $host in
15284 *-*-amigaos* | *-*-msdosdjgpp*)
15285 # Override, as these systems have only a dummy fork() stub
15286 ac_cv_func_fork_works=no
15287 ;;
15288 *)
15289 ac_cv_func_fork_works=yes
15290 ;;
15291 esac
15292 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15293echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15294fi
15295ac_cv_func_vfork_works=$ac_cv_func_vfork
15296if test "x$ac_cv_func_vfork" = xyes; then
15297 echo "$as_me:$LINENO: checking for working vfork" >&5
15298echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15299if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 15300 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
15301else
15302 if test "$cross_compiling" = yes; then
15303 ac_cv_func_vfork_works=cross
bec39cab
AC
15304else
15305 cat >conftest.$ac_ext <<_ACEOF
15306/* confdefs.h. */
15307_ACEOF
15308cat confdefs.h >>conftest.$ac_ext
15309cat >>conftest.$ac_ext <<_ACEOF
15310/* end confdefs.h. */
a3828db0
MK
15311/* Thanks to Paul Eggert for this test. */
15312#include <stdio.h>
15313#include <stdlib.h>
15314#include <sys/types.h>
15315#include <sys/stat.h>
15316#include <sys/wait.h>
15317#if HAVE_UNISTD_H
15318# include <unistd.h>
bec39cab 15319#endif
a3828db0
MK
15320#if HAVE_VFORK_H
15321# include <vfork.h>
bec39cab 15322#endif
a3828db0
MK
15323/* On some sparc systems, changes by the child to local and incoming
15324 argument registers are propagated back to the parent. The compiler
15325 is told about this with #include <vfork.h>, but some compilers
15326 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15327 static variable whose address is put into a register that is
15328 clobbered by the vfork. */
15329static void
bec39cab 15330#ifdef __cplusplus
a3828db0
MK
15331sparc_address_test (int arg)
15332# else
15333sparc_address_test (arg) int arg;
c906108c 15334#endif
a3828db0
MK
15335{
15336 static pid_t child;
15337 if (!child) {
15338 child = vfork ();
15339 if (child < 0) {
15340 perror ("vfork");
15341 _exit(2);
15342 }
15343 if (!child) {
15344 arg = getpid();
15345 write(-1, "", 0);
15346 _exit (arg);
15347 }
15348 }
15349}
97bf5e38 15350
bec39cab
AC
15351int
15352main ()
15353{
a3828db0
MK
15354 pid_t parent = getpid ();
15355 pid_t child;
15356
15357 sparc_address_test (0);
15358
15359 child = vfork ();
15360
15361 if (child == 0) {
15362 /* Here is another test for sparc vfork register problems. This
15363 test uses lots of local variables, at least as many local
15364 variables as main has allocated so far including compiler
15365 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15366 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15367 reuse the register of parent for one of the local variables,
15368 since it will think that parent can't possibly be used any more
15369 in this routine. Assigning to the local variable will thus
15370 munge parent in the parent process. */
15371 pid_t
15372 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15373 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15374 /* Convince the compiler that p..p7 are live; otherwise, it might
15375 use the same hardware register for all 8 local variables. */
15376 if (p != p1 || p != p2 || p != p3 || p != p4
15377 || p != p5 || p != p6 || p != p7)
15378 _exit(1);
15379
15380 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15381 from child file descriptors. If the child closes a descriptor
15382 before it execs or exits, this munges the parent's descriptor
15383 as well. Test for this by closing stdout in the child. */
15384 _exit(close(fileno(stdout)) != 0);
15385 } else {
15386 int status;
15387 struct stat st;
15388
15389 while (wait(&status) != child)
15390 ;
15391 exit(
15392 /* Was there some problem with vforking? */
15393 child < 0
15394
15395 /* Did the child fail? (This shouldn't happen.) */
15396 || status
15397
15398 /* Did the vfork/compiler bug occur? */
15399 || parent != getpid()
15400
15401 /* Did the file descriptor bug occur? */
15402 || fstat(fileno(stdout), &st) != 0
15403 );
15404 }
bec39cab
AC
15405}
15406_ACEOF
a3828db0 15407rm -f conftest$ac_exeext
bec39cab 15408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 15409 (eval $ac_link) 2>&5
bec39cab
AC
15410 ac_status=$?
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 15412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
a3828db0
MK
15418 ac_cv_func_vfork_works=yes
15419else
15420 echo "$as_me: program exited with status $ac_status" >&5
15421echo "$as_me: failed program was:" >&5
15422sed 's/^/| /' conftest.$ac_ext >&5
15423
15424( exit $ac_status )
15425ac_cv_func_vfork_works=no
15426fi
15427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15428fi
15429fi
15430echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15431echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15432
15433fi;
15434if test "x$ac_cv_func_fork_works" = xcross; then
15435 ac_cv_func_vfork_works=$ac_cv_func_vfork
15436 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15437echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15438fi
15439
15440if test "x$ac_cv_func_vfork_works" = xyes; then
15441
15442cat >>confdefs.h <<\_ACEOF
15443#define HAVE_WORKING_VFORK 1
15444_ACEOF
15445
bec39cab 15446else
bec39cab 15447
a3828db0
MK
15448cat >>confdefs.h <<\_ACEOF
15449#define vfork fork
15450_ACEOF
15451
bec39cab 15452fi
a3828db0
MK
15453if test "x$ac_cv_func_fork_works" = xyes; then
15454
15455cat >>confdefs.h <<\_ACEOF
15456#define HAVE_WORKING_FORK 1
bec39cab 15457_ACEOF
c906108c 15458
c906108c
SS
15459fi
15460
bec39cab
AC
15461
15462
a3828db0 15463for ac_func in canonicalize_file_name realpath
97bf5e38 15464do
bec39cab
AC
15465as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15466echo "$as_me:$LINENO: checking for $ac_func" >&5
15467echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15468if eval "test \"\${$as_ac_var+set}\" = set"; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15470else
15471 cat >conftest.$ac_ext <<_ACEOF
15472/* confdefs.h. */
15473_ACEOF
15474cat confdefs.h >>conftest.$ac_ext
15475cat >>conftest.$ac_ext <<_ACEOF
15476/* end confdefs.h. */
15477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15479#define $ac_func innocuous_$ac_func
15480
d3ea6809
MM
15481/* System header to define __stub macros and hopefully few prototypes,
15482 which can conflict with char $ac_func (); below.
15483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15484 <limits.h> exists even on freestanding compilers. */
15485
15486#ifdef __STDC__
15487# include <limits.h>
15488#else
15489# include <assert.h>
15490#endif
15491
15492#undef $ac_func
15493
15494/* Override any gcc2 internal prototype to avoid an error. */
15495#ifdef __cplusplus
15496extern "C"
15497{
15498#endif
15499/* We use char because int might match the return type of a gcc2
15500 builtin and then its argument prototype would still apply. */
15501char $ac_func ();
15502/* The GNU C library defines this for functions which it implements
15503 to always fail with ENOSYS. Some functions are actually named
15504 something starting with __ and the normal name is an alias. */
15505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15506choke me
15507#else
15508char (*f) () = $ac_func;
15509#endif
15510#ifdef __cplusplus
15511}
15512#endif
15513
15514int
15515main ()
15516{
15517return f != $ac_func;
15518 ;
15519 return 0;
15520}
15521_ACEOF
15522rm -f conftest.$ac_objext conftest$ac_exeext
15523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15524 (eval $ac_link) 2>conftest.er1
15525 ac_status=$?
15526 grep -v '^ *+' conftest.er1 >conftest.err
15527 rm -f conftest.er1
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -z "$ac_c_werror_flag"
15532 || test ! -s conftest.err'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest$ac_exeext'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 eval "$as_ac_var=yes"
15545else
15546 echo "$as_me: failed program was:" >&5
15547sed 's/^/| /' conftest.$ac_ext >&5
15548
15549eval "$as_ac_var=no"
15550fi
15551rm -f conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
15553fi
15554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15555echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15556if test `eval echo '${'$as_ac_var'}'` = yes; then
15557 cat >>confdefs.h <<_ACEOF
15558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15559_ACEOF
15560
15561fi
15562done
15563
15564
15565
15566for ac_func in getuid getgid
15567do
15568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15569echo "$as_me:$LINENO: checking for $ac_func" >&5
15570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15571if eval "test \"\${$as_ac_var+set}\" = set"; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15573else
15574 cat >conftest.$ac_ext <<_ACEOF
15575/* confdefs.h. */
15576_ACEOF
15577cat confdefs.h >>conftest.$ac_ext
15578cat >>conftest.$ac_ext <<_ACEOF
15579/* end confdefs.h. */
15580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15582#define $ac_func innocuous_$ac_func
15583
97bf5e38 15584/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15585 which can conflict with char $ac_func (); below.
15586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587 <limits.h> exists even on freestanding compilers. */
c906108c 15588
bec39cab
AC
15589#ifdef __STDC__
15590# include <limits.h>
15591#else
15592# include <assert.h>
15593#endif
97bf5e38 15594
bec39cab
AC
15595#undef $ac_func
15596
15597/* Override any gcc2 internal prototype to avoid an error. */
15598#ifdef __cplusplus
15599extern "C"
15600{
15601#endif
15602/* We use char because int might match the return type of a gcc2
15603 builtin and then its argument prototype would still apply. */
15604char $ac_func ();
97bf5e38
MK
15605/* The GNU C library defines this for functions which it implements
15606 to always fail with ENOSYS. Some functions are actually named
15607 something starting with __ and the normal name is an alias. */
15608#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15609choke me
c906108c 15610#else
bec39cab
AC
15611char (*f) () = $ac_func;
15612#endif
15613#ifdef __cplusplus
15614}
c906108c 15615#endif
97bf5e38 15616
bec39cab
AC
15617int
15618main ()
15619{
15620return f != $ac_func;
15621 ;
15622 return 0;
15623}
15624_ACEOF
15625rm -f conftest.$ac_objext conftest$ac_exeext
15626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest$ac_exeext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 eval "$as_ac_var=yes"
15648else
15649 echo "$as_me: failed program was:" >&5
15650sed 's/^/| /' conftest.$ac_ext >&5
15651
15652eval "$as_ac_var=no"
15653fi
15654rm -f conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15656fi
15657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15659if test `eval echo '${'$as_ac_var'}'` = yes; then
15660 cat >>confdefs.h <<_ACEOF
15661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15662_ACEOF
c906108c 15663
c906108c 15664fi
97bf5e38 15665done
c906108c 15666
bec39cab 15667
a3828db0 15668for ac_func in poll
97bf5e38 15669do
bec39cab
AC
15670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15671echo "$as_me:$LINENO: checking for $ac_func" >&5
15672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15673if eval "test \"\${$as_ac_var+set}\" = set"; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15675else
15676 cat >conftest.$ac_ext <<_ACEOF
15677/* confdefs.h. */
15678_ACEOF
15679cat confdefs.h >>conftest.$ac_ext
15680cat >>conftest.$ac_ext <<_ACEOF
15681/* end confdefs.h. */
15682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15684#define $ac_func innocuous_$ac_func
15685
97bf5e38 15686/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15687 which can conflict with char $ac_func (); below.
15688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15689 <limits.h> exists even on freestanding compilers. */
15690
15691#ifdef __STDC__
15692# include <limits.h>
15693#else
15694# include <assert.h>
15695#endif
c906108c 15696
bec39cab 15697#undef $ac_func
97bf5e38 15698
bec39cab
AC
15699/* Override any gcc2 internal prototype to avoid an error. */
15700#ifdef __cplusplus
15701extern "C"
15702{
15703#endif
15704/* We use char because int might match the return type of a gcc2
15705 builtin and then its argument prototype would still apply. */
15706char $ac_func ();
97bf5e38
MK
15707/* The GNU C library defines this for functions which it implements
15708 to always fail with ENOSYS. Some functions are actually named
15709 something starting with __ and the normal name is an alias. */
15710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15711choke me
c906108c 15712#else
bec39cab
AC
15713char (*f) () = $ac_func;
15714#endif
15715#ifdef __cplusplus
15716}
c906108c 15717#endif
97bf5e38 15718
bec39cab
AC
15719int
15720main ()
15721{
15722return f != $ac_func;
15723 ;
15724 return 0;
15725}
15726_ACEOF
15727rm -f conftest.$ac_objext conftest$ac_exeext
15728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>conftest.er1
15730 ac_status=$?
15731 grep -v '^ *+' conftest.er1 >conftest.err
15732 rm -f conftest.er1
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -z "$ac_c_werror_flag"
15737 || test ! -s conftest.err'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try='test -s conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 eval "$as_ac_var=yes"
15750else
15751 echo "$as_me: failed program was:" >&5
15752sed 's/^/| /' conftest.$ac_ext >&5
15753
15754eval "$as_ac_var=no"
15755fi
15756rm -f conftest.err conftest.$ac_objext \
15757 conftest$ac_exeext conftest.$ac_ext
15758fi
15759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15760echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15761if test `eval echo '${'$as_ac_var'}'` = yes; then
15762 cat >>confdefs.h <<_ACEOF
15763#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15764_ACEOF
c906108c 15765
c906108c 15766fi
97bf5e38 15767done
c906108c 15768
bec39cab 15769
a3828db0 15770for ac_func in pread64
97bf5e38 15771do
bec39cab
AC
15772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15773echo "$as_me:$LINENO: checking for $ac_func" >&5
15774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15775if eval "test \"\${$as_ac_var+set}\" = set"; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15777else
15778 cat >conftest.$ac_ext <<_ACEOF
15779/* confdefs.h. */
15780_ACEOF
15781cat confdefs.h >>conftest.$ac_ext
15782cat >>conftest.$ac_ext <<_ACEOF
15783/* end confdefs.h. */
15784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15786#define $ac_func innocuous_$ac_func
15787
97bf5e38 15788/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15789 which can conflict with char $ac_func (); below.
15790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15791 <limits.h> exists even on freestanding compilers. */
15792
15793#ifdef __STDC__
15794# include <limits.h>
15795#else
15796# include <assert.h>
15797#endif
c906108c 15798
bec39cab 15799#undef $ac_func
97bf5e38 15800
bec39cab
AC
15801/* Override any gcc2 internal prototype to avoid an error. */
15802#ifdef __cplusplus
15803extern "C"
15804{
15805#endif
15806/* We use char because int might match the return type of a gcc2
15807 builtin and then its argument prototype would still apply. */
15808char $ac_func ();
97bf5e38
MK
15809/* The GNU C library defines this for functions which it implements
15810 to always fail with ENOSYS. Some functions are actually named
15811 something starting with __ and the normal name is an alias. */
15812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15813choke me
c906108c 15814#else
bec39cab
AC
15815char (*f) () = $ac_func;
15816#endif
15817#ifdef __cplusplus
15818}
c906108c 15819#endif
97bf5e38 15820
bec39cab
AC
15821int
15822main ()
15823{
15824return f != $ac_func;
15825 ;
15826 return 0;
15827}
15828_ACEOF
15829rm -f conftest.$ac_objext conftest$ac_exeext
15830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15831 (eval $ac_link) 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_c_werror_flag"
15839 || test ! -s conftest.err'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15851 eval "$as_ac_var=yes"
15852else
15853 echo "$as_me: failed program was:" >&5
15854sed 's/^/| /' conftest.$ac_ext >&5
15855
15856eval "$as_ac_var=no"
15857fi
15858rm -f conftest.err conftest.$ac_objext \
15859 conftest$ac_exeext conftest.$ac_ext
15860fi
15861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15863if test `eval echo '${'$as_ac_var'}'` = yes; then
15864 cat >>confdefs.h <<_ACEOF
15865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15866_ACEOF
c906108c 15867
c906108c 15868fi
97bf5e38 15869done
c906108c 15870
bec39cab 15871
a3828db0 15872for ac_func in sbrk
b757528f 15873do
bec39cab
AC
15874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15875echo "$as_me:$LINENO: checking for $ac_func" >&5
15876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15877if eval "test \"\${$as_ac_var+set}\" = set"; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879else
15880 cat >conftest.$ac_ext <<_ACEOF
15881/* confdefs.h. */
15882_ACEOF
15883cat confdefs.h >>conftest.$ac_ext
15884cat >>conftest.$ac_ext <<_ACEOF
15885/* end confdefs.h. */
15886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15888#define $ac_func innocuous_$ac_func
15889
b757528f 15890/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15891 which can conflict with char $ac_func (); below.
15892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15893 <limits.h> exists even on freestanding compilers. */
15894
15895#ifdef __STDC__
15896# include <limits.h>
15897#else
15898# include <assert.h>
15899#endif
b757528f 15900
bec39cab 15901#undef $ac_func
b757528f 15902
bec39cab
AC
15903/* Override any gcc2 internal prototype to avoid an error. */
15904#ifdef __cplusplus
15905extern "C"
15906{
15907#endif
15908/* We use char because int might match the return type of a gcc2
15909 builtin and then its argument prototype would still apply. */
15910char $ac_func ();
b757528f
JJ
15911/* The GNU C library defines this for functions which it implements
15912 to always fail with ENOSYS. Some functions are actually named
15913 something starting with __ and the normal name is an alias. */
15914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15915choke me
15916#else
bec39cab
AC
15917char (*f) () = $ac_func;
15918#endif
15919#ifdef __cplusplus
15920}
b757528f
JJ
15921#endif
15922
bec39cab
AC
15923int
15924main ()
15925{
15926return f != $ac_func;
15927 ;
15928 return 0;
15929}
15930_ACEOF
15931rm -f conftest.$ac_objext conftest$ac_exeext
15932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15933 (eval $ac_link) 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag"
15941 || test ! -s conftest.err'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest$ac_exeext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 eval "$as_ac_var=yes"
15954else
15955 echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958eval "$as_ac_var=no"
15959fi
15960rm -f conftest.err conftest.$ac_objext \
15961 conftest$ac_exeext conftest.$ac_ext
15962fi
15963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15965if test `eval echo '${'$as_ac_var'}'` = yes; then
15966 cat >>confdefs.h <<_ACEOF
15967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15968_ACEOF
b757528f 15969
b757528f
JJ
15970fi
15971done
15972
bec39cab 15973
a3828db0
MK
15974
15975for ac_func in setpgid setpgrp
bcb3dc3d 15976do
bec39cab
AC
15977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15978echo "$as_me:$LINENO: checking for $ac_func" >&5
15979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15980if eval "test \"\${$as_ac_var+set}\" = set"; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982else
15983 cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */
15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
15989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15991#define $ac_func innocuous_$ac_func
15992
bcb3dc3d 15993/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15994 which can conflict with char $ac_func (); below.
15995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15996 <limits.h> exists even on freestanding compilers. */
15997
15998#ifdef __STDC__
15999# include <limits.h>
16000#else
16001# include <assert.h>
16002#endif
bcb3dc3d 16003
bec39cab 16004#undef $ac_func
bcb3dc3d 16005
bec39cab
AC
16006/* Override any gcc2 internal prototype to avoid an error. */
16007#ifdef __cplusplus
16008extern "C"
16009{
16010#endif
16011/* We use char because int might match the return type of a gcc2
16012 builtin and then its argument prototype would still apply. */
16013char $ac_func ();
bcb3dc3d
MK
16014/* The GNU C library defines this for functions which it implements
16015 to always fail with ENOSYS. Some functions are actually named
16016 something starting with __ and the normal name is an alias. */
16017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16018choke me
16019#else
bec39cab
AC
16020char (*f) () = $ac_func;
16021#endif
16022#ifdef __cplusplus
16023}
bcb3dc3d
MK
16024#endif
16025
bec39cab
AC
16026int
16027main ()
16028{
16029return f != $ac_func;
16030 ;
16031 return 0;
16032}
16033_ACEOF
16034rm -f conftest.$ac_objext conftest$ac_exeext
16035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16036 (eval $ac_link) 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try='test -z "$ac_c_werror_flag"
16044 || test ! -s conftest.err'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try='test -s conftest$ac_exeext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 eval "$as_ac_var=yes"
16057else
16058 echo "$as_me: failed program was:" >&5
16059sed 's/^/| /' conftest.$ac_ext >&5
16060
16061eval "$as_ac_var=no"
16062fi
16063rm -f conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16065fi
16066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16067echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16068if test `eval echo '${'$as_ac_var'}'` = yes; then
16069 cat >>confdefs.h <<_ACEOF
16070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16071_ACEOF
bcb3dc3d 16072
bcb3dc3d
MK
16073fi
16074done
16075
bec39cab 16076
a3828db0
MK
16077
16078
16079for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 16080do
bec39cab
AC
16081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16082echo "$as_me:$LINENO: checking for $ac_func" >&5
16083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16084if eval "test \"\${$as_ac_var+set}\" = set"; then
16085 echo $ECHO_N "(cached) $ECHO_C" >&6
16086else
16087 cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
16093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16095#define $ac_func innocuous_$ac_func
16096
8b9cf735 16097/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16098 which can conflict with char $ac_func (); below.
16099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16100 <limits.h> exists even on freestanding compilers. */
16101
16102#ifdef __STDC__
16103# include <limits.h>
16104#else
16105# include <assert.h>
16106#endif
8b9cf735 16107
bec39cab 16108#undef $ac_func
8b9cf735 16109
a3828db0
MK
16110/* Override any gcc2 internal prototype to avoid an error. */
16111#ifdef __cplusplus
16112extern "C"
16113{
16114#endif
16115/* We use char because int might match the return type of a gcc2
16116 builtin and then its argument prototype would still apply. */
16117char $ac_func ();
16118/* The GNU C library defines this for functions which it implements
16119 to always fail with ENOSYS. Some functions are actually named
16120 something starting with __ and the normal name is an alias. */
16121#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16122choke me
16123#else
16124char (*f) () = $ac_func;
16125#endif
16126#ifdef __cplusplus
16127}
16128#endif
16129
bec39cab
AC
16130int
16131main ()
16132{
a3828db0 16133return f != $ac_func;
bec39cab
AC
16134 ;
16135 return 0;
16136}
16137_ACEOF
a3828db0
MK
16138rm -f conftest.$ac_objext conftest$ac_exeext
16139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag"
16148 || test ! -s conftest.err'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
a3828db0 16154 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
a3828db0 16160 eval "$as_ac_var=yes"
086ec9eb 16161else
bec39cab
AC
16162 echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
a3828db0
MK
16165eval "$as_ac_var=no"
16166fi
16167rm -f conftest.err conftest.$ac_objext \
16168 conftest$ac_exeext conftest.$ac_ext
16169fi
16170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16172if test `eval echo '${'$as_ac_var'}'` = yes; then
16173 cat >>confdefs.h <<_ACEOF
16174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16175_ACEOF
16176
086ec9eb 16177fi
a3828db0
MK
16178done
16179
16180
16181for ac_func in socketpair
16182do
16183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16184echo "$as_me:$LINENO: checking for $ac_func" >&5
16185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16186if eval "test \"\${$as_ac_var+set}\" = set"; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188else
16189 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16190/* confdefs.h. */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h. */
a3828db0
MK
16195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16197#define $ac_func innocuous_$ac_func
16198
16199/* System header to define __stub macros and hopefully few prototypes,
16200 which can conflict with char $ac_func (); below.
16201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16202 <limits.h> exists even on freestanding compilers. */
16203
16204#ifdef __STDC__
16205# include <limits.h>
16206#else
16207# include <assert.h>
16208#endif
16209
16210#undef $ac_func
16211
16212/* Override any gcc2 internal prototype to avoid an error. */
16213#ifdef __cplusplus
16214extern "C"
16215{
16216#endif
16217/* We use char because int might match the return type of a gcc2
16218 builtin and then its argument prototype would still apply. */
16219char $ac_func ();
16220/* The GNU C library defines this for functions which it implements
16221 to always fail with ENOSYS. Some functions are actually named
16222 something starting with __ and the normal name is an alias. */
16223#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16224choke me
16225#else
16226char (*f) () = $ac_func;
16227#endif
16228#ifdef __cplusplus
16229}
16230#endif
16231
bec39cab
AC
16232int
16233main ()
16234{
a3828db0 16235return f != $ac_func;
bec39cab
AC
16236 ;
16237 return 0;
16238}
16239_ACEOF
a3828db0
MK
16240rm -f conftest.$ac_objext conftest$ac_exeext
16241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16242 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16243 ac_status=$?
16244 grep -v '^ *+' conftest.er1 >conftest.err
16245 rm -f conftest.er1
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } &&
16249 { ac_try='test -z "$ac_c_werror_flag"
16250 || test ! -s conftest.err'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; } &&
a3828db0 16256 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
a3828db0 16262 eval "$as_ac_var=yes"
086ec9eb 16263else
bec39cab
AC
16264 echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
a3828db0 16267eval "$as_ac_var=no"
086ec9eb 16268fi
a3828db0
MK
16269rm -f conftest.err conftest.$ac_objext \
16270 conftest$ac_exeext conftest.$ac_ext
086ec9eb 16271fi
a3828db0
MK
16272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16273echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16274if test `eval echo '${'$as_ac_var'}'` = yes; then
16275 cat >>confdefs.h <<_ACEOF
16276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16277_ACEOF
086ec9eb
MK
16278
16279fi
a3828db0 16280done
086ec9eb 16281
a3828db0
MK
16282
16283for ac_func in syscall
16284do
16285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16286echo "$as_me:$LINENO: checking for $ac_func" >&5
16287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16288if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16289 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
16290else
16291 cat >conftest.$ac_ext <<_ACEOF
16292/* confdefs.h. */
16293_ACEOF
16294cat confdefs.h >>conftest.$ac_ext
16295cat >>conftest.$ac_ext <<_ACEOF
16296/* end confdefs.h. */
a3828db0
MK
16297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16299#define $ac_func innocuous_$ac_func
16300
16301/* System header to define __stub macros and hopefully few prototypes,
16302 which can conflict with char $ac_func (); below.
16303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16304 <limits.h> exists even on freestanding compilers. */
16305
16306#ifdef __STDC__
16307# include <limits.h>
16308#else
16309# include <assert.h>
16310#endif
16311
16312#undef $ac_func
16313
16314/* Override any gcc2 internal prototype to avoid an error. */
16315#ifdef __cplusplus
16316extern "C"
16317{
16318#endif
16319/* We use char because int might match the return type of a gcc2
16320 builtin and then its argument prototype would still apply. */
16321char $ac_func ();
16322/* The GNU C library defines this for functions which it implements
16323 to always fail with ENOSYS. Some functions are actually named
16324 something starting with __ and the normal name is an alias. */
16325#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16326choke me
16327#else
16328char (*f) () = $ac_func;
16329#endif
16330#ifdef __cplusplus
16331}
c906108c 16332#endif
97bf5e38 16333
bec39cab
AC
16334int
16335main ()
97bf5e38 16336{
a3828db0 16337return f != $ac_func;
bec39cab
AC
16338 ;
16339 return 0;
97bf5e38 16340}
bec39cab 16341_ACEOF
a3828db0 16342rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 16343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16344 (eval $ac_link) 2>conftest.er1
bec39cab 16345 ac_status=$?
a3828db0
MK
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
bec39cab 16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
a3828db0 16364 eval "$as_ac_var=yes"
c906108c 16365else
a3828db0 16366 echo "$as_me: failed program was:" >&5
bec39cab
AC
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
a3828db0 16369eval "$as_ac_var=no"
97bf5e38 16370fi
a3828db0
MK
16371rm -f conftest.err conftest.$ac_objext \
16372 conftest$ac_exeext conftest.$ac_ext
16373fi
16374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16375echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16376if test `eval echo '${'$as_ac_var'}'` = yes; then
16377 cat >>confdefs.h <<_ACEOF
16378#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16379_ACEOF
c906108c
SS
16380
16381fi
a3828db0 16382done
c906108c 16383
a3828db0
MK
16384
16385for ac_func in ttrace
16386do
16387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16388echo "$as_me:$LINENO: checking for $ac_func" >&5
16389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16390if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16391 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 16392else
bec39cab
AC
16393 cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h. */
a3828db0
MK
16399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16401#define $ac_func innocuous_$ac_func
b83266a0 16402
a3828db0
MK
16403/* System header to define __stub macros and hopefully few prototypes,
16404 which can conflict with char $ac_func (); below.
16405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16406 <limits.h> exists even on freestanding compilers. */
16407
16408#ifdef __STDC__
16409# include <limits.h>
16410#else
16411# include <assert.h>
16412#endif
16413
16414#undef $ac_func
16415
16416/* Override any gcc2 internal prototype to avoid an error. */
16417#ifdef __cplusplus
16418extern "C"
16419{
16420#endif
16421/* We use char because int might match the return type of a gcc2
16422 builtin and then its argument prototype would still apply. */
16423char $ac_func ();
16424/* The GNU C library defines this for functions which it implements
16425 to always fail with ENOSYS. Some functions are actually named
16426 something starting with __ and the normal name is an alias. */
16427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16428choke me
16429#else
16430char (*f) () = $ac_func;
16431#endif
16432#ifdef __cplusplus
16433}
16434#endif
97bf5e38 16435
bec39cab
AC
16436int
16437main ()
16438{
a3828db0 16439return f != $ac_func;
bec39cab
AC
16440 ;
16441 return 0;
16442}
16443_ACEOF
a3828db0
MK
16444rm -f conftest.$ac_objext conftest$ac_exeext
16445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16446 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
a3828db0 16460 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
a3828db0 16466 eval "$as_ac_var=yes"
b83266a0 16467else
bec39cab
AC
16468 echo "$as_me: failed program was:" >&5
16469sed 's/^/| /' conftest.$ac_ext >&5
16470
a3828db0 16471eval "$as_ac_var=no"
b83266a0 16472fi
a3828db0
MK
16473rm -f conftest.err conftest.$ac_objext \
16474 conftest$ac_exeext conftest.$ac_ext
b83266a0 16475fi
a3828db0
MK
16476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16478if test `eval echo '${'$as_ac_var'}'` = yes; then
16479 cat >>confdefs.h <<_ACEOF
16480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16481_ACEOF
b83266a0 16482
97bf5e38 16483fi
a3828db0 16484done
b83266a0 16485
a3828db0
MK
16486
16487for ac_func in wborder
16488do
16489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16490echo "$as_me:$LINENO: checking for $ac_func" >&5
16491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16492if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16494else
16495 cat >conftest.$ac_ext <<_ACEOF
16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
a3828db0
MK
16501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16503#define $ac_func innocuous_$ac_func
a4db0f07 16504
a3828db0
MK
16505/* System header to define __stub macros and hopefully few prototypes,
16506 which can conflict with char $ac_func (); below.
16507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16508 <limits.h> exists even on freestanding compilers. */
16509
16510#ifdef __STDC__
16511# include <limits.h>
16512#else
16513# include <assert.h>
16514#endif
16515
16516#undef $ac_func
16517
16518/* Override any gcc2 internal prototype to avoid an error. */
16519#ifdef __cplusplus
16520extern "C"
16521{
16522#endif
16523/* We use char because int might match the return type of a gcc2
16524 builtin and then its argument prototype would still apply. */
16525char $ac_func ();
16526/* The GNU C library defines this for functions which it implements
16527 to always fail with ENOSYS. Some functions are actually named
16528 something starting with __ and the normal name is an alias. */
16529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16530choke me
16531#else
16532char (*f) () = $ac_func;
16533#endif
16534#ifdef __cplusplus
16535}
16536#endif
97bf5e38 16537
bec39cab
AC
16538int
16539main ()
16540{
a3828db0 16541return f != $ac_func;
bec39cab
AC
16542 ;
16543 return 0;
16544}
16545_ACEOF
a3828db0
MK
16546rm -f conftest.$ac_objext conftest$ac_exeext
16547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16548 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16549 ac_status=$?
16550 grep -v '^ *+' conftest.er1 >conftest.err
16551 rm -f conftest.er1
16552 cat conftest.err >&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } &&
16555 { ac_try='test -z "$ac_c_werror_flag"
16556 || test ! -s conftest.err'
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; } &&
a3828db0 16562 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; }; then
a3828db0 16568 eval "$as_ac_var=yes"
a4db0f07 16569else
bec39cab
AC
16570 echo "$as_me: failed program was:" >&5
16571sed 's/^/| /' conftest.$ac_ext >&5
16572
a3828db0 16573eval "$as_ac_var=no"
a4db0f07 16574fi
a3828db0
MK
16575rm -f conftest.err conftest.$ac_objext \
16576 conftest$ac_exeext conftest.$ac_ext
a4db0f07 16577fi
a3828db0
MK
16578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16579echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16580if test `eval echo '${'$as_ac_var'}'` = yes; then
16581 cat >>confdefs.h <<_ACEOF
16582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16583_ACEOF
a4db0f07
RH
16584
16585fi
a3828db0 16586done
c906108c 16587
06825bd1 16588
a3828db0
MK
16589# Check the return and argument types of ptrace. No canned test for
16590# this, so roll our own.
16591gdb_ptrace_headers='
16592#if HAVE_SYS_TYPES_H
16593# include <sys/types.h>
16594#endif
16595#if HAVE_SYS_PTRACE_H
16596# include <sys/ptrace.h>
16597#endif
16598#if HAVE_UNISTD_H
16599# include <unistd.h>
16600#endif
16601'
16602# There is no point in checking if we don't have a prototype.
16603echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16604echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16605if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607else
16608 cat >conftest.$ac_ext <<_ACEOF
16609/* confdefs.h. */
16610_ACEOF
16611cat confdefs.h >>conftest.$ac_ext
16612cat >>conftest.$ac_ext <<_ACEOF
16613/* end confdefs.h. */
a3828db0
MK
16614$gdb_ptrace_headers
16615
bec39cab
AC
16616int
16617main ()
16618{
a3828db0
MK
16619#ifndef ptrace
16620 char *p = (char *) ptrace;
06825bd1 16621#endif
a3828db0 16622
bec39cab
AC
16623 ;
16624 return 0;
16625}
16626_ACEOF
16627rm -f conftest.$ac_objext
16628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16629 (eval $ac_compile) 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag"
16637 || test ! -s conftest.err'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
a3828db0 16649 ac_cv_have_decl_ptrace=yes
06825bd1 16650else
bec39cab
AC
16651 echo "$as_me: failed program was:" >&5
16652sed 's/^/| /' conftest.$ac_ext >&5
16653
a3828db0 16654ac_cv_have_decl_ptrace=no
06825bd1 16655fi
bec39cab 16656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16657fi
a3828db0
MK
16658echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16659echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16660if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 16661
a3828db0
MK
16662cat >>confdefs.h <<_ACEOF
16663#define HAVE_DECL_PTRACE 1
16664_ACEOF
bec39cab 16665
bec39cab 16666
a3828db0
MK
16667else
16668 cat >>confdefs.h <<_ACEOF
16669#define HAVE_DECL_PTRACE 0
bec39cab 16670_ACEOF
06825bd1 16671
a3828db0
MK
16672
16673 : ${gdb_cv_func_ptrace_ret='int'}
16674 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16675
06825bd1
MK
16676fi
16677
a3828db0
MK
16678
16679# Check return type.
16680echo "$as_me:$LINENO: checking return type of ptrace" >&5
16681echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16682if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
16685 cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
a3828db0 16691$gdb_ptrace_headers
bec39cab
AC
16692int
16693main ()
16694{
a3828db0 16695extern int ptrace ();
bec39cab
AC
16696 ;
16697 return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext
16701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702 (eval $ac_compile) 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
a3828db0 16722 gdb_cv_func_ptrace_ret='int'
70f9f479 16723else
bec39cab
AC
16724 echo "$as_me: failed program was:" >&5
16725sed 's/^/| /' conftest.$ac_ext >&5
16726
a3828db0 16727gdb_cv_func_ptrace_ret='long'
70f9f479 16728fi
bec39cab 16729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16730fi
a3828db0
MK
16731echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16732echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 16733
a3828db0
MK
16734cat >>confdefs.h <<_ACEOF
16735#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 16736_ACEOF
70f9f479 16737
a3828db0
MK
16738# Check argument types.
16739echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16740echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16741if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16743else
a3828db0
MK
16744
16745for gdb_arg1 in 'int' 'long'; do
16746 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16747 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16748 for gdb_arg4 in 'int' 'long'; do
16749 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16750/* confdefs.h. */
16751_ACEOF
16752cat confdefs.h >>conftest.$ac_ext
16753cat >>conftest.$ac_ext <<_ACEOF
16754/* end confdefs.h. */
a3828db0 16755$gdb_ptrace_headers
bec39cab
AC
16756int
16757main ()
16758{
a3828db0
MK
16759
16760extern $gdb_cv_func_ptrace_ret
16761 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16762
bec39cab
AC
16763 ;
16764 return 0;
16765}
16766_ACEOF
16767rm -f conftest.$ac_objext
16768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769 (eval $ac_compile) 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -z "$ac_c_werror_flag"
16777 || test ! -s conftest.err'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
a3828db0
MK
16789 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16790 break 4;
5c7f2947 16791else
bec39cab
AC
16792 echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
5c7f2947 16795fi
bec39cab 16796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16797 for gdb_arg5 in 'int *' 'int' 'long'; do
16798 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
a3828db0 16804$gdb_ptrace_headers
bec39cab
AC
16805int
16806main ()
16807{
a3828db0
MK
16808
16809extern $gdb_cv_func_ptrace_ret
16810 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16811
bec39cab
AC
16812 ;
16813 return 0;
16814}
16815_ACEOF
16816rm -f conftest.$ac_objext
16817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16818 (eval $ac_compile) 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag"
16826 || test ! -s conftest.err'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } &&
16832 { ac_try='test -s conftest.$ac_objext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
a3828db0
MK
16838
16839gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16840 break 5;
78434e59 16841else
bec39cab
AC
16842 echo "$as_me: failed program was:" >&5
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
78434e59 16845fi
bec39cab 16846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16847 done
16848 done
16849 done
16850 done
16851done
16852# Provide a safe default value.
16853: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16854
78434e59 16855fi
a3828db0
MK
16856echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16857echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16858ac_save_IFS=$IFS; IFS=','
16859set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16860IFS=$ac_save_IFS
16861shift
bec39cab 16862
a3828db0
MK
16863cat >>confdefs.h <<_ACEOF
16864#define PTRACE_TYPE_ARG3 $3
16865_ACEOF
16866
16867if test -n "$5"; then
16868
16869cat >>confdefs.h <<_ACEOF
16870#define PTRACE_TYPE_ARG5 $5
bec39cab 16871_ACEOF
78434e59
MK
16872
16873fi
16874
a3828db0
MK
16875if test "$cross_compiling" = no; then
16876 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16877echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16878if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16879 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16880else
16881 if test "$cross_compiling" = yes; then
16882 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16883echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16884 { (exit 1); exit 1; }; }
bec39cab
AC
16885else
16886 cat >conftest.$ac_ext <<_ACEOF
16887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
a3828db0
MK
16892#if HAVE_UNISTD_H
16893# include <unistd.h>
16894#endif
16895
bec39cab
AC
16896int
16897main ()
16898{
a3828db0
MK
16899/* If this system has a BSD-style setpgrp which takes arguments,
16900 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16901 exit successfully. */
16902 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
16903 ;
16904 return 0;
16905}
16906_ACEOF
a3828db0
MK
16907rm -f conftest$ac_exeext
16908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16909 (eval $ac_link) 2>&5
bec39cab
AC
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
a3828db0 16918 ac_cv_func_setpgrp_void=no
c906108c 16919else
a3828db0
MK
16920 echo "$as_me: program exited with status $ac_status" >&5
16921echo "$as_me: failed program was:" >&5
bec39cab
AC
16922sed 's/^/| /' conftest.$ac_ext >&5
16923
a3828db0
MK
16924( exit $ac_status )
16925ac_cv_func_setpgrp_void=yes
c906108c 16926fi
a3828db0 16927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 16928fi
a3828db0
MK
16929fi
16930echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16931echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16932if test $ac_cv_func_setpgrp_void = yes; then
16933
16934cat >>confdefs.h <<\_ACEOF
16935#define SETPGRP_VOID 1
bec39cab 16936_ACEOF
97bf5e38
MK
16937
16938fi
a3828db0
MK
16939
16940else
16941 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16942echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16943if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16944 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16945else
bec39cab
AC
16946 cat >conftest.$ac_ext <<_ACEOF
16947/* confdefs.h. */
16948_ACEOF
16949cat confdefs.h >>conftest.$ac_ext
16950cat >>conftest.$ac_ext <<_ACEOF
16951/* end confdefs.h. */
a3828db0
MK
16952
16953#include <unistd.h>
16954
bec39cab
AC
16955int
16956main ()
16957{
a3828db0
MK
16958
16959 if (setpgrp(1,1) == -1)
16960 exit (0);
16961 else
16962 exit (1);
16963
bec39cab
AC
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968rm -f conftest.$ac_objext
16969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16970 (eval $ac_compile) 2>conftest.er1
16971 ac_status=$?
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag"
16978 || test ! -s conftest.err'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest.$ac_objext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
a3828db0 16990 ac_cv_func_setpgrp_void=no
c906108c 16991else
bec39cab
AC
16992 echo "$as_me: failed program was:" >&5
16993sed 's/^/| /' conftest.$ac_ext >&5
16994
a3828db0 16995ac_cv_func_setpgrp_void=yes
c906108c 16996fi
bec39cab 16997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16998fi
a3828db0
MK
16999echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17000echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17001if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 17002 cat >>confdefs.h <<\_ACEOF
a3828db0 17003#define SETPGRP_VOID 1
bec39cab 17004_ACEOF
c3f6f71d 17005
a3828db0 17006fi
c906108c
SS
17007fi
17008
a3828db0
MK
17009# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17010# since sigsetjmp might only be defined as a macro.
17011echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17012echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17013if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015else
17016 cat >conftest.$ac_ext <<_ACEOF
17017/* confdefs.h. */
17018_ACEOF
17019cat confdefs.h >>conftest.$ac_ext
17020cat >>conftest.$ac_ext <<_ACEOF
17021/* end confdefs.h. */
a3828db0
MK
17022
17023#include <setjmp.h>
17024
bec39cab
AC
17025int
17026main ()
17027{
a3828db0 17028sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
17029 ;
17030 return 0;
17031}
17032_ACEOF
17033rm -f conftest.$ac_objext
17034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17035 (eval $ac_compile) 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest.$ac_objext'
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 gdb_cv_func_sigsetjmp=yes
c906108c 17056else
bec39cab
AC
17057 echo "$as_me: failed program was:" >&5
17058sed 's/^/| /' conftest.$ac_ext >&5
17059
a3828db0 17060gdb_cv_func_sigsetjmp=no
c906108c 17061fi
bec39cab 17062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17063fi
a3828db0
MK
17064echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17065echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
17066if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 17067
a3828db0
MK
17068cat >>confdefs.h <<\_ACEOF
17069#define HAVE_SIGSETJMP 1
bec39cab 17070_ACEOF
c906108c 17071
97bf5e38 17072fi
c906108c 17073
a3828db0
MK
17074# Assume we'll default to using the included libiberty regex.
17075gdb_use_included_regex=yes
17076
17077# However, if the system regex is GNU regex, then default to *not*
17078# using the included regex.
17079echo "$as_me:$LINENO: checking for GNU regex" >&5
17080echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
17081if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083else
17084 cat >conftest.$ac_ext <<_ACEOF
17085/* confdefs.h. */
17086_ACEOF
17087cat confdefs.h >>conftest.$ac_ext
17088cat >>conftest.$ac_ext <<_ACEOF
17089/* end confdefs.h. */
a3828db0 17090#include <gnu-versions.h>
bec39cab
AC
17091int
17092main ()
17093{
a3828db0
MK
17094#define REGEX_INTERFACE_VERSION 1
17095#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17096# error "Version mismatch"
17097#endif
bec39cab
AC
17098 ;
17099 return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext
17103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17104 (eval $ac_compile) 2>conftest.er1
17105 ac_status=$?
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -z "$ac_c_werror_flag"
17112 || test ! -s conftest.err'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest.$ac_objext'
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
a3828db0 17124 gdb_cv_have_gnu_regex=yes
c906108c 17125else
bec39cab
AC
17126 echo "$as_me: failed program was:" >&5
17127sed 's/^/| /' conftest.$ac_ext >&5
17128
a3828db0 17129gdb_cv_have_gnu_regex=no
c906108c 17130fi
bec39cab 17131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17132fi
a3828db0
MK
17133echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17134echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17135if test $gdb_cv_have_gnu_regex = yes; then
17136 gdb_use_included_regex=no
17137fi
c906108c 17138
a3828db0
MK
17139
17140# Check whether --with-included-regex or --without-included-regex was given.
17141if test "${with_included_regex+set}" = set; then
17142 withval="$with_included_regex"
17143 gdb_with_regex=$withval
17144else
17145 gdb_with_regex=$gdb_use_included_regex
17146fi;
17147if test "$gdb_with_regex" = yes; then
17148
17149cat >>confdefs.h <<\_ACEOF
17150#define USE_INCLUDED_REGEX 1
bec39cab 17151_ACEOF
c906108c 17152
97bf5e38 17153fi
c906108c 17154
5c45e068
MK
17155# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17156echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17157echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17158if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160else
17161 cat >conftest.$ac_ext <<_ACEOF
17162/* confdefs.h. */
17163_ACEOF
17164cat confdefs.h >>conftest.$ac_ext
17165cat >>conftest.$ac_ext <<_ACEOF
17166/* end confdefs.h. */
a3828db0
MK
17167#include <sys/param.h>
17168#include <sys/proc.h>
5c45e068
MK
17169
17170
bec39cab
AC
17171int
17172main ()
17173{
5c45e068
MK
17174static struct thread ac_aggr;
17175if (ac_aggr.td_pcb)
17176return 0;
bec39cab
AC
17177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext
17182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17183 (eval $ac_compile) 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_c_werror_flag"
17191 || test ! -s conftest.err'
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); }; } &&
17197 { ac_try='test -s conftest.$ac_objext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
5c45e068 17203 ac_cv_member_struct_thread_td_pcb=yes
c906108c 17204else
bec39cab
AC
17205 echo "$as_me: failed program was:" >&5
17206sed 's/^/| /' conftest.$ac_ext >&5
17207
5c45e068
MK
17208cat >conftest.$ac_ext <<_ACEOF
17209/* confdefs.h. */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h. */
17214#include <sys/param.h>
17215#include <sys/proc.h>
17216
17217
17218int
17219main ()
17220{
17221static struct thread ac_aggr;
17222if (sizeof ac_aggr.td_pcb)
17223return 0;
17224 ;
17225 return 0;
17226}
17227_ACEOF
17228rm -f conftest.$ac_objext
17229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17230 (eval $ac_compile) 2>conftest.er1
17231 ac_status=$?
17232 grep -v '^ *+' conftest.er1 >conftest.err
17233 rm -f conftest.er1
17234 cat conftest.err >&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } &&
17237 { ac_try='test -z "$ac_c_werror_flag"
17238 || test ! -s conftest.err'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17241 ac_status=$?
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; } &&
17244 { ac_try='test -s conftest.$ac_objext'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17250 ac_cv_member_struct_thread_td_pcb=yes
17251else
17252 echo "$as_me: failed program was:" >&5
17253sed 's/^/| /' conftest.$ac_ext >&5
17254
17255ac_cv_member_struct_thread_td_pcb=no
17256fi
17257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17258fi
bec39cab 17259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17260fi
5c45e068
MK
17261echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17262echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17263if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 17264
5c45e068 17265cat >>confdefs.h <<_ACEOF
a3828db0 17266#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 17267_ACEOF
c906108c 17268
5c45e068 17269
97bf5e38 17270fi
c906108c 17271
5c45e068 17272
a3828db0
MK
17273# See if <sys/lwp.h> defines `struct lwp`.
17274echo "$as_me:$LINENO: checking for struct lwp" >&5
17275echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17276if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278else
17279 cat >conftest.$ac_ext <<_ACEOF
17280/* confdefs.h. */
17281_ACEOF
17282cat confdefs.h >>conftest.$ac_ext
17283cat >>conftest.$ac_ext <<_ACEOF
17284/* end confdefs.h. */
a3828db0
MK
17285#include <sys/param.h>
17286#include <sys/lwp.h>
bec39cab
AC
17287int
17288main ()
17289{
a3828db0 17290struct lwp l;
bec39cab
AC
17291 ;
17292 return 0;
17293}
17294_ACEOF
17295rm -f conftest.$ac_objext
17296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17297 (eval $ac_compile) 2>conftest.er1
17298 ac_status=$?
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag"
17305 || test ! -s conftest.err'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest.$ac_objext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
a3828db0 17317 gdb_cv_struct_lwp=yes
c906108c 17318else
bec39cab
AC
17319 echo "$as_me: failed program was:" >&5
17320sed 's/^/| /' conftest.$ac_ext >&5
17321
a3828db0 17322gdb_cv_struct_lwp=no
c906108c 17323fi
bec39cab 17324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17325fi
a3828db0
MK
17326echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17327echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17328if test $gdb_cv_struct_lwp = yes; then
c906108c 17329
a3828db0
MK
17330cat >>confdefs.h <<\_ACEOF
17331#define HAVE_STRUCT_LWP 1
bec39cab 17332_ACEOF
c906108c 17333
97bf5e38 17334fi
c906108c 17335
a3828db0
MK
17336# See if <machine/reg.h> degines `struct reg'.
17337echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17338echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17339if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17341else
17342 cat >conftest.$ac_ext <<_ACEOF
17343/* confdefs.h. */
17344_ACEOF
17345cat confdefs.h >>conftest.$ac_ext
17346cat >>conftest.$ac_ext <<_ACEOF
17347/* end confdefs.h. */
a3828db0
MK
17348#include <sys/types.h>
17349#include <machine/reg.h>
bec39cab
AC
17350int
17351main ()
17352{
a3828db0 17353struct reg r;
bec39cab
AC
17354 ;
17355 return 0;
17356}
17357_ACEOF
17358rm -f conftest.$ac_objext
17359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17360 (eval $ac_compile) 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag"
17368 || test ! -s conftest.err'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
a3828db0 17380 gdb_cv_struct_reg=yes
27ca5dad 17381else
bec39cab
AC
17382 echo "$as_me: failed program was:" >&5
17383sed 's/^/| /' conftest.$ac_ext >&5
17384
a3828db0 17385gdb_cv_struct_reg=no
27ca5dad 17386fi
bec39cab 17387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 17388fi
a3828db0
MK
17389echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17390echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17391if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
17392
17393cat >>confdefs.h <<\_ACEOF
a3828db0 17394#define HAVE_STRUCT_REG 1
bec39cab 17395_ACEOF
27ca5dad
MC
17396
17397fi
97bf5e38 17398
a3828db0
MK
17399# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17400# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
5c45e068
MK
17401echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17402echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17403if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 17404 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17405else
bec39cab
AC
17406 cat >conftest.$ac_ext <<_ACEOF
17407/* confdefs.h. */
17408_ACEOF
17409cat confdefs.h >>conftest.$ac_ext
17410cat >>conftest.$ac_ext <<_ACEOF
17411/* end confdefs.h. */
a3828db0 17412#include <machine/reg.h>
5c45e068
MK
17413
17414int
17415main ()
17416{
17417static struct reg ac_aggr;
17418if (ac_aggr.r_fs)
17419return 0;
17420 ;
17421 return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext
17425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17426 (eval $ac_compile) 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag"
17434 || test ! -s conftest.err'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest.$ac_objext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_member_struct_reg_r_fs=yes
17447else
17448 echo "$as_me: failed program was:" >&5
17449sed 's/^/| /' conftest.$ac_ext >&5
17450
17451cat >conftest.$ac_ext <<_ACEOF
17452/* confdefs.h. */
17453_ACEOF
17454cat confdefs.h >>conftest.$ac_ext
17455cat >>conftest.$ac_ext <<_ACEOF
17456/* end confdefs.h. */
17457#include <machine/reg.h>
17458
bec39cab
AC
17459int
17460main ()
17461{
5c45e068
MK
17462static struct reg ac_aggr;
17463if (sizeof ac_aggr.r_fs)
17464return 0;
bec39cab
AC
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469rm -f conftest.$ac_objext
17470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17471 (eval $ac_compile) 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
17478 { ac_try='test -z "$ac_c_werror_flag"
17479 || test ! -s conftest.err'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest.$ac_objext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
5c45e068 17491 ac_cv_member_struct_reg_r_fs=yes
3862412b 17492else
bec39cab
AC
17493 echo "$as_me: failed program was:" >&5
17494sed 's/^/| /' conftest.$ac_ext >&5
17495
5c45e068 17496ac_cv_member_struct_reg_r_fs=no
3862412b 17497fi
bec39cab 17498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17499fi
5c45e068
MK
17500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17501fi
17502echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17503echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17504if test $ac_cv_member_struct_reg_r_fs = yes; then
17505
17506cat >>confdefs.h <<_ACEOF
a3828db0 17507#define HAVE_STRUCT_REG_R_FS 1
bec39cab 17508_ACEOF
3862412b 17509
5c45e068 17510
97bf5e38 17511fi
5c45e068
MK
17512echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17513echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17514if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 17515 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17516else
bec39cab
AC
17517 cat >conftest.$ac_ext <<_ACEOF
17518/* confdefs.h. */
17519_ACEOF
17520cat confdefs.h >>conftest.$ac_ext
17521cat >>conftest.$ac_ext <<_ACEOF
17522/* end confdefs.h. */
a3828db0 17523#include <machine/reg.h>
5c45e068 17524
bec39cab
AC
17525int
17526main ()
17527{
5c45e068
MK
17528static struct reg ac_aggr;
17529if (ac_aggr.r_gs)
17530return 0;
bec39cab
AC
17531 ;
17532 return 0;
17533}
17534_ACEOF
17535rm -f conftest.$ac_objext
17536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17537 (eval $ac_compile) 2>conftest.er1
17538 ac_status=$?
17539 grep -v '^ *+' conftest.er1 >conftest.err
17540 rm -f conftest.er1
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -z "$ac_c_werror_flag"
17545 || test ! -s conftest.err'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest.$ac_objext'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
5c45e068 17557 ac_cv_member_struct_reg_r_gs=yes
3862412b 17558else
bec39cab
AC
17559 echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
5c45e068
MK
17562cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h. */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h. */
17568#include <machine/reg.h>
17569
17570int
17571main ()
17572{
17573static struct reg ac_aggr;
17574if (sizeof ac_aggr.r_gs)
17575return 0;
17576 ;
17577 return 0;
17578}
17579_ACEOF
17580rm -f conftest.$ac_objext
17581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17582 (eval $ac_compile) 2>conftest.er1
17583 ac_status=$?
17584 grep -v '^ *+' conftest.er1 >conftest.err
17585 rm -f conftest.er1
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -z "$ac_c_werror_flag"
17590 || test ! -s conftest.err'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; } &&
17596 { ac_try='test -s conftest.$ac_objext'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 ac_cv_member_struct_reg_r_gs=yes
17603else
17604 echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607ac_cv_member_struct_reg_r_gs=no
3862412b 17608fi
bec39cab 17609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17610fi
5c45e068
MK
17611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17612fi
17613echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17614echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17615if test $ac_cv_member_struct_reg_r_gs = yes; then
17616
17617cat >>confdefs.h <<_ACEOF
a3828db0 17618#define HAVE_STRUCT_REG_R_GS 1
bec39cab 17619_ACEOF
3862412b 17620
5c45e068 17621
97bf5e38 17622fi
3862412b 17623
5c45e068 17624
a3828db0
MK
17625# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17626echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17627echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17628if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 17629 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17630else
bec39cab
AC
17631 cat >conftest.$ac_ext <<_ACEOF
17632/* confdefs.h. */
17633_ACEOF
17634cat confdefs.h >>conftest.$ac_ext
17635cat >>conftest.$ac_ext <<_ACEOF
17636/* end confdefs.h. */
a3828db0 17637#include <sys/ptrace.h>
bec39cab
AC
17638int
17639main ()
17640{
a3828db0 17641PTRACE_GETREGS;
bec39cab
AC
17642 ;
17643 return 0;
17644}
17645_ACEOF
17646rm -f conftest.$ac_objext
17647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17648 (eval $ac_compile) 2>conftest.er1
17649 ac_status=$?
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
17655 { ac_try='test -z "$ac_c_werror_flag"
17656 || test ! -s conftest.err'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest.$ac_objext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
a3828db0 17668 gdb_cv_have_ptrace_getregs=yes
451928c5 17669else
bec39cab
AC
17670 echo "$as_me: failed program was:" >&5
17671sed 's/^/| /' conftest.$ac_ext >&5
17672
a3828db0 17673gdb_cv_have_ptrace_getregs=no
451928c5 17674fi
bec39cab 17675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17676fi
17677
a3828db0
MK
17678echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17679echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17680if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
17681
17682cat >>confdefs.h <<\_ACEOF
a3828db0 17683#define HAVE_PTRACE_GETREGS 1
bec39cab 17684_ACEOF
451928c5 17685
97bf5e38 17686fi
451928c5 17687
a3828db0
MK
17688# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17689echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17690echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17691if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 17692 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17693else
bec39cab
AC
17694 cat >conftest.$ac_ext <<_ACEOF
17695/* confdefs.h. */
17696_ACEOF
17697cat confdefs.h >>conftest.$ac_ext
17698cat >>conftest.$ac_ext <<_ACEOF
17699/* end confdefs.h. */
a3828db0 17700#include <sys/ptrace.h>
bec39cab
AC
17701int
17702main ()
17703{
a3828db0 17704PTRACE_GETFPXREGS;
bec39cab
AC
17705 ;
17706 return 0;
17707}
17708_ACEOF
17709rm -f conftest.$ac_objext
17710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17711 (eval $ac_compile) 2>conftest.er1
17712 ac_status=$?
17713 grep -v '^ *+' conftest.er1 >conftest.err
17714 rm -f conftest.er1
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } &&
17718 { ac_try='test -z "$ac_c_werror_flag"
17719 || test ! -s conftest.err'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
a3828db0 17731 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 17732else
bec39cab
AC
17733 echo "$as_me: failed program was:" >&5
17734sed 's/^/| /' conftest.$ac_ext >&5
17735
a3828db0 17736gdb_cv_have_ptrace_getfpxregs=no
451928c5 17737fi
bec39cab 17738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17739fi
17740
a3828db0
MK
17741echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17742echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17743if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
17744
17745cat >>confdefs.h <<\_ACEOF
a3828db0 17746#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 17747_ACEOF
451928c5 17748
97bf5e38 17749fi
451928c5 17750
a3828db0
MK
17751# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17752echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17753echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17754if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 17755 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17756else
bec39cab
AC
17757 cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h. */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h. */
a3828db0
MK
17763#include <sys/types.h>
17764#include <sys/ptrace.h>
bec39cab
AC
17765int
17766main ()
17767{
a3828db0 17768PT_GETDBREGS;
bec39cab
AC
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext
17774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17775 (eval $ac_compile) 2>conftest.er1
17776 ac_status=$?
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -z "$ac_c_werror_flag"
17783 || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest.$ac_objext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
a3828db0 17795 gdb_cv_have_pt_getdbregs=yes
3862412b 17796else
bec39cab
AC
17797 echo "$as_me: failed program was:" >&5
17798sed 's/^/| /' conftest.$ac_ext >&5
17799
a3828db0 17800gdb_cv_have_pt_getdbregs=no
3862412b 17801fi
bec39cab 17802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17803fi
17804
a3828db0
MK
17805echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17806echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17807if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
17808
17809cat >>confdefs.h <<\_ACEOF
a3828db0 17810#define HAVE_PT_GETDBREGS 1
bec39cab 17811_ACEOF
3862412b 17812
97bf5e38 17813fi
3862412b 17814
a3828db0
MK
17815# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17816echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17817echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17818if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 17819 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17820else
bec39cab
AC
17821 cat >conftest.$ac_ext <<_ACEOF
17822/* confdefs.h. */
17823_ACEOF
17824cat confdefs.h >>conftest.$ac_ext
17825cat >>conftest.$ac_ext <<_ACEOF
17826/* end confdefs.h. */
a3828db0
MK
17827#include <sys/types.h>
17828#include <sys/ptrace.h>
bec39cab
AC
17829int
17830main ()
17831{
a3828db0 17832PT_GETXMMREGS;
bec39cab
AC
17833 ;
17834 return 0;
17835}
17836_ACEOF
17837rm -f conftest.$ac_objext
17838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17839 (eval $ac_compile) 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag"
17847 || test ! -s conftest.err'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest.$ac_objext'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
a3828db0 17859 gdb_cv_have_pt_getxmmregs=yes
3862412b 17860else
bec39cab
AC
17861 echo "$as_me: failed program was:" >&5
17862sed 's/^/| /' conftest.$ac_ext >&5
17863
a3828db0 17864gdb_cv_have_pt_getxmmregs=no
3862412b 17865fi
bec39cab 17866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17867fi
17868
a3828db0
MK
17869echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17870echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17871if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
17872
17873cat >>confdefs.h <<\_ACEOF
a3828db0 17874#define HAVE_PT_GETXMMREGS 1
bec39cab 17875_ACEOF
3862412b 17876
97bf5e38 17877fi
3862412b 17878
97bf5e38
MK
17879# If we are configured native on GNU/Linux, work around problems with
17880# sys/procfs.h
17881# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17882
17883if test "${target}" = "${host}"; then
17884 case "${host}" in
17885 i[3456]86-*-linux*)
60ca704f
SE
17886
17887cat >>confdefs.h <<\_ACEOF
97bf5e38 17888#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17889_ACEOF
97bf5e38 17890
60ca704f
SE
17891
17892cat >>confdefs.h <<\_ACEOF
97bf5e38 17893#define sys_quotactl 1
bec39cab 17894_ACEOF
97bf5e38
MK
17895
17896 ;;
97bf5e38 17897 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
17898
17899cat >>confdefs.h <<\_ACEOF
97bf5e38 17900#define NEW_PROC_API 1
bec39cab 17901_ACEOF
97bf5e38
MK
17902
17903 ;;
0bbc026e 17904 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
17905
17906cat >>confdefs.h <<\_ACEOF
97bf5e38 17907#define NEW_PROC_API 1
bec39cab 17908_ACEOF
c960c18f
AC
17909
17910 ;;
17911 mips-sgi-irix5*)
17912 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
17913
17914cat >>confdefs.h <<\_ACEOF
c960c18f 17915#define _KMEMUSER 1
bec39cab 17916_ACEOF
97bf5e38
MK
17917
17918 ;;
17919 esac
17920fi
17921
17922if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17923 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17924echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17925 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927else
17928 cat >conftest.$ac_ext <<_ACEOF
17929/* confdefs.h. */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h. */
596c9d4b
KB
17934
17935#define _SYSCALL32
17936#include <sys/procfs.h>
bec39cab
AC
17937int
17938main ()
17939{
97bf5e38 17940pstatus_t avar
bec39cab
AC
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext
17946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17947 (eval $ac_compile) 2>conftest.er1
17948 ac_status=$?
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } &&
17954 { ac_try='test -z "$ac_c_werror_flag"
17955 || test ! -s conftest.err'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; } &&
17961 { ac_try='test -s conftest.$ac_objext'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
97bf5e38 17967 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17968else
bec39cab
AC
17969 echo "$as_me: failed program was:" >&5
17970sed 's/^/| /' conftest.$ac_ext >&5
17971
17972bfd_cv_have_sys_procfs_type_pstatus_t=no
17973
596c9d4b 17974fi
bec39cab 17975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17976fi
17977
97bf5e38 17978 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17979
17980cat >>confdefs.h <<\_ACEOF
97bf5e38 17981#define HAVE_PSTATUS_T 1
bec39cab 17982_ACEOF
596c9d4b
KB
17983
17984 fi
bec39cab
AC
17985 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17986echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17987
bec39cab
AC
17988 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17989echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17990 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17992else
bec39cab
AC
17993 cat >conftest.$ac_ext <<_ACEOF
17994/* confdefs.h. */
17995_ACEOF
17996cat confdefs.h >>conftest.$ac_ext
17997cat >>conftest.$ac_ext <<_ACEOF
17998/* end confdefs.h. */
596c9d4b
KB
17999
18000#define _SYSCALL32
18001#include <sys/procfs.h>
bec39cab
AC
18002int
18003main ()
18004{
97bf5e38 18005prrun_t avar
bec39cab
AC
18006 ;
18007 return 0;
18008}
18009_ACEOF
18010rm -f conftest.$ac_objext
18011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18012 (eval $ac_compile) 2>conftest.er1
18013 ac_status=$?
18014 grep -v '^ *+' conftest.er1 >conftest.err
18015 rm -f conftest.er1
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } &&
18019 { ac_try='test -z "$ac_c_werror_flag"
18020 || test ! -s conftest.err'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest.$ac_objext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
97bf5e38 18032 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 18033else
bec39cab
AC
18034 echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
18037bfd_cv_have_sys_procfs_type_prrun_t=no
18038
596c9d4b 18039fi
bec39cab 18040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18041fi
18042
97bf5e38 18043 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
18044
18045cat >>confdefs.h <<\_ACEOF
97bf5e38 18046#define HAVE_PRRUN_T 1
bec39cab 18047_ACEOF
596c9d4b
KB
18048
18049 fi
bec39cab
AC
18050 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18051echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 18052
bec39cab
AC
18053 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18054echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
18055 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18057else
bec39cab
AC
18058 cat >conftest.$ac_ext <<_ACEOF
18059/* confdefs.h. */
18060_ACEOF
18061cat confdefs.h >>conftest.$ac_ext
18062cat >>conftest.$ac_ext <<_ACEOF
18063/* end confdefs.h. */
596c9d4b
KB
18064
18065#define _SYSCALL32
18066#include <sys/procfs.h>
bec39cab
AC
18067int
18068main ()
18069{
97bf5e38 18070gregset_t avar
bec39cab
AC
18071 ;
18072 return 0;
18073}
18074_ACEOF
18075rm -f conftest.$ac_objext
18076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18077 (eval $ac_compile) 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
18084 { ac_try='test -z "$ac_c_werror_flag"
18085 || test ! -s conftest.err'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest.$ac_objext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
97bf5e38 18097 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 18098else
bec39cab
AC
18099 echo "$as_me: failed program was:" >&5
18100sed 's/^/| /' conftest.$ac_ext >&5
18101
18102bfd_cv_have_sys_procfs_type_gregset_t=no
18103
596c9d4b 18104fi
bec39cab 18105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18106fi
18107
97bf5e38 18108 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
18109
18110cat >>confdefs.h <<\_ACEOF
97bf5e38 18111#define HAVE_GREGSET_T 1
bec39cab 18112_ACEOF
596c9d4b
KB
18113
18114 fi
bec39cab
AC
18115 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18116echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 18117
bec39cab
AC
18118 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18119echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18120 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 18122else
bec39cab
AC
18123 cat >conftest.$ac_ext <<_ACEOF
18124/* confdefs.h. */
18125_ACEOF
18126cat confdefs.h >>conftest.$ac_ext
18127cat >>conftest.$ac_ext <<_ACEOF
18128/* end confdefs.h. */
97bf5e38
MK
18129
18130#define _SYSCALL32
d84dd0c5 18131#include <sys/procfs.h>
bec39cab
AC
18132int
18133main ()
18134{
97bf5e38 18135fpregset_t avar
bec39cab
AC
18136 ;
18137 return 0;
18138}
18139_ACEOF
18140rm -f conftest.$ac_objext
18141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18142 (eval $ac_compile) 2>conftest.er1
18143 ac_status=$?
18144 grep -v '^ *+' conftest.er1 >conftest.err
18145 rm -f conftest.er1
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -z "$ac_c_werror_flag"
18150 || test ! -s conftest.err'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest.$ac_objext'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
97bf5e38 18162 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 18163else
bec39cab
AC
18164 echo "$as_me: failed program was:" >&5
18165sed 's/^/| /' conftest.$ac_ext >&5
18166
18167bfd_cv_have_sys_procfs_type_fpregset_t=no
18168
d84dd0c5 18169fi
bec39cab 18170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
18171fi
18172
97bf5e38 18173 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
18174
18175cat >>confdefs.h <<\_ACEOF
97bf5e38 18176#define HAVE_FPREGSET_T 1
bec39cab 18177_ACEOF
d84dd0c5 18178
97bf5e38 18179 fi
bec39cab
AC
18180 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18181echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 18182
bec39cab
AC
18183 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18184echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18185 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18187else
bec39cab
AC
18188 cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
c906108c 18194
97bf5e38
MK
18195#define _SYSCALL32
18196#include <sys/procfs.h>
bec39cab
AC
18197int
18198main ()
18199{
97bf5e38 18200prgregset_t avar
bec39cab
AC
18201 ;
18202 return 0;
18203}
18204_ACEOF
18205rm -f conftest.$ac_objext
18206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18207 (eval $ac_compile) 2>conftest.er1
18208 ac_status=$?
18209 grep -v '^ *+' conftest.er1 >conftest.err
18210 rm -f conftest.er1
18211 cat conftest.err >&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
18214 { ac_try='test -z "$ac_c_werror_flag"
18215 || test ! -s conftest.err'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try='test -s conftest.$ac_objext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
97bf5e38 18227 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 18228else
bec39cab
AC
18229 echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232bfd_cv_have_sys_procfs_type_prgregset_t=no
18233
c906108c 18234fi
bec39cab 18235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18236fi
18237
97bf5e38 18238 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
18239
18240cat >>confdefs.h <<\_ACEOF
97bf5e38 18241#define HAVE_PRGREGSET_T 1
bec39cab 18242_ACEOF
c906108c 18243
97bf5e38 18244 fi
bec39cab
AC
18245 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18246echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 18247
bec39cab
AC
18248 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18249echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18250 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18252else
bec39cab
AC
18253 cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
97bf5e38
MK
18259
18260#define _SYSCALL32
18261#include <sys/procfs.h>
bec39cab
AC
18262int
18263main ()
18264{
97bf5e38 18265prfpregset_t avar
bec39cab
AC
18266 ;
18267 return 0;
18268}
18269_ACEOF
18270rm -f conftest.$ac_objext
18271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18272 (eval $ac_compile) 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest.$ac_objext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
97bf5e38 18292 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 18293else
bec39cab
AC
18294 echo "$as_me: failed program was:" >&5
18295sed 's/^/| /' conftest.$ac_ext >&5
18296
18297bfd_cv_have_sys_procfs_type_prfpregset_t=no
18298
d45fe813 18299fi
bec39cab 18300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18301fi
18302
97bf5e38 18303 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18304
18305cat >>confdefs.h <<\_ACEOF
97bf5e38 18306#define HAVE_PRFPREGSET_T 1
bec39cab 18307_ACEOF
d45fe813 18308
97bf5e38 18309 fi
bec39cab
AC
18310 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18311echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 18312
bec39cab
AC
18313 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18314echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18315 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18317else
bec39cab
AC
18318 cat >conftest.$ac_ext <<_ACEOF
18319/* confdefs.h. */
18320_ACEOF
18321cat confdefs.h >>conftest.$ac_ext
18322cat >>conftest.$ac_ext <<_ACEOF
18323/* end confdefs.h. */
97bf5e38
MK
18324
18325#define _SYSCALL32
18326#include <sys/procfs.h>
bec39cab
AC
18327int
18328main ()
18329{
97bf5e38 18330prgregset32_t avar
bec39cab
AC
18331 ;
18332 return 0;
18333}
18334_ACEOF
18335rm -f conftest.$ac_objext
18336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18337 (eval $ac_compile) 2>conftest.er1
18338 ac_status=$?
18339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
18344 { ac_try='test -z "$ac_c_werror_flag"
18345 || test ! -s conftest.err'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest.$ac_objext'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
97bf5e38 18357 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 18358else
bec39cab
AC
18359 echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
18362bfd_cv_have_sys_procfs_type_prgregset32_t=no
18363
d45fe813 18364fi
bec39cab 18365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18366fi
18367
97bf5e38 18368 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18369
18370cat >>confdefs.h <<\_ACEOF
97bf5e38 18371#define HAVE_PRGREGSET32_T 1
bec39cab 18372_ACEOF
d45fe813 18373
97bf5e38 18374 fi
bec39cab
AC
18375 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18376echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18377
bec39cab
AC
18378 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18379echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18380 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18382else
bec39cab
AC
18383 cat >conftest.$ac_ext <<_ACEOF
18384/* confdefs.h. */
18385_ACEOF
18386cat confdefs.h >>conftest.$ac_ext
18387cat >>conftest.$ac_ext <<_ACEOF
18388/* end confdefs.h. */
97bf5e38
MK
18389
18390#define _SYSCALL32
18391#include <sys/procfs.h>
bec39cab
AC
18392int
18393main ()
18394{
97bf5e38 18395prfpregset32_t avar
bec39cab
AC
18396 ;
18397 return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext
18401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18402 (eval $ac_compile) 2>conftest.er1
18403 ac_status=$?
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag"
18410 || test ! -s conftest.err'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest.$ac_objext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
97bf5e38 18422 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18423else
bec39cab
AC
18424 echo "$as_me: failed program was:" >&5
18425sed 's/^/| /' conftest.$ac_ext >&5
18426
18427bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18428
d45fe813 18429fi
bec39cab 18430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18431fi
18432
97bf5e38 18433 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18434
18435cat >>confdefs.h <<\_ACEOF
97bf5e38 18436#define HAVE_PRFPREGSET32_T 1
bec39cab 18437_ACEOF
d45fe813 18438
97bf5e38 18439 fi
bec39cab
AC
18440 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18441echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18442
bec39cab
AC
18443 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18444echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18445 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18447else
bec39cab
AC
18448 cat >conftest.$ac_ext <<_ACEOF
18449/* confdefs.h. */
18450_ACEOF
18451cat confdefs.h >>conftest.$ac_ext
18452cat >>conftest.$ac_ext <<_ACEOF
18453/* end confdefs.h. */
97bf5e38 18454
d45fe813 18455#define _SYSCALL32
97bf5e38 18456#include <sys/procfs.h>
bec39cab
AC
18457int
18458main ()
18459{
97bf5e38 18460lwpid_t avar
bec39cab
AC
18461 ;
18462 return 0;
18463}
18464_ACEOF
18465rm -f conftest.$ac_objext
18466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18467 (eval $ac_compile) 2>conftest.er1
18468 ac_status=$?
18469 grep -v '^ *+' conftest.er1 >conftest.err
18470 rm -f conftest.er1
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -z "$ac_c_werror_flag"
18475 || test ! -s conftest.err'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest.$ac_objext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
97bf5e38 18487 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18488else
bec39cab
AC
18489 echo "$as_me: failed program was:" >&5
18490sed 's/^/| /' conftest.$ac_ext >&5
18491
18492bfd_cv_have_sys_procfs_type_lwpid_t=no
18493
d45fe813 18494fi
bec39cab 18495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18496fi
18497
97bf5e38 18498 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18499
18500cat >>confdefs.h <<\_ACEOF
97bf5e38 18501#define HAVE_LWPID_T 1
bec39cab 18502_ACEOF
d45fe813 18503
97bf5e38 18504 fi
bec39cab
AC
18505 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18506echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18507
bec39cab
AC
18508 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18509echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18510 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18512else
bec39cab
AC
18513 cat >conftest.$ac_ext <<_ACEOF
18514/* confdefs.h. */
18515_ACEOF
18516cat confdefs.h >>conftest.$ac_ext
18517cat >>conftest.$ac_ext <<_ACEOF
18518/* end confdefs.h. */
c906108c 18519
97bf5e38
MK
18520#define _SYSCALL32
18521#include <sys/procfs.h>
bec39cab
AC
18522int
18523main ()
18524{
97bf5e38 18525psaddr_t avar
bec39cab
AC
18526 ;
18527 return 0;
18528}
18529_ACEOF
18530rm -f conftest.$ac_objext
18531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18532 (eval $ac_compile) 2>conftest.er1
18533 ac_status=$?
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag"
18540 || test ! -s conftest.err'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest.$ac_objext'
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
97bf5e38 18552 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18553else
bec39cab
AC
18554 echo "$as_me: failed program was:" >&5
18555sed 's/^/| /' conftest.$ac_ext >&5
18556
18557bfd_cv_have_sys_procfs_type_psaddr_t=no
18558
c906108c 18559fi
bec39cab 18560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18561fi
18562
97bf5e38 18563 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18564
18565cat >>confdefs.h <<\_ACEOF
97bf5e38 18566#define HAVE_PSADDR_T 1
bec39cab 18567_ACEOF
c906108c 18568
97bf5e38 18569 fi
bec39cab
AC
18570 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18571echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18572
bec39cab
AC
18573 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18574echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18575 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18577else
bec39cab
AC
18578 cat >conftest.$ac_ext <<_ACEOF
18579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
18583/* end confdefs.h. */
c906108c 18584
97bf5e38
MK
18585#define _SYSCALL32
18586#include <sys/procfs.h>
bec39cab
AC
18587int
18588main ()
18589{
97bf5e38 18590prsysent_t avar
bec39cab
AC
18591 ;
18592 return 0;
18593}
18594_ACEOF
18595rm -f conftest.$ac_objext
18596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18597 (eval $ac_compile) 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
18604 { ac_try='test -z "$ac_c_werror_flag"
18605 || test ! -s conftest.err'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18608 ac_status=$?
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; } &&
18611 { ac_try='test -s conftest.$ac_objext'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
97bf5e38 18617 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18618else
bec39cab
AC
18619 echo "$as_me: failed program was:" >&5
18620sed 's/^/| /' conftest.$ac_ext >&5
18621
18622bfd_cv_have_sys_procfs_type_prsysent_t=no
18623
c906108c 18624fi
bec39cab 18625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18626fi
18627
97bf5e38 18628 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18629
18630cat >>confdefs.h <<\_ACEOF
97bf5e38 18631#define HAVE_PRSYSENT_T 1
bec39cab 18632_ACEOF
c906108c 18633
97bf5e38 18634 fi
bec39cab
AC
18635 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18636echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18637
bec39cab
AC
18638 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18639echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18640 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18642else
bec39cab
AC
18643 cat >conftest.$ac_ext <<_ACEOF
18644/* confdefs.h. */
18645_ACEOF
18646cat confdefs.h >>conftest.$ac_ext
18647cat >>conftest.$ac_ext <<_ACEOF
18648/* end confdefs.h. */
c906108c 18649
97bf5e38
MK
18650#define _SYSCALL32
18651#include <sys/procfs.h>
bec39cab
AC
18652int
18653main ()
18654{
97bf5e38 18655pr_sigset_t avar
bec39cab
AC
18656 ;
18657 return 0;
18658}
18659_ACEOF
18660rm -f conftest.$ac_objext
18661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662 (eval $ac_compile) 2>conftest.er1
18663 ac_status=$?
18664 grep -v '^ *+' conftest.er1 >conftest.err
18665 rm -f conftest.er1
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } &&
18669 { ac_try='test -z "$ac_c_werror_flag"
18670 || test ! -s conftest.err'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest.$ac_objext'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18679 ac_status=$?
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
97bf5e38 18682 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18683else
bec39cab
AC
18684 echo "$as_me: failed program was:" >&5
18685sed 's/^/| /' conftest.$ac_ext >&5
18686
18687bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18688
c906108c 18689fi
bec39cab 18690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18691fi
18692
97bf5e38 18693 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18694
18695cat >>confdefs.h <<\_ACEOF
97bf5e38 18696#define HAVE_PR_SIGSET_T 1
bec39cab 18697_ACEOF
c906108c 18698
97bf5e38 18699 fi
bec39cab
AC
18700 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18701echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18702
bec39cab
AC
18703 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18704echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18705 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18707else
bec39cab
AC
18708 cat >conftest.$ac_ext <<_ACEOF
18709/* confdefs.h. */
18710_ACEOF
18711cat confdefs.h >>conftest.$ac_ext
18712cat >>conftest.$ac_ext <<_ACEOF
18713/* end confdefs.h. */
c906108c 18714
97bf5e38
MK
18715#define _SYSCALL32
18716#include <sys/procfs.h>
bec39cab
AC
18717int
18718main ()
18719{
97bf5e38 18720pr_sigaction64_t avar
bec39cab
AC
18721 ;
18722 return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext
18726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18727 (eval $ac_compile) 2>conftest.er1
18728 ac_status=$?
18729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -z "$ac_c_werror_flag"
18735 || test ! -s conftest.err'
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18738 ac_status=$?
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; } &&
18741 { ac_try='test -s conftest.$ac_objext'
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
97bf5e38 18747 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18748else
bec39cab
AC
18749 echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
18752bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18753
c906108c 18754fi
bec39cab 18755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18756fi
18757
97bf5e38 18758 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18759
18760cat >>confdefs.h <<\_ACEOF
97bf5e38 18761#define HAVE_PR_SIGACTION64_T 1
bec39cab 18762_ACEOF
c906108c 18763
97bf5e38 18764 fi
bec39cab
AC
18765 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18766echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18767
bec39cab
AC
18768 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18769echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18770 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18772else
bec39cab
AC
18773 cat >conftest.$ac_ext <<_ACEOF
18774/* confdefs.h. */
18775_ACEOF
18776cat confdefs.h >>conftest.$ac_ext
18777cat >>conftest.$ac_ext <<_ACEOF
18778/* end confdefs.h. */
97bf5e38
MK
18779
18780#define _SYSCALL32
18781#include <sys/procfs.h>
bec39cab
AC
18782int
18783main ()
18784{
97bf5e38 18785pr_siginfo64_t avar
bec39cab
AC
18786 ;
18787 return 0;
18788}
18789_ACEOF
18790rm -f conftest.$ac_objext
18791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18792 (eval $ac_compile) 2>conftest.er1
18793 ac_status=$?
18794 grep -v '^ *+' conftest.er1 >conftest.err
18795 rm -f conftest.er1
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
18799 { ac_try='test -z "$ac_c_werror_flag"
18800 || test ! -s conftest.err'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; } &&
18806 { ac_try='test -s conftest.$ac_objext'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
97bf5e38
MK
18812 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18813else
bec39cab
AC
18814 echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18818
97bf5e38 18819fi
bec39cab 18820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18821fi
c906108c 18822
97bf5e38 18823 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18824
18825cat >>confdefs.h <<\_ACEOF
97bf5e38 18826#define HAVE_PR_SIGINFO64_T 1
bec39cab 18827_ACEOF
c906108c 18828
97bf5e38 18829 fi
bec39cab
AC
18830 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18831echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18832
18833
97bf5e38
MK
18834
18835
18836
97bf5e38 18837 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18838 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18839echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18840 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18842else
18843 if test "$cross_compiling" = yes; then
97bf5e38 18844 gdb_cv_prfpregset_t_broken=yes
c906108c 18845else
bec39cab
AC
18846 cat >conftest.$ac_ext <<_ACEOF
18847/* confdefs.h. */
18848_ACEOF
18849cat confdefs.h >>conftest.$ac_ext
18850cat >>conftest.$ac_ext <<_ACEOF
18851/* end confdefs.h. */
97bf5e38
MK
18852#include <sys/procfs.h>
18853 int main ()
18854 {
18855 if (sizeof (prfpregset_t) == sizeof (void *))
18856 return 1;
18857 return 0;
18858 }
bec39cab
AC
18859_ACEOF
18860rm -f conftest$ac_exeext
18861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18862 (eval $ac_link) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
97bf5e38 18871 gdb_cv_prfpregset_t_broken=no
c906108c 18872else
bec39cab
AC
18873 echo "$as_me: program exited with status $ac_status" >&5
18874echo "$as_me: failed program was:" >&5
18875sed 's/^/| /' conftest.$ac_ext >&5
18876
18877( exit $ac_status )
18878gdb_cv_prfpregset_t_broken=yes
c906108c 18879fi
bec39cab 18880rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18881fi
c906108c
SS
18882fi
18883
bec39cab
AC
18884 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18885echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18886 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
18887
18888cat >>confdefs.h <<\_ACEOF
97bf5e38 18889#define PRFPREGSET_T_BROKEN 1
bec39cab 18890_ACEOF
c906108c 18891
97bf5e38
MK
18892 fi
18893 fi
c906108c 18894
bec39cab
AC
18895
18896 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18897echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18898 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18900else
bec39cab
AC
18901 cat >conftest.$ac_ext <<_ACEOF
18902/* confdefs.h. */
18903_ACEOF
18904cat confdefs.h >>conftest.$ac_ext
18905cat >>conftest.$ac_ext <<_ACEOF
18906/* end confdefs.h. */
97bf5e38
MK
18907#include <unistd.h>
18908#include <sys/types.h>
18909#include <sys/procfs.h>
18910
bec39cab
AC
18911int
18912main ()
18913{
97bf5e38
MK
18914
18915 int dummy;;
18916 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18917
18918 ;
18919 return 0;
18920}
18921_ACEOF
18922rm -f conftest.$ac_objext
18923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18924 (eval $ac_compile) 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -z "$ac_c_werror_flag"
18932 || test ! -s conftest.err'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest.$ac_objext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
97bf5e38 18944 gdb_cv_have_procfs_piocset=yes
c906108c 18945else
bec39cab
AC
18946 echo "$as_me: failed program was:" >&5
18947sed 's/^/| /' conftest.$ac_ext >&5
18948
18949gdb_cv_have_procfs_piocset=no
c906108c 18950fi
bec39cab 18951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18952fi
97bf5e38 18953
bec39cab
AC
18954 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18955echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18956 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
18957
18958cat >>confdefs.h <<\_ACEOF
97bf5e38 18959#define HAVE_PROCFS_PIOCSET 1
bec39cab 18960_ACEOF
97bf5e38
MK
18961
18962 fi
c906108c 18963fi
c906108c 18964
97bf5e38 18965if test ${host} = ${target} ; then
bec39cab
AC
18966
18967 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18968echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18969 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971else
18972 cat >conftest.$ac_ext <<_ACEOF
18973/* confdefs.h. */
18974_ACEOF
18975cat confdefs.h >>conftest.$ac_ext
18976cat >>conftest.$ac_ext <<_ACEOF
18977/* end confdefs.h. */
97bf5e38 18978#include <link.h>
bec39cab
AC
18979int
18980main ()
18981{
97bf5e38 18982struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18983 ;
18984 return 0;
18985}
18986_ACEOF
18987rm -f conftest.$ac_objext
18988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989 (eval $ac_compile) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag"
18997 || test ! -s conftest.err'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest.$ac_objext'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
97bf5e38 19009 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 19010else
bec39cab
AC
19011 echo "$as_me: failed program was:" >&5
19012sed 's/^/| /' conftest.$ac_ext >&5
19013
19014gdb_cv_have_struct_link_map_with_l_members=no
c906108c 19015fi
bec39cab 19016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19017fi
19018
bec39cab
AC
19019 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19020echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 19021 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
19022
19023cat >>confdefs.h <<\_ACEOF
97bf5e38 19024#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 19025_ACEOF
97bf5e38
MK
19026
19027 fi
19028
bec39cab
AC
19029
19030 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19031echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
19032 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19034else
bec39cab
AC
19035 cat >conftest.$ac_ext <<_ACEOF
19036/* confdefs.h. */
19037_ACEOF
19038cat confdefs.h >>conftest.$ac_ext
19039cat >>conftest.$ac_ext <<_ACEOF
19040/* end confdefs.h. */
97bf5e38
MK
19041#include <sys/types.h>
19042#include <link.h>
bec39cab
AC
19043int
19044main ()
19045{
97bf5e38 19046struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
19047 ;
19048 return 0;
19049}
19050_ACEOF
19051rm -f conftest.$ac_objext
19052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest.$ac_objext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
97bf5e38
MK
19073 gdb_cv_have_struct_link_map_with_lm_members=yes
19074else
bec39cab
AC
19075 echo "$as_me: failed program was:" >&5
19076sed 's/^/| /' conftest.$ac_ext >&5
19077
19078gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 19079fi
bec39cab 19080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19081fi
c906108c 19082
bec39cab
AC
19083 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19084echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 19085 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
19086
19087cat >>confdefs.h <<\_ACEOF
97bf5e38 19088#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 19089_ACEOF
97bf5e38
MK
19090
19091 fi
19092
bec39cab
AC
19093
19094 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19095echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19096 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19098else
bec39cab
AC
19099 cat >conftest.$ac_ext <<_ACEOF
19100/* confdefs.h. */
19101_ACEOF
19102cat confdefs.h >>conftest.$ac_ext
19103cat >>conftest.$ac_ext <<_ACEOF
19104/* end confdefs.h. */
97bf5e38
MK
19105#include <sys/types.h>
19106#ifdef HAVE_NLIST_H
19107#include <nlist.h>
19108#endif
19109#include <link.h>
bec39cab
AC
19110int
19111main ()
19112{
97bf5e38 19113struct so_map lm; (void) lm.som_addr;
bec39cab
AC
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118rm -f conftest.$ac_objext
19119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120 (eval $ac_compile) 2>conftest.er1
19121 ac_status=$?
19122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
97bf5e38
MK
19140 gdb_cv_have_struct_so_map_with_som_members=yes
19141else
bec39cab
AC
19142 echo "$as_me: failed program was:" >&5
19143sed 's/^/| /' conftest.$ac_ext >&5
19144
19145gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 19146fi
bec39cab 19147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19148fi
c906108c 19149
bec39cab
AC
19150 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19151echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 19152 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
19153
19154cat >>confdefs.h <<\_ACEOF
97bf5e38 19155#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 19156_ACEOF
c906108c 19157
97bf5e38 19158 fi
c906108c 19159
bec39cab
AC
19160
19161 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19162echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19163 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19165else
bec39cab
AC
19166 cat >conftest.$ac_ext <<_ACEOF
19167/* confdefs.h. */
19168_ACEOF
19169cat confdefs.h >>conftest.$ac_ext
19170cat >>conftest.$ac_ext <<_ACEOF
19171/* end confdefs.h. */
97bf5e38
MK
19172#define _SYSCALL32
19173#include <sys/link.h>
bec39cab
AC
19174int
19175main ()
19176{
97bf5e38 19177struct link_map32 l;
bec39cab
AC
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19184 (eval $ac_compile) 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } &&
19191 { ac_try='test -z "$ac_c_werror_flag"
19192 || test ! -s conftest.err'
19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194 (eval $ac_try) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
97bf5e38
MK
19204 gdb_cv_have_struct_link_map32=yes
19205else
bec39cab
AC
19206 echo "$as_me: failed program was:" >&5
19207sed 's/^/| /' conftest.$ac_ext >&5
19208
19209gdb_cv_have_struct_link_map32=no
97bf5e38 19210fi
bec39cab 19211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19212fi
c906108c 19213
bec39cab
AC
19214 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19215echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 19216 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
19217
19218cat >>confdefs.h <<\_ACEOF
97bf5e38 19219#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 19220_ACEOF
c906108c 19221
60ca704f
SE
19222
19223cat >>confdefs.h <<\_ACEOF
97bf5e38 19224#define _SYSCALL32 1
bec39cab 19225_ACEOF
c906108c 19226
97bf5e38
MK
19227 fi
19228fi
c906108c 19229
bc8bcb4b 19230# Check if the compiler supports the `long long' type.
c906108c 19231
bec39cab
AC
19232echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19233echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19234if test "${gdb_cv_c_long_long+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19236else
bec39cab
AC
19237 cat >conftest.$ac_ext <<_ACEOF
19238/* confdefs.h. */
19239_ACEOF
19240cat confdefs.h >>conftest.$ac_ext
19241cat >>conftest.$ac_ext <<_ACEOF
19242/* end confdefs.h. */
bc8bcb4b 19243extern long long foo;
bec39cab
AC
19244int
19245main ()
19246{
bc8bcb4b 19247switch (foo & 2) { case 0: return 1; }
bec39cab
AC
19248 ;
19249 return 0;
19250}
19251_ACEOF
19252rm -f conftest.$ac_objext
19253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19254 (eval $ac_compile) 2>conftest.er1
19255 ac_status=$?
19256 grep -v '^ *+' conftest.er1 >conftest.err
19257 rm -f conftest.er1
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } &&
19261 { ac_try='test -z "$ac_c_werror_flag"
19262 || test ! -s conftest.err'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; } &&
19268 { ac_try='test -s conftest.$ac_objext'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
97bf5e38
MK
19274 gdb_cv_c_long_long=yes
19275else
bec39cab
AC
19276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279gdb_cv_c_long_long=no
97bf5e38 19280fi
bec39cab 19281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19282fi
bec39cab
AC
19283echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19284echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 19285if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
19286
19287cat >>confdefs.h <<\_ACEOF
97bf5e38 19288#define CC_HAS_LONG_LONG 1
bec39cab 19289_ACEOF
97bf5e38
MK
19290
19291fi
19292
bc8bcb4b 19293# Check if the compiler and runtime support printing long longs.
97bf5e38 19294
bec39cab
AC
19295echo "$as_me:$LINENO: checking for long long support in printf" >&5
19296echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19297if test "${gdb_cv_printf_has_long_long+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19299else
19300 if test "$cross_compiling" = yes; then
19301 gdb_cv_printf_has_long_long=no
19302else
bec39cab
AC
19303 cat >conftest.$ac_ext <<_ACEOF
19304/* confdefs.h. */
19305_ACEOF
19306cat confdefs.h >>conftest.$ac_ext
19307cat >>conftest.$ac_ext <<_ACEOF
19308/* end confdefs.h. */
bc8bcb4b
MK
19309$ac_includes_default
19310int
19311main ()
19312{
19313char buf[32];
97bf5e38
MK
19314 long long l = 0;
19315 l = (l << 16) + 0x0123;
19316 l = (l << 16) + 0x4567;
19317 l = (l << 16) + 0x89ab;
19318 l = (l << 16) + 0xcdef;
19319 sprintf (buf, "0x%016llx", l);
19320 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
19321 ;
19322 return 0;
c906108c 19323}
bec39cab
AC
19324_ACEOF
19325rm -f conftest$ac_exeext
19326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
97bf5e38
MK
19336 gdb_cv_printf_has_long_long=yes
19337else
bec39cab
AC
19338 echo "$as_me: program exited with status $ac_status" >&5
19339echo "$as_me: failed program was:" >&5
19340sed 's/^/| /' conftest.$ac_ext >&5
19341
19342( exit $ac_status )
19343gdb_cv_printf_has_long_long=no
97bf5e38 19344fi
bec39cab 19345rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19346fi
97bf5e38 19347fi
bc8bcb4b
MK
19348echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19349echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 19350if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
19351
19352cat >>confdefs.h <<\_ACEOF
97bf5e38 19353#define PRINTF_HAS_LONG_LONG 1
bec39cab 19354_ACEOF
97bf5e38
MK
19355
19356fi
97bf5e38 19357
bc8bcb4b
MK
19358# Check if the compiler supports the `long double' type. We can't use
19359# AC_C_LONG_DOUBLE because that one does additional checks on the
19360# constants defined in <float.h> that fail on some systems,
19361# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 19362
bec39cab
AC
19363echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19364echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 19365if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 19366 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19367else
bec39cab
AC
19368 cat >conftest.$ac_ext <<_ACEOF
19369/* confdefs.h. */
19370_ACEOF
19371cat confdefs.h >>conftest.$ac_ext
19372cat >>conftest.$ac_ext <<_ACEOF
19373/* end confdefs.h. */
97bf5e38 19374long double foo;
bec39cab
AC
19375_ACEOF
19376rm -f conftest.$ac_objext
19377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19378 (eval $ac_compile) 2>conftest.er1
19379 ac_status=$?
19380 grep -v '^ *+' conftest.er1 >conftest.err
19381 rm -f conftest.er1
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -z "$ac_c_werror_flag"
19386 || test ! -s conftest.err'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; } &&
19392 { ac_try='test -s conftest.$ac_objext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
bc8bcb4b 19398 gdb_cv_c_long_double=yes
97bf5e38 19399else
bec39cab
AC
19400 echo "$as_me: failed program was:" >&5
19401sed 's/^/| /' conftest.$ac_ext >&5
19402
bc8bcb4b 19403gdb_cv_c_long_double=no
97bf5e38 19404fi
bec39cab 19405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19406fi
bc8bcb4b
MK
19407echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19408echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19409if test $gdb_cv_c_long_double = yes; then
c906108c 19410
bc8bcb4b 19411cat >>confdefs.h <<\_ACEOF
97bf5e38 19412#define HAVE_LONG_DOUBLE 1
bec39cab 19413_ACEOF
97bf5e38
MK
19414
19415fi
19416
bc8bcb4b 19417# Check if the compiler and runtime support printing long doubles.
97bf5e38 19418
bec39cab
AC
19419echo "$as_me:$LINENO: checking for long double support in printf" >&5
19420echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19421if test "${gdb_cv_printf_has_long_double+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19423else
19424 if test "$cross_compiling" = yes; then
19425 gdb_cv_printf_has_long_double=no
19426else
bec39cab
AC
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
bc8bcb4b
MK
19433$ac_includes_default
19434int
19435main ()
19436{
19437char buf[16];
97bf5e38
MK
19438 long double f = 3.141592653;
19439 sprintf (buf, "%Lg", f);
19440 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
19441 ;
19442 return 0;
97bf5e38 19443}
bec39cab
AC
19444_ACEOF
19445rm -f conftest$ac_exeext
19446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19447 (eval $ac_link) 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; }; then
97bf5e38 19456 gdb_cv_printf_has_long_double=yes
c906108c 19457else
bec39cab
AC
19458 echo "$as_me: program exited with status $ac_status" >&5
19459echo "$as_me: failed program was:" >&5
19460sed 's/^/| /' conftest.$ac_ext >&5
19461
19462( exit $ac_status )
19463gdb_cv_printf_has_long_double=no
c906108c 19464fi
bec39cab 19465rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19466fi
c906108c 19467fi
bc8bcb4b
MK
19468echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19469echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 19470if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
19471
19472cat >>confdefs.h <<\_ACEOF
97bf5e38 19473#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19474_ACEOF
97bf5e38
MK
19475
19476fi
97bf5e38 19477
bc8bcb4b 19478# Check if the compiler and runtime support scanning long doubles.
97bf5e38 19479
bec39cab
AC
19480echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19481echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19482if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19484else
19485 if test "$cross_compiling" = yes; then
19486 gdb_cv_scanf_has_long_double=no
19487else
bec39cab
AC
19488 cat >conftest.$ac_ext <<_ACEOF
19489/* confdefs.h. */
19490_ACEOF
19491cat confdefs.h >>conftest.$ac_ext
19492cat >>conftest.$ac_ext <<_ACEOF
19493/* end confdefs.h. */
bc8bcb4b
MK
19494#include <stdio.h>
19495int
19496main ()
19497{
19498char *buf = "3.141592653";
97bf5e38
MK
19499 long double f = 0;
19500 sscanf (buf, "%Lg", &f);
19501 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
19502 ;
19503 return 0;
97bf5e38 19504}
bec39cab
AC
19505_ACEOF
19506rm -f conftest$ac_exeext
19507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19508 (eval $ac_link) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
97bf5e38
MK
19517 gdb_cv_scanf_has_long_double=yes
19518else
bec39cab
AC
19519 echo "$as_me: program exited with status $ac_status" >&5
19520echo "$as_me: failed program was:" >&5
19521sed 's/^/| /' conftest.$ac_ext >&5
19522
19523( exit $ac_status )
19524gdb_cv_scanf_has_long_double=no
97bf5e38 19525fi
bec39cab 19526rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19527fi
c906108c 19528fi
bc8bcb4b
MK
19529echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19530echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 19531if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
19532
19533cat >>confdefs.h <<\_ACEOF
97bf5e38 19534#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19535_ACEOF
97bf5e38
MK
19536
19537fi
c906108c 19538
438013df
AO
19539case ${host_os} in
19540aix*)
bec39cab
AC
19541 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19542echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19543if test "${gdb_cv_bigtoc+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19545else
bec39cab 19546
438013df
AO
19547 SAVE_LDFLAGS=$LDFLAGS
19548
19549 case $GCC in
19550 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19551 *) gdb_cv_bigtoc=-bbigtoc ;;
19552 esac
19553
19554 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19555 cat >conftest.$ac_ext <<_ACEOF
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
438013df 19561
bec39cab
AC
19562int
19563main ()
19564{
438013df 19565int i;
bec39cab
AC
19566 ;
19567 return 0;
19568}
19569_ACEOF
19570rm -f conftest.$ac_objext conftest$ac_exeext
19571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19572 (eval $ac_link) 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_c_werror_flag"
19580 || test ! -s conftest.err'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest$ac_exeext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
438013df
AO
19592 :
19593else
bec39cab
AC
19594 echo "$as_me: failed program was:" >&5
19595sed 's/^/| /' conftest.$ac_ext >&5
19596
19597gdb_cv_bigtoc=
438013df 19598fi
bec39cab
AC
19599rm -f conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19601 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19602
bec39cab
AC
19603fi
19604echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19605echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19606 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19607 ;;
19608esac
19609
c906108c
SS
19610
19611
19612if test ${build} = ${host} -a ${host} = ${target} ; then
19613 case ${host_os} in
19614 hpux*)
bec39cab
AC
19615 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19616echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19617 if test -f /usr/include/dce/cma_config.h ; then
19618 if test "$GCC" = "yes" ; then
bec39cab
AC
19619 echo "$as_me:$LINENO: result: yes" >&5
19620echo "${ECHO_T}yes" >&6
60ca704f
SE
19621
19622cat >>confdefs.h <<\_ACEOF
c906108c 19623#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19624_ACEOF
c906108c 19625
3483b318 19626 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19627 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19628 else
bec39cab
AC
19629 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19630echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19631 fi
19632 else
bec39cab
AC
19633 echo "$as_me:$LINENO: result: no" >&5
19634echo "${ECHO_T}no" >&6
c906108c
SS
19635 fi
19636 ;;
19637 solaris*)
d92419e5
JB
19638 # See if thread_db library is around for Solaris thread debugging.
19639 # Note that we must explicitly test for version 1 of the library
19640 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19641 # the same API.
bec39cab
AC
19642 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19643echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19644 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19645 echo "$as_me:$LINENO: result: yes" >&5
19646echo "${ECHO_T}yes" >&6
60ca704f
SE
19647
19648cat >>confdefs.h <<\_ACEOF
c906108c 19649#define HAVE_THREAD_DB_LIB 1
bec39cab 19650_ACEOF
c906108c 19651
3483b318 19652 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19653 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19654
19655echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19656echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19657if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19659else
bec39cab 19660 ac_check_lib_save_LIBS=$LIBS
c906108c 19661LIBS="-ldl $LIBS"
bec39cab
AC
19662cat >conftest.$ac_ext <<_ACEOF
19663/* confdefs.h. */
19664_ACEOF
19665cat confdefs.h >>conftest.$ac_ext
19666cat >>conftest.$ac_ext <<_ACEOF
19667/* end confdefs.h. */
19668
c906108c 19669/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19670#ifdef __cplusplus
19671extern "C"
19672#endif
c906108c 19673/* We use char because int might match the return type of a gcc2
bec39cab
AC
19674 builtin and then its argument prototype would still apply. */
19675char dlopen ();
19676int
19677main ()
19678{
19679dlopen ();
19680 ;
19681 return 0;
19682}
19683_ACEOF
19684rm -f conftest.$ac_objext conftest$ac_exeext
19685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19686 (eval $ac_link) 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_c_werror_flag"
19694 || test ! -s conftest.err'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try='test -s conftest$ac_exeext'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; }; then
19706 ac_cv_lib_dl_dlopen=yes
19707else
19708 echo "$as_me: failed program was:" >&5
19709sed 's/^/| /' conftest.$ac_ext >&5
19710
19711ac_cv_lib_dl_dlopen=no
19712fi
19713rm -f conftest.err conftest.$ac_objext \
19714 conftest$ac_exeext conftest.$ac_ext
19715LIBS=$ac_check_lib_save_LIBS
19716fi
19717echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19718echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19719if test $ac_cv_lib_dl_dlopen = yes; then
19720 cat >>confdefs.h <<_ACEOF
19721#define HAVE_LIBDL 1
19722_ACEOF
c906108c
SS
19723
19724 LIBS="-ldl $LIBS"
19725
c906108c
SS
19726fi
19727
19728 if test "$GCC" = "yes" ; then
19729 # The GNU linker requires the -export-dynamic option to make
19730 # all symbols visible in the dynamic symbol table.
19731 hold_ldflags=$LDFLAGS
bec39cab
AC
19732 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19733echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19734 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
19735 cat >conftest.$ac_ext <<_ACEOF
19736/* confdefs.h. */
19737_ACEOF
19738cat confdefs.h >>conftest.$ac_ext
19739cat >>conftest.$ac_ext <<_ACEOF
19740/* end confdefs.h. */
c906108c 19741
bec39cab
AC
19742int
19743main ()
19744{
c906108c 19745int i;
bec39cab
AC
19746 ;
19747 return 0;
19748}
19749_ACEOF
19750rm -f conftest.$ac_objext conftest$ac_exeext
19751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19752 (eval $ac_link) 2>conftest.er1
19753 ac_status=$?
19754 grep -v '^ *+' conftest.er1 >conftest.err
19755 rm -f conftest.er1
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -z "$ac_c_werror_flag"
19760 || test ! -s conftest.err'
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19763 ac_status=$?
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; } &&
19766 { ac_try='test -s conftest$ac_exeext'
19767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768 (eval $ac_try) 2>&5
19769 ac_status=$?
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; }; then
c906108c
SS
19772 found=yes
19773else
bec39cab
AC
19774 echo "$as_me: failed program was:" >&5
19775sed 's/^/| /' conftest.$ac_ext >&5
19776
19777found=no
c906108c 19778fi
bec39cab
AC
19779rm -f conftest.err conftest.$ac_objext \
19780 conftest$ac_exeext conftest.$ac_ext
c906108c 19781 LDFLAGS=$hold_ldflags
bec39cab
AC
19782 echo "$as_me:$LINENO: result: $found" >&5
19783echo "${ECHO_T}$found" >&6
c906108c
SS
19784 if test $found = yes; then
19785 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19786 fi
19787 fi
19788 # Sun randomly tweaked the prototypes in <proc_service.h>
19789 # at one point.
bec39cab
AC
19790 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19791echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19792 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19794else
bec39cab
AC
19795
19796 cat >conftest.$ac_ext <<_ACEOF
19797/* confdefs.h. */
19798_ACEOF
19799cat confdefs.h >>conftest.$ac_ext
19800cat >>conftest.$ac_ext <<_ACEOF
19801/* end confdefs.h. */
c906108c
SS
19802
19803 #include <proc_service.h>
19804 ps_err_e ps_pdwrite
19805 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19806
bec39cab
AC
19807int
19808main ()
19809{
19810
19811 ;
19812 return 0;
19813}
19814_ACEOF
19815rm -f conftest.$ac_objext
19816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19817 (eval $ac_compile) 2>conftest.er1
19818 ac_status=$?
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try='test -z "$ac_c_werror_flag"
19825 || test ! -s conftest.err'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } &&
19831 { ac_try='test -s conftest.$ac_objext'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
c906108c
SS
19837 gdb_cv_proc_service_is_old=no
19838else
bec39cab
AC
19839 echo "$as_me: failed program was:" >&5
19840sed 's/^/| /' conftest.$ac_ext >&5
19841
19842gdb_cv_proc_service_is_old=yes
c906108c 19843fi
bec39cab
AC
19844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19845
c906108c
SS
19846fi
19847
bec39cab
AC
19848 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19849echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19850 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
19851
19852cat >>confdefs.h <<\_ACEOF
c906108c 19853#define PROC_SERVICE_IS_OLD 1
bec39cab 19854_ACEOF
c906108c
SS
19855
19856 fi
19857 else
bec39cab
AC
19858 echo "$as_me:$LINENO: result: no" >&5
19859echo "${ECHO_T}no" >&6
c906108c
SS
19860 fi
19861 ;;
d92419e5 19862 aix*)
bec39cab
AC
19863 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19864echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19865 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19867else
19868 cat >conftest.$ac_ext <<_ACEOF
19869/* confdefs.h. */
19870_ACEOF
19871cat confdefs.h >>conftest.$ac_ext
19872cat >>conftest.$ac_ext <<_ACEOF
19873/* end confdefs.h. */
d92419e5 19874#include <sys/pthdebug.h>
bec39cab
AC
19875int
19876main ()
19877{
d92419e5
JB
19878#ifndef PTHDB_VERSION_3
19879 #error
19880 #endif
bec39cab
AC
19881 ;
19882 return 0;
19883}
19884_ACEOF
19885rm -f conftest.$ac_objext
19886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19887 (eval $ac_compile) 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag"
19895 || test ! -s conftest.err'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try='test -s conftest.$ac_objext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19904 ac_status=$?
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
d92419e5
JB
19907 gdb_cv_have_aix_thread_debug=yes
19908else
bec39cab
AC
19909 echo "$as_me: failed program was:" >&5
19910sed 's/^/| /' conftest.$ac_ext >&5
19911
19912gdb_cv_have_aix_thread_debug=no
d92419e5 19913fi
bec39cab 19914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19915fi
19916
bec39cab
AC
19917 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19918echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19919 if test $gdb_cv_have_aix_thread_debug = yes; then
19920 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19921 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19922 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19923 fi
19924 ;;
c906108c 19925 esac
bec39cab 19926
c906108c
SS
19927fi
19928
3f47be5c 19929if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19930 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19931echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19932if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934else
19935 cat >conftest.$ac_ext <<_ACEOF
19936/* confdefs.h. */
19937_ACEOF
19938cat confdefs.h >>conftest.$ac_ext
19939cat >>conftest.$ac_ext <<_ACEOF
19940/* end confdefs.h. */
3f47be5c 19941#include <thread_db.h>
bec39cab
AC
19942int
19943main ()
19944{
3f47be5c 19945int i = TD_NOTALLOC;
bec39cab
AC
19946 ;
19947 return 0;
19948}
19949_ACEOF
19950rm -f conftest.$ac_objext
19951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952 (eval $ac_compile) 2>conftest.er1
19953 ac_status=$?
19954 grep -v '^ *+' conftest.er1 >conftest.err
19955 rm -f conftest.er1
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag"
19960 || test ! -s conftest.err'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest.$ac_objext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
3f47be5c
EZ
19972 gdb_cv_thread_db_h_has_td_notalloc=yes
19973else
bec39cab
AC
19974 echo "$as_me: failed program was:" >&5
19975sed 's/^/| /' conftest.$ac_ext >&5
19976
19977gdb_cv_thread_db_h_has_td_notalloc=no
19978
3f47be5c 19979fi
bec39cab 19980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19981
bec39cab
AC
19982fi
19983echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19984echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19985fi
19986if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19987
19988cat >>confdefs.h <<\_ACEOF
3f47be5c 19989#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19990_ACEOF
3f47be5c
EZ
19991
19992fi
19993
b757528f 19994if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19995 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19996echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19997if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
19999else
20000 cat >conftest.$ac_ext <<_ACEOF
20001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
b757528f 20006#include <sys/syscall.h>
bec39cab
AC
20007int
20008main ()
20009{
b757528f 20010int i = __NR_tkill;
bec39cab
AC
20011 ;
20012 return 0;
20013}
20014_ACEOF
20015rm -f conftest.$ac_objext
20016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20017 (eval $ac_compile) 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } &&
20024 { ac_try='test -z "$ac_c_werror_flag"
20025 || test ! -s conftest.err'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest.$ac_objext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
b757528f
JJ
20037 gdb_cv_sys_syscall_h_has_tkill=yes
20038else
bec39cab
AC
20039 echo "$as_me: failed program was:" >&5
20040sed 's/^/| /' conftest.$ac_ext >&5
20041
20042gdb_cv_sys_syscall_h_has_tkill=no
20043
b757528f 20044fi
bec39cab 20045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 20046
bec39cab
AC
20047fi
20048echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20049echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
20050fi
20051if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
20052
20053cat >>confdefs.h <<\_ACEOF
b757528f 20054#define HAVE_TKILL_SYSCALL 1
bec39cab 20055_ACEOF
b757528f
JJ
20056
20057fi
20058
fb40c209 20059
bec39cab 20060
030292b7
DJ
20061# Check whether --with-sysroot or --without-sysroot was given.
20062if test "${with_sysroot+set}" = set; then
20063 withval="$with_sysroot"
bec39cab 20064
030292b7 20065 case ${with_sysroot} in
715d1656 20066 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
20067 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
20068 esac
20069
20070 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20071
20072 if test "x$exec_prefix" = xNONE; then
20073 if test "x$prefix" = xNONE; then
20074 test_prefix=/usr/local
20075 else
20076 test_prefix=$prefix
20077 fi
20078 else
20079 test_prefix=$exec_prefix
20080 fi
20081 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
20082 "${test_prefix}"|"${test_prefix}/"*|\
20083 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
20084 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20085 TARGET_SYSTEM_ROOT_DEFINE="$t"
20086 ;;
20087 esac
20088
20089else
bec39cab 20090
030292b7
DJ
20091 TARGET_SYSTEM_ROOT=
20092 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20093
bec39cab 20094fi;
030292b7
DJ
20095
20096
20097
3b851bce
AC
20098# NOTE: Don't add -Wall or -Wunused, they both include
20099# -Wunused-parameter which reports bogus warnings.
20100# NOTE: If you add to this list, remember to update
20101# gdb/doc/gdbint.texinfo.
1decb323 20102build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 20103-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
4566dfcf 20104-Wunused-label -Wunused-function"
a3b362c4
JB
20105
20106# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 20107if test x${CFLAGS+set} = xset; then
a3b362c4
JB
20108 case "${CFLAGS}" in
20109 *"-O0"* ) ;;
20110 *"-O"* )
20111 build_warnings="${build_warnings} -Wuninitialized"
20112 ;;
20113 esac
20114else
20115 build_warnings="${build_warnings} -Wuninitialized"
20116fi
20117
d8038014 20118# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 20119# -Wunused-function -Wunused-variable -Wunused-value
93d56215 20120# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
20121# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
20122# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
20123# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
20124# Check whether --enable-build-warnings or --disable-build-warnings was given.
20125if test "${enable_build_warnings+set}" = set; then
20126 enableval="$enable_build_warnings"
1decb323 20127 case "${enableval}" in
c906108c
SS
20128 yes) ;;
20129 no) build_warnings="-w";;
20130 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20131 build_warnings="${build_warnings} ${t}";;
20132 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20133 build_warnings="${t} ${build_warnings}";;
20134 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20135esac
d4f3574e 20136if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 20137 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 20138fi
bec39cab 20139fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
20140if test "${enable_gdb_build_warnings+set}" = set; then
20141 enableval="$enable_gdb_build_warnings"
20142 case "${enableval}" in
20143 yes) ;;
20144 no) build_warnings="-w";;
20145 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20146 build_warnings="${build_warnings} ${t}";;
20147 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20148 build_warnings="${t} ${build_warnings}";;
20149 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20150esac
20151if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20152 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20153fi
bec39cab 20154fi; WARN_CFLAGS=""
104c1213 20155WERROR_CFLAGS=""
c906108c
SS
20156if test "x${build_warnings}" != x -a "x$GCC" = xyes
20157then
bec39cab
AC
20158 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20159echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
20160 # Separate out the -Werror flag as some files just cannot be
20161 # compiled with it enabled.
20162 for w in ${build_warnings}; do
20163 case $w in
20164 -Werr*) WERROR_CFLAGS=-Werror ;;
20165 *) # Check that GCC accepts it
4536bbc6
AC
20166 saved_CFLAGS="$CFLAGS"
20167 CFLAGS="$CFLAGS $w"
bec39cab
AC
20168 cat >conftest.$ac_ext <<_ACEOF
20169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
4536bbc6 20174
bec39cab
AC
20175int
20176main ()
20177{
4536bbc6 20178
bec39cab
AC
20179 ;
20180 return 0;
20181}
20182_ACEOF
20183rm -f conftest.$ac_objext
20184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20185 (eval $ac_compile) 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag"
20193 || test ! -s conftest.err'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest.$ac_objext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
4536bbc6
AC
20205 WARN_CFLAGS="${WARN_CFLAGS} $w"
20206else
bec39cab
AC
20207 echo "$as_me: failed program was:" >&5
20208sed 's/^/| /' conftest.$ac_ext >&5
20209
4536bbc6 20210fi
bec39cab 20211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 20212 CFLAGS="$saved_CFLAGS"
746a987d
AC
20213 esac
20214 done
bec39cab
AC
20215 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20216echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
20217fi
20218
20219
104c1213 20220
7a292a7a 20221# In the Cygwin environment, we need some additional flags.
bec39cab
AC
20222echo "$as_me:$LINENO: checking for cygwin" >&5
20223echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20224if test "${gdb_cv_os_cygwin+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20226else
20227 cat >conftest.$ac_ext <<_ACEOF
20228/* confdefs.h. */
20229_ACEOF
20230cat confdefs.h >>conftest.$ac_ext
20231cat >>conftest.$ac_ext <<_ACEOF
20232/* end confdefs.h. */
7a292a7a
SS
20233
20234#if defined (__CYGWIN__) || defined (__CYGWIN32__)
20235lose
20236#endif
bec39cab 20237_ACEOF
7a292a7a 20238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 20239 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
20240 gdb_cv_os_cygwin=yes
20241else
7a292a7a
SS
20242 gdb_cv_os_cygwin=no
20243fi
20244rm -f conftest*
20245
20246fi
bec39cab
AC
20247echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20248echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 20249
aff38e61 20250
3eb25fda 20251SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 20252case ${host} in
95cbc983
AC
20253 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20254 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
3eb25fda 20255 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o" ;;
aff38e61
AC
20256esac
20257
20258
cd0fc7c3
SS
20259# libreadline needs libuser32.a in a cygwin environment
20260WIN32LIBS=
20261if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
20262 WIN32LIBS="-luser32"
20263 case "${target}" in
20264 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20265 ;;
20266 esac
cd0fc7c3 20267fi
c906108c 20268
b4505029
MM
20269# The ser-tcp.c module requires sockets.
20270case ${host} in
20271 *mingw32*)
20272
20273cat >>confdefs.h <<\_ACEOF
20274#define USE_WIN32API 1
20275_ACEOF
20276
20277 WIN32LIBS="$WIN32LIBS -lws2_32"
20278 ;;
20279esac
20280
7a292a7a 20281
3fc11d3e
JM
20282LIBGUI="../libgui/src/libgui.a"
20283GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20284
20285
7a292a7a 20286
3fc11d3e
JM
20287WIN32LDAPP=
20288
20289
20290
d91670b9
CV
20291case "${host}" in
20292*-*-cygwin*)
20293 configdir="win"
20294 ;;
20295*)
20296 configdir="unix"
20297 ;;
20298esac
3fc11d3e
JM
20299
20300GDBTKLIBS=
20301if test "${enable_gdbtk}" = "yes"; then
20302
d1c3b63a
KS
20303 # Gdbtk must have an absolute path to srcdir in order to run
20304 # properly when not installed.
20305 here=`pwd`
20306 cd ${srcdir}
20307 GDBTK_SRC_DIR=`pwd`
20308 cd $here
20309
bec39cab 20310
3fc11d3e
JM
20311#
20312# Ok, lets find the tcl configuration
bec39cab 20313# First, look for one uninstalled.
3fc11d3e
JM
20314# the alternative search directory is invoked by --with-tclconfig
20315#
20316
20317if test x"${no_tcl}" = x ; then
20318 # we reset no_tcl in case something fails here
20319 no_tcl=true
bec39cab
AC
20320
20321# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
20322if test "${with_tclconfig+set}" = set; then
20323 withval="$with_tclconfig"
20324 with_tclconfig=${withval}
bec39cab
AC
20325fi;
20326 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20327echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20328 if test "${ac_cv_c_tclconfig+set}" = set; then
20329 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20330else
bec39cab 20331
3fc11d3e
JM
20332
20333 # First check to see if --with-tclconfig was specified.
20334 if test x"${with_tclconfig}" != x ; then
20335 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20336 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20337 else
bec39cab
AC
20338 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20339echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20340 { (exit 1); exit 1; }; }
3fc11d3e
JM
20341 fi
20342 fi
20343
20344 # then check for a private Tcl installation
20345 if test x"${ac_cv_c_tclconfig}" = x ; then
20346 for i in \
20347 ../tcl \
20348 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20349 ../../tcl \
20350 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20351 ../../../tcl \
20352 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20353 if test -f "$i/${configdir}/tclConfig.sh" ; then
20354 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20355 break
20356 fi
20357 done
20358 fi
20359 # check in a few common install locations
20360 if test x"${ac_cv_c_tclconfig}" = x ; then
20361 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20362 if test -f "$i/tclConfig.sh" ; then
20363 ac_cv_c_tclconfig=`(cd $i; pwd)`
20364 break
20365 fi
20366 done
20367 fi
20368 # check in a few other private locations
20369 if test x"${ac_cv_c_tclconfig}" = x ; then
20370 for i in \
20371 ${srcdir}/../tcl \
20372 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20373 if test -f "$i/${configdir}/tclConfig.sh" ; then
20374 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20375 break
20376 fi
20377 done
20378 fi
bec39cab 20379
3fc11d3e
JM
20380fi
20381
20382 if test x"${ac_cv_c_tclconfig}" = x ; then
20383 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
20384 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20385echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
20386 else
20387 no_tcl=
20388 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
20389 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20390echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
20391 fi
20392fi
20393
20394 if test -z "${no_tcl}"; then
bec39cab 20395
3fc11d3e
JM
20396 . $TCLCONFIG
20397
3fc11d3e
JM
20398
20399
20400
20401
3fc11d3e
JM
20402
20403
20404
bec39cab
AC
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
3fc11d3e
JM
20424#
20425# Ok, lets find the tk configuration
bec39cab 20426# First, look for one uninstalled.
3fc11d3e
JM
20427# the alternative search directory is invoked by --with-tkconfig
20428#
20429
20430if test x"${no_tk}" = x ; then
20431 # we reset no_tk in case something fails here
20432 no_tk=true
bec39cab
AC
20433
20434# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20435if test "${with_tkconfig+set}" = set; then
20436 withval="$with_tkconfig"
20437 with_tkconfig=${withval}
bec39cab
AC
20438fi;
20439 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20440echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20441 if test "${ac_cv_c_tkconfig+set}" = set; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20443else
bec39cab 20444
3fc11d3e
JM
20445
20446 # First check to see if --with-tkconfig was specified.
20447 if test x"${with_tkconfig}" != x ; then
20448 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20449 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20450 else
bec39cab
AC
20451 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20452echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20453 { (exit 1); exit 1; }; }
3fc11d3e
JM
20454 fi
20455 fi
20456
20457 # then check for a private Tk library
20458 if test x"${ac_cv_c_tkconfig}" = x ; then
20459 for i in \
20460 ../tk \
20461 `ls -dr ../tk[4-9]* 2>/dev/null` \
20462 ../../tk \
20463 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20464 ../../../tk \
20465 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20466 if test -f "$i/${configdir}/tkConfig.sh" ; then
20467 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20468 break
20469 fi
20470 done
20471 fi
20472 # check in a few common install locations
20473 if test x"${ac_cv_c_tkconfig}" = x ; then
20474 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20475 if test -f "$i/tkConfig.sh" ; then
20476 ac_cv_c_tkconfig=`(cd $i; pwd)`
20477 break
20478 fi
20479 done
20480 fi
20481 # check in a few other private locations
20482 if test x"${ac_cv_c_tkconfig}" = x ; then
20483 for i in \
20484 ${srcdir}/../tk \
20485 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20486 if test -f "$i/${configdir}/tkConfig.sh" ; then
20487 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20488 break
20489 fi
20490 done
20491 fi
bec39cab 20492
3fc11d3e
JM
20493fi
20494
20495 if test x"${ac_cv_c_tkconfig}" = x ; then
20496 TKCONFIG="# no Tk configs found"
bec39cab
AC
20497 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20498echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20499 else
20500 no_tk=
20501 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20502 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20503echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20504 fi
20505fi
20506
20507
20508
dd2504ab
JM
20509 # now look for Tcl library stuff
20510
d91670b9 20511 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20512
20513 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20514
3fc11d3e
JM
20515 # If $no_tk is nonempty, then we can't do Tk, and there is no
20516 # point to doing Tcl.
20517 if test -z "${no_tk}"; then
bec39cab 20518
3fc11d3e
JM
20519 if test -f "$TKCONFIG" ; then
20520 . $TKCONFIG
20521 fi
20522
3fc11d3e 20523
3fc11d3e
JM
20524
20525
3fc11d3e 20526
bec39cab
AC
20527
20528
20529
20530
20531
20532
20533
20534
20535
3fc11d3e
JM
20536#
20537# Ok, lets find the tcl source trees so we can use the headers
20538# Warning: transition of version 9 to 10 will break this algorithm
20539# because 10 sorts before 9. We also look for just tcl. We have to
20540# be careful that we don't match stuff like tclX by accident.
20541# the alternative search directory is involked by --with-tclinclude
20542#
20543
20544no_tcl=true
bec39cab
AC
20545echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20546echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20547
3fc11d3e
JM
20548# Check whether --with-tclinclude or --without-tclinclude was given.
20549if test "${with_tclinclude+set}" = set; then
20550 withval="$with_tclinclude"
20551 with_tclinclude=${withval}
bec39cab
AC
20552fi;
20553if test "${ac_cv_c_tclh+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20555else
bec39cab 20556
3fc11d3e
JM
20557# first check to see if --with-tclinclude was specified
20558if test x"${with_tclinclude}" != x ; then
20559 if test -f ${with_tclinclude}/tclInt.h ; then
20560 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20561 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20562 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20563 else
bec39cab
AC
20564 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20565echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20566 { (exit 1); exit 1; }; }
3fc11d3e
JM
20567 fi
20568fi
20569
20570# next check if it came with Tcl configuration file
20571if test x"${ac_cv_c_tclconfig}" = x ; then
20572 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20573 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20574 fi
20575fi
20576
20577# next check in private source directory
20578#
20579# since ls returns lowest version numbers first, reverse its output
20580if test x"${ac_cv_c_tclh}" = x ; then
20581 for i in \
20582 ${srcdir}/../tcl \
20583 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20584 ${srcdir}/../../tcl \
20585 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20586 ${srcdir}/../../../tcl \
20587 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20588 if test -f $i/generic/tclInt.h ; then
20589 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20590 break
20591 fi
20592 done
20593fi
20594# finally check in a few common install locations
20595#
20596# since ls returns lowest version numbers first, reverse its output
20597if test x"${ac_cv_c_tclh}" = x ; then
20598 for i in \
20599 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20600 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20601 /usr/local/src/tcl \
20602 /usr/local/lib/tcl \
20603 ${prefix}/include ; do
20604 if test -f $i/generic/tclInt.h ; then
20605 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20606 break
20607 fi
20608 done
20609fi
20610# see if one is installed
20611if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20612 if test "${ac_cv_header_tclInt_h+set}" = set; then
20613 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20614echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20615if test "${ac_cv_header_tclInt_h+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20617fi
20618echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20619echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20620else
20621 # Is the header compilable?
20622echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20623echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20624cat >conftest.$ac_ext <<_ACEOF
20625/* confdefs.h. */
20626_ACEOF
20627cat confdefs.h >>conftest.$ac_ext
20628cat >>conftest.$ac_ext <<_ACEOF
20629/* end confdefs.h. */
20630$ac_includes_default
20631#include <tclInt.h>
20632_ACEOF
20633rm -f conftest.$ac_objext
20634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20635 (eval $ac_compile) 2>conftest.er1
20636 ac_status=$?
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } &&
20642 { ac_try='test -z "$ac_c_werror_flag"
20643 || test ! -s conftest.err'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; } &&
20649 { ac_try='test -s conftest.$ac_objext'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20655 ac_header_compiler=yes
20656else
20657 echo "$as_me: failed program was:" >&5
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
20660ac_header_compiler=no
20661fi
20662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20664echo "${ECHO_T}$ac_header_compiler" >&6
20665
20666# Is the header present?
20667echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20668echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20669cat >conftest.$ac_ext <<_ACEOF
20670/* confdefs.h. */
20671_ACEOF
20672cat confdefs.h >>conftest.$ac_ext
20673cat >>conftest.$ac_ext <<_ACEOF
20674/* end confdefs.h. */
3fc11d3e 20675#include <tclInt.h>
bec39cab
AC
20676_ACEOF
20677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } >/dev/null; then
20685 if test -s conftest.err; then
20686 ac_cpp_err=$ac_c_preproc_warn_flag
20687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20688 else
20689 ac_cpp_err=
20690 fi
20691else
20692 ac_cpp_err=yes
3fc11d3e 20693fi
bec39cab
AC
20694if test -z "$ac_cpp_err"; then
20695 ac_header_preproc=yes
20696else
20697 echo "$as_me: failed program was:" >&5
20698sed 's/^/| /' conftest.$ac_ext >&5
20699
20700 ac_header_preproc=no
3fc11d3e 20701fi
bec39cab
AC
20702rm -f conftest.err conftest.$ac_ext
20703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20704echo "${ECHO_T}$ac_header_preproc" >&6
20705
20706# So? What about this header?
20707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20708 yes:no: )
20709 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20710echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20711 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20712echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20713 ac_header_preproc=yes
20714 ;;
20715 no:yes:* )
20716 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20717echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20719echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20721echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20723echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20725echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20727echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20728 (
20729 cat <<\_ASBOX
20730## ------------------------------------------ ##
20731## Report this to the AC_PACKAGE_NAME lists. ##
20732## ------------------------------------------ ##
20733_ASBOX
20734 ) |
20735 sed "s/^/$as_me: WARNING: /" >&2
20736 ;;
20737esac
20738echo "$as_me:$LINENO: checking for tclInt.h" >&5
20739echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20740if test "${ac_cv_header_tclInt_h+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742else
20743 ac_cv_header_tclInt_h=$ac_header_preproc
20744fi
20745echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20746echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20747
20748fi
20749if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20750 ac_cv_c_tclh=installed
20751else
bec39cab 20752 ac_cv_c_tclh=""
3fc11d3e
JM
20753fi
20754
bec39cab 20755
3fc11d3e
JM
20756fi
20757
20758fi
20759
20760if test x"${ac_cv_c_tclh}" = x ; then
20761 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20762 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20763echo "$as_me: error: Can't find Tcl private headers" >&2;}
20764 { (exit 1); exit 1; }; }
3fc11d3e
JM
20765fi
20766if test x"${ac_cv_c_tclh}" != x ; then
20767 no_tcl=""
20768 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20769 echo "$as_me:$LINENO: result: is installed" >&5
20770echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20771 TCLHDIR=""
20772 else
bec39cab
AC
20773 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20774echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20775 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20776 TCLHDIR="-I${ac_cv_c_tclh}"
20777 fi
20778fi
20779
20780
20781
bec39cab 20782
3fc11d3e
JM
20783#
20784# Ok, lets find the tk source trees so we can use the headers
20785# If the directory (presumably symlink) named "tk" exists, use that one
20786# in preference to any others. Same logic is used when choosing library
20787# and again with Tcl. The search order is the best place to look first, then in
20788# decreasing significance. The loop breaks if the trigger file is found.
20789# Note the gross little conversion here of srcdir by cd'ing to the found
20790# directory. This converts the path from a relative to an absolute, so
20791# recursive cache variables for the path will work right. We check all
20792# the possible paths in one loop rather than many seperate loops to speed
20793# things up.
20794# the alternative search directory is involked by --with-tkinclude
20795#
20796no_tk=true
bec39cab
AC
20797echo "$as_me:$LINENO: checking for Tk private headers" >&5
20798echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20799
3fc11d3e
JM
20800# Check whether --with-tkinclude or --without-tkinclude was given.
20801if test "${with_tkinclude+set}" = set; then
20802 withval="$with_tkinclude"
20803 with_tkinclude=${withval}
bec39cab
AC
20804fi;
20805if test "${ac_cv_c_tkh+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20807else
bec39cab 20808
3fc11d3e
JM
20809# first check to see if --with-tkinclude was specified
20810if test x"${with_tkinclude}" != x ; then
20811 if test -f ${with_tkinclude}/tk.h ; then
20812 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20813 elif test -f ${with_tkinclude}/generic/tk.h ; then
20814 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20815 else
bec39cab
AC
20816 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20817echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20818 { (exit 1); exit 1; }; }
3fc11d3e
JM
20819 fi
20820fi
20821
20822# next check if it came with Tk configuration file
20823if test x"${ac_cv_c_tkconfig}" = x ; then
20824 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20825 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20826 fi
20827fi
20828
20829# next check in private source directory
20830#
20831# since ls returns lowest version numbers first, reverse its output
20832if test x"${ac_cv_c_tkh}" = x ; then
20833 for i in \
20834 ${srcdir}/../tk \
20835 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20836 ${srcdir}/../../tk \
20837 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20838 ${srcdir}/../../../tk \
20839 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20840 if test -f $i/generic/tk.h ; then
20841 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20842 break
20843 fi
20844 done
20845fi
20846# finally check in a few common install locations
20847#
20848# since ls returns lowest version numbers first, reverse its output
20849if test x"${ac_cv_c_tkh}" = x ; then
20850 for i in \
20851 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20852 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20853 /usr/local/src/tk \
20854 /usr/local/lib/tk \
20855 ${prefix}/include ; do
20856 if test -f $i/generic/tk.h ; then
20857 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20858 break
20859 fi
20860 done
20861fi
20862# see if one is installed
20863if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20864 if test "${ac_cv_header_tk_h+set}" = set; then
20865 echo "$as_me:$LINENO: checking for tk.h" >&5
20866echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20867if test "${ac_cv_header_tk_h+set}" = set; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20869fi
20870echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20871echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20872else
20873 # Is the header compilable?
20874echo "$as_me:$LINENO: checking tk.h usability" >&5
20875echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20876cat >conftest.$ac_ext <<_ACEOF
20877/* confdefs.h. */
20878_ACEOF
20879cat confdefs.h >>conftest.$ac_ext
20880cat >>conftest.$ac_ext <<_ACEOF
20881/* end confdefs.h. */
20882$ac_includes_default
3fc11d3e 20883#include <tk.h>
bec39cab
AC
20884_ACEOF
20885rm -f conftest.$ac_objext
20886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20887 (eval $ac_compile) 2>conftest.er1
20888 ac_status=$?
20889 grep -v '^ *+' conftest.er1 >conftest.err
20890 rm -f conftest.er1
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } &&
20894 { ac_try='test -z "$ac_c_werror_flag"
20895 || test ! -s conftest.err'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; } &&
20901 { ac_try='test -s conftest.$ac_objext'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_header_compiler=yes
20908else
20909 echo "$as_me: failed program was:" >&5
20910sed 's/^/| /' conftest.$ac_ext >&5
20911
20912ac_header_compiler=no
20913fi
20914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20915echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20916echo "${ECHO_T}$ac_header_compiler" >&6
20917
20918# Is the header present?
20919echo "$as_me:$LINENO: checking tk.h presence" >&5
20920echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20921cat >conftest.$ac_ext <<_ACEOF
20922/* confdefs.h. */
20923_ACEOF
20924cat confdefs.h >>conftest.$ac_ext
20925cat >>conftest.$ac_ext <<_ACEOF
20926/* end confdefs.h. */
20927#include <tk.h>
20928_ACEOF
20929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } >/dev/null; then
20937 if test -s conftest.err; then
20938 ac_cpp_err=$ac_c_preproc_warn_flag
20939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20940 else
20941 ac_cpp_err=
20942 fi
20943else
20944 ac_cpp_err=yes
3fc11d3e 20945fi
bec39cab
AC
20946if test -z "$ac_cpp_err"; then
20947 ac_header_preproc=yes
20948else
20949 echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952 ac_header_preproc=no
20953fi
20954rm -f conftest.err conftest.$ac_ext
20955echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20956echo "${ECHO_T}$ac_header_preproc" >&6
20957
20958# So? What about this header?
20959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20960 yes:no: )
20961 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20962echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20963 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20964echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20965 ac_header_preproc=yes
20966 ;;
20967 no:yes:* )
20968 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20969echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20971echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20972 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20973echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20974 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20975echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20976 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20977echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20979echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20980 (
20981 cat <<\_ASBOX
20982## ------------------------------------------ ##
20983## Report this to the AC_PACKAGE_NAME lists. ##
20984## ------------------------------------------ ##
20985_ASBOX
20986 ) |
20987 sed "s/^/$as_me: WARNING: /" >&2
20988 ;;
20989esac
20990echo "$as_me:$LINENO: checking for tk.h" >&5
20991echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20992if test "${ac_cv_header_tk_h+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20994else
20995 ac_cv_header_tk_h=$ac_header_preproc
20996fi
20997echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20998echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20999
3fc11d3e 21000fi
bec39cab 21001if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
21002 ac_cv_c_tkh=installed
21003else
bec39cab 21004 ac_cv_c_tkh=""
3fc11d3e
JM
21005fi
21006
bec39cab 21007
3fc11d3e
JM
21008fi
21009
21010fi
21011
21012if test x"${ac_cv_c_tkh}" != x ; then
21013 no_tk=""
21014 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
21015 echo "$as_me:$LINENO: result: is installed" >&5
21016echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
21017 TKHDIR=""
21018 else
bec39cab
AC
21019 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
21020echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
21021 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
21022 TKHDIR="-I${ac_cv_c_tkh}"
21023 fi
21024else
21025 TKHDIR="# no Tk directory found"
bec39cab
AC
21026 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21027echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
21028 no_tk=true
21029fi
21030
21031
21032
bec39cab
AC
21033
21034echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21035echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21036if test x"${ac_cv_c_itclh}" = x ; then
21037 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
21038 if test -f $i/generic/itcl.h ; then
21039 ac_cv_c_itclh=`(cd $i/generic; pwd)`
21040 break
21041 fi
21042 done
21043fi
21044if test x"${ac_cv_c_itclh}" = x ; then
21045 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
21046 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21047echo "$as_me: error: Can't find Itcl private headers" >&2;}
21048 { (exit 1); exit 1; }; }
3fc11d3e
JM
21049fi
21050if test x"${ac_cv_c_itclh}" != x ; then
21051 ITCLHDIR="-I${ac_cv_c_itclh}"
21052fi
21053# should always be here
21054# ITCLLIB="../itcl/itcl/unix/libitcl.a"
21055
21056#AC_SUBST(ITCLLIB)
21057
bec39cab
AC
21058
21059echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21060echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21061if test x"${ac_cv_c_itkh}" = x ; then
21062 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
21063 if test -f $i/generic/itk.h ; then
21064 ac_cv_c_itkh=`(cd $i/generic; pwd)`
21065 break
21066 fi
21067 done
21068fi
21069if test x"${ac_cv_c_itkh}" = x ; then
21070 ITKHDIR="# no Itk private headers found"
bec39cab
AC
21071 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21072echo "$as_me: error: Can't find Itk private headers" >&2;}
21073 { (exit 1); exit 1; }; }
3fc11d3e
JM
21074fi
21075if test x"${ac_cv_c_itkh}" != x ; then
21076 ITKHDIR="-I${ac_cv_c_itkh}"
21077fi
21078# should always be here
21079# ITKLIB="../itcl/itk/unix/libitk.a"
21080
21081#AC_SUBST(ITKLIB)
21082
3fc11d3e 21083
dd2504ab
JM
21084
21085 # now look for Tk library stuff
21086
d91670b9 21087 tkdir="../tk/${configdir}/"
dd2504ab
JM
21088
21089 TK_DEPS="${tkdir}${TK_LIB_FILE}"
21090
3fc11d3e
JM
21091 # now look for Itcl library stuff
21092
bec39cab 21093
3fc11d3e
JM
21094#
21095# Ok, lets find the itcl configuration
bec39cab 21096# First, look for one uninstalled.
3fc11d3e
JM
21097# the alternative search directory is invoked by --with-itclconfig
21098#
21099
21100if test x"${no_itcl}" = x ; then
21101 # we reset no_itcl in case something fails here
21102 no_itcl=true
bec39cab
AC
21103
21104# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
21105if test "${with_itclconfig+set}" = set; then
21106 withval="$with_itclconfig"
21107 with_itclconfig=${withval}
bec39cab
AC
21108fi;
21109 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
21110echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
21111 if test "${ac_cv_c_itclconfig+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21113else
bec39cab 21114
3fc11d3e
JM
21115
21116 # First check to see if --with-itclconfig was specified.
21117 if test x"${with_itclconfig}" != x ; then
21118 if test -f "${with_itclconfig}/itclConfig.sh" ; then
21119 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
21120 else
bec39cab
AC
21121 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
21122echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
21123 { (exit 1); exit 1; }; }
3fc11d3e
JM
21124 fi
21125 fi
21126
21127 # then check for a private Itcl library
21128 if test x"${ac_cv_c_itclconfig}" = x ; then
21129 for i in \
21130 ../itcl/itcl \
21131 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21132 ../../itcl \
21133 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21134 ../../../itcl \
21135 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21136 if test -f "$i/itclConfig.sh" ; then
21137 ac_cv_c_itclconfig=`(cd $i; pwd)`
21138 break
21139 fi
21140 done
21141 fi
21142 # check in a few common install locations
21143 if test x"${ac_cv_c_itclconfig}" = x ; then
21144 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21145 if test -f "$i/itclConfig.sh" ; then
21146 ac_cv_c_itclconfig=`(cd $i; pwd)`
21147 break
21148 fi
21149 done
21150 fi
21151 # check in a few other private locations
21152 if test x"${ac_cv_c_itclconfig}" = x ; then
21153 for i in \
21154 ${srcdir}/../itcl/itcl \
21155 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21156 if test -f "$i/itclConfig.sh" ; then
21157 ac_cv_c_itclconfig=`(cd $i; pwd)`
21158 break
21159 fi
21160 done
21161 fi
bec39cab 21162
3fc11d3e
JM
21163fi
21164
21165 if test x"${ac_cv_c_itclconfig}" = x ; then
21166 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
21167 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21168echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
21169 else
21170 no_itcl=
21171 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
21172 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21173echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
21174 fi
21175fi
21176
21177 if test -z "${no_itcl}"; then
bec39cab 21178
3fc11d3e
JM
21179 if test -f "$ITCLCONFIG" ; then
21180 . $ITCLCONFIG
21181 fi
21182
3fc11d3e 21183
3fc11d3e
JM
21184
21185
bec39cab
AC
21186
21187
21188
21189
21190
21191
21192
3fc11d3e
JM
21193
21194 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 21195 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
21196 fi
21197
bec39cab 21198
3fc11d3e 21199 # now look for Itk library stuff
bec39cab 21200
3fc11d3e
JM
21201#
21202# Ok, lets find the itk configuration
bec39cab 21203# First, look for one uninstalled.
3fc11d3e
JM
21204# the alternative search directory is invoked by --with-itkconfig
21205#
21206
21207if test x"${no_itk}" = x ; then
21208 # we reset no_itk in case something fails here
21209 no_itk=true
bec39cab
AC
21210
21211# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
21212if test "${with_itkconfig+set}" = set; then
21213 withval="$with_itkconfig"
21214 with_itkconfig=${withval}
bec39cab
AC
21215fi;
21216 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21217echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21218 if test "${ac_cv_c_itkconfig+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21220else
bec39cab 21221
3fc11d3e
JM
21222
21223 # First check to see if --with-itkconfig was specified.
21224 if test x"${with_itkconfig}" != x ; then
21225 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21226 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21227 else
bec39cab
AC
21228 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21229echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21230 { (exit 1); exit 1; }; }
3fc11d3e
JM
21231 fi
21232 fi
21233
21234 # then check for a private Itk library
21235 if test x"${ac_cv_c_itkconfig}" = x ; then
21236 for i in \
21237 ../itcl/itk \
21238 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21239 ../../itk \
21240 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21241 ../../../itk \
21242 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21243 if test -f "$i/itkConfig.sh" ; then
21244 ac_cv_c_itkconfig=`(cd $i; pwd)`
21245 break
21246 fi
21247 done
21248 fi
21249 # check in a few common install locations
21250 if test x"${ac_cv_c_itkconfig}" = x ; then
21251 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21252 if test -f "$i/itkConfig.sh" ; then
21253 ac_cv_c_itkconfig=`(cd $i; pwd)`
21254 break
21255 fi
21256 done
21257 fi
21258 # check in a few other private locations
21259 if test x"${ac_cv_c_itkconfig}" = x ; then
21260 for i in \
21261 ${srcdir}/../itcl/itk \
21262 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21263 if test -f "$i/itkConfig.sh" ; then
21264 ac_cv_c_itkconfig=`(cd $i; pwd)`
21265 break
21266 fi
21267 done
21268 fi
bec39cab 21269
3fc11d3e
JM
21270fi
21271
21272 if test x"${ac_cv_c_itkconfig}" = x ; then
21273 ITKCONFIG="# no Itk configs found"
bec39cab
AC
21274 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21275echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
21276 else
21277 no_itk=
21278 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
21279 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21280echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
21281 fi
21282fi
21283
21284
bec39cab
AC
21285 if test -z "${no_itcl}"; then
21286
21287 if test -f "$ITKCONFIG" ; then
21288 . $ITKCONFIG
21289 fi
21290
21291
21292
21293
21294
21295
3fc11d3e 21296
3fc11d3e 21297
3fc11d3e
JM
21298
21299
3fc11d3e
JM
21300
21301
3fc11d3e 21302 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 21303 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
21304 fi
21305
4226a5a5 21306 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
21307
21308 # Include some libraries that Tcl and Tk want.
b2a1bd4f 21309 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
21310 # Yes, the ordering seems wrong here. But it isn't.
21311 # TK_LIBS is the list of libraries that need to be linked
21312 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21313 # were in LIBS then any link tests after this point would
21314 # try to include things like `$(LIBGUI)', which wouldn't work.
21315 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
21316
21317 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21318 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21319 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
21320 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21321 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21322 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21323 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
21324
21325 if test x$gdb_cv_os_cygwin = xyes; then
21326 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21327 WIN32LDAPP="-Wl,--subsystem,console"
21328 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21329 fi
21330 fi
21331 fi
ffc6a242 21332
bec39cab
AC
21333
21334
21335subdirs="$subdirs gdbtk"
3ace7edb 21336
3fc11d3e
JM
21337fi
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
dd2504ab 21351
bec39cab
AC
21352echo "$as_me:$LINENO: checking for X" >&5
21353echo $ECHO_N "checking for X... $ECHO_C" >&6
21354
c906108c
SS
21355
21356# Check whether --with-x or --without-x was given.
21357if test "${with_x+set}" = set; then
21358 withval="$with_x"
c906108c 21359
bec39cab 21360fi;
c906108c
SS
21361# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21362if test "x$with_x" = xno; then
21363 # The user explicitly disabled X.
21364 have_x=disabled
21365else
21366 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21367 # Both variables are already set.
21368 have_x=yes
21369 else
bec39cab
AC
21370 if test "${ac_cv_have_x+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21372else
21373 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
21374ac_x_includes=no ac_x_libraries=no
21375rm -fr conftest.dir
21376if mkdir conftest.dir; then
21377 cd conftest.dir
c906108c 21378 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 21379 cat >Imakefile <<'_ACEOF'
c906108c
SS
21380acfindx:
21381 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 21382_ACEOF
c906108c
SS
21383 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21385 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21386 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21387 for ac_extension in a so sl; do
21388 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
21389 test -f $ac_im_libdir/libX11.$ac_extension; then
21390 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
21391 fi
21392 done
21393 # Screen out bogus values from the imake configuration. They are
21394 # bogus both because they are the default anyway, and because
21395 # using them would break gcc on systems where it needs fixed includes.
bec39cab 21396 case $ac_im_incroot in
c906108c 21397 /usr/include) ;;
bec39cab 21398 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 21399 esac
bec39cab 21400 case $ac_im_usrlibdir in
c906108c 21401 /usr/lib | /lib) ;;
bec39cab 21402 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
21403 esac
21404 fi
21405 cd ..
bec39cab 21406 rm -fr conftest.dir
c906108c
SS
21407fi
21408
bec39cab
AC
21409# Standard set of common directories for X headers.
21410# Check X11 before X11Rn because it is often a symlink to the current release.
21411ac_x_header_dirs='
21412/usr/X11/include
21413/usr/X11R6/include
21414/usr/X11R5/include
21415/usr/X11R4/include
21416
21417/usr/include/X11
21418/usr/include/X11R6
21419/usr/include/X11R5
21420/usr/include/X11R4
21421
21422/usr/local/X11/include
21423/usr/local/X11R6/include
21424/usr/local/X11R5/include
21425/usr/local/X11R4/include
21426
21427/usr/local/include/X11
21428/usr/local/include/X11R6
21429/usr/local/include/X11R5
21430/usr/local/include/X11R4
21431
21432/usr/X386/include
21433/usr/x386/include
21434/usr/XFree86/include/X11
21435
21436/usr/include
21437/usr/local/include
21438/usr/unsupported/include
21439/usr/athena/include
21440/usr/local/x11r5/include
21441/usr/lpp/Xamples/include
21442
21443/usr/openwin/include
21444/usr/openwin/share/include'
21445
21446if test "$ac_x_includes" = no; then
21447 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 21448 # First, try using that file with no special directory specified.
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. */
21455#include <X11/Intrinsic.h>
21456_ACEOF
21457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21459 ac_status=$?
21460 grep -v '^ *+' conftest.er1 >conftest.err
21461 rm -f conftest.er1
21462 cat conftest.err >&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } >/dev/null; then
21465 if test -s conftest.err; then
21466 ac_cpp_err=$ac_c_preproc_warn_flag
21467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21468 else
21469 ac_cpp_err=
21470 fi
21471else
21472 ac_cpp_err=yes
21473fi
21474if test -z "$ac_cpp_err"; then
c906108c
SS
21475 # We can compile using X headers with no special include directory.
21476ac_x_includes=
21477else
bec39cab
AC
21478 echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
21480
21481 for ac_dir in $ac_x_header_dirs; do
21482 if test -r "$ac_dir/X11/Intrinsic.h"; then
21483 ac_x_includes=$ac_dir
21484 break
21485 fi
21486done
c906108c 21487fi
bec39cab
AC
21488rm -f conftest.err conftest.$ac_ext
21489fi # $ac_x_includes = no
c906108c 21490
bec39cab 21491if test "$ac_x_libraries" = no; then
c906108c 21492 # Check for the libraries.
c906108c
SS
21493 # See if we find them without any special options.
21494 # Don't add to $LIBS permanently.
bec39cab
AC
21495 ac_save_LIBS=$LIBS
21496 LIBS="-lXt $LIBS"
21497 cat >conftest.$ac_ext <<_ACEOF
21498/* confdefs.h. */
21499_ACEOF
21500cat confdefs.h >>conftest.$ac_ext
21501cat >>conftest.$ac_ext <<_ACEOF
21502/* end confdefs.h. */
21503#include <X11/Intrinsic.h>
21504int
21505main ()
21506{
21507XtMalloc (0)
21508 ;
21509 return 0;
21510}
21511_ACEOF
21512rm -f conftest.$ac_objext conftest$ac_exeext
21513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21514 (eval $ac_link) 2>conftest.er1
21515 ac_status=$?
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
21521 { ac_try='test -z "$ac_c_werror_flag"
21522 || test ! -s conftest.err'
21523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21524 (eval $ac_try) 2>&5
21525 ac_status=$?
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); }; } &&
21528 { ac_try='test -s conftest$ac_exeext'
21529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 (eval $ac_try) 2>&5
21531 ac_status=$?
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; }; then
21534 LIBS=$ac_save_LIBS
c906108c
SS
21535# We can link X programs with no special library path.
21536ac_x_libraries=
21537else
bec39cab
AC
21538 echo "$as_me: failed program was:" >&5
21539sed 's/^/| /' conftest.$ac_ext >&5
21540
21541LIBS=$ac_save_LIBS
21542for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21543do
bec39cab 21544 # Don't even attempt the hair of trying to link an X program!
c906108c 21545 for ac_extension in a so sl; do
bec39cab 21546 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
21547 ac_x_libraries=$ac_dir
21548 break 2
21549 fi
21550 done
21551done
21552fi
bec39cab
AC
21553rm -f conftest.err conftest.$ac_objext \
21554 conftest$ac_exeext conftest.$ac_ext
21555fi # $ac_x_libraries = no
c906108c 21556
bec39cab 21557if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21558 # Didn't find X anywhere. Cache the known absence of X.
21559 ac_cv_have_x="have_x=no"
21560else
21561 # Record where we found X for the cache.
21562 ac_cv_have_x="have_x=yes \
bec39cab 21563 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21564fi
21565fi
bec39cab 21566
c906108c
SS
21567 fi
21568 eval "$ac_cv_have_x"
21569fi # $with_x != no
21570
21571if test "$have_x" != yes; then
bec39cab
AC
21572 echo "$as_me:$LINENO: result: $have_x" >&5
21573echo "${ECHO_T}$have_x" >&6
c906108c
SS
21574 no_x=yes
21575else
21576 # If each of the values was on the command line, it overrides each guess.
21577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21579 # Update the cache value to reflect the command line values.
21580 ac_cv_have_x="have_x=yes \
21581 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bec39cab
AC
21582 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21583echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
21584fi
21585
21586
9cc52bde
MK
21587# Check whether we should enable the TUI, but only do so if we really
21588# can.
21589if test x"$enable_tui" = xyes; then
21590 if test -d $srcdir/tui; then
21591 if test "$ac_cv_search_waddstr" != no; then
21592 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21593 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21594 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21595 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21596 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21597 CONFIG_ALL="${CONFIG_ALL} all-tui"
21598 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21599 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21600 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21601 else
bec39cab
AC
21602 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21603echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21604 fi
21605 fi
21606fi
21607
bec39cab
AC
21608# Unlike the sim directory, whether a simulator is linked is controlled by
21609# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21610# This code just checks for a few cases where we'd like to ignore those
21611# definitions, even when they're present in the '.mt' file. These cases
21612# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21613# not part of the source tree.
7a292a7a
SS
21614#
21615# Check whether --enable-sim or --disable-sim was given.
21616if test "${enable_sim+set}" = set; then
21617 enableval="$enable_sim"
21618 echo "enable_sim = $enable_sim";
21619 echo "enableval = ${enableval}";
21620 case "${enableval}" in
21621 yes) ignore_sim=false ;;
21622 no) ignore_sim=true ;;
21623 *) ignore_sim=false ;;
21624 esac
21625else
21626 ignore_sim=false
bec39cab 21627fi;
7a292a7a
SS
21628
21629if test ! -d "${srcdir}/../sim"; then
21630 ignore_sim=true
21631fi
21632
21633if test "${ignore_sim}" = "true"; then
21634 IGNORE_SIM="SIM="
21635 IGNORE_SIM_OBS="SIM_OBS="
21636else
21637 IGNORE_SIM=""
21638 IGNORE_SIM_OBS=""
60ca704f
SE
21639
21640cat >>confdefs.h <<\_ACEOF
7a292a7a 21641#define WITH_SIM 1
bec39cab 21642_ACEOF
7a292a7a
SS
21643
21644fi
21645
21646
21647
c906108c
SS
21648
21649
21650
21651
21652
21653
dfcd3bfb 21654
e56ac5c3
AC
21655
21656
b3a90332
AC
21657
21658
c35f4ffc 21659# List of host floatformats.
bec39cab
AC
21660
21661cat >>confdefs.h <<_ACEOF
c35f4ffc 21662#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21663_ACEOF
c35f4ffc 21664
bec39cab
AC
21665
21666cat >>confdefs.h <<_ACEOF
c35f4ffc 21667#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21668_ACEOF
21669
c35f4ffc 21670
bec39cab 21671cat >>confdefs.h <<_ACEOF
c35f4ffc 21672#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21673_ACEOF
c35f4ffc
AC
21674
21675
c906108c
SS
21676# target_subdir is used by the testsuite to find the target libraries.
21677target_subdir=
21678if test "${host}" != "${target}"; then
21679 target_subdir="${target_alias}/"
21680fi
21681
21682
21683frags=
0dad8a66
MK
21684if test "${target}" = "${host}"; then
21685 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21686 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21687 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21688echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21689 { (exit 1); exit 1; }; }
0dad8a66
MK
21690 fi
21691 frags="$frags $host_makefile_frag"
21692else
21693 host_makefile_frag=/dev/null
c906108c 21694fi
c906108c
SS
21695
21696target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21697if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21698 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21699echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21700 { (exit 1); exit 1; }; }
c906108c
SS
21701fi
21702frags="$frags $target_makefile_frag"
21703
21704
21705
21706
21707
21708hostfile=`sed -n '
21709s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21710' ${host_makefile_frag}`
21711
21712targetfile=`sed -n '
2c0fc042 21713s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21714' ${target_makefile_frag}`
21715
c906108c 21716if test "${target}" = "${host}"; then
a85f51e7
DJ
21717# We pick this up from the host configuration file (.mh) because we
21718# do not have a native configuration Makefile fragment.
c906108c
SS
21719nativefile=`sed -n '
21720s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21721' ${host_makefile_frag}`
c906108c
SS
21722fi
21723
21724
b00a8037 21725if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21726
21727cat >>confdefs.h <<_ACEOF
b00a8037 21728#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21729_ACEOF
b00a8037
DJ
21730
21731fi
21732
8dcde887
MK
21733# Enable multi-ice-gdb-server.
21734# Check whether --enable-multi-ice or --disable-multi-ice was given.
21735if test "${enable_multi_ice+set}" = set; then
21736 enableval="$enable_multi_ice"
21737 case $enableval in
21738 yes | no)
21739 ;;
bec39cab
AC
21740 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21741echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21742 { (exit 1); exit 1; }; } ;;
8dcde887 21743 esac
bec39cab 21744fi;
8dcde887 21745if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21746
21747
21748subdirs="$subdirs multi-ice"
3ace7edb 21749
a85f51e7
DJ
21750fi
21751
8dcde887
MK
21752# We only build gdbserver automatically if host and target are the same.
21753if test "x$target" = "x$host"; then
bec39cab
AC
21754 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21755echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21756 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21757 echo "$as_me:$LINENO: result: yes" >&5
21758echo "${ECHO_T}yes" >&6
21759
21760
21761subdirs="$subdirs gdbserver"
3ace7edb 21762
8dcde887 21763 else
bec39cab
AC
21764 echo "$as_me:$LINENO: result: no" >&5
21765echo "${ECHO_T}no" >&6
8dcde887
MK
21766 fi
21767fi
21768
065a1afc
JB
21769# We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21770if test "x$build_rdi_share" = xyes; then
21771
21772
21773subdirs="$subdirs rdi-share"
21774
21775fi
21776
21777# We configure the nlm subdirectory on netware targets, as instructed
21778# by configure.tgt.
21779if test "x$build_nlm" = xyes; then
21780
21781
21782subdirs="$subdirs nlm"
21783
21784fi
21785
2c0fc042
AC
21786# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21787# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21788# to an empty version.
c906108c
SS
21789
21790files=
21791links=
5a2402b8 21792
c906108c 21793rm -f xm.h
5a2402b8 21794xm_h=""
c906108c 21795if test "${hostfile}" != ""; then
5a2402b8 21796 xm_h=xm.h
0f475e27
AC
21797 case "${hostfile}" in
21798 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21799 * ) GDB_XM_FILE="${hostfile}"
21800 esac
5a2402b8
AC
21801 files="${files} ${GDB_XM_FILE}"
21802 links="${links} xm.h"
60ca704f
SE
21803
21804cat >>confdefs.h <<_ACEOF
b78960be 21805#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21806_ACEOF
5a2402b8 21807
c906108c 21808fi
5a2402b8
AC
21809
21810
c906108c 21811rm -f tm.h
5a2402b8 21812tm_h=""
c906108c 21813if test "${targetfile}" != ""; then
5a2402b8 21814 tm_h=tm.h
0f475e27 21815 case "${targetfile}" in
b8c4aece 21816 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21817 * ) GDB_TM_FILE="${targetfile}"
21818 esac
5a2402b8
AC
21819 files="${files} ${GDB_TM_FILE}"
21820 links="${links} tm.h"
60ca704f
SE
21821
21822cat >>confdefs.h <<_ACEOF
b78960be 21823#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21824_ACEOF
5a2402b8 21825
c906108c 21826fi
5a2402b8
AC
21827
21828
c906108c 21829rm -f nm.h
5a2402b8 21830nm_h=""
c906108c 21831if test "${nativefile}" != ""; then
5a2402b8 21832 nm_h=nm.h
0f475e27
AC
21833 case "${nativefile}" in
21834 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21835 * ) GDB_NM_FILE="${nativefile}"
21836 esac
5a2402b8
AC
21837 files="${files} ${GDB_NM_FILE}"
21838 links="${links} nm.h"
60ca704f
SE
21839
21840cat >>confdefs.h <<_ACEOF
b78960be 21841#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21842_ACEOF
5a2402b8 21843
c906108c 21844fi
5a2402b8
AC
21845
21846
bec39cab
AC
21847ac_sources="$files"
21848ac_dests="$links"
21849while test -n "$ac_sources"; do
21850 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21851 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21852 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21853done
21854 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21855
21856
c906108c
SS
21857
21858
c906108c 21859
c906108c 21860
bec39cab
AC
21861cat >>confdefs.h <<\_ACEOF
21862#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21863_ACEOF
c906108c 21864
234b45d4 21865
234b45d4
KB
21866
21867
21868
bec39cab 21869# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21870if test "${with_libiconv_prefix+set}" = set; then
21871 withval="$with_libiconv_prefix"
bec39cab 21872
234b45d4
KB
21873 for dir in `echo "$withval" | tr : ' '`; do
21874 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21875 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21876 done
234b45d4 21877
bec39cab 21878fi;
234b45d4 21879
bec39cab
AC
21880 echo "$as_me:$LINENO: checking for iconv" >&5
21881echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21882if test "${am_cv_func_iconv+set}" = set; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21884else
bec39cab 21885
234b45d4
KB
21886 am_cv_func_iconv="no, consider installing GNU libiconv"
21887 am_cv_lib_iconv=no
bec39cab
AC
21888 cat >conftest.$ac_ext <<_ACEOF
21889/* confdefs.h. */
21890_ACEOF
21891cat confdefs.h >>conftest.$ac_ext
21892cat >>conftest.$ac_ext <<_ACEOF
21893/* end confdefs.h. */
234b45d4
KB
21894#include <stdlib.h>
21895#include <iconv.h>
bec39cab
AC
21896int
21897main ()
21898{
234b45d4
KB
21899iconv_t cd = iconv_open("","");
21900 iconv(cd,NULL,NULL,NULL,NULL);
21901 iconv_close(cd);
bec39cab
AC
21902 ;
21903 return 0;
21904}
21905_ACEOF
21906rm -f conftest.$ac_objext conftest$ac_exeext
21907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21908 (eval $ac_link) 2>conftest.er1
21909 ac_status=$?
21910 grep -v '^ *+' conftest.er1 >conftest.err
21911 rm -f conftest.er1
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } &&
21915 { ac_try='test -z "$ac_c_werror_flag"
21916 || test ! -s conftest.err'
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; } &&
21922 { ac_try='test -s conftest$ac_exeext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
234b45d4
KB
21928 am_cv_func_iconv=yes
21929else
bec39cab
AC
21930 echo "$as_me: failed program was:" >&5
21931sed 's/^/| /' conftest.$ac_ext >&5
21932
234b45d4 21933fi
bec39cab
AC
21934rm -f conftest.err conftest.$ac_objext \
21935 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21936 if test "$am_cv_func_iconv" != yes; then
21937 am_save_LIBS="$LIBS"
21938 LIBS="$LIBS -liconv"
bec39cab
AC
21939 cat >conftest.$ac_ext <<_ACEOF
21940/* confdefs.h. */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h. */
234b45d4
KB
21945#include <stdlib.h>
21946#include <iconv.h>
bec39cab
AC
21947int
21948main ()
21949{
234b45d4
KB
21950iconv_t cd = iconv_open("","");
21951 iconv(cd,NULL,NULL,NULL,NULL);
21952 iconv_close(cd);
bec39cab
AC
21953 ;
21954 return 0;
21955}
21956_ACEOF
21957rm -f conftest.$ac_objext conftest$ac_exeext
21958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21959 (eval $ac_link) 2>conftest.er1
21960 ac_status=$?
21961 grep -v '^ *+' conftest.er1 >conftest.err
21962 rm -f conftest.er1
21963 cat conftest.err >&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } &&
21966 { ac_try='test -z "$ac_c_werror_flag"
21967 || test ! -s conftest.err'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try='test -s conftest$ac_exeext'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
234b45d4
KB
21979 am_cv_lib_iconv=yes
21980 am_cv_func_iconv=yes
21981else
bec39cab
AC
21982 echo "$as_me: failed program was:" >&5
21983sed 's/^/| /' conftest.$ac_ext >&5
21984
234b45d4 21985fi
bec39cab
AC
21986rm -f conftest.err conftest.$ac_objext \
21987 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21988 LIBS="$am_save_LIBS"
21989 fi
bec39cab
AC
21990
21991fi
21992echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21993echo "${ECHO_T}$am_cv_func_iconv" >&6
21994 if test "$am_cv_func_iconv" = yes; then
21995
21996cat >>confdefs.h <<\_ACEOF
21997#define HAVE_ICONV 1
21998_ACEOF
21999
22000 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22001echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22002 if test "${am_cv_proto_iconv+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22004else
22005
22006 cat >conftest.$ac_ext <<_ACEOF
22007/* confdefs.h. */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h. */
22012
22013#include <stdlib.h>
22014#include <iconv.h>
22015extern
22016#ifdef __cplusplus
22017"C"
22018#endif
22019#if defined(__STDC__) || defined(__cplusplus)
22020size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22021#else
22022size_t iconv();
22023#endif
22024
22025int
22026main ()
22027{
22028
22029 ;
22030 return 0;
22031}
22032_ACEOF
22033rm -f conftest.$ac_objext
22034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22035 (eval $ac_compile) 2>conftest.er1
22036 ac_status=$?
22037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } &&
22042 { ac_try='test -z "$ac_c_werror_flag"
22043 || test ! -s conftest.err'
22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045 (eval $ac_try) 2>&5
22046 ac_status=$?
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; } &&
22049 { ac_try='test -s conftest.$ac_objext'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 am_cv_proto_iconv_arg1=""
22056else
22057 echo "$as_me: failed program was:" >&5
22058sed 's/^/| /' conftest.$ac_ext >&5
22059
22060am_cv_proto_iconv_arg1="const"
22061fi
22062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22063 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);"
22064fi
22065
22066 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22067 echo "$as_me:$LINENO: result: ${ac_t:-
22068 }$am_cv_proto_iconv" >&5
22069echo "${ECHO_T}${ac_t:-
22070 }$am_cv_proto_iconv" >&6
22071
22072cat >>confdefs.h <<_ACEOF
22073#define ICONV_CONST $am_cv_proto_iconv_arg1
22074_ACEOF
22075
22076 fi
22077 LIBICONV=
22078 if test "$am_cv_lib_iconv" = yes; then
22079 LIBICONV="-liconv"
22080 fi
22081
22082
22083
22084 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
22085 ac_config_commands="$ac_config_commands default"
22086cat >confcache <<\_ACEOF
22087# This file is a shell script that caches the results of configure
22088# tests run on this system so they can be shared between configure
22089# scripts and configure runs, see configure's option --config-cache.
22090# It is not useful on other systems. If it contains results you don't
22091# want to keep, you may remove or edit it.
22092#
22093# config.status only pays attention to the cache file if you give it
22094# the --recheck option to rerun configure.
22095#
22096# `ac_cv_env_foo' variables (set or unset) will be overridden when
22097# loading this file, other *unset* `ac_cv_foo' will be assigned the
22098# following values.
22099
22100_ACEOF
22101
22102# The following way of writing the cache mishandles newlines in values,
22103# but we know of no workaround that is simple, portable, and efficient.
22104# So, don't put newlines in cache variables' values.
22105# Ultrix sh set writes to stderr and can't be redirected directly,
22106# and sets the high bit in the cache file unless we assign to the vars.
22107{
22108 (set) 2>&1 |
22109 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22110 *ac_space=\ *)
22111 # `set' does not quote correctly, so add quotes (double-quote
22112 # substitution turns \\\\ into \\, and sed turns \\ into \).
22113 sed -n \
22114 "s/'/'\\\\''/g;
22115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22116 ;;
22117 *)
22118 # `set' quotes correctly as required by POSIX, so do not add quotes.
22119 sed -n \
22120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22121 ;;
22122 esac;
22123} |
22124 sed '
22125 t clear
22126 : clear
22127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22128 t end
22129 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22130 : end' >>confcache
22131if diff $cache_file confcache >/dev/null 2>&1; then :; else
22132 if test -w $cache_file; then
22133 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22134 cat confcache >$cache_file
22135 else
22136 echo "not updating unwritable cache $cache_file"
22137 fi
22138fi
22139rm -f confcache
22140
22141test "x$prefix" = xNONE && prefix=$ac_default_prefix
22142# Let make expand exec_prefix.
22143test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22144
22145# VPATH may cause trouble with some makes, so we remove $(srcdir),
22146# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22147# trailing colons and then remove the whole line if VPATH becomes empty
22148# (actually we leave an empty line to preserve line numbers).
22149if test "x$srcdir" = x.; then
22150 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22151s/:*\$(srcdir):*/:/;
22152s/:*\${srcdir}:*/:/;
22153s/:*@srcdir@:*/:/;
22154s/^\([^=]*=[ ]*\):*/\1/;
22155s/:*$//;
22156s/^[^=]*=[ ]*$//;
22157}'
22158fi
22159
22160DEFS=-DHAVE_CONFIG_H
22161
22162ac_libobjs=
22163ac_ltlibobjs=
22164for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22165 # 1. Remove the extension, and $U if already installed.
22166 ac_i=`echo "$ac_i" |
22167 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22168 # 2. Add them.
22169 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22170 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22171done
22172LIBOBJS=$ac_libobjs
22173
22174LTLIBOBJS=$ac_ltlibobjs
22175
22176
85981d60
AC
22177if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22178 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22179Usually this means the macro was only invoked conditionally." >&5
22180echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22181Usually this means the macro was only invoked conditionally." >&2;}
22182 { (exit 1); exit 1; }; }
22183fi
bec39cab
AC
22184
22185: ${CONFIG_STATUS=./config.status}
22186ac_clean_files_save=$ac_clean_files
22187ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22188{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22189echo "$as_me: creating $CONFIG_STATUS" >&6;}
22190cat >$CONFIG_STATUS <<_ACEOF
22191#! $SHELL
22192# Generated by $as_me.
22193# Run this file to recreate the current configuration.
22194# Compiler output produced by configure, useful for debugging
22195# configure, is in config.log if it exists.
22196
22197debug=false
22198ac_cs_recheck=false
22199ac_cs_silent=false
22200SHELL=\${CONFIG_SHELL-$SHELL}
22201_ACEOF
22202
22203cat >>$CONFIG_STATUS <<\_ACEOF
22204## --------------------- ##
22205## M4sh Initialization. ##
22206## --------------------- ##
22207
22208# Be Bourne compatible
22209if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22210 emulate sh
22211 NULLCMD=:
22212 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22213 # is contrary to our usage. Disable this feature.
22214 alias -g '${1+"$@"}'='"$@"'
22215elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22216 set -o posix
22217fi
22218DUALCASE=1; export DUALCASE # for MKS sh
22219
22220# Support unset when possible.
22221if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22222 as_unset=unset
22223else
22224 as_unset=false
22225fi
22226
22227
22228# Work around bugs in pre-3.0 UWIN ksh.
22229$as_unset ENV MAIL MAILPATH
22230PS1='$ '
22231PS2='> '
22232PS4='+ '
22233
22234# NLS nuisances.
22235for as_var in \
22236 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22237 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22238 LC_TELEPHONE LC_TIME
22239do
22240 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22241 eval $as_var=C; export $as_var
22242 else
22243 $as_unset $as_var
22244 fi
22245done
22246
22247# Required to use basename.
22248if expr a : '\(a\)' >/dev/null 2>&1; then
22249 as_expr=expr
22250else
22251 as_expr=false
22252fi
22253
22254if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22255 as_basename=basename
22256else
22257 as_basename=false
22258fi
22259
22260
22261# Name of the executable.
22262as_me=`$as_basename "$0" ||
22263$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22264 X"$0" : 'X\(//\)$' \| \
22265 X"$0" : 'X\(/\)$' \| \
22266 . : '\(.\)' 2>/dev/null ||
22267echo X/"$0" |
22268 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22269 /^X\/\(\/\/\)$/{ s//\1/; q; }
22270 /^X\/\(\/\).*/{ s//\1/; q; }
22271 s/.*/./; q'`
22272
22273
22274# PATH needs CR, and LINENO needs CR and PATH.
22275# Avoid depending upon Character Ranges.
22276as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22277as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22278as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22279as_cr_digits='0123456789'
22280as_cr_alnum=$as_cr_Letters$as_cr_digits
22281
22282# The user is always right.
22283if test "${PATH_SEPARATOR+set}" != set; then
22284 echo "#! /bin/sh" >conf$$.sh
22285 echo "exit 0" >>conf$$.sh
22286 chmod +x conf$$.sh
22287 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22288 PATH_SEPARATOR=';'
22289 else
22290 PATH_SEPARATOR=:
22291 fi
22292 rm -f conf$$.sh
22293fi
22294
22295
22296 as_lineno_1=$LINENO
22297 as_lineno_2=$LINENO
22298 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22299 test "x$as_lineno_1" != "x$as_lineno_2" &&
22300 test "x$as_lineno_3" = "x$as_lineno_2" || {
22301 # Find who we are. Look in the path if we contain no path at all
22302 # relative or not.
22303 case $0 in
22304 *[\\/]* ) as_myself=$0 ;;
22305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22306for as_dir in $PATH
22307do
22308 IFS=$as_save_IFS
22309 test -z "$as_dir" && as_dir=.
22310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22311done
22312
22313 ;;
22314 esac
22315 # We did not find ourselves, most probably we were run as `sh COMMAND'
22316 # in which case we are not to be found in the path.
22317 if test "x$as_myself" = x; then
22318 as_myself=$0
22319 fi
22320 if test ! -f "$as_myself"; then
22321 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22322echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22323 { (exit 1); exit 1; }; }
22324 fi
22325 case $CONFIG_SHELL in
22326 '')
22327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22328for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22329do
22330 IFS=$as_save_IFS
22331 test -z "$as_dir" && as_dir=.
22332 for as_base in sh bash ksh sh5; do
22333 case $as_dir in
22334 /*)
22335 if ("$as_dir/$as_base" -c '
22336 as_lineno_1=$LINENO
22337 as_lineno_2=$LINENO
22338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22339 test "x$as_lineno_1" != "x$as_lineno_2" &&
22340 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22341 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22342 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22343 CONFIG_SHELL=$as_dir/$as_base
22344 export CONFIG_SHELL
22345 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22346 fi;;
22347 esac
22348 done
22349done
22350;;
22351 esac
22352
22353 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22354 # uniformly replaced by the line number. The first 'sed' inserts a
22355 # line-number line before each line; the second 'sed' does the real
22356 # work. The second script uses 'N' to pair each line-number line
22357 # with the numbered line, and appends trailing '-' during
22358 # substitution so that $LINENO is not a special case at line end.
22359 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22360 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22361 sed '=' <$as_myself |
22362 sed '
22363 N
22364 s,$,-,
22365 : loop
22366 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22367 t loop
22368 s,-$,,
22369 s,^['$as_cr_digits']*\n,,
22370 ' >$as_me.lineno &&
22371 chmod +x $as_me.lineno ||
22372 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22373echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22374 { (exit 1); exit 1; }; }
22375
22376 # Don't try to exec as it changes $[0], causing all sort of problems
22377 # (the dirname of $[0] is not the place where we might find the
22378 # original and so on. Autoconf is especially sensible to this).
22379 . ./$as_me.lineno
22380 # Exit status is that of the last command.
22381 exit
22382}
22383
22384
22385case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22386 *c*,-n*) ECHO_N= ECHO_C='
22387' ECHO_T=' ' ;;
22388 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22389 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22390esac
22391
22392if expr a : '\(a\)' >/dev/null 2>&1; then
22393 as_expr=expr
22394else
22395 as_expr=false
22396fi
22397
22398rm -f conf$$ conf$$.exe conf$$.file
22399echo >conf$$.file
22400if ln -s conf$$.file conf$$ 2>/dev/null; then
22401 # We could just check for DJGPP; but this test a) works b) is more generic
22402 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22403 if test -f conf$$.exe; then
22404 # Don't use ln at all; we don't have any links
22405 as_ln_s='cp -p'
22406 else
22407 as_ln_s='ln -s'
22408 fi
22409elif ln conf$$.file conf$$ 2>/dev/null; then
22410 as_ln_s=ln
22411else
22412 as_ln_s='cp -p'
22413fi
22414rm -f conf$$ conf$$.exe conf$$.file
22415
22416if mkdir -p . 2>/dev/null; then
22417 as_mkdir_p=:
22418else
22419 test -d ./-p && rmdir ./-p
22420 as_mkdir_p=false
22421fi
22422
22423as_executable_p="test -f"
22424
22425# Sed expression to map a string onto a valid CPP name.
22426as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22427
22428# Sed expression to map a string onto a valid variable name.
22429as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22430
22431
22432# IFS
22433# We need space, tab and new line, in precisely that order.
22434as_nl='
22435'
22436IFS=" $as_nl"
22437
22438# CDPATH.
22439$as_unset CDPATH
22440
22441exec 6>&1
22442
22443# Open the log real soon, to keep \$[0] and so on meaningful, and to
22444# report actual input values of CONFIG_FILES etc. instead of their
22445# values after options handling. Logging --version etc. is OK.
22446exec 5>>config.log
22447{
22448 echo
22449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22450## Running $as_me. ##
22451_ASBOX
22452} >&5
22453cat >&5 <<_CSEOF
22454
22455This file was extended by $as_me, which was
22456generated by GNU Autoconf 2.59. Invocation command line was
22457
22458 CONFIG_FILES = $CONFIG_FILES
22459 CONFIG_HEADERS = $CONFIG_HEADERS
22460 CONFIG_LINKS = $CONFIG_LINKS
22461 CONFIG_COMMANDS = $CONFIG_COMMANDS
22462 $ $0 $@
22463
22464_CSEOF
22465echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22466echo >&5
22467_ACEOF
22468
22469# Files that config.status was made for.
22470if test -n "$ac_config_files"; then
22471 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22472fi
22473
22474if test -n "$ac_config_headers"; then
22475 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22476fi
22477
22478if test -n "$ac_config_links"; then
22479 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22480fi
22481
bec39cab
AC
22482if test -n "$ac_config_commands"; then
22483 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22484fi
234b45d4 22485
bec39cab 22486cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22487
bec39cab
AC
22488ac_cs_usage="\
22489\`$as_me' instantiates files from templates according to the
22490current configuration.
234b45d4 22491
bec39cab 22492Usage: $0 [OPTIONS] [FILE]...
234b45d4 22493
bec39cab
AC
22494 -h, --help print this help, then exit
22495 -V, --version print version number, then exit
22496 -q, --quiet do not print progress messages
22497 -d, --debug don't remove temporary files
22498 --recheck update $as_me by reconfiguring in the same conditions
22499 --file=FILE[:TEMPLATE]
22500 instantiate the configuration file FILE
22501 --header=FILE[:TEMPLATE]
22502 instantiate the configuration header FILE
234b45d4 22503
bec39cab
AC
22504Configuration files:
22505$config_files
234b45d4 22506
bec39cab
AC
22507Configuration headers:
22508$config_headers
234b45d4 22509
bec39cab
AC
22510Configuration links:
22511$config_links
234b45d4 22512
bec39cab
AC
22513Configuration commands:
22514$config_commands
22515
22516Report bugs to <bug-autoconf@gnu.org>."
22517_ACEOF
22518
22519cat >>$CONFIG_STATUS <<_ACEOF
22520ac_cs_version="\\
22521config.status
22522configured by $0, generated by GNU Autoconf 2.59,
22523 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22524
22525Copyright (C) 2003 Free Software Foundation, Inc.
22526This config.status script is free software; the Free Software Foundation
22527gives unlimited permission to copy, distribute and modify it."
22528srcdir=$srcdir
22529INSTALL="$INSTALL"
22530_ACEOF
22531
22532cat >>$CONFIG_STATUS <<\_ACEOF
22533# If no file are specified by the user, then we need to provide default
22534# value. By we need to know if files were specified by the user.
22535ac_need_defaults=:
22536while test $# != 0
22537do
22538 case $1 in
22539 --*=*)
22540 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22541 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22542 ac_shift=:
c906108c 22543 ;;
bec39cab
AC
22544 -*)
22545 ac_option=$1
22546 ac_optarg=$2
22547 ac_shift=shift
c906108c 22548 ;;
bec39cab
AC
22549 *) # This is not an option, so the user has probably given explicit
22550 # arguments.
22551 ac_option=$1
22552 ac_need_defaults=false;;
22553 esac
c906108c 22554
bec39cab
AC
22555 case $ac_option in
22556 # Handling of the options.
22557_ACEOF
22558cat >>$CONFIG_STATUS <<\_ACEOF
22559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22560 ac_cs_recheck=: ;;
22561 --version | --vers* | -V )
22562 echo "$ac_cs_version"; exit 0 ;;
22563 --he | --h)
22564 # Conflict between --help and --header
22565 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22566Try \`$0 --help' for more information." >&5
22567echo "$as_me: error: ambiguous option: $1
22568Try \`$0 --help' for more information." >&2;}
22569 { (exit 1); exit 1; }; };;
22570 --help | --hel | -h )
22571 echo "$ac_cs_usage"; exit 0 ;;
22572 --debug | --d* | -d )
22573 debug=: ;;
22574 --file | --fil | --fi | --f )
22575 $ac_shift
22576 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22577 ac_need_defaults=false;;
22578 --header | --heade | --head | --hea )
22579 $ac_shift
22580 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22581 ac_need_defaults=false;;
22582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22584 ac_cs_silent=: ;;
c906108c 22585
bec39cab
AC
22586 # This is an error.
22587 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22588Try \`$0 --help' for more information." >&5
22589echo "$as_me: error: unrecognized option: $1
22590Try \`$0 --help' for more information." >&2;}
22591 { (exit 1); exit 1; }; } ;;
c906108c 22592
bec39cab 22593 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22594
bec39cab
AC
22595 esac
22596 shift
22597done
c906108c 22598
bec39cab 22599ac_configure_extra_args=
c906108c 22600
bec39cab
AC
22601if $ac_cs_silent; then
22602 exec 6>/dev/null
22603 ac_configure_extra_args="$ac_configure_extra_args --silent"
22604fi
c906108c 22605
bec39cab
AC
22606_ACEOF
22607cat >>$CONFIG_STATUS <<_ACEOF
22608if \$ac_cs_recheck; then
22609 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22610 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22611fi
22612
22613_ACEOF
22614
22615cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22616#
bec39cab 22617# INIT-COMMANDS section.
c906108c 22618#
c906108c 22619
bec39cab
AC
22620
22621gdb_host_cpu=$gdb_host_cpu
22622gdb_target_cpu=$gdb_target_cpu
22623nativefile=$nativefile
22624
22625
22626_ACEOF
22627
22628
22629
22630cat >>$CONFIG_STATUS <<\_ACEOF
22631for ac_config_target in $ac_config_targets
c906108c 22632do
bec39cab
AC
22633 case "$ac_config_target" in
22634 # Handling of arguments.
22635 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22636 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22637 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22638 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22639 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22640 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22641echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22642 { (exit 1); exit 1; }; };;
c906108c
SS
22643 esac
22644done
22645
bec39cab
AC
22646# If the user did not use the arguments to specify the items to instantiate,
22647# then the envvar interface is used. Set only those that are not.
22648# We use the long form for the default assignment because of an extremely
22649# bizarre bug on SunOS 4.1.3.
22650if $ac_need_defaults; then
22651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22653 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22655fi
22656
22657# Have a temporary directory for convenience. Make it in the build tree
22658# simply because there is no reason to put it here, and in addition,
22659# creating and moving files from /tmp can sometimes cause problems.
22660# Create a temporary directory, and hook for its removal unless debugging.
22661$debug ||
22662{
22663 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22664 trap '{ (exit 1); exit 1; }' 1 2 13 15
22665}
c906108c 22666
bec39cab 22667# Create a (secure) tmp directory for tmp files.
c906108c 22668
bec39cab
AC
22669{
22670 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22671 test -n "$tmp" && test -d "$tmp"
22672} ||
22673{
22674 tmp=./confstat$$-$RANDOM
22675 (umask 077 && mkdir $tmp)
22676} ||
22677{
22678 echo "$me: cannot create a temporary directory in ." >&2
22679 { (exit 1); exit 1; }
22680}
22681
22682_ACEOF
22683
22684cat >>$CONFIG_STATUS <<_ACEOF
22685
22686#
22687# CONFIG_FILES section.
22688#
22689
22690# No need to generate the scripts if there are no CONFIG_FILES.
22691# This happens for instance when ./config.status config.h
22692if test -n "\$CONFIG_FILES"; then
22693 # Protect against being on the right side of a sed subst in config.status.
22694 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22695 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22696s,@SHELL@,$SHELL,;t t
22697s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22698s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22699s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22700s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22701s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22702s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22703s,@exec_prefix@,$exec_prefix,;t t
22704s,@prefix@,$prefix,;t t
22705s,@program_transform_name@,$program_transform_name,;t t
22706s,@bindir@,$bindir,;t t
22707s,@sbindir@,$sbindir,;t t
22708s,@libexecdir@,$libexecdir,;t t
22709s,@datadir@,$datadir,;t t
22710s,@sysconfdir@,$sysconfdir,;t t
22711s,@sharedstatedir@,$sharedstatedir,;t t
22712s,@localstatedir@,$localstatedir,;t t
22713s,@libdir@,$libdir,;t t
22714s,@includedir@,$includedir,;t t
22715s,@oldincludedir@,$oldincludedir,;t t
22716s,@infodir@,$infodir,;t t
22717s,@mandir@,$mandir,;t t
22718s,@build_alias@,$build_alias,;t t
22719s,@host_alias@,$host_alias,;t t
22720s,@target_alias@,$target_alias,;t t
22721s,@DEFS@,$DEFS,;t t
22722s,@ECHO_C@,$ECHO_C,;t t
22723s,@ECHO_N@,$ECHO_N,;t t
22724s,@ECHO_T@,$ECHO_T,;t t
22725s,@LIBS@,$LIBS,;t t
22726s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22727s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22728s,@MAINT@,$MAINT,;t t
22729s,@CC@,$CC,;t t
22730s,@CFLAGS@,$CFLAGS,;t t
22731s,@LDFLAGS@,$LDFLAGS,;t t
22732s,@CPPFLAGS@,$CPPFLAGS,;t t
22733s,@ac_ct_CC@,$ac_ct_CC,;t t
22734s,@EXEEXT@,$EXEEXT,;t t
22735s,@OBJEXT@,$OBJEXT,;t t
22736s,@CPP@,$CPP,;t t
22737s,@EGREP@,$EGREP,;t t
22738s,@build@,$build,;t t
22739s,@build_cpu@,$build_cpu,;t t
22740s,@build_vendor@,$build_vendor,;t t
22741s,@build_os@,$build_os,;t t
22742s,@host@,$host,;t t
22743s,@host_cpu@,$host_cpu,;t t
22744s,@host_vendor@,$host_vendor,;t t
22745s,@host_os@,$host_os,;t t
22746s,@target@,$target,;t t
22747s,@target_cpu@,$target_cpu,;t t
22748s,@target_vendor@,$target_vendor,;t t
22749s,@target_os@,$target_os,;t t
c21a4eee 22750s,@SET_MAKE@,$SET_MAKE,;t t
bec39cab
AC
22751s,@RANLIB@,$RANLIB,;t t
22752s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
bec39cab
AC
22753s,@ALLOCA@,$ALLOCA,;t t
22754s,@USE_NLS@,$USE_NLS,;t t
22755s,@MSGFMT@,$MSGFMT,;t t
22756s,@GMSGFMT@,$GMSGFMT,;t t
22757s,@XGETTEXT@,$XGETTEXT,;t t
22758s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22759s,@CATALOGS@,$CATALOGS,;t t
22760s,@CATOBJEXT@,$CATOBJEXT,;t t
22761s,@DATADIRNAME@,$DATADIRNAME,;t t
22762s,@GMOFILES@,$GMOFILES,;t t
22763s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22764s,@INTLDEPS@,$INTLDEPS,;t t
22765s,@INTLLIBS@,$INTLLIBS,;t t
22766s,@INTLOBJS@,$INTLOBJS,;t t
22767s,@POFILES@,$POFILES,;t t
22768s,@POSUB@,$POSUB,;t t
22769s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22770s,@GT_NO@,$GT_NO,;t t
22771s,@GT_YES@,$GT_YES,;t t
22772s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22773s,@l@,$l,;t t
22774s,@localedir@,$localedir,;t t
22775s,@PACKAGE@,$PACKAGE,;t t
22776s,@subdirs@,$subdirs,;t t
22777s,@AWK@,$AWK,;t t
22778s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22779s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22780s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22781s,@LN_S@,$LN_S,;t t
22782s,@YACC@,$YACC,;t t
22783s,@AR@,$AR,;t t
22784s,@ac_ct_AR@,$ac_ct_AR,;t t
22785s,@DLLTOOL@,$DLLTOOL,;t t
22786s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22787s,@WINDRES@,$WINDRES,;t t
22788s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22789s,@MIG@,$MIG,;t t
22790s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22791s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22792s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22793s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22794s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22795s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22796s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22797s,@WIN32LIBS@,$WIN32LIBS,;t t
22798s,@LIBGUI@,$LIBGUI,;t t
22799s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22800s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22801s,@TCL_VERSION@,$TCL_VERSION,;t t
22802s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22803s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22804s,@TCL_CC@,$TCL_CC,;t t
22805s,@TCL_DEFS@,$TCL_DEFS,;t t
22806s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22807s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22808s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22809s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22810s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22811s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22812s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22813s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22814s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22815s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22816s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22817s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22818s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22819s,@TK_VERSION@,$TK_VERSION,;t t
22820s,@TK_DEFS@,$TK_DEFS,;t t
22821s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22822s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22823s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22824s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22825s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22826s,@TCLHDIR@,$TCLHDIR,;t t
22827s,@TKHDIR@,$TKHDIR,;t t
22828s,@ITCLHDIR@,$ITCLHDIR,;t t
22829s,@ITKHDIR@,$ITKHDIR,;t t
22830s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22831s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22832s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22833s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22834s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22835s,@ITK_VERSION@,$ITK_VERSION,;t t
22836s,@ITK_DEFS@,$ITK_DEFS,;t t
22837s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22838s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22839s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22840s,@X_CFLAGS@,$X_CFLAGS,;t t
22841s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22842s,@X_LIBS@,$X_LIBS,;t t
22843s,@TCL_DEPS@,$TCL_DEPS,;t t
22844s,@TK_DEPS@,$TK_DEPS,;t t
22845s,@ITCLLIB@,$ITCLLIB,;t t
22846s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22847s,@ITKLIB@,$ITKLIB,;t t
22848s,@ITK_DEPS@,$ITK_DEPS,;t t
22849s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22850s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22851s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22852s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22853s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22854s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22855s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22856s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22857s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22858s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22859s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22860s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22861s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22862s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22863s,@target_subdir@,$target_subdir,;t t
22864s,@frags@,$frags,;t t
22865s,@xm_h@,$xm_h,;t t
22866s,@tm_h@,$tm_h,;t t
22867s,@nm_h@,$nm_h,;t t
22868s,@LIBICONV@,$LIBICONV,;t t
22869s,@LIBOBJS@,$LIBOBJS,;t t
22870s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22871/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22872s,@host_makefile_frag@,,;t t
c906108c 22873/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22874s,@target_makefile_frag@,,;t t
c906108c 22875CEOF
bec39cab
AC
22876
22877_ACEOF
22878
22879 cat >>$CONFIG_STATUS <<\_ACEOF
22880 # Split the substitutions into bite-sized pieces for seds with
22881 # small command number limits, like on Digital OSF/1 and HP-UX.
22882 ac_max_sed_lines=48
22883 ac_sed_frag=1 # Number of current file.
22884 ac_beg=1 # First line for current file.
22885 ac_end=$ac_max_sed_lines # Line after last line for current file.
22886 ac_more_lines=:
22887 ac_sed_cmds=
22888 while $ac_more_lines; do
22889 if test $ac_beg -gt 1; then
22890 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22891 else
22892 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22893 fi
22894 if test ! -s $tmp/subs.frag; then
22895 ac_more_lines=false
c906108c 22896 else
bec39cab
AC
22897 # The purpose of the label and of the branching condition is to
22898 # speed up the sed processing (if there are no `@' at all, there
22899 # is no need to browse any of the substitutions).
22900 # These are the two extra sed commands mentioned above.
22901 (echo ':t
22902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22903 if test -z "$ac_sed_cmds"; then
22904 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22905 else
22906 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22907 fi
22908 ac_sed_frag=`expr $ac_sed_frag + 1`
22909 ac_beg=$ac_end
22910 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22911 fi
bec39cab
AC
22912 done
22913 if test -z "$ac_sed_cmds"; then
22914 ac_sed_cmds=cat
c906108c 22915 fi
bec39cab 22916fi # test -n "$CONFIG_FILES"
c906108c 22917
bec39cab
AC
22918_ACEOF
22919cat >>$CONFIG_STATUS <<\_ACEOF
22920for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22922 case $ac_file in
22923 - | *:- | *:-:* ) # input from stdin
22924 cat >$tmp/stdin
22925 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22927 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22929 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22930 esac
22931
bec39cab
AC
22932 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22933 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22934$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22935 X"$ac_file" : 'X\(//\)[^/]' \| \
22936 X"$ac_file" : 'X\(//\)$' \| \
22937 X"$ac_file" : 'X\(/\)' \| \
22938 . : '\(.\)' 2>/dev/null ||
22939echo X"$ac_file" |
22940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22942 /^X\(\/\/\)$/{ s//\1/; q; }
22943 /^X\(\/\).*/{ s//\1/; q; }
22944 s/.*/./; q'`
22945 { if $as_mkdir_p; then
22946 mkdir -p "$ac_dir"
c906108c 22947 else
bec39cab
AC
22948 as_dir="$ac_dir"
22949 as_dirs=
22950 while test ! -d "$as_dir"; do
22951 as_dirs="$as_dir $as_dirs"
22952 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22953$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22954 X"$as_dir" : 'X\(//\)[^/]' \| \
22955 X"$as_dir" : 'X\(//\)$' \| \
22956 X"$as_dir" : 'X\(/\)' \| \
22957 . : '\(.\)' 2>/dev/null ||
22958echo X"$as_dir" |
22959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22961 /^X\(\/\/\)$/{ s//\1/; q; }
22962 /^X\(\/\).*/{ s//\1/; q; }
22963 s/.*/./; q'`
22964 done
22965 test ! -n "$as_dirs" || mkdir $as_dirs
22966 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22967echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22968 { (exit 1); exit 1; }; }; }
c906108c 22969
bec39cab
AC
22970 ac_builddir=.
22971
22972if test "$ac_dir" != .; then
22973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22974 # A "../" for each directory in $ac_dir_suffix.
22975 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22976else
22977 ac_dir_suffix= ac_top_builddir=
22978fi
22979
22980case $srcdir in
22981 .) # No --srcdir option. We are building in place.
22982 ac_srcdir=.
22983 if test -z "$ac_top_builddir"; then
22984 ac_top_srcdir=.
22985 else
22986 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22987 fi ;;
22988 [\\/]* | ?:[\\/]* ) # Absolute path.
22989 ac_srcdir=$srcdir$ac_dir_suffix;
22990 ac_top_srcdir=$srcdir ;;
c906108c 22991 *) # Relative path.
bec39cab
AC
22992 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22993 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22994esac
22995
22996# Do not use `cd foo && pwd` to compute absolute paths, because
22997# the directories may not exist.
22998case `pwd` in
22999.) ac_abs_builddir="$ac_dir";;
23000*)
23001 case "$ac_dir" in
23002 .) ac_abs_builddir=`pwd`;;
23003 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23004 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23005 esac;;
23006esac
23007case $ac_abs_builddir in
23008.) ac_abs_top_builddir=${ac_top_builddir}.;;
23009*)
23010 case ${ac_top_builddir}. in
23011 .) ac_abs_top_builddir=$ac_abs_builddir;;
23012 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23013 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23014 esac;;
23015esac
23016case $ac_abs_builddir in
23017.) ac_abs_srcdir=$ac_srcdir;;
23018*)
23019 case $ac_srcdir in
23020 .) ac_abs_srcdir=$ac_abs_builddir;;
23021 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23022 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23023 esac;;
23024esac
23025case $ac_abs_builddir in
23026.) ac_abs_top_srcdir=$ac_top_srcdir;;
23027*)
23028 case $ac_top_srcdir in
23029 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23030 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23031 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23032 esac;;
23033esac
c906108c 23034
c906108c 23035
bec39cab
AC
23036 case $INSTALL in
23037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23038 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
23039 esac
23040
bec39cab
AC
23041 if test x"$ac_file" != x-; then
23042 { echo "$as_me:$LINENO: creating $ac_file" >&5
23043echo "$as_me: creating $ac_file" >&6;}
23044 rm -f "$ac_file"
23045 fi
23046 # Let's still pretend it is `configure' which instantiates (i.e., don't
23047 # use $as_me), people would be surprised to read:
23048 # /* config.h. Generated by config.status. */
23049 if test x"$ac_file" = x-; then
23050 configure_input=
23051 else
23052 configure_input="$ac_file. "
23053 fi
23054 configure_input=$configure_input"Generated from `echo $ac_file_in |
23055 sed 's,.*/,,'` by configure."
23056
23057 # First look for the input files in the build tree, otherwise in the
23058 # src tree.
23059 ac_file_inputs=`IFS=:
23060 for f in $ac_file_in; do
23061 case $f in
23062 -) echo $tmp/stdin ;;
23063 [\\/$]*)
23064 # Absolute (can't be DOS-style, as IFS=:)
23065 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23066echo "$as_me: error: cannot find input file: $f" >&2;}
23067 { (exit 1); exit 1; }; }
23068 echo "$f";;
23069 *) # Relative
23070 if test -f "$f"; then
23071 # Build tree
23072 echo "$f"
23073 elif test -f "$srcdir/$f"; then
23074 # Source tree
23075 echo "$srcdir/$f"
23076 else
23077 # /dev/null tree
23078 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23079echo "$as_me: error: cannot find input file: $f" >&2;}
23080 { (exit 1); exit 1; }; }
23081 fi;;
23082 esac
23083 done` || { (exit 1); exit 1; }
23084_ACEOF
23085cat >>$CONFIG_STATUS <<_ACEOF
23086 sed "$ac_vpsub
23087$extrasub
23088_ACEOF
23089cat >>$CONFIG_STATUS <<\_ACEOF
23090:t
23091/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23092s,@configure_input@,$configure_input,;t t
23093s,@srcdir@,$ac_srcdir,;t t
23094s,@abs_srcdir@,$ac_abs_srcdir,;t t
23095s,@top_srcdir@,$ac_top_srcdir,;t t
23096s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23097s,@builddir@,$ac_builddir,;t t
23098s,@abs_builddir@,$ac_abs_builddir,;t t
23099s,@top_builddir@,$ac_top_builddir,;t t
23100s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23101s,@INSTALL@,$ac_INSTALL,;t t
23102" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23103 rm -f $tmp/stdin
23104 if test x"$ac_file" != x-; then
23105 mv $tmp/out $ac_file
23106 else
23107 cat $tmp/out
23108 rm -f $tmp/out
23109 fi
23110
23111done
23112_ACEOF
23113cat >>$CONFIG_STATUS <<\_ACEOF
23114
23115#
23116# CONFIG_HEADER section.
23117#
c906108c
SS
23118
23119# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23120# NAME is the cpp macro being defined and VALUE is the value it is being given.
23121#
23122# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
23123ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23124ac_dB='[ ].*$,\1#\2'
23125ac_dC=' '
23126ac_dD=',;t'
23127# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23128ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23129ac_uB='$,\1#\2define\3'
c906108c 23130ac_uC=' '
bec39cab
AC
23131ac_uD=',;t'
23132
23133for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 23134 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
23135 case $ac_file in
23136 - | *:- | *:-:* ) # input from stdin
23137 cat >$tmp/stdin
23138 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23139 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23140 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23141 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23142 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
23143 esac
23144
bec39cab
AC
23145 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23146echo "$as_me: creating $ac_file" >&6;}
23147
23148 # First look for the input files in the build tree, otherwise in the
23149 # src tree.
23150 ac_file_inputs=`IFS=:
23151 for f in $ac_file_in; do
23152 case $f in
23153 -) echo $tmp/stdin ;;
23154 [\\/$]*)
23155 # Absolute (can't be DOS-style, as IFS=:)
23156 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23157echo "$as_me: error: cannot find input file: $f" >&2;}
23158 { (exit 1); exit 1; }; }
23159 # Do quote $f, to prevent DOS paths from being IFS'd.
23160 echo "$f";;
23161 *) # Relative
23162 if test -f "$f"; then
23163 # Build tree
23164 echo "$f"
23165 elif test -f "$srcdir/$f"; then
23166 # Source tree
23167 echo "$srcdir/$f"
23168 else
23169 # /dev/null tree
23170 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23171echo "$as_me: error: cannot find input file: $f" >&2;}
23172 { (exit 1); exit 1; }; }
23173 fi;;
23174 esac
23175 done` || { (exit 1); exit 1; }
23176 # Remove the trailing spaces.
23177 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23178
23179_ACEOF
23180
23181# Transform confdefs.h into two sed scripts, `conftest.defines' and
23182# `conftest.undefs', that substitutes the proper values into
23183# config.h.in to produce config.h. The first handles `#define'
23184# templates, and the second `#undef' templates.
23185# And first: Protect against being on the right side of a sed subst in
23186# config.status. Protect against being in an unquoted here document
23187# in config.status.
23188rm -f conftest.defines conftest.undefs
23189# Using a here document instead of a string reduces the quoting nightmare.
23190# Putting comments in sed scripts is not portable.
23191#
23192# `end' is used to avoid that the second main sed command (meant for
23193# 0-ary CPP macros) applies to n-ary macro definitions.
23194# See the Autoconf documentation for `clear'.
23195cat >confdef2sed.sed <<\_ACEOF
23196s/[\\&,]/\\&/g
23197s,[\\$`],\\&,g
23198t clear
23199: clear
23200s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23201t end
23202s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23203: end
23204_ACEOF
23205# If some macros were called several times there might be several times
23206# the same #defines, which is useless. Nevertheless, we may not want to
23207# sort them, since we want the *last* AC-DEFINE to be honored.
23208uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23209sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23210rm -f confdef2sed.sed
c906108c
SS
23211
23212# This sed command replaces #undef with comments. This is necessary, for
23213# example, in the case of _POSIX_SOURCE, which is predefined and required
23214# on some systems where configure will not decide to define it.
bec39cab
AC
23215cat >>conftest.undefs <<\_ACEOF
23216s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23217_ACEOF
23218
23219# Break up conftest.defines because some shells have a limit on the size
23220# of here documents, and old seds have small limits too (100 cmds).
23221echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23222echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23223echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23224echo ' :' >>$CONFIG_STATUS
23225rm -f conftest.tail
23226while grep . conftest.defines >/dev/null
23227do
23228 # Write a limited-size here document to $tmp/defines.sed.
23229 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23230 # Speed up: don't consider the non `#define' lines.
23231 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23232 # Work around the forget-to-reset-the-flag bug.
23233 echo 't clr' >>$CONFIG_STATUS
23234 echo ': clr' >>$CONFIG_STATUS
23235 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23236 echo 'CEOF
23237 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23238 rm -f $tmp/in
23239 mv $tmp/out $tmp/in
23240' >>$CONFIG_STATUS
23241 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23242 rm -f conftest.defines
23243 mv conftest.tail conftest.defines
23244done
23245rm -f conftest.defines
23246echo ' fi # grep' >>$CONFIG_STATUS
23247echo >>$CONFIG_STATUS
c906108c 23248
bec39cab
AC
23249# Break up conftest.undefs because some shells have a limit on the size
23250# of here documents, and old seds have small limits too (100 cmds).
23251echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 23252rm -f conftest.tail
bec39cab 23253while grep . conftest.undefs >/dev/null
c906108c 23254do
bec39cab
AC
23255 # Write a limited-size here document to $tmp/undefs.sed.
23256 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23257 # Speed up: don't consider the non `#undef'
23258 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23259 # Work around the forget-to-reset-the-flag bug.
23260 echo 't clr' >>$CONFIG_STATUS
23261 echo ': clr' >>$CONFIG_STATUS
23262 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 23263 echo 'CEOF
bec39cab
AC
23264 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23265 rm -f $tmp/in
23266 mv $tmp/out $tmp/in
23267' >>$CONFIG_STATUS
23268 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23269 rm -f conftest.undefs
23270 mv conftest.tail conftest.undefs
23271done
23272rm -f conftest.undefs
23273
23274cat >>$CONFIG_STATUS <<\_ACEOF
23275 # Let's still pretend it is `configure' which instantiates (i.e., don't
23276 # use $as_me), people would be surprised to read:
23277 # /* config.h. Generated by config.status. */
23278 if test x"$ac_file" = x-; then
23279 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 23280 else
bec39cab 23281 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 23282 fi
bec39cab
AC
23283 cat $tmp/in >>$tmp/config.h
23284 rm -f $tmp/in
23285 if test x"$ac_file" != x-; then
23286 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23287 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23288echo "$as_me: $ac_file is unchanged" >&6;}
23289 else
23290 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23291$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23292 X"$ac_file" : 'X\(//\)[^/]' \| \
23293 X"$ac_file" : 'X\(//\)$' \| \
23294 X"$ac_file" : 'X\(/\)' \| \
23295 . : '\(.\)' 2>/dev/null ||
23296echo X"$ac_file" |
23297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23299 /^X\(\/\/\)$/{ s//\1/; q; }
23300 /^X\(\/\).*/{ s//\1/; q; }
23301 s/.*/./; q'`
23302 { if $as_mkdir_p; then
23303 mkdir -p "$ac_dir"
23304 else
23305 as_dir="$ac_dir"
23306 as_dirs=
23307 while test ! -d "$as_dir"; do
23308 as_dirs="$as_dir $as_dirs"
23309 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23311 X"$as_dir" : 'X\(//\)[^/]' \| \
23312 X"$as_dir" : 'X\(//\)$' \| \
23313 X"$as_dir" : 'X\(/\)' \| \
23314 . : '\(.\)' 2>/dev/null ||
23315echo X"$as_dir" |
23316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23318 /^X\(\/\/\)$/{ s//\1/; q; }
23319 /^X\(\/\).*/{ s//\1/; q; }
23320 s/.*/./; q'`
23321 done
23322 test ! -n "$as_dirs" || mkdir $as_dirs
23323 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23324echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23325 { (exit 1); exit 1; }; }; }
c906108c 23326
bec39cab
AC
23327 rm -f $ac_file
23328 mv $tmp/config.h $ac_file
23329 fi
23330 else
23331 cat $tmp/config.h
23332 rm -f $tmp/config.h
23333 fi
23334done
23335_ACEOF
23336cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23337
bec39cab
AC
23338#
23339# CONFIG_LINKS section.
23340#
c906108c 23341
bec39cab
AC
23342for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23343 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23344 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 23345
bec39cab
AC
23346 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23347echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
23348
23349 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
23350 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23351echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23352 { (exit 1); exit 1; }; }
c906108c
SS
23353 fi
23354 rm -f $ac_dest
23355
23356 # Make relative symlinks.
bec39cab
AC
23357 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23358$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23359 X"$ac_dest" : 'X\(//\)[^/]' \| \
23360 X"$ac_dest" : 'X\(//\)$' \| \
23361 X"$ac_dest" : 'X\(/\)' \| \
23362 . : '\(.\)' 2>/dev/null ||
23363echo X"$ac_dest" |
23364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23366 /^X\(\/\/\)$/{ s//\1/; q; }
23367 /^X\(\/\).*/{ s//\1/; q; }
23368 s/.*/./; q'`
23369 { if $as_mkdir_p; then
23370 mkdir -p "$ac_dest_dir"
c906108c 23371 else
bec39cab
AC
23372 as_dir="$ac_dest_dir"
23373 as_dirs=
23374 while test ! -d "$as_dir"; do
23375 as_dirs="$as_dir $as_dirs"
23376 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23377$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23378 X"$as_dir" : 'X\(//\)[^/]' \| \
23379 X"$as_dir" : 'X\(//\)$' \| \
23380 X"$as_dir" : 'X\(/\)' \| \
23381 . : '\(.\)' 2>/dev/null ||
23382echo X"$as_dir" |
23383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23385 /^X\(\/\/\)$/{ s//\1/; q; }
23386 /^X\(\/\).*/{ s//\1/; q; }
23387 s/.*/./; q'`
23388 done
23389 test ! -n "$as_dirs" || mkdir $as_dirs
23390 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23391echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23392 { (exit 1); exit 1; }; }; }
23393
23394 ac_builddir=.
23395
23396if test "$ac_dest_dir" != .; then
23397 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23398 # A "../" for each directory in $ac_dir_suffix.
23399 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23400else
23401 ac_dir_suffix= ac_top_builddir=
23402fi
23403
23404case $srcdir in
23405 .) # No --srcdir option. We are building in place.
23406 ac_srcdir=.
23407 if test -z "$ac_top_builddir"; then
23408 ac_top_srcdir=.
23409 else
23410 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23411 fi ;;
23412 [\\/]* | ?:[\\/]* ) # Absolute path.
23413 ac_srcdir=$srcdir$ac_dir_suffix;
23414 ac_top_srcdir=$srcdir ;;
23415 *) # Relative path.
23416 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23417 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23418esac
23419
23420# Do not use `cd foo && pwd` to compute absolute paths, because
23421# the directories may not exist.
23422case `pwd` in
23423.) ac_abs_builddir="$ac_dest_dir";;
23424*)
23425 case "$ac_dest_dir" in
23426 .) ac_abs_builddir=`pwd`;;
23427 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23428 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23429 esac;;
23430esac
23431case $ac_abs_builddir in
23432.) ac_abs_top_builddir=${ac_top_builddir}.;;
23433*)
23434 case ${ac_top_builddir}. in
23435 .) ac_abs_top_builddir=$ac_abs_builddir;;
23436 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23437 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23438 esac;;
23439esac
23440case $ac_abs_builddir in
23441.) ac_abs_srcdir=$ac_srcdir;;
23442*)
23443 case $ac_srcdir in
23444 .) ac_abs_srcdir=$ac_abs_builddir;;
23445 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23446 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23447 esac;;
23448esac
23449case $ac_abs_builddir in
23450.) ac_abs_top_srcdir=$ac_top_srcdir;;
23451*)
23452 case $ac_top_srcdir in
23453 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23454 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23455 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23456 esac;;
23457esac
c906108c 23458
bec39cab
AC
23459
23460 case $srcdir in
23461 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23462 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23463 esac
23464
bec39cab
AC
23465 # Try a symlink, then a hard link, then a copy.
23466 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23467 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23468 cp -p $srcdir/$ac_source $ac_dest ||
23469 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23470echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23471 { (exit 1); exit 1; }; }
c906108c 23472done
bec39cab
AC
23473_ACEOF
23474cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23475
bec39cab
AC
23476#
23477# CONFIG_COMMANDS section.
23478#
23479for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23480 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23481 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23482 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23483$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23484 X"$ac_dest" : 'X\(//\)[^/]' \| \
23485 X"$ac_dest" : 'X\(//\)$' \| \
23486 X"$ac_dest" : 'X\(/\)' \| \
23487 . : '\(.\)' 2>/dev/null ||
23488echo X"$ac_dest" |
23489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23491 /^X\(\/\/\)$/{ s//\1/; q; }
23492 /^X\(\/\).*/{ s//\1/; q; }
23493 s/.*/./; q'`
23494 { if $as_mkdir_p; then
23495 mkdir -p "$ac_dir"
23496 else
23497 as_dir="$ac_dir"
23498 as_dirs=
23499 while test ! -d "$as_dir"; do
23500 as_dirs="$as_dir $as_dirs"
23501 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23503 X"$as_dir" : 'X\(//\)[^/]' \| \
23504 X"$as_dir" : 'X\(//\)$' \| \
23505 X"$as_dir" : 'X\(/\)' \| \
23506 . : '\(.\)' 2>/dev/null ||
23507echo X"$as_dir" |
23508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23510 /^X\(\/\/\)$/{ s//\1/; q; }
23511 /^X\(\/\).*/{ s//\1/; q; }
23512 s/.*/./; q'`
23513 done
23514 test ! -n "$as_dirs" || mkdir $as_dirs
23515 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23516echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23517 { (exit 1); exit 1; }; }; }
23518
23519 ac_builddir=.
23520
23521if test "$ac_dir" != .; then
23522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23523 # A "../" for each directory in $ac_dir_suffix.
23524 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23525else
23526 ac_dir_suffix= ac_top_builddir=
23527fi
23528
23529case $srcdir in
23530 .) # No --srcdir option. We are building in place.
23531 ac_srcdir=.
23532 if test -z "$ac_top_builddir"; then
23533 ac_top_srcdir=.
23534 else
23535 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23536 fi ;;
23537 [\\/]* | ?:[\\/]* ) # Absolute path.
23538 ac_srcdir=$srcdir$ac_dir_suffix;
23539 ac_top_srcdir=$srcdir ;;
23540 *) # Relative path.
23541 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23542 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23543esac
23544
23545# Do not use `cd foo && pwd` to compute absolute paths, because
23546# the directories may not exist.
23547case `pwd` in
23548.) ac_abs_builddir="$ac_dir";;
23549*)
23550 case "$ac_dir" in
23551 .) ac_abs_builddir=`pwd`;;
23552 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23553 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23554 esac;;
23555esac
23556case $ac_abs_builddir in
23557.) ac_abs_top_builddir=${ac_top_builddir}.;;
23558*)
23559 case ${ac_top_builddir}. in
23560 .) ac_abs_top_builddir=$ac_abs_builddir;;
23561 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23562 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23563 esac;;
23564esac
23565case $ac_abs_builddir in
23566.) ac_abs_srcdir=$ac_srcdir;;
23567*)
23568 case $ac_srcdir in
23569 .) ac_abs_srcdir=$ac_abs_builddir;;
23570 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23571 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23572 esac;;
23573esac
23574case $ac_abs_builddir in
23575.) ac_abs_top_srcdir=$ac_top_srcdir;;
23576*)
23577 case $ac_top_srcdir in
23578 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23579 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23580 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23581 esac;;
23582esac
c906108c 23583
c906108c 23584
bec39cab
AC
23585 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23586echo "$as_me: executing $ac_dest commands" >&6;}
23587 case $ac_dest in
23588 default )
c906108c 23589
2c0fc042 23590sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23591/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23592/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23593mv -f Makefile.tmp Makefile
23594
2acceee2 23595
c906108c
SS
23596case x$CONFIG_HEADERS in
23597xconfig.h:config.in)
23598echo > stamp-h ;;
23599esac
bec39cab
AC
23600 ;;
23601 esac
23602done
23603_ACEOF
c906108c 23604
bec39cab
AC
23605cat >>$CONFIG_STATUS <<\_ACEOF
23606
23607{ (exit 0); exit 0; }
23608_ACEOF
c906108c 23609chmod +x $CONFIG_STATUS
bec39cab
AC
23610ac_clean_files=$ac_clean_files_save
23611
23612
23613# configure is writing to config.log, and then calls config.status.
23614# config.status does its own redirection, appending to config.log.
23615# Unfortunately, on DOS this fails, as config.log is still kept open
23616# by configure, so config.status won't be able to write to it; its
23617# output is simply discarded. So we exec the FD to /dev/null,
23618# effectively closing config.log, so it can be properly (re)opened and
23619# appended to by config.status. When coming back to configure, we
23620# need to make the FD available again.
23621if test "$no_create" != yes; then
23622 ac_cs_success=:
23623 ac_config_status_args=
23624 test "$silent" = yes &&
23625 ac_config_status_args="$ac_config_status_args --quiet"
23626 exec 5>/dev/null
23627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23628 exec 5>>config.log
23629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23630 # would make configure fail if this is the last instruction.
23631 $ac_cs_success || { (exit 1); exit 1; }
23632fi
c906108c 23633
bec39cab
AC
23634#
23635# CONFIG_SUBDIRS section.
23636#
c906108c
SS
23637if test "$no_recursion" != yes; then
23638
23639 # Remove --cache-file and --srcdir arguments so they do not pile up.
23640 ac_sub_configure_args=
23641 ac_prev=
23642 for ac_arg in $ac_configure_args; do
23643 if test -n "$ac_prev"; then
23644 ac_prev=
23645 continue
23646 fi
bec39cab 23647 case $ac_arg in
c906108c
SS
23648 -cache-file | --cache-file | --cache-fil | --cache-fi \
23649 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23650 ac_prev=cache_file ;;
23651 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23652 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23653 | --c=*)
23654 ;;
23655 --config-cache | -C)
c906108c
SS
23656 ;;
23657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23658 ac_prev=srcdir ;;
23659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23660 ;;
bec39cab
AC
23661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23662 ac_prev=prefix ;;
23663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23664 ;;
c906108c
SS
23665 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23666 esac
23667 done
23668
bec39cab
AC
23669 # Always prepend --prefix to ensure using the same prefix
23670 # in subdir configurations.
23671 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23672
23673 ac_popdir=`pwd`
23674 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23675
23676 # Do not complain, so a configure script can configure whichever
23677 # parts of a large source tree are present.
bec39cab 23678 test -d $srcdir/$ac_dir || continue
c906108c 23679
bec39cab
AC
23680 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23681echo "$as_me: configuring in $ac_dir" >&6;}
23682 { if $as_mkdir_p; then
23683 mkdir -p "$ac_dir"
23684 else
23685 as_dir="$ac_dir"
23686 as_dirs=
23687 while test ! -d "$as_dir"; do
23688 as_dirs="$as_dir $as_dirs"
23689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23690$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23691 X"$as_dir" : 'X\(//\)[^/]' \| \
23692 X"$as_dir" : 'X\(//\)$' \| \
23693 X"$as_dir" : 'X\(/\)' \| \
23694 . : '\(.\)' 2>/dev/null ||
23695echo X"$as_dir" |
23696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23698 /^X\(\/\/\)$/{ s//\1/; q; }
23699 /^X\(\/\).*/{ s//\1/; q; }
23700 s/.*/./; q'`
23701 done
23702 test ! -n "$as_dirs" || mkdir $as_dirs
23703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23704echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23705 { (exit 1); exit 1; }; }; }
c906108c 23706
bec39cab
AC
23707 ac_builddir=.
23708
23709if test "$ac_dir" != .; then
23710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23711 # A "../" for each directory in $ac_dir_suffix.
23712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23713else
23714 ac_dir_suffix= ac_top_builddir=
23715fi
23716
23717case $srcdir in
23718 .) # No --srcdir option. We are building in place.
23719 ac_srcdir=.
23720 if test -z "$ac_top_builddir"; then
23721 ac_top_srcdir=.
23722 else
23723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23724 fi ;;
23725 [\\/]* | ?:[\\/]* ) # Absolute path.
23726 ac_srcdir=$srcdir$ac_dir_suffix;
23727 ac_top_srcdir=$srcdir ;;
23728 *) # Relative path.
23729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23731esac
c906108c 23732
bec39cab
AC
23733# Do not use `cd foo && pwd` to compute absolute paths, because
23734# the directories may not exist.
23735case `pwd` in
23736.) ac_abs_builddir="$ac_dir";;
23737*)
23738 case "$ac_dir" in
23739 .) ac_abs_builddir=`pwd`;;
23740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23741 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23742 esac;;
23743esac
23744case $ac_abs_builddir in
23745.) ac_abs_top_builddir=${ac_top_builddir}.;;
23746*)
23747 case ${ac_top_builddir}. in
23748 .) ac_abs_top_builddir=$ac_abs_builddir;;
23749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23751 esac;;
23752esac
23753case $ac_abs_builddir in
23754.) ac_abs_srcdir=$ac_srcdir;;
23755*)
23756 case $ac_srcdir in
23757 .) ac_abs_srcdir=$ac_abs_builddir;;
23758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23760 esac;;
23761esac
23762case $ac_abs_builddir in
23763.) ac_abs_top_srcdir=$ac_top_srcdir;;
23764*)
23765 case $ac_top_srcdir in
23766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23769 esac;;
23770esac
c906108c 23771
c906108c 23772
bec39cab 23773 cd $ac_dir
c906108c
SS
23774
23775 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23776 if test -f $ac_srcdir/configure.gnu; then
23777 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23778 elif test -f $ac_srcdir/configure; then
23779 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23780 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23781 ac_sub_configure=$ac_configure
23782 else
bec39cab
AC
23783 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23784echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23785 ac_sub_configure=
23786 fi
23787
23788 # The recursion is here.
23789 if test -n "$ac_sub_configure"; then
c906108c 23790 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23791 case $cache_file in
23792 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23793 *) # Relative path.
bec39cab 23794 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23795 esac
c906108c 23796
bec39cab
AC
23797 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23798echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23799 # The eval makes quoting arguments work.
bec39cab
AC
23800 eval $ac_sub_configure $ac_sub_configure_args \
23801 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23802 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23803echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23804 { (exit 1); exit 1; }; }
c906108c
SS
23805 fi
23806
23807 cd $ac_popdir
23808 done
23809fi
23810
23811
23812exit 0
This page took 1.779432 seconds and 4 git commands to generate.