2005-01-28 Andrew Cagney <cagney@gnu.org>
[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"
bec39cab
AC
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 RANLIB ac_ct_RANLIB SET_MAKE 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'
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
bec39cab
AC
2299cat >>confdefs.h <<\_ACEOF
2300#define _GNU_SOURCE 1
2301_ACEOF
c906108c
SS
2302
2303
8bb2c122 2304
bec39cab
AC
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312# On Suns, sometimes $CPP names a directory.
2313if test -n "$CPP" && test -d "$CPP"; then
2314 CPP=
8bb2c122 2315fi
bec39cab
AC
2316if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320 # Double quotes because CPP needs to be expanded
2321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2322 do
2323 ac_preproc_ok=false
2324for ac_c_preproc_warn_flag in '' yes
2325do
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h. */
2338#ifdef __STDC__
2339# include <limits.h>
2340#else
2341# include <assert.h>
2342#endif
2343 Syntax error
2344_ACEOF
2345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_c_preproc_warn_flag
2355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 else
2357 ac_cpp_err=
2358 fi
8bb2c122 2359else
bec39cab 2360 ac_cpp_err=yes
8bb2c122 2361fi
bec39cab
AC
2362if test -z "$ac_cpp_err"; then
2363 :
8bb2c122 2364else
bec39cab
AC
2365 echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 # Broken: fails on valid input.
2369continue
2370fi
2371rm -f conftest.err conftest.$ac_ext
2372
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381#include <ac_nonexistent.h>
2382_ACEOF
2383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 else
2395 ac_cpp_err=
2396 fi
8bb2c122 2397else
bec39cab 2398 ac_cpp_err=yes
8bb2c122 2399fi
bec39cab
AC
2400if test -z "$ac_cpp_err"; then
2401 # Broken: success on invalid input.
2402continue
8bb2c122 2403else
bec39cab
AC
2404 echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2406
bec39cab
AC
2407 # Passes both tests.
2408ac_preproc_ok=:
2409break
8bb2c122 2410fi
bec39cab 2411rm -f conftest.err conftest.$ac_ext
8bb2c122 2412
bec39cab
AC
2413done
2414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415rm -f conftest.err conftest.$ac_ext
2416if $ac_preproc_ok; then
2417 break
2418fi
8bb2c122 2419
bec39cab
AC
2420 done
2421 ac_cv_prog_CPP=$CPP
ddc9cd0f 2422
c906108c 2423fi
bec39cab
AC
2424 CPP=$ac_cv_prog_CPP
2425else
2426 ac_cv_prog_CPP=$CPP
c906108c 2427fi
bec39cab
AC
2428echo "$as_me:$LINENO: result: $CPP" >&5
2429echo "${ECHO_T}$CPP" >&6
2430ac_preproc_ok=false
2431for ac_c_preproc_warn_flag in '' yes
2432do
2433 # Use a header file that comes with gcc, so configuring glibc
2434 # with a fresh cross-compiler works.
2435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436 # <limits.h> exists even on freestanding compilers.
2437 # On the NeXT, cc -E runs the code through the compiler's parser,
2438 # not just through cpp. "Syntax error" is here to catch this case.
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445#ifdef __STDC__
2446# include <limits.h>
2447#else
2448# include <assert.h>
2449#endif
2450 Syntax error
2451_ACEOF
2452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463 else
2464 ac_cpp_err=
2465 fi
c906108c 2466else
bec39cab 2467 ac_cpp_err=yes
c906108c 2468fi
bec39cab
AC
2469if test -z "$ac_cpp_err"; then
2470 :
c906108c 2471else
bec39cab
AC
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 # Broken: fails on valid input.
2476continue
2477fi
2478rm -f conftest.err conftest.$ac_ext
2479
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488#include <ac_nonexistent.h>
2489_ACEOF
2490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev/null; then
2498 if test -s conftest.err; then
2499 ac_cpp_err=$ac_c_preproc_warn_flag
2500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501 else
2502 ac_cpp_err=
2503 fi
c906108c 2504else
bec39cab 2505 ac_cpp_err=yes
c906108c 2506fi
bec39cab
AC
2507if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2509continue
c906108c 2510else
bec39cab
AC
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2513
bec39cab
AC
2514 # Passes both tests.
2515ac_preproc_ok=:
2516break
c906108c 2517fi
bec39cab 2518rm -f conftest.err conftest.$ac_ext
c906108c 2519
bec39cab
AC
2520done
2521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522rm -f conftest.err conftest.$ac_ext
2523if $ac_preproc_ok; then
c906108c
SS
2524 :
2525else
bec39cab
AC
2526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
c906108c 2531fi
c906108c 2532
bec39cab
AC
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540echo "$as_me:$LINENO: checking for egrep" >&5
2541echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542if test "${ac_cv_prog_egrep+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2546 then ac_cv_prog_egrep='grep -E'
2547 else ac_cv_prog_egrep='egrep'
2548 fi
c906108c 2549fi
bec39cab
AC
2550echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552 EGREP=$ac_cv_prog_egrep
c906108c 2553
bec39cab
AC
2554
2555
2556echo "$as_me:$LINENO: checking for AIX" >&5
2557echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2558cat >conftest.$ac_ext <<_ACEOF
2559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
2564#ifdef _AIX
2565 yes
2566#endif
2567
2568_ACEOF
c906108c 2569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2570 $EGREP "yes" >/dev/null 2>&1; then
2571 echo "$as_me:$LINENO: result: yes" >&5
2572echo "${ECHO_T}yes" >&6
2573cat >>confdefs.h <<\_ACEOF
2574#define _ALL_SOURCE 1
2575_ACEOF
2576
c906108c 2577else
bec39cab
AC
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
c906108c
SS
2580fi
2581rm -f conftest*
2582
c906108c 2583
bec39cab
AC
2584echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2586if test "${ac_cv_search_strerror+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2588else
bec39cab
AC
2589 ac_func_search_save_LIBS=$LIBS
2590ac_cv_search_strerror=no
2591cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
c906108c 2597
bec39cab
AC
2598/* Override any gcc2 internal prototype to avoid an error. */
2599#ifdef __cplusplus
2600extern "C"
2601#endif
2602/* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604char strerror ();
2605int
2606main ()
2607{
2608strerror ();
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext conftest$ac_exeext
2614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest$ac_exeext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_search_strerror="none required"
2636else
2637 echo "$as_me: failed program was:" >&5
2638sed 's/^/| /' conftest.$ac_ext >&5
2639
2640fi
2641rm -f conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2643if test "$ac_cv_search_strerror" = no; then
2644 for ac_lib in cposix; do
2645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2646 cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h. */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h. */
2652
2653/* Override any gcc2 internal prototype to avoid an error. */
2654#ifdef __cplusplus
2655extern "C"
2656#endif
2657/* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659char strerror ();
2660int
2661main ()
2662{
2663strerror ();
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_strerror="-l$ac_lib"
2691break
c906108c 2692else
bec39cab
AC
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2695
2696fi
bec39cab
AC
2697rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 done
c906108c 2700fi
bec39cab 2701LIBS=$ac_func_search_save_LIBS
c906108c 2702fi
bec39cab
AC
2703echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2707
c906108c
SS
2708fi
2709
c906108c 2710
c906108c 2711
bec39cab
AC
2712
2713echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2715if test "${am_cv_prog_cc_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2717else
bec39cab
AC
2718 am_cv_prog_cc_stdc=no
2719ac_save_CC="$CC"
2720# Don't try gcc -ansi; that turns off useful extensions and
2721# breaks some systems' header files.
2722# AIX -qlanglvl=ansi
2723# Ultrix and OSF/1 -std1
2724# HP-UX 10.20 and later -Ae
2725# HP-UX older versions -Aa -D_HPUX_SOURCE
2726# SVR4 -Xc -D__EXTENSIONS__
2727for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728do
2729 CC="$ac_save_CC $ac_arg"
2730 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
2736#include <stdarg.h>
2737#include <stdio.h>
2738#include <sys/types.h>
2739#include <sys/stat.h>
2740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741struct buf { int x; };
2742FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743static char *e (p, i)
2744 char **p;
2745 int i;
2746{
2747 return p[i];
2748}
2749static char *f (char * (*g) (char **, int), char **p, ...)
2750{
2751 char *s;
2752 va_list v;
2753 va_start (v,p);
2754 s = g (p, va_arg (v,int));
2755 va_end (v);
2756 return s;
2757}
2758int test (int i, double x);
2759struct s1 {int (*f) (int a);};
2760struct s2 {int (*f) (double a);};
2761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762int argc;
2763char **argv;
c906108c 2764
bec39cab
AC
2765int
2766main ()
2767{
c906108c 2768
bec39cab 2769return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2770
bec39cab
AC
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext
2776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2798else
bec39cab
AC
2799 echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2801
2802fi
bec39cab
AC
2803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804done
2805CC="$ac_save_CC"
c906108c
SS
2806
2807fi
2808
bec39cab
AC
2809if test -z "$am_cv_prog_cc_stdc"; then
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811echo "${ECHO_T}none needed" >&6
c906108c 2812else
bec39cab
AC
2813 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2815fi
bec39cab
AC
2816case "x$am_cv_prog_cc_stdc" in
2817 x|xno) ;;
2818 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2819esac
c906108c 2820
c906108c 2821
bec39cab
AC
2822ac_aux_dir=
2823for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2824 if test -f $ac_dir/install-sh; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/install-sh -c"
2827 break
2828 elif test -f $ac_dir/install.sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install.sh -c"
2831 break
2832 elif test -f $ac_dir/shtool; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/shtool install -c"
2835 break
2836 fi
2837done
2838if test -z "$ac_aux_dir"; then
2839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841 { (exit 1); exit 1; }; }
c906108c 2842fi
bec39cab
AC
2843ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2844ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2845ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2846
bec39cab
AC
2847# Make sure we can run config.sub.
2848$ac_config_sub sun4 >/dev/null 2>&1 ||
2849 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851 { (exit 1); exit 1; }; }
2852
2853echo "$as_me:$LINENO: checking build system type" >&5
2854echo $ECHO_N "checking build system type... $ECHO_C" >&6
2855if test "${ac_cv_build+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 ac_cv_build_alias=$build_alias
2859test -z "$ac_cv_build_alias" &&
2860 ac_cv_build_alias=`$ac_config_guess`
2861test -z "$ac_cv_build_alias" &&
2862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864 { (exit 1); exit 1; }; }
2865ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2866 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2868 { (exit 1); exit 1; }; }
2869
2870fi
2871echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872echo "${ECHO_T}$ac_cv_build" >&6
2873build=$ac_cv_build
2874build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2877
2878
2879echo "$as_me:$LINENO: checking host system type" >&5
2880echo $ECHO_N "checking host system type... $ECHO_C" >&6
2881if test "${ac_cv_host+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884 ac_cv_host_alias=$host_alias
2885test -z "$ac_cv_host_alias" &&
2886 ac_cv_host_alias=$ac_cv_build_alias
2887ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2890 { (exit 1); exit 1; }; }
2891
2892fi
2893echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894echo "${ECHO_T}$ac_cv_host" >&6
2895host=$ac_cv_host
2896host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2899
2900
2901echo "$as_me:$LINENO: checking target system type" >&5
2902echo $ECHO_N "checking target system type... $ECHO_C" >&6
2903if test "${ac_cv_target+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905else
2906 ac_cv_target_alias=$target_alias
2907test "x$ac_cv_target_alias" = "x" &&
2908 ac_cv_target_alias=$ac_cv_host_alias
2909ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2912 { (exit 1); exit 1; }; }
2913
2914fi
2915echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916echo "${ECHO_T}$ac_cv_target" >&6
2917target=$ac_cv_target
2918target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2921
c906108c 2922
bec39cab
AC
2923# The aliases save the names the user supplied, while $host etc.
2924# will get canonicalized.
2925test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2927 NONENONEs,x,x, &&
2928 program_prefix=${target_alias}-
c906108c 2929
bec39cab
AC
2930# FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
2931# doesn't support cross-compilation, but the one from Autoconf 2.5x
2932# does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
2933# deal with the lossage. Note that CY_GNU_GETTEXT currently calls
2934# AC_PROG_RANLIB. This can be removed when we switch to Autoconf
2935# 2.5x.
2936if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2939echo "$as_me:$LINENO: checking for $ac_word" >&5
2940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941if test "${ac_cv_prog_RANLIB+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2943else
bec39cab
AC
2944 if test -n "$RANLIB"; then
2945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 2946else
bec39cab
AC
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958done
2959done
2960
c906108c 2961fi
c906108c 2962fi
bec39cab
AC
2963RANLIB=$ac_cv_prog_RANLIB
2964if test -n "$RANLIB"; then
2965 echo "$as_me:$LINENO: result: $RANLIB" >&5
2966echo "${ECHO_T}$RANLIB" >&6
2967else
2968 echo "$as_me:$LINENO: result: no" >&5
2969echo "${ECHO_T}no" >&6
c906108c
SS
2970fi
2971
bec39cab
AC
2972fi
2973if test -z "$ac_cv_prog_RANLIB"; then
2974 ac_ct_RANLIB=$RANLIB
2975 # Extract the first word of "ranlib", so it can be a program name with args.
2976set dummy ranlib; ac_word=$2
2977echo "$as_me:$LINENO: checking for $ac_word" >&5
2978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2981else
bec39cab
AC
2982 if test -n "$ac_ct_RANLIB"; then
2983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_ac_ct_RANLIB="ranlib"
2993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996done
2997done
c906108c 2998
bec39cab
AC
2999 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3000fi
3001fi
3002ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3003if test -n "$ac_ct_RANLIB"; then
3004 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3005echo "${ECHO_T}$ac_ct_RANLIB" >&6
c906108c 3006else
bec39cab
AC
3007 echo "$as_me:$LINENO: result: no" >&5
3008echo "${ECHO_T}no" >&6
c906108c 3009fi
c906108c 3010
bec39cab
AC
3011 RANLIB=$ac_ct_RANLIB
3012else
3013 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
3014fi
3015
c906108c 3016
c906108c 3017
bec39cab
AC
3018CONFIG_OBS=
3019CONFIG_DEPS=
3020CONFIG_SRCS=
3021ENABLE_CFLAGS=
c906108c 3022
bec39cab
AC
3023CONFIG_ALL=
3024CONFIG_CLEAN=
3025CONFIG_INSTALL=
3026CONFIG_UNINSTALL=
3027
3028
3029echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3030echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3031set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3032if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035 cat >conftest.make <<\_ACEOF
3036all:
3037 @echo 'ac_maketemp="$(MAKE)"'
3038_ACEOF
3039# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3040eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3041if test -n "$ac_maketemp"; then
3042 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 3043else
bec39cab 3044 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 3045fi
bec39cab
AC
3046rm -f conftest.make
3047fi
3048if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3049 echo "$as_me:$LINENO: result: yes" >&5
3050echo "${ECHO_T}yes" >&6
3051 SET_MAKE=
3052else
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
3055 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
3056fi
3057
bec39cab
AC
3058if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3060set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3061echo "$as_me:$LINENO: checking for $ac_word" >&5
3062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063if test "${ac_cv_prog_RANLIB+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065else
3066 if test -n "$RANLIB"; then
3067 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081done
c906108c 3082
bec39cab
AC
3083fi
3084fi
3085RANLIB=$ac_cv_prog_RANLIB
3086if test -n "$RANLIB"; then
3087 echo "$as_me:$LINENO: result: $RANLIB" >&5
3088echo "${ECHO_T}$RANLIB" >&6
c906108c 3089else
bec39cab
AC
3090 echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
c906108c
SS
3092fi
3093
bec39cab
AC
3094fi
3095if test -z "$ac_cv_prog_RANLIB"; then
3096 ac_ct_RANLIB=$RANLIB
3097 # Extract the first word of "ranlib", so it can be a program name with args.
3098set dummy ranlib; ac_word=$2
3099echo "$as_me:$LINENO: checking for $ac_word" >&5
3100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103else
3104 if test -n "$ac_ct_RANLIB"; then
3105 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3106else
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_RANLIB="ranlib"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118done
c906108c 3119done
bec39cab
AC
3120
3121 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3122fi
3123fi
3124ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3125if test -n "$ac_ct_RANLIB"; then
3126 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3127echo "${ECHO_T}$ac_ct_RANLIB" >&6
3128else
3129 echo "$as_me:$LINENO: result: no" >&5
3130echo "${ECHO_T}no" >&6
c906108c
SS
3131fi
3132
bec39cab 3133 RANLIB=$ac_ct_RANLIB
c906108c 3134else
bec39cab
AC
3135 RANLIB="$ac_cv_prog_RANLIB"
3136fi
3137
3138echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3139echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3140if test "${ac_cv_header_stdc+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3142else
bec39cab
AC
3143 cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h. */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h. */
3149#include <stdlib.h>
3150#include <stdarg.h>
3151#include <string.h>
3152#include <float.h>
3153
3154int
c906108c
SS
3155main ()
3156{
bec39cab
AC
3157
3158 ;
3159 return 0;
c906108c 3160}
bec39cab
AC
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_header_stdc=yes
c906108c 3185else
bec39cab
AC
3186 echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3188
bec39cab 3189ac_cv_header_stdc=no
c906108c 3190fi
bec39cab 3191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3192
bec39cab
AC
3193if test $ac_cv_header_stdc = yes; then
3194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3195 cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h. */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h. */
3201#include <string.h>
c906108c 3202
bec39cab
AC
3203_ACEOF
3204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3205 $EGREP "memchr" >/dev/null 2>&1; then
3206 :
c906108c 3207else
bec39cab 3208 ac_cv_header_stdc=no
c906108c 3209fi
bec39cab 3210rm -f conftest*
c906108c 3211
bec39cab 3212fi
c906108c 3213
bec39cab
AC
3214if test $ac_cv_header_stdc = yes; then
3215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3216 cat >conftest.$ac_ext <<_ACEOF
3217/* confdefs.h. */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h. */
3222#include <stdlib.h>
c906108c 3223
bec39cab
AC
3224_ACEOF
3225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226 $EGREP "free" >/dev/null 2>&1; then
3227 :
c906108c 3228else
bec39cab 3229 ac_cv_header_stdc=no
c906108c
SS
3230fi
3231rm -f conftest*
c906108c 3232
c906108c 3233fi
c906108c 3234
bec39cab
AC
3235if test $ac_cv_header_stdc = yes; then
3236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3237 if test "$cross_compiling" = yes; then
bec39cab 3238 :
c906108c 3239else
bec39cab
AC
3240 cat >conftest.$ac_ext <<_ACEOF
3241/* confdefs.h. */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h. */
3246#include <ctype.h>
3247#if ((' ' & 0x0FF) == 0x020)
3248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3250#else
3251# define ISLOWER(c) \
3252 (('a' <= (c) && (c) <= 'i') \
3253 || ('j' <= (c) && (c) <= 'r') \
3254 || ('s' <= (c) && (c) <= 'z'))
3255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3256#endif
c906108c 3257
bec39cab
AC
3258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3259int
3260main ()
3261{
3262 int i;
3263 for (i = 0; i < 256; i++)
3264 if (XOR (islower (i), ISLOWER (i))
3265 || toupper (i) != TOUPPER (i))
3266 exit(2);
3267 exit (0);
3268}
3269_ACEOF
3270rm -f conftest$ac_exeext
3271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3272 (eval $ac_link) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 (eval $ac_try) 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; }; then
3281 :
3282else
3283 echo "$as_me: program exited with status $ac_status" >&5
3284echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3286
bec39cab
AC
3287( exit $ac_status )
3288ac_cv_header_stdc=no
3289fi
3290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3291fi
3292fi
3293fi
3294echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3295echo "${ECHO_T}$ac_cv_header_stdc" >&6
3296if test $ac_cv_header_stdc = yes; then
c906108c 3297
bec39cab
AC
3298cat >>confdefs.h <<\_ACEOF
3299#define STDC_HEADERS 1
3300_ACEOF
c906108c 3301
bec39cab 3302fi
c906108c 3303
bec39cab
AC
3304echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3305echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3306if test "${ac_cv_c_const+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309 cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
c906108c 3315
bec39cab
AC
3316int
3317main ()
3318{
3319/* FIXME: Include the comments suggested by Paul. */
3320#ifndef __cplusplus
3321 /* Ultrix mips cc rejects this. */
3322 typedef int charset[2];
3323 const charset x;
3324 /* SunOS 4.1.1 cc rejects this. */
3325 char const *const *ccp;
3326 char **p;
3327 /* NEC SVR4.0.2 mips cc rejects this. */
3328 struct point {int x, y;};
3329 static struct point const zero = {0,0};
3330 /* AIX XL C 1.02.0.0 rejects this.
3331 It does not let you subtract one const X* pointer from another in
3332 an arm of an if-expression whose if-part is not a constant
3333 expression */
3334 const char *g = "string";
3335 ccp = &g + (g ? g-g : 0);
3336 /* HPUX 7.0 cc rejects these. */
3337 ++ccp;
3338 p = (char**) ccp;
3339 ccp = (char const *const *) p;
3340 { /* SCO 3.2v4 cc rejects this. */
3341 char *t;
3342 char const *s = 0 ? (char *) 0 : (char const *) 0;
3343
3344 *t++ = 0;
3345 }
3346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3347 int x[] = {25, 17};
3348 const int *foo = &x[0];
3349 ++foo;
3350 }
3351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3352 typedef const int *iptr;
3353 iptr p = 0;
3354 ++p;
3355 }
3356 { /* AIX XL C 1.02.0.0 rejects this saying
3357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3358 struct s { int j; const int *ap[3]; };
3359 struct s *b; b->j = 5;
3360 }
3361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3362 const int foo = 10;
3363 }
3364#endif
c906108c 3365
bec39cab
AC
3366 ;
3367 return 0;
3368}
3369_ACEOF
3370rm -f conftest.$ac_objext
3371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_c_const=yes
c906108c 3393else
bec39cab
AC
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3396
bec39cab
AC
3397ac_cv_c_const=no
3398fi
3399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3400fi
bec39cab
AC
3401echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3402echo "${ECHO_T}$ac_cv_c_const" >&6
3403if test $ac_cv_c_const = no; then
c906108c 3404
bec39cab
AC
3405cat >>confdefs.h <<\_ACEOF
3406#define const
3407_ACEOF
c906108c
SS
3408
3409fi
3410
bec39cab
AC
3411echo "$as_me:$LINENO: checking for inline" >&5
3412echo $ECHO_N "checking for inline... $ECHO_C" >&6
3413if test "${ac_cv_c_inline+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3415else
bec39cab
AC
3416 ac_cv_c_inline=no
3417for ac_kw in inline __inline__ __inline; do
3418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h. */
3424#ifndef __cplusplus
3425typedef int foo_t;
3426static $ac_kw foo_t static_foo () {return 0; }
3427$ac_kw foo_t foo () {return 0; }
c906108c
SS
3428#endif
3429
bec39cab
AC
3430_ACEOF
3431rm -f conftest.$ac_objext
3432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag"
3441 || test ! -s conftest.err'
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); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 ac_cv_c_inline=$ac_kw; break
c906108c 3454else
bec39cab
AC
3455 echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3457
c906108c 3458fi
bec39cab 3459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3460done
3461
bec39cab
AC
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3464echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3465
c906108c 3466
bec39cab
AC
3467case $ac_cv_c_inline in
3468 inline | yes) ;;
3469 *)
3470 case $ac_cv_c_inline in
3471 no) ac_val=;;
3472 *) ac_val=$ac_cv_c_inline;;
3473 esac
3474 cat >>confdefs.h <<_ACEOF
3475#ifndef __cplusplus
3476#define inline $ac_val
c906108c 3477#endif
bec39cab
AC
3478_ACEOF
3479 ;;
3480esac
c906108c 3481
bec39cab 3482# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3483
c906108c 3484
c906108c 3485
c906108c 3486
c906108c 3487
c906108c 3488
c906108c 3489
c906108c 3490
c906108c 3491
bec39cab
AC
3492for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3493 inttypes.h stdint.h unistd.h
3494do
3495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496echo "$as_me:$LINENO: checking for $ac_header" >&5
3497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500else
3501 cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h. */
3507$ac_includes_default
3508
3509#include <$ac_header>
3510_ACEOF
3511rm -f conftest.$ac_objext
3512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 eval "$as_ac_Header=yes"
3534else
3535 echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538eval "$as_ac_Header=no"
3539fi
3540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541fi
3542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3544if test `eval echo '${'$as_ac_Header'}'` = yes; then
3545 cat >>confdefs.h <<_ACEOF
3546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3547_ACEOF
c906108c 3548
c906108c
SS
3549fi
3550
bec39cab 3551done
c906108c 3552
c906108c 3553
bec39cab
AC
3554echo "$as_me:$LINENO: checking for off_t" >&5
3555echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3556if test "${ac_cv_type_off_t+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3558else
bec39cab
AC
3559 cat >conftest.$ac_ext <<_ACEOF
3560/* confdefs.h. */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h. */
3565$ac_includes_default
3566int
3567main ()
3568{
3569if ((off_t *) 0)
3570 return 0;
3571if (sizeof (off_t))
3572 return 0;
3573 ;
3574 return 0;
3575}
3576_ACEOF
3577rm -f conftest.$ac_objext
3578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_type_off_t=yes
3600else
3601 echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604ac_cv_type_off_t=no
c906108c 3605fi
bec39cab 3606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3607fi
bec39cab
AC
3608echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3609echo "${ECHO_T}$ac_cv_type_off_t" >&6
3610if test $ac_cv_type_off_t = yes; then
3611 :
c906108c 3612else
bec39cab
AC
3613
3614cat >>confdefs.h <<_ACEOF
3615#define off_t long
3616_ACEOF
3617
3618fi
3619
3620echo "$as_me:$LINENO: checking for size_t" >&5
3621echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3622if test "${ac_cv_type_size_t+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625 cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3631$ac_includes_default
3632int
3633main ()
3634{
3635if ((size_t *) 0)
3636 return 0;
3637if (sizeof (size_t))
3638 return 0;
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_type_size_t=yes
c906108c 3666else
bec39cab
AC
3667 echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670ac_cv_type_size_t=no
c906108c 3671fi
bec39cab 3672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3673fi
bec39cab
AC
3674echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3675echo "${ECHO_T}$ac_cv_type_size_t" >&6
3676if test $ac_cv_type_size_t = yes; then
3677 :
3678else
c906108c 3679
bec39cab
AC
3680cat >>confdefs.h <<_ACEOF
3681#define size_t unsigned
3682_ACEOF
c906108c 3683
c906108c 3684fi
bec39cab
AC
3685
3686# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3687# for constant arguments. Useless!
3688echo "$as_me:$LINENO: checking for working alloca.h" >&5
3689echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3690if test "${ac_cv_working_alloca_h+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692else
3693 cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h. */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h. */
3699#include <alloca.h>
3700int
3701main ()
3702{
3703char *p = (char *) alloca (2 * sizeof (int));
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708rm -f conftest.$ac_objext conftest$ac_exeext
3709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710 (eval $ac_link) 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_c_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_working_alloca_h=yes
3731else
3732 echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735ac_cv_working_alloca_h=no
3736fi
3737rm -f conftest.err conftest.$ac_objext \
3738 conftest$ac_exeext conftest.$ac_ext
3739fi
3740echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3741echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3742if test $ac_cv_working_alloca_h = yes; then
3743
3744cat >>confdefs.h <<\_ACEOF
3745#define HAVE_ALLOCA_H 1
3746_ACEOF
c906108c
SS
3747
3748fi
bec39cab
AC
3749
3750echo "$as_me:$LINENO: checking for alloca" >&5
3751echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3752if test "${ac_cv_func_alloca_works+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3754else
bec39cab
AC
3755 cat >conftest.$ac_ext <<_ACEOF
3756/* confdefs.h. */
3757_ACEOF
3758cat confdefs.h >>conftest.$ac_ext
3759cat >>conftest.$ac_ext <<_ACEOF
3760/* end confdefs.h. */
3761#ifdef __GNUC__
3762# define alloca __builtin_alloca
3763#else
3764# ifdef _MSC_VER
3765# include <malloc.h>
3766# define alloca _alloca
3767# else
3768# if HAVE_ALLOCA_H
3769# include <alloca.h>
3770# else
3771# ifdef _AIX
3772 #pragma alloca
3773# else
3774# ifndef alloca /* predefined by HP cc +Olibcalls */
3775char *alloca ();
3776# endif
3777# endif
3778# endif
3779# endif
3780#endif
c906108c 3781
bec39cab
AC
3782int
3783main ()
3784{
3785char *p = (char *) alloca (1);
3786 ;
3787 return 0;
3788}
3789_ACEOF
3790rm -f conftest.$ac_objext conftest$ac_exeext
3791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest$ac_exeext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_cv_func_alloca_works=yes
c906108c 3813else
bec39cab
AC
3814 echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817ac_cv_func_alloca_works=no
c906108c 3818fi
bec39cab
AC
3819rm -f conftest.err conftest.$ac_objext \
3820 conftest$ac_exeext conftest.$ac_ext
c906108c 3821fi
bec39cab
AC
3822echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3823echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3824
3825if test $ac_cv_func_alloca_works = yes; then
3826
3827cat >>confdefs.h <<\_ACEOF
3828#define HAVE_ALLOCA 1
3829_ACEOF
c906108c 3830
c906108c 3831else
bec39cab
AC
3832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3833# that cause trouble. Some versions do not even contain alloca or
3834# contain a buggy version. If you still want to use their alloca,
3835# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3836
bec39cab 3837ALLOCA=alloca.$ac_objext
c906108c 3838
bec39cab
AC
3839cat >>confdefs.h <<\_ACEOF
3840#define C_ALLOCA 1
3841_ACEOF
c906108c 3842
bec39cab
AC
3843
3844echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3845echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3846if test "${ac_cv_os_cray+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3848else
bec39cab
AC
3849 cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
3855#if defined(CRAY) && ! defined(CRAY2)
3856webecray
3857#else
3858wenotbecray
3859#endif
3860
3861_ACEOF
3862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863 $EGREP "webecray" >/dev/null 2>&1; then
3864 ac_cv_os_cray=yes
c906108c 3865else
bec39cab 3866 ac_cv_os_cray=no
c906108c 3867fi
bec39cab
AC
3868rm -f conftest*
3869
3870fi
3871echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3872echo "${ECHO_T}$ac_cv_os_cray" >&6
3873if test $ac_cv_os_cray = yes; then
3874 for ac_func in _getb67 GETB67 getb67; do
3875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3876echo "$as_me:$LINENO: checking for $ac_func" >&5
3877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3878if eval "test \"\${$as_ac_var+set}\" = set"; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881 cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h. */
3887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3889#define $ac_func innocuous_$ac_func
3890
c906108c 3891/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3892 which can conflict with char $ac_func (); below.
3893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 <limits.h> exists even on freestanding compilers. */
3895
3896#ifdef __STDC__
3897# include <limits.h>
3898#else
3899# include <assert.h>
3900#endif
c906108c 3901
bec39cab 3902#undef $ac_func
c906108c 3903
bec39cab
AC
3904/* Override any gcc2 internal prototype to avoid an error. */
3905#ifdef __cplusplus
3906extern "C"
3907{
3908#endif
3909/* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3911char $ac_func ();
c906108c
SS
3912/* The GNU C library defines this for functions which it implements
3913 to always fail with ENOSYS. Some functions are actually named
3914 something starting with __ and the normal name is an alias. */
3915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3916choke me
3917#else
bec39cab
AC
3918char (*f) () = $ac_func;
3919#endif
3920#ifdef __cplusplus
3921}
c906108c
SS
3922#endif
3923
bec39cab
AC
3924int
3925main ()
3926{
3927return f != $ac_func;
3928 ;
3929 return 0;
3930}
3931_ACEOF
3932rm -f conftest.$ac_objext conftest$ac_exeext
3933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 (eval $ac_link) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest$ac_exeext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 eval "$as_ac_var=yes"
3955else
3956 echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959eval "$as_ac_var=no"
3960fi
3961rm -f conftest.err conftest.$ac_objext \
3962 conftest$ac_exeext conftest.$ac_ext
3963fi
3964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3966if test `eval echo '${'$as_ac_var'}'` = yes; then
3967
3968cat >>confdefs.h <<_ACEOF
3969#define CRAY_STACKSEG_END $ac_func
3970_ACEOF
c906108c 3971
bec39cab 3972 break
c906108c 3973fi
c906108c 3974
c906108c 3975 done
c906108c 3976fi
bec39cab
AC
3977
3978echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3979echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3980if test "${ac_cv_c_stack_direction+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3982else
bec39cab
AC
3983 if test "$cross_compiling" = yes; then
3984 ac_cv_c_stack_direction=0
3985else
3986 cat >conftest.$ac_ext <<_ACEOF
3987/* confdefs.h. */
3988_ACEOF
3989cat confdefs.h >>conftest.$ac_ext
3990cat >>conftest.$ac_ext <<_ACEOF
3991/* end confdefs.h. */
3992int
3993find_stack_direction ()
3994{
3995 static char *addr = 0;
3996 auto char dummy;
3997 if (addr == 0)
3998 {
3999 addr = &dummy;
4000 return find_stack_direction ();
4001 }
4002 else
4003 return (&dummy > addr) ? 1 : -1;
4004}
c906108c 4005
bec39cab
AC
4006int
4007main ()
4008{
4009 exit (find_stack_direction () < 0);
4010}
4011_ACEOF
4012rm -f conftest$ac_exeext
4013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_c_stack_direction=1
c906108c 4024else
bec39cab
AC
4025 echo "$as_me: program exited with status $ac_status" >&5
4026echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029( exit $ac_status )
4030ac_cv_c_stack_direction=-1
4031fi
4032rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 4033fi
c906108c 4034fi
bec39cab
AC
4035echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4036echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4037
4038cat >>confdefs.h <<_ACEOF
4039#define STACK_DIRECTION $ac_cv_c_stack_direction
4040_ACEOF
c906108c 4041
c906108c 4042
c906108c
SS
4043fi
4044
4045
c906108c 4046
bec39cab
AC
4047for ac_header in stdlib.h unistd.h
4048do
4049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051 echo "$as_me:$LINENO: checking for $ac_header" >&5
4052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4053if eval "test \"\${$as_ac_Header+set}\" = set"; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055fi
4056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4058else
4059 # Is the header compilable?
4060echo "$as_me:$LINENO: checking $ac_header usability" >&5
4061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4062cat >conftest.$ac_ext <<_ACEOF
4063/* confdefs.h. */
4064_ACEOF
4065cat confdefs.h >>conftest.$ac_ext
4066cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h. */
4068$ac_includes_default
4069#include <$ac_header>
4070_ACEOF
4071rm -f conftest.$ac_objext
4072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_header_compiler=yes
4094else
4095 echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098ac_header_compiler=no
4099fi
4100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4102echo "${ECHO_T}$ac_header_compiler" >&6
4103
4104# Is the header present?
4105echo "$as_me:$LINENO: checking $ac_header presence" >&5
4106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4107cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */
4113#include <$ac_header>
4114_ACEOF
4115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null; then
4123 if test -s conftest.err; then
4124 ac_cpp_err=$ac_c_preproc_warn_flag
4125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4126 else
4127 ac_cpp_err=
4128 fi
c906108c 4129else
bec39cab 4130 ac_cpp_err=yes
c906108c 4131fi
bec39cab
AC
4132if test -z "$ac_cpp_err"; then
4133 ac_header_preproc=yes
c906108c 4134else
bec39cab
AC
4135 echo "$as_me: failed program was:" >&5
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 ac_header_preproc=no
c906108c 4139fi
bec39cab
AC
4140rm -f conftest.err conftest.$ac_ext
4141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4142echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4143
bec39cab
AC
4144# So? What about this header?
4145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4146 yes:no: )
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4151 ac_header_preproc=yes
4152 ;;
4153 no:yes:* )
4154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4166 (
4167 cat <<\_ASBOX
4168## ------------------------------------------ ##
4169## Report this to the AC_PACKAGE_NAME lists. ##
4170## ------------------------------------------ ##
4171_ASBOX
4172 ) |
4173 sed "s/^/$as_me: WARNING: /" >&2
4174 ;;
4175esac
4176echo "$as_me:$LINENO: checking for $ac_header" >&5
4177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4178if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181 eval "$as_ac_Header=\$ac_header_preproc"
4182fi
4183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4185
4186fi
4187if test `eval echo '${'$as_ac_Header'}'` = yes; then
4188 cat >>confdefs.h <<_ACEOF
4189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190_ACEOF
4191
4192fi
4193
4194done
4195
4196
4197for ac_func in getpagesize
4198do
4199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4200echo "$as_me:$LINENO: checking for $ac_func" >&5
4201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4202if eval "test \"\${$as_ac_var+set}\" = set"; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205 cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
4211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4213#define $ac_func innocuous_$ac_func
4214
4215/* System header to define __stub macros and hopefully few prototypes,
4216 which can conflict with char $ac_func (); below.
4217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 <limits.h> exists even on freestanding compilers. */
4219
4220#ifdef __STDC__
4221# include <limits.h>
4222#else
4223# include <assert.h>
4224#endif
4225
4226#undef $ac_func
4227
4228/* Override any gcc2 internal prototype to avoid an error. */
4229#ifdef __cplusplus
4230extern "C"
4231{
4232#endif
4233/* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4235char $ac_func ();
4236/* The GNU C library defines this for functions which it implements
4237 to always fail with ENOSYS. Some functions are actually named
4238 something starting with __ and the normal name is an alias. */
4239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4240choke me
4241#else
4242char (*f) () = $ac_func;
4243#endif
4244#ifdef __cplusplus
4245}
4246#endif
4247
4248int
4249main ()
4250{
4251return f != $ac_func;
4252 ;
4253 return 0;
4254}
4255_ACEOF
4256rm -f conftest.$ac_objext conftest$ac_exeext
4257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258 (eval $ac_link) 2>conftest.er1
4259 ac_status=$?
4260 grep -v '^ *+' conftest.er1 >conftest.err
4261 rm -f conftest.er1
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag"
4266 || test ! -s conftest.err'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 eval "$as_ac_var=yes"
4279else
4280 echo "$as_me: failed program was:" >&5
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
4283eval "$as_ac_var=no"
4284fi
4285rm -f conftest.err conftest.$ac_objext \
4286 conftest$ac_exeext conftest.$ac_ext
4287fi
4288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4290if test `eval echo '${'$as_ac_var'}'` = yes; then
4291 cat >>confdefs.h <<_ACEOF
4292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4293_ACEOF
4294
4295fi
4296done
4297
4298echo "$as_me:$LINENO: checking for working mmap" >&5
4299echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4300if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303 if test "$cross_compiling" = yes; then
4304 ac_cv_func_mmap_fixed_mapped=no
4305else
4306 cat >conftest.$ac_ext <<_ACEOF
4307/* confdefs.h. */
4308_ACEOF
4309cat confdefs.h >>conftest.$ac_ext
4310cat >>conftest.$ac_ext <<_ACEOF
4311/* end confdefs.h. */
4312$ac_includes_default
4313/* malloc might have been renamed as rpl_malloc. */
4314#undef malloc
4315
4316/* Thanks to Mike Haertel and Jim Avera for this test.
4317 Here is a matrix of mmap possibilities:
4318 mmap private not fixed
4319 mmap private fixed at somewhere currently unmapped
4320 mmap private fixed at somewhere already mapped
4321 mmap shared not fixed
4322 mmap shared fixed at somewhere currently unmapped
4323 mmap shared fixed at somewhere already mapped
4324 For private mappings, we should verify that changes cannot be read()
4325 back from the file, nor mmap's back from the file at a different
4326 address. (There have been systems where private was not correctly
4327 implemented like the infamous i386 svr4.0, and systems where the
4328 VM page cache was not coherent with the file system buffer cache
4329 like early versions of FreeBSD and possibly contemporary NetBSD.)
4330 For shared mappings, we should conversely verify that changes get
4331 propagated back to all the places they're supposed to be.
4332
4333 Grep wants private fixed already mapped.
4334 The main things grep needs to know about mmap are:
4335 * does it exist and is it safe to write into the mmap'd area
4336 * how to use it (BSD variants) */
4337
4338#include <fcntl.h>
4339#include <sys/mman.h>
4340
4341#if !STDC_HEADERS && !HAVE_STDLIB_H
4342char *malloc ();
4343#endif
4344
4345/* This mess was copied from the GNU getpagesize.h. */
4346#if !HAVE_GETPAGESIZE
4347/* Assume that all systems that can run configure have sys/param.h. */
4348# if !HAVE_SYS_PARAM_H
4349# define HAVE_SYS_PARAM_H 1
4350# endif
4351
4352# ifdef _SC_PAGESIZE
4353# define getpagesize() sysconf(_SC_PAGESIZE)
4354# else /* no _SC_PAGESIZE */
4355# if HAVE_SYS_PARAM_H
4356# include <sys/param.h>
4357# ifdef EXEC_PAGESIZE
4358# define getpagesize() EXEC_PAGESIZE
4359# else /* no EXEC_PAGESIZE */
4360# ifdef NBPG
4361# define getpagesize() NBPG * CLSIZE
4362# ifndef CLSIZE
4363# define CLSIZE 1
4364# endif /* no CLSIZE */
4365# else /* no NBPG */
4366# ifdef NBPC
4367# define getpagesize() NBPC
4368# else /* no NBPC */
4369# ifdef PAGESIZE
4370# define getpagesize() PAGESIZE
4371# endif /* PAGESIZE */
4372# endif /* no NBPC */
4373# endif /* no NBPG */
4374# endif /* no EXEC_PAGESIZE */
4375# else /* no HAVE_SYS_PARAM_H */
4376# define getpagesize() 8192 /* punt totally */
4377# endif /* no HAVE_SYS_PARAM_H */
4378# endif /* no _SC_PAGESIZE */
4379
4380#endif /* no HAVE_GETPAGESIZE */
4381
4382int
4383main ()
4384{
4385 char *data, *data2, *data3;
4386 int i, pagesize;
4387 int fd;
4388
4389 pagesize = getpagesize ();
4390
4391 /* First, make a file with some known garbage in it. */
4392 data = (char *) malloc (pagesize);
4393 if (!data)
4394 exit (1);
4395 for (i = 0; i < pagesize; ++i)
4396 *(data + i) = rand ();
4397 umask (0);
4398 fd = creat ("conftest.mmap", 0600);
4399 if (fd < 0)
4400 exit (1);
4401 if (write (fd, data, pagesize) != pagesize)
4402 exit (1);
4403 close (fd);
4404
4405 /* Next, try to mmap the file at a fixed address which already has
4406 something else allocated at it. If we can, also make sure that
4407 we see the same garbage. */
4408 fd = open ("conftest.mmap", O_RDWR);
4409 if (fd < 0)
4410 exit (1);
4411 data2 = (char *) malloc (2 * pagesize);
4412 if (!data2)
4413 exit (1);
4414 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4415 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4416 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4417 exit (1);
4418 for (i = 0; i < pagesize; ++i)
4419 if (*(data + i) != *(data2 + i))
4420 exit (1);
4421
4422 /* Finally, make sure that changes to the mapped area do not
4423 percolate back to the file as seen by read(). (This is a bug on
4424 some variants of i386 svr4.0.) */
4425 for (i = 0; i < pagesize; ++i)
4426 *(data2 + i) = *(data2 + i) + 1;
4427 data3 = (char *) malloc (pagesize);
4428 if (!data3)
4429 exit (1);
4430 if (read (fd, data3, pagesize) != pagesize)
4431 exit (1);
4432 for (i = 0; i < pagesize; ++i)
4433 if (*(data + i) != *(data3 + i))
4434 exit (1);
4435 close (fd);
4436 exit (0);
4437}
4438_ACEOF
4439rm -f conftest$ac_exeext
4440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_func_mmap_fixed_mapped=yes
4451else
4452 echo "$as_me: program exited with status $ac_status" >&5
4453echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456( exit $ac_status )
4457ac_cv_func_mmap_fixed_mapped=no
4458fi
4459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4460fi
4461fi
4462echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4463echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4464if test $ac_cv_func_mmap_fixed_mapped = yes; then
4465
4466cat >>confdefs.h <<\_ACEOF
4467#define HAVE_MMAP 1
4468_ACEOF
4469
4470fi
4471rm -f conftest.mmap
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4484unistd.h values.h sys/param.h
4485do
4486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4487if eval "test \"\${$as_ac_Header+set}\" = set"; then
4488 echo "$as_me:$LINENO: checking for $ac_header" >&5
4489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4490if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492fi
4493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495else
4496 # Is the header compilable?
4497echo "$as_me:$LINENO: checking $ac_header usability" >&5
4498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4499cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h. */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h. */
4505$ac_includes_default
4506#include <$ac_header>
4507_ACEOF
4508rm -f conftest.$ac_objext
4509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>conftest.er1
4511 ac_status=$?
4512 grep -v '^ *+' conftest.er1 >conftest.err
4513 rm -f conftest.er1
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -z "$ac_c_werror_flag"
4518 || test ! -s conftest.err'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; } &&
4524 { ac_try='test -s conftest.$ac_objext'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; }; then
4530 ac_header_compiler=yes
4531else
4532 echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535ac_header_compiler=no
4536fi
4537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4539echo "${ECHO_T}$ac_header_compiler" >&6
4540
4541# Is the header present?
4542echo "$as_me:$LINENO: checking $ac_header presence" >&5
4543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4544cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h. */
4546_ACEOF
4547cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */
4550#include <$ac_header>
4551_ACEOF
4552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } >/dev/null; then
4560 if test -s conftest.err; then
4561 ac_cpp_err=$ac_c_preproc_warn_flag
4562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4563 else
4564 ac_cpp_err=
4565 fi
4566else
4567 ac_cpp_err=yes
4568fi
4569if test -z "$ac_cpp_err"; then
4570 ac_header_preproc=yes
4571else
4572 echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 ac_header_preproc=no
4576fi
4577rm -f conftest.err conftest.$ac_ext
4578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4579echo "${ECHO_T}$ac_header_preproc" >&6
4580
4581# So? What about this header?
4582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4583 yes:no: )
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4588 ac_header_preproc=yes
4589 ;;
4590 no:yes:* )
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4603 (
4604 cat <<\_ASBOX
4605## ------------------------------------------ ##
4606## Report this to the AC_PACKAGE_NAME lists. ##
4607## ------------------------------------------ ##
4608_ASBOX
4609 ) |
4610 sed "s/^/$as_me: WARNING: /" >&2
4611 ;;
4612esac
4613echo "$as_me:$LINENO: checking for $ac_header" >&5
4614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4615if eval "test \"\${$as_ac_Header+set}\" = set"; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618 eval "$as_ac_Header=\$ac_header_preproc"
4619fi
4620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4622
4623fi
4624if test `eval echo '${'$as_ac_Header'}'` = yes; then
4625 cat >>confdefs.h <<_ACEOF
4626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4627_ACEOF
4628
4629fi
4630
4631done
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4644__argz_count __argz_stringify __argz_next
4645do
4646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4647echo "$as_me:$LINENO: checking for $ac_func" >&5
4648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4649if eval "test \"\${$as_ac_var+set}\" = set"; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652 cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h. */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h. */
4658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4660#define $ac_func innocuous_$ac_func
4661
4662/* System header to define __stub macros and hopefully few prototypes,
4663 which can conflict with char $ac_func (); below.
4664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 <limits.h> exists even on freestanding compilers. */
4666
4667#ifdef __STDC__
4668# include <limits.h>
4669#else
4670# include <assert.h>
4671#endif
4672
4673#undef $ac_func
4674
4675/* Override any gcc2 internal prototype to avoid an error. */
4676#ifdef __cplusplus
4677extern "C"
4678{
4679#endif
4680/* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4682char $ac_func ();
4683/* The GNU C library defines this for functions which it implements
4684 to always fail with ENOSYS. Some functions are actually named
4685 something starting with __ and the normal name is an alias. */
4686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4687choke me
4688#else
4689char (*f) () = $ac_func;
4690#endif
4691#ifdef __cplusplus
4692}
4693#endif
4694
4695int
4696main ()
4697{
4698return f != $ac_func;
4699 ;
4700 return 0;
4701}
4702_ACEOF
4703rm -f conftest.$ac_objext conftest$ac_exeext
4704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4705 (eval $ac_link) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest$ac_exeext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 eval "$as_ac_var=yes"
4726else
4727 echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730eval "$as_ac_var=no"
4731fi
4732rm -f conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext conftest.$ac_ext
4734fi
4735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4737if test `eval echo '${'$as_ac_var'}'` = yes; then
4738 cat >>confdefs.h <<_ACEOF
4739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4740_ACEOF
4741
4742fi
4743done
4744
4745
4746 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4747
4748for ac_func in stpcpy
4749do
4750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4751echo "$as_me:$LINENO: checking for $ac_func" >&5
4752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4753if eval "test \"\${$as_ac_var+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755else
4756 cat >conftest.$ac_ext <<_ACEOF
4757/* confdefs.h. */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h. */
4762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4764#define $ac_func innocuous_$ac_func
4765
4766/* System header to define __stub macros and hopefully few prototypes,
4767 which can conflict with char $ac_func (); below.
4768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769 <limits.h> exists even on freestanding compilers. */
4770
4771#ifdef __STDC__
4772# include <limits.h>
4773#else
4774# include <assert.h>
4775#endif
4776
4777#undef $ac_func
4778
4779/* Override any gcc2 internal prototype to avoid an error. */
4780#ifdef __cplusplus
4781extern "C"
4782{
4783#endif
4784/* We use char because int might match the return type of a gcc2
4785 builtin and then its argument prototype would still apply. */
4786char $ac_func ();
4787/* The GNU C library defines this for functions which it implements
4788 to always fail with ENOSYS. Some functions are actually named
4789 something starting with __ and the normal name is an alias. */
4790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4791choke me
4792#else
4793char (*f) () = $ac_func;
4794#endif
4795#ifdef __cplusplus
4796}
4797#endif
4798
4799int
4800main ()
4801{
4802return f != $ac_func;
4803 ;
4804 return 0;
4805}
4806_ACEOF
4807rm -f conftest.$ac_objext conftest$ac_exeext
4808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest$ac_exeext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 eval "$as_ac_var=yes"
4830else
4831 echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834eval "$as_ac_var=no"
4835fi
4836rm -f conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4838fi
4839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4840echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4841if test `eval echo '${'$as_ac_var'}'` = yes; then
4842 cat >>confdefs.h <<_ACEOF
4843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4844_ACEOF
4845
4846fi
4847done
4848
4849 fi
4850 if test "${ac_cv_func_stpcpy}" = "yes"; then
4851
4852cat >>confdefs.h <<\_ACEOF
4853#define HAVE_STPCPY 1
4854_ACEOF
4855
4856 fi
4857
4858 if test $ac_cv_header_locale_h = yes; then
4859 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4860echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4861if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
4870#include <locale.h>
4871int
4872main ()
4873{
4874return LC_MESSAGES
4875 ;
4876 return 0;
4877}
4878_ACEOF
4879rm -f conftest.$ac_objext conftest$ac_exeext
4880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881 (eval $ac_link) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 am_cv_val_LC_MESSAGES=yes
4902else
4903 echo "$as_me: failed program was:" >&5
4904sed 's/^/| /' conftest.$ac_ext >&5
4905
4906am_cv_val_LC_MESSAGES=no
4907fi
4908rm -f conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4910fi
4911echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4912echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4913 if test $am_cv_val_LC_MESSAGES = yes; then
4914
4915cat >>confdefs.h <<\_ACEOF
4916#define HAVE_LC_MESSAGES 1
4917_ACEOF
4918
4919 fi
4920 fi
4921 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4922echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4923 # Check whether --enable-nls or --disable-nls was given.
4924if test "${enable_nls+set}" = set; then
4925 enableval="$enable_nls"
4926 USE_NLS=$enableval
4927else
4928 USE_NLS=yes
4929fi;
4930 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4931echo "${ECHO_T}$USE_NLS" >&6
4932
4933
4934 USE_INCLUDED_LIBINTL=no
4935
4936 if test "$USE_NLS" = "yes"; then
4937
4938cat >>confdefs.h <<\_ACEOF
4939#define ENABLE_NLS 1
4940_ACEOF
4941
4942 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4943echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4944
4945# Check whether --with-included-gettext or --without-included-gettext was given.
4946if test "${with_included_gettext+set}" = set; then
4947 withval="$with_included_gettext"
4948 nls_cv_force_use_gnu_gettext=$withval
4949else
4950 nls_cv_force_use_gnu_gettext=no
4951fi;
4952 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4953echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4954
4955 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4956 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4957 nls_cv_header_intl=
4958 nls_cv_header_libgt=
a53bf506 4959 CATOBJEXT=
bec39cab
AC
4960
4961 if test "${ac_cv_header_libintl_h+set}" = set; then
4962 echo "$as_me:$LINENO: checking for libintl.h" >&5
4963echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4964if test "${ac_cv_header_libintl_h+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966fi
4967echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4968echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4969else
4970 # Is the header compilable?
4971echo "$as_me:$LINENO: checking libintl.h usability" >&5
4972echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4973cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979$ac_includes_default
4980#include <libintl.h>
4981_ACEOF
4982rm -f conftest.$ac_objext
4983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -z "$ac_c_werror_flag"
4992 || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_header_compiler=yes
5005else
5006 echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009ac_header_compiler=no
5010fi
5011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5013echo "${ECHO_T}$ac_header_compiler" >&6
5014
5015# Is the header present?
5016echo "$as_me:$LINENO: checking libintl.h presence" >&5
5017echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5018cat >conftest.$ac_ext <<_ACEOF
5019/* confdefs.h. */
5020_ACEOF
5021cat confdefs.h >>conftest.$ac_ext
5022cat >>conftest.$ac_ext <<_ACEOF
5023/* end confdefs.h. */
5024#include <libintl.h>
5025_ACEOF
5026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } >/dev/null; then
5034 if test -s conftest.err; then
5035 ac_cpp_err=$ac_c_preproc_warn_flag
5036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5037 else
5038 ac_cpp_err=
5039 fi
5040else
5041 ac_cpp_err=yes
5042fi
5043if test -z "$ac_cpp_err"; then
5044 ac_header_preproc=yes
5045else
5046 echo "$as_me: failed program was:" >&5
5047sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_header_preproc=no
5050fi
5051rm -f conftest.err conftest.$ac_ext
5052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5053echo "${ECHO_T}$ac_header_preproc" >&6
5054
5055# So? What about this header?
5056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5057 yes:no: )
5058 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5059echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5060 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5061echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5062 ac_header_preproc=yes
5063 ;;
5064 no:yes:* )
5065 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5066echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5068echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5070echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5072echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5074echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5076echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5077 (
5078 cat <<\_ASBOX
5079## ------------------------------------------ ##
5080## Report this to the AC_PACKAGE_NAME lists. ##
5081## ------------------------------------------ ##
5082_ASBOX
5083 ) |
5084 sed "s/^/$as_me: WARNING: /" >&2
5085 ;;
5086esac
5087echo "$as_me:$LINENO: checking for libintl.h" >&5
5088echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5089if test "${ac_cv_header_libintl_h+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091else
5092 ac_cv_header_libintl_h=$ac_header_preproc
5093fi
5094echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5095echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5096
5097fi
5098if test $ac_cv_header_libintl_h = yes; then
5099 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5100echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5101if test "${gt_cv_func_gettext_libc+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h. */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h. */
5110#include <libintl.h>
5111int
5112main ()
5113{
5114return (int) gettext ("")
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext conftest$ac_exeext
5120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5121 (eval $ac_link) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest$ac_exeext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 gt_cv_func_gettext_libc=yes
5142else
5143 echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146gt_cv_func_gettext_libc=no
5147fi
5148rm -f conftest.err conftest.$ac_objext \
5149 conftest$ac_exeext conftest.$ac_ext
5150fi
5151echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5152echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5153
5154 if test "$gt_cv_func_gettext_libc" != "yes"; then
5155 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5156echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5157if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160 ac_check_lib_save_LIBS=$LIBS
5161LIBS="-lintl $LIBS"
5162cat >conftest.$ac_ext <<_ACEOF
5163/* confdefs.h. */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h. */
5168
5169/* Override any gcc2 internal prototype to avoid an error. */
5170#ifdef __cplusplus
5171extern "C"
5172#endif
5173/* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */
5175char bindtextdomain ();
5176int
5177main ()
5178{
5179bindtextdomain ();
5180 ;
5181 return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext conftest$ac_exeext
5185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest$ac_exeext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_lib_intl_bindtextdomain=yes
5207else
5208 echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
5210
5211ac_cv_lib_intl_bindtextdomain=no
5212fi
5213rm -f conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215LIBS=$ac_check_lib_save_LIBS
5216fi
5217echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5218echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5219if test $ac_cv_lib_intl_bindtextdomain = yes; then
5220 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5221echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5222if test "${gt_cv_func_gettext_libintl+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 cat >conftest.$ac_ext <<_ACEOF
5226/* confdefs.h. */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h. */
5231
5232int
5233main ()
5234{
5235return (int) gettext ("")
5236 ;
5237 return 0;
5238}
5239_ACEOF
5240rm -f conftest.$ac_objext conftest$ac_exeext
5241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 gt_cv_func_gettext_libintl=yes
5263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267gt_cv_func_gettext_libintl=no
5268fi
5269rm -f conftest.err conftest.$ac_objext \
5270 conftest$ac_exeext conftest.$ac_ext
5271fi
5272echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5273echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5274fi
5275
5276 fi
5277
5278 if test "$gt_cv_func_gettext_libc" = "yes" \
5279 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5280
5281cat >>confdefs.h <<\_ACEOF
5282#define HAVE_GETTEXT 1
5283_ACEOF
5284
5285 # Extract the first word of "msgfmt", so it can be a program name with args.
5286set dummy msgfmt; ac_word=$2
5287echo "$as_me:$LINENO: checking for $ac_word" >&5
5288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289if test "${ac_cv_path_MSGFMT+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292 case "$MSGFMT" in
5293 /*)
5294 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5295 ;;
5296 *)
5297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5298 for ac_dir in $PATH; do
5299 test -z "$ac_dir" && ac_dir=.
5300 if test -f $ac_dir/$ac_word; then
5301 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5302 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5303 break
5304 fi
5305 fi
5306 done
5307 IFS="$ac_save_ifs"
5308 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5309 ;;
5310esac
5311fi
5312MSGFMT="$ac_cv_path_MSGFMT"
5313if test -n "$MSGFMT"; then
5314 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5315echo "${ECHO_T}$MSGFMT" >&6
5316else
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319fi
5320 if test "$MSGFMT" != "no"; then
5321
5322for ac_func in dcgettext
5323do
5324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5325echo "$as_me:$LINENO: checking for $ac_func" >&5
5326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5327if eval "test \"\${$as_ac_var+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329else
5330 cat >conftest.$ac_ext <<_ACEOF
5331/* confdefs.h. */
5332_ACEOF
5333cat confdefs.h >>conftest.$ac_ext
5334cat >>conftest.$ac_ext <<_ACEOF
5335/* end confdefs.h. */
5336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5338#define $ac_func innocuous_$ac_func
5339
5340/* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func (); below.
5342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5343 <limits.h> exists even on freestanding compilers. */
5344
5345#ifdef __STDC__
5346# include <limits.h>
5347#else
5348# include <assert.h>
5349#endif
5350
5351#undef $ac_func
5352
5353/* Override any gcc2 internal prototype to avoid an error. */
5354#ifdef __cplusplus
5355extern "C"
5356{
5357#endif
5358/* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5360char $ac_func ();
5361/* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5365choke me
5366#else
5367char (*f) () = $ac_func;
5368#endif
5369#ifdef __cplusplus
5370}
5371#endif
5372
5373int
5374main ()
5375{
5376return f != $ac_func;
5377 ;
5378 return 0;
5379}
5380_ACEOF
5381rm -f conftest.$ac_objext conftest$ac_exeext
5382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -z "$ac_c_werror_flag"
5391 || test ! -s conftest.err'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try='test -s conftest$ac_exeext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 eval "$as_ac_var=yes"
5404else
5405 echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408eval "$as_ac_var=no"
5409fi
5410rm -f conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5412fi
5413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5414echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5415if test `eval echo '${'$as_ac_var'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5418_ACEOF
5419
5420fi
5421done
5422
5423 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5424set dummy gmsgfmt; ac_word=$2
5425echo "$as_me:$LINENO: checking for $ac_word" >&5
5426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427if test "${ac_cv_path_GMSGFMT+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430 case $GMSGFMT in
5431 [\\/]* | ?:[\\/]*)
5432 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5433 ;;
5434 *)
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446done
5447done
5448
5449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5450 ;;
5451esac
5452fi
5453GMSGFMT=$ac_cv_path_GMSGFMT
5454
5455if test -n "$GMSGFMT"; then
5456 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5457echo "${ECHO_T}$GMSGFMT" >&6
5458else
5459 echo "$as_me:$LINENO: result: no" >&5
5460echo "${ECHO_T}no" >&6
5461fi
5462
5463 # Extract the first word of "xgettext", so it can be a program name with args.
5464set dummy xgettext; ac_word=$2
5465echo "$as_me:$LINENO: checking for $ac_word" >&5
5466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467if test "${ac_cv_path_XGETTEXT+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470 case "$XGETTEXT" in
5471 /*)
5472 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5473 ;;
5474 *)
5475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5476 for ac_dir in $PATH; do
5477 test -z "$ac_dir" && ac_dir=.
5478 if test -f $ac_dir/$ac_word; then
5479 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5480 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5481 break
5482 fi
5483 fi
5484 done
5485 IFS="$ac_save_ifs"
5486 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5487 ;;
5488esac
5489fi
5490XGETTEXT="$ac_cv_path_XGETTEXT"
5491if test -n "$XGETTEXT"; then
5492 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5493echo "${ECHO_T}$XGETTEXT" >&6
5494else
5495 echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
5497fi
5498
5499 cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h. */
5505
5506int
5507main ()
5508{
5509extern int _nl_msg_cat_cntr;
5510 return _nl_msg_cat_cntr
5511 ;
5512 return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext conftest$ac_exeext
5516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -z "$ac_c_werror_flag"
5525 || test ! -s conftest.err'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; } &&
5531 { ac_try='test -s conftest$ac_exeext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 CATOBJEXT=.gmo
5538 DATADIRNAME=share
5539else
5540 echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
5543CATOBJEXT=.mo
5544 DATADIRNAME=lib
5545fi
5546rm -f conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 INSTOBJEXT=.mo
5549 fi
5550 fi
5551
5552fi
5553
5554
5555
5556
a53bf506 5557 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
5558 # Neither gettext nor catgets in included in the C library.
5559 # Fall back on GNU gettext library (assuming it is present).
5560 nls_cv_use_gnu_gettext=yes
bec39cab
AC
5561 fi
5562 fi
5563
5564 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5565 INTLOBJS="\$(GETTOBJS)"
5566 # Extract the first word of "msgfmt", so it can be a program name with args.
5567set dummy msgfmt; ac_word=$2
5568echo "$as_me:$LINENO: checking for $ac_word" >&5
5569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570if test "${ac_cv_path_MSGFMT+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573 case "$MSGFMT" in
5574 /*)
5575 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5576 ;;
5577 *)
5578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5579 for ac_dir in $PATH; do
5580 test -z "$ac_dir" && ac_dir=.
5581 if test -f $ac_dir/$ac_word; then
5582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5583 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5584 break
5585 fi
5586 fi
5587 done
5588 IFS="$ac_save_ifs"
5589 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5590 ;;
5591esac
5592fi
5593MSGFMT="$ac_cv_path_MSGFMT"
5594if test -n "$MSGFMT"; then
5595 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5596echo "${ECHO_T}$MSGFMT" >&6
5597else
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600fi
5601
5602 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5603set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5604echo "$as_me:$LINENO: checking for $ac_word" >&5
5605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606if test "${ac_cv_path_GMSGFMT+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609 case $GMSGFMT in
5610 [\\/]* | ?:[\\/]*)
5611 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5612 ;;
5613 *)
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625done
5626done
5627
5628 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5629 ;;
5630esac
5631fi
5632GMSGFMT=$ac_cv_path_GMSGFMT
5633
5634if test -n "$GMSGFMT"; then
5635 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5636echo "${ECHO_T}$GMSGFMT" >&6
5637else
5638 echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640fi
5641
5642 # Extract the first word of "xgettext", so it can be a program name with args.
5643set dummy xgettext; ac_word=$2
5644echo "$as_me:$LINENO: checking for $ac_word" >&5
5645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646if test "${ac_cv_path_XGETTEXT+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649 case "$XGETTEXT" in
5650 /*)
5651 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5652 ;;
5653 *)
5654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5655 for ac_dir in $PATH; do
5656 test -z "$ac_dir" && ac_dir=.
5657 if test -f $ac_dir/$ac_word; then
5658 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5659 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5660 break
5661 fi
5662 fi
5663 done
5664 IFS="$ac_save_ifs"
5665 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5666 ;;
5667esac
5668fi
5669XGETTEXT="$ac_cv_path_XGETTEXT"
5670if test -n "$XGETTEXT"; then
5671 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5672echo "${ECHO_T}$XGETTEXT" >&6
5673else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676fi
5677
5678
5679 USE_INCLUDED_LIBINTL=yes
5680 CATOBJEXT=.gmo
5681 INSTOBJEXT=.mo
5682 DATADIRNAME=share
5683 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5684 INTLLIBS=$INTLDEPS
5685 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5686 nls_cv_header_intl=libintl.h
5687 nls_cv_header_libgt=libgettext.h
5688 fi
5689
5690 if test "$XGETTEXT" != ":"; then
5691 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5692 : ;
5693 else
5694 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5695echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5696 XGETTEXT=":"
5697 fi
5698 fi
5699
5700 # We need to process the po/ directory.
5701 POSUB=po
5702 else
5703 DATADIRNAME=share
5704 nls_cv_header_intl=libintl.h
5705 nls_cv_header_libgt=libgettext.h
5706 fi
5707
5708 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5709 # because some of the sources are only built for this goal.
5710 if test "$PACKAGE" = gettext; then
5711 USE_NLS=yes
5712 USE_INCLUDED_LIBINTL=yes
5713 fi
5714
5715 for lang in $ALL_LINGUAS; do
5716 GMOFILES="$GMOFILES $lang.gmo"
5717 POFILES="$POFILES $lang.po"
5718 done
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 if test "x$CATOBJEXT" != "x"; then
5734 if test "x$ALL_LINGUAS" = "x"; then
5735 LINGUAS=
5736 else
5737 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5738echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5739 NEW_LINGUAS=
5740 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5741 case "$ALL_LINGUAS" in
5742 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5743 esac
5744 done
5745 LINGUAS=$NEW_LINGUAS
5746 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5747echo "${ECHO_T}$LINGUAS" >&6
5748 fi
5749
5750 if test -n "$LINGUAS"; then
5751 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5752 fi
5753 fi
5754
5755 if test $ac_cv_header_locale_h = yes; then
5756 INCLUDE_LOCALE_H="#include <locale.h>"
5757 else
5758 INCLUDE_LOCALE_H="\
5759/* The system does not provide the header <locale.h>. Take care yourself. */"
5760 fi
5761
5762
5763 if test -f $srcdir/po2tbl.sed.in; then
5764 if test "$CATOBJEXT" = ".cat"; then
5765 if test "${ac_cv_header_linux_version_h+set}" = set; then
5766 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5767echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5768if test "${ac_cv_header_linux_version_h+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770fi
5771echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5772echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5773else
5774 # Is the header compilable?
5775echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5776echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5777cat >conftest.$ac_ext <<_ACEOF
5778/* confdefs.h. */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
5782/* end confdefs.h. */
5783$ac_includes_default
5784#include <linux/version.h>
5785_ACEOF
5786rm -f conftest.$ac_objext
5787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_header_compiler=yes
5809else
5810 echo "$as_me: failed program was:" >&5
5811sed 's/^/| /' conftest.$ac_ext >&5
5812
5813ac_header_compiler=no
5814fi
5815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5817echo "${ECHO_T}$ac_header_compiler" >&6
5818
5819# Is the header present?
5820echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5821echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5822cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h. */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h. */
5828#include <linux/version.h>
5829_ACEOF
5830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } >/dev/null; then
5838 if test -s conftest.err; then
5839 ac_cpp_err=$ac_c_preproc_warn_flag
5840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5841 else
5842 ac_cpp_err=
5843 fi
5844else
5845 ac_cpp_err=yes
5846fi
5847if test -z "$ac_cpp_err"; then
5848 ac_header_preproc=yes
5849else
5850 echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_header_preproc=no
5854fi
5855rm -f conftest.err conftest.$ac_ext
5856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5857echo "${ECHO_T}$ac_header_preproc" >&6
5858
5859# So? What about this header?
5860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5861 yes:no: )
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5863echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5865echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5866 ac_header_preproc=yes
5867 ;;
5868 no:yes:* )
5869 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5870echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5872echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5874echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5876echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5878echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5879 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5880echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5881 (
5882 cat <<\_ASBOX
5883## ------------------------------------------ ##
5884## Report this to the AC_PACKAGE_NAME lists. ##
5885## ------------------------------------------ ##
5886_ASBOX
5887 ) |
5888 sed "s/^/$as_me: WARNING: /" >&2
5889 ;;
5890esac
5891echo "$as_me:$LINENO: checking for linux/version.h" >&5
5892echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5893if test "${ac_cv_header_linux_version_h+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5895else
5896 ac_cv_header_linux_version_h=$ac_header_preproc
5897fi
5898echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5899echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5900
5901fi
5902if test $ac_cv_header_linux_version_h = yes; then
5903 msgformat=linux
5904else
5905 msgformat=xopen
5906fi
5907
5908
5909
5910 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5911 fi
5912 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5913 $srcdir/po2tbl.sed.in > po2tbl.sed
5914 fi
5915
5916 if test "$PACKAGE" = "gettext"; then
5917 GT_NO="#NO#"
5918 GT_YES=
5919 else
5920 GT_NO=
5921 GT_YES="#YES#"
5922 fi
5923
5924
5925
5926 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5927
5928
5929 l=
5930
5931
5932 if test -f $srcdir/po/POTFILES.in; then
5933 test -d po || mkdir po
5934 if test "x$srcdir" != "x."; then
5935 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5936 posrcprefix="$srcdir/"
5937 else
5938 posrcprefix="../$srcdir/"
5939 fi
5940 else
5941 posrcprefix="../"
5942 fi
5943 rm -f po/POTFILES
5944 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5945 < $srcdir/po/POTFILES.in > po/POTFILES
5946 fi
5947
5948
5949localedir='${datadir}/locale'
5950
5951
5952if test "x$POSUB" != x; then
5953
5954 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5955echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5956 # Look for .po and .gmo files in the source directory.
5957 CATALOGS=
5958 XLINGUAS=
5959 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5960 # If there aren't any .gmo files the shell will give us the
5961 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5962 # weeded out.
5963 case "$cat" in *\**)
5964 continue;;
5965 esac
5966 # The quadruple backslash is collapsed to a double backslash
5967 # by the backticks, then collapsed again by the double quotes,
5968 # leaving us with one backslash in the sed expression (right
5969 # before the dot that mustn't act as a wildcard).
5970 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5971 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5972 # The user is allowed to set LINGUAS to a list of languages to
5973 # install catalogs for. If it's empty that means "all of them."
5974 if test "x$LINGUAS" = x; then
5975 CATALOGS="$CATALOGS $cat"
5976 XLINGUAS="$XLINGUAS $lang"
5977 else
5978 case "$LINGUAS" in *$lang*)
5979 CATALOGS="$CATALOGS $cat"
5980 XLINGUAS="$XLINGUAS $lang"
5981 ;;
5982 esac
5983 fi
5984 done
5985 LINGUAS="$XLINGUAS"
5986 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5987echo "${ECHO_T}$LINGUAS" >&6
5988
5989 CONFIG_ALL="$CONFIG_ALL all-po"
5990 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5991 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5992 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5993fi
5994
5995PACKAGE=gdb
5996
5997cat >>confdefs.h <<_ACEOF
5998#define PACKAGE "$PACKAGE"
5999_ACEOF
6000
6001
6002
6003debugdir=${libdir}/debug
6004
6005
6006# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6007if test "${with_separate_debug_dir+set}" = set; then
6008 withval="$with_separate_debug_dir"
6009 debugdir="${withval}"
6010fi;
6011
6012
6013 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6014 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6015 ac_define_dir=`eval echo $debugdir`
6016 ac_define_dir=`eval echo $ac_define_dir`
6017
6018cat >>confdefs.h <<_ACEOF
6019#define DEBUGDIR "$ac_define_dir"
6020_ACEOF
6021
6022
6023#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6024
6025
6026
6027subdirs="$subdirs doc testsuite"
6028
6029
6030. $srcdir/configure.host
6031
6032. $srcdir/configure.tgt
6033
6034# Fetch the default architecture and default target vector from BFD.
6035targ=$target; . $srcdir/../bfd/config.bfd
6036
6037# We only want the first architecture, so strip off the others if
6038# there is more than one.
6039targ_archs=`echo $targ_archs | sed 's/ .*//'`
6040
6041if test "x$targ_archs" != x; then
6042
6043cat >>confdefs.h <<_ACEOF
6044#define DEFAULT_BFD_ARCH $targ_archs
6045_ACEOF
6046
6047fi
6048if test "x$targ_defvec" != x; then
6049
6050cat >>confdefs.h <<_ACEOF
6051#define DEFAULT_BFD_VEC $targ_defvec
6052_ACEOF
6053
6054fi
6055
6056test "$program_prefix" != NONE &&
6057 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6058# Use a double $ so make ignores it.
6059test "$program_suffix" != NONE &&
6060 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6061# Double any \ or $. echo might interpret backslashes.
6062# By default was `s,x,x', remove it if useless.
6063cat <<\_ACEOF >conftest.sed
6064s/[\\$]/&&/g;s/;s,x,x,$//
6065_ACEOF
6066program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6067rm conftest.sed
6068
6069
6070# The CLI cannot be disabled yet, but may be in the future.
6071
6072# Enable CLI.
6073# Check whether --enable-gdbcli or --disable-gdbcli was given.
6074if test "${enable_gdbcli+set}" = set; then
6075 enableval="$enable_gdbcli"
6076 case $enableval in
6077 yes)
6078 ;;
6079 no)
6080 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6081echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6082 { (exit 1); exit 1; }; } ;;
6083 *)
6084 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6085echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6086 { (exit 1); exit 1; }; } ;;
6087 esac
6088else
6089 enable_gdbcli=yes
6090fi;
6091if test x"$enable_gdbcli" = xyes; then
6092 if test -d $srcdir/cli; then
6093 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6094 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6095 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6096 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6097 fi
6098fi
6099
6100# Enable MI.
6101# Check whether --enable-gdbmi or --disable-gdbmi was given.
6102if test "${enable_gdbmi+set}" = set; then
6103 enableval="$enable_gdbmi"
6104 case $enableval in
6105 yes | no)
6106 ;;
6107 *)
6108 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6109echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6110 { (exit 1); exit 1; }; } ;;
6111 esac
6112else
6113 enable_gdbmi=yes
6114fi;
6115if test x"$enable_gdbmi" = xyes; then
6116 if test -d $srcdir/mi; then
6117 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6118 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6119 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6120 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6121 fi
6122fi
6123
6124# Enable TUI.
6125# Check whether --enable-tui or --disable-tui was given.
6126if test "${enable_tui+set}" = set; then
6127 enableval="$enable_tui"
6128 case $enableval in
6129 yes | no)
6130 ;;
6131 *)
6132 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6133echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6134 { (exit 1); exit 1; }; } ;;
6135 esac
6136else
6137 enable_tui=yes
6138fi;
6139
6140# Enable gdbtk.
6141# Check whether --enable-gdbtk or --disable-gdbtk was given.
6142if test "${enable_gdbtk+set}" = set; then
6143 enableval="$enable_gdbtk"
6144 case $enableval in
6145 yes | no)
6146 ;;
6147 *)
6148 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6149echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6150 { (exit 1); exit 1; }; } ;;
6151 esac
6152else
6153 if test -d $srcdir/gdbtk; then
6154 enable_gdbtk=yes
6155 else
6156 enable_gdbtk=no
6157 fi
6158fi;
6159# We unconditionally disable gdbtk tests on selected platforms.
6160case $host_os in
6161 go32* | windows*)
6162 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6163echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6164 enable_gdbtk=no ;;
6165esac
6166
6167# Libunwind support.
6168
6169# Check whether --with-libunwind or --without-libunwind was given.
6170if test "${with_libunwind+set}" = set; then
6171 withval="$with_libunwind"
6172 case "${withval}" in
6173 yes) enable_libunwind=yes ;;
6174 no) enable_libunwind=no ;;
6175 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6176echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6177 { (exit 1); exit 1; }; } ;;
6178esac
6179else
6180
6181
6182for ac_header in libunwind.h
6183do
6184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6185if eval "test \"\${$as_ac_Header+set}\" = set"; then
6186 echo "$as_me:$LINENO: checking for $ac_header" >&5
6187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6188if eval "test \"\${$as_ac_Header+set}\" = set"; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190fi
6191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6193else
6194 # Is the header compilable?
6195echo "$as_me:$LINENO: checking $ac_header usability" >&5
6196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6197cat >conftest.$ac_ext <<_ACEOF
6198/* confdefs.h. */
6199_ACEOF
6200cat confdefs.h >>conftest.$ac_ext
6201cat >>conftest.$ac_ext <<_ACEOF
6202/* end confdefs.h. */
6203$ac_includes_default
6204#include <$ac_header>
6205_ACEOF
6206rm -f conftest.$ac_objext
6207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -z "$ac_c_werror_flag"
6216 || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest.$ac_objext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_header_compiler=yes
6229else
6230 echo "$as_me: failed program was:" >&5
6231sed 's/^/| /' conftest.$ac_ext >&5
6232
6233ac_header_compiler=no
6234fi
6235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6236echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6237echo "${ECHO_T}$ac_header_compiler" >&6
6238
6239# Is the header present?
6240echo "$as_me:$LINENO: checking $ac_header presence" >&5
6241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6242cat >conftest.$ac_ext <<_ACEOF
6243/* confdefs.h. */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h. */
6248#include <$ac_header>
6249_ACEOF
6250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } >/dev/null; then
6258 if test -s conftest.err; then
6259 ac_cpp_err=$ac_c_preproc_warn_flag
6260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6261 else
6262 ac_cpp_err=
6263 fi
6264else
6265 ac_cpp_err=yes
6266fi
6267if test -z "$ac_cpp_err"; then
6268 ac_header_preproc=yes
6269else
6270 echo "$as_me: failed program was:" >&5
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_header_preproc=no
6274fi
6275rm -f conftest.err conftest.$ac_ext
6276echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6277echo "${ECHO_T}$ac_header_preproc" >&6
6278
6279# So? What about this header?
6280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6281 yes:no: )
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6283echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6285echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6286 ac_header_preproc=yes
6287 ;;
6288 no:yes:* )
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6290echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6292echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6294echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6296echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6300echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6301 (
6302 cat <<\_ASBOX
6303## ------------------------------------------ ##
6304## Report this to the AC_PACKAGE_NAME lists. ##
6305## ------------------------------------------ ##
6306_ASBOX
6307 ) |
6308 sed "s/^/$as_me: WARNING: /" >&2
6309 ;;
6310esac
6311echo "$as_me:$LINENO: checking for $ac_header" >&5
6312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6313if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 eval "$as_ac_Header=\$ac_header_preproc"
6317fi
6318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6319echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6320
6321fi
6322if test `eval echo '${'$as_ac_Header'}'` = yes; then
6323 cat >>confdefs.h <<_ACEOF
6324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6325_ACEOF
6326
6327fi
6328
6329done
6330
6331
6332for ac_header in libunwind-ia64.h
6333do
6334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6335if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336 echo "$as_me:$LINENO: checking for $ac_header" >&5
6337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6338if eval "test \"\${$as_ac_Header+set}\" = set"; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340fi
6341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6343else
6344 # Is the header compilable?
6345echo "$as_me:$LINENO: checking $ac_header usability" >&5
6346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6347cat >conftest.$ac_ext <<_ACEOF
6348/* confdefs.h. */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h. */
6353$ac_includes_default
6354#include <$ac_header>
6355_ACEOF
6356rm -f conftest.$ac_objext
6357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6358 (eval $ac_compile) 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -z "$ac_c_werror_flag"
6366 || test ! -s conftest.err'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 (eval $ac_try) 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 (eval $ac_try) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 ac_header_compiler=yes
6379else
6380 echo "$as_me: failed program was:" >&5
6381sed 's/^/| /' conftest.$ac_ext >&5
6382
6383ac_header_compiler=no
6384fi
6385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6387echo "${ECHO_T}$ac_header_compiler" >&6
6388
6389# Is the header present?
6390echo "$as_me:$LINENO: checking $ac_header presence" >&5
6391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6392cat >conftest.$ac_ext <<_ACEOF
6393/* confdefs.h. */
6394_ACEOF
6395cat confdefs.h >>conftest.$ac_ext
6396cat >>conftest.$ac_ext <<_ACEOF
6397/* end confdefs.h. */
6398#include <$ac_header>
6399_ACEOF
6400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } >/dev/null; then
6408 if test -s conftest.err; then
6409 ac_cpp_err=$ac_c_preproc_warn_flag
6410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6411 else
6412 ac_cpp_err=
6413 fi
6414else
6415 ac_cpp_err=yes
6416fi
6417if test -z "$ac_cpp_err"; then
6418 ac_header_preproc=yes
6419else
6420 echo "$as_me: failed program was:" >&5
6421sed 's/^/| /' conftest.$ac_ext >&5
6422
6423 ac_header_preproc=no
6424fi
6425rm -f conftest.err conftest.$ac_ext
6426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6427echo "${ECHO_T}$ac_header_preproc" >&6
6428
6429# So? What about this header?
6430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6431 yes:no: )
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6436 ac_header_preproc=yes
6437 ;;
6438 no:yes:* )
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6451 (
6452 cat <<\_ASBOX
6453## ------------------------------------------ ##
6454## Report this to the AC_PACKAGE_NAME lists. ##
6455## ------------------------------------------ ##
6456_ASBOX
6457 ) |
6458 sed "s/^/$as_me: WARNING: /" >&2
6459 ;;
6460esac
6461echo "$as_me:$LINENO: checking for $ac_header" >&5
6462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6463if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466 eval "$as_ac_Header=\$ac_header_preproc"
6467fi
6468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470
6471fi
6472if test `eval echo '${'$as_ac_Header'}'` = yes; then
6473 cat >>confdefs.h <<_ACEOF
6474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6475_ACEOF
6476
6477fi
6478
6479done
6480
6481 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6482 enable_libunwind=yes;
6483 fi
6484
6485fi;
6486
6487if test x"$enable_libunwind" = xyes; then
6488
6489for ac_header in libunwind.h
6490do
6491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6492if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493 echo "$as_me:$LINENO: checking for $ac_header" >&5
6494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6495if eval "test \"\${$as_ac_Header+set}\" = set"; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497fi
6498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500else
6501 # Is the header compilable?
6502echo "$as_me:$LINENO: checking $ac_header usability" >&5
6503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6504cat >conftest.$ac_ext <<_ACEOF
6505/* confdefs.h. */
6506_ACEOF
6507cat confdefs.h >>conftest.$ac_ext
6508cat >>conftest.$ac_ext <<_ACEOF
6509/* end confdefs.h. */
6510$ac_includes_default
6511#include <$ac_header>
6512_ACEOF
6513rm -f conftest.$ac_objext
6514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515 (eval $ac_compile) 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_c_werror_flag"
6523 || test ! -s conftest.err'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; } &&
6529 { ac_try='test -s conftest.$ac_objext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 ac_header_compiler=yes
6536else
6537 echo "$as_me: failed program was:" >&5
6538sed 's/^/| /' conftest.$ac_ext >&5
6539
6540ac_header_compiler=no
6541fi
6542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6544echo "${ECHO_T}$ac_header_compiler" >&6
6545
6546# Is the header present?
6547echo "$as_me:$LINENO: checking $ac_header presence" >&5
6548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6549cat >conftest.$ac_ext <<_ACEOF
6550/* confdefs.h. */
6551_ACEOF
6552cat confdefs.h >>conftest.$ac_ext
6553cat >>conftest.$ac_ext <<_ACEOF
6554/* end confdefs.h. */
6555#include <$ac_header>
6556_ACEOF
6557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } >/dev/null; then
6565 if test -s conftest.err; then
6566 ac_cpp_err=$ac_c_preproc_warn_flag
6567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6568 else
6569 ac_cpp_err=
6570 fi
6571else
6572 ac_cpp_err=yes
6573fi
6574if test -z "$ac_cpp_err"; then
6575 ac_header_preproc=yes
6576else
6577 echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 ac_header_preproc=no
6581fi
6582rm -f conftest.err conftest.$ac_ext
6583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6584echo "${ECHO_T}$ac_header_preproc" >&6
6585
6586# So? What about this header?
6587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6588 yes:no: )
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6593 ac_header_preproc=yes
6594 ;;
6595 no:yes:* )
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6603echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6608 (
6609 cat <<\_ASBOX
6610## ------------------------------------------ ##
6611## Report this to the AC_PACKAGE_NAME lists. ##
6612## ------------------------------------------ ##
6613_ASBOX
6614 ) |
6615 sed "s/^/$as_me: WARNING: /" >&2
6616 ;;
6617esac
6618echo "$as_me:$LINENO: checking for $ac_header" >&5
6619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6620if eval "test \"\${$as_ac_Header+set}\" = set"; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622else
6623 eval "$as_ac_Header=\$ac_header_preproc"
6624fi
6625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6627
6628fi
6629if test `eval echo '${'$as_ac_Header'}'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632_ACEOF
6633
6634fi
6635
6636done
6637
6638
6639for ac_header in libunwind-ia64.h
6640do
6641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6642if eval "test \"\${$as_ac_Header+set}\" = set"; then
6643 echo "$as_me:$LINENO: checking for $ac_header" >&5
6644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6645if eval "test \"\${$as_ac_Header+set}\" = set"; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647fi
6648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6650else
6651 # Is the header compilable?
6652echo "$as_me:$LINENO: checking $ac_header usability" >&5
6653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6654cat >conftest.$ac_ext <<_ACEOF
6655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
6660$ac_includes_default
6661#include <$ac_header>
6662_ACEOF
6663rm -f conftest.$ac_objext
6664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665 (eval $ac_compile) 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -z "$ac_c_werror_flag"
6673 || test ! -s conftest.err'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 (eval $ac_try) 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 ac_header_compiler=yes
6686else
6687 echo "$as_me: failed program was:" >&5
6688sed 's/^/| /' conftest.$ac_ext >&5
6689
6690ac_header_compiler=no
6691fi
6692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6693echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6694echo "${ECHO_T}$ac_header_compiler" >&6
6695
6696# Is the header present?
6697echo "$as_me:$LINENO: checking $ac_header presence" >&5
6698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6699cat >conftest.$ac_ext <<_ACEOF
6700/* confdefs.h. */
6701_ACEOF
6702cat confdefs.h >>conftest.$ac_ext
6703cat >>conftest.$ac_ext <<_ACEOF
6704/* end confdefs.h. */
6705#include <$ac_header>
6706_ACEOF
6707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } >/dev/null; then
6715 if test -s conftest.err; then
6716 ac_cpp_err=$ac_c_preproc_warn_flag
6717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6718 else
6719 ac_cpp_err=
6720 fi
6721else
6722 ac_cpp_err=yes
6723fi
6724if test -z "$ac_cpp_err"; then
6725 ac_header_preproc=yes
6726else
6727 echo "$as_me: failed program was:" >&5
6728sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_header_preproc=no
6731fi
6732rm -f conftest.err conftest.$ac_ext
6733echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6734echo "${ECHO_T}$ac_header_preproc" >&6
6735
6736# So? What about this header?
6737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6738 yes:no: )
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6743 ac_header_preproc=yes
6744 ;;
6745 no:yes:* )
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6749echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6753echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6758 (
6759 cat <<\_ASBOX
6760## ------------------------------------------ ##
6761## Report this to the AC_PACKAGE_NAME lists. ##
6762## ------------------------------------------ ##
6763_ASBOX
6764 ) |
6765 sed "s/^/$as_me: WARNING: /" >&2
6766 ;;
6767esac
6768echo "$as_me:$LINENO: checking for $ac_header" >&5
6769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6770if eval "test \"\${$as_ac_Header+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
6773 eval "$as_ac_Header=\$ac_header_preproc"
6774fi
6775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6777
6778fi
6779if test `eval echo '${'$as_ac_Header'}'` = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6782_ACEOF
6783
6784fi
6785
6786done
6787
6788 cat >>confdefs.h <<\_ACEOF
6789#define HAVE_LIBUNWIND 1
6790_ACEOF
6791
6792 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6793 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6794 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6795fi
6796
6797# Profiling support.
6798# Check whether --enable-profiling or --disable-profiling was given.
6799if test "${enable_profiling+set}" = set; then
6800 enableval="$enable_profiling"
6801 case $enableval in
6802 yes | no)
6803 ;;
6804 *)
6805 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6806echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6807 { (exit 1); exit 1; }; } ;;
6808 esac
6809else
6810 enable_profiling=no
6811fi;
6812
6813
6814
6815for ac_func in monstartup _mcleanup
6816do
6817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6818echo "$as_me:$LINENO: checking for $ac_func" >&5
6819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6820if eval "test \"\${$as_ac_var+set}\" = set"; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822else
6823 cat >conftest.$ac_ext <<_ACEOF
6824/* confdefs.h. */
6825_ACEOF
6826cat confdefs.h >>conftest.$ac_ext
6827cat >>conftest.$ac_ext <<_ACEOF
6828/* end confdefs.h. */
6829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6831#define $ac_func innocuous_$ac_func
6832
6833/* System header to define __stub macros and hopefully few prototypes,
6834 which can conflict with char $ac_func (); below.
6835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6836 <limits.h> exists even on freestanding compilers. */
6837
6838#ifdef __STDC__
6839# include <limits.h>
6840#else
6841# include <assert.h>
6842#endif
6843
6844#undef $ac_func
6845
6846/* Override any gcc2 internal prototype to avoid an error. */
6847#ifdef __cplusplus
6848extern "C"
6849{
6850#endif
6851/* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6853char $ac_func ();
6854/* The GNU C library defines this for functions which it implements
6855 to always fail with ENOSYS. Some functions are actually named
6856 something starting with __ and the normal name is an alias. */
6857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6858choke me
6859#else
6860char (*f) () = $ac_func;
6861#endif
6862#ifdef __cplusplus
6863}
6864#endif
6865
6866int
6867main ()
6868{
6869return f != $ac_func;
6870 ;
6871 return 0;
6872}
6873_ACEOF
6874rm -f conftest.$ac_objext conftest$ac_exeext
6875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag"
6884 || test ! -s conftest.err'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; } &&
6890 { ac_try='test -s conftest$ac_exeext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 eval "$as_ac_var=yes"
6897else
6898 echo "$as_me: failed program was:" >&5
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
6901eval "$as_ac_var=no"
6902fi
6903rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905fi
6906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6908if test `eval echo '${'$as_ac_var'}'` = yes; then
6909 cat >>confdefs.h <<_ACEOF
6910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6911_ACEOF
6912
6913fi
6914done
6915
6916echo "$as_me:$LINENO: checking for _etext" >&5
6917echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6918if test "${ac_cv_var__etext+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920else
6921 cat >conftest.$ac_ext <<_ACEOF
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927#include <stdlib.h>
6928extern char _etext;
6929
6930int
6931main ()
6932{
6933free (&_etext);
6934 ;
6935 return 0;
6936}
6937_ACEOF
6938rm -f conftest.$ac_objext conftest$ac_exeext
6939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_var__etext=yes
6961else
6962 echo "$as_me: failed program was:" >&5
6963sed 's/^/| /' conftest.$ac_ext >&5
6964
6965ac_cv_var__etext=no
6966fi
6967rm -f conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969fi
6970echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6971echo "${ECHO_T}$ac_cv_var__etext" >&6
6972if test $ac_cv_var__etext = yes; then
6973
6974cat >>confdefs.h <<\_ACEOF
6975#define HAVE__ETEXT 1
6976_ACEOF
6977
6978fi
6979if test "$enable_profiling" = yes ; then
6980 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6981 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6982echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6983 { (exit 1); exit 1; }; }
6984 fi
6985 PROFILE_CFLAGS=-pg
6986 OLD_CFLAGS="$CFLAGS"
6987 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6988
6989 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6990echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6991if test "${ac_cv_cc_supports_pg+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6993else
bec39cab
AC
6994 cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h. */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h. */
7000
7001int
7002main ()
7003{
7004int x;
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext
7010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_cc_supports_pg=yes
7032else
7033 echo "$as_me: failed program was:" >&5
7034sed 's/^/| /' conftest.$ac_ext >&5
7035
7036ac_cv_cc_supports_pg=no
7037fi
7038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039fi
7040echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7041echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
7042
7043 if test $ac_cv_cc_supports_pg = no; then
7044 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7045echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7046 { (exit 1); exit 1; }; }
7047 fi
7048
7049 CFLAGS="$OLD_CFLAGS"
7050fi
7051
7052# --------------------- #
7053# Checks for programs. #
7054# --------------------- #
7055
7056for ac_prog in gawk mawk nawk awk
7057do
7058 # Extract the first word of "$ac_prog", so it can be a program name with args.
7059set dummy $ac_prog; ac_word=$2
7060echo "$as_me:$LINENO: checking for $ac_word" >&5
7061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7062if test "${ac_cv_prog_AWK+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
7065 if test -n "$AWK"; then
7066 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_AWK="$ac_prog"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079done
7080done
7081
7082fi
7083fi
7084AWK=$ac_cv_prog_AWK
7085if test -n "$AWK"; then
7086 echo "$as_me:$LINENO: result: $AWK" >&5
7087echo "${ECHO_T}$AWK" >&6
7088else
7089 echo "$as_me:$LINENO: result: no" >&5
7090echo "${ECHO_T}no" >&6
7091fi
7092
7093 test -n "$AWK" && break
7094done
7095
7096# Find a good install program. We prefer a C program (faster),
7097# so one script is as good as another. But avoid the broken or
7098# incompatible versions:
7099# SysV /etc/install, /usr/sbin/install
7100# SunOS /usr/etc/install
7101# IRIX /sbin/install
7102# AIX /bin/install
7103# AmigaOS /C/install, which installs bootblocks on floppy discs
7104# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7105# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7106# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7107# OS/2's system install, which has a completely different semantic
7108# ./install, which can be erroneously created by make from ./install.sh.
7109echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7110echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7111if test -z "$INSTALL"; then
7112if test "${ac_cv_path_install+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 # Account for people who put trailing slashes in PATH elements.
7121case $as_dir/ in
7122 ./ | .// | /cC/* | \
7123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7124 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7125 /usr/ucb/* ) ;;
c906108c 7126 *)
bec39cab
AC
7127 # OSF1 and SCO ODT 3.0 have their own names for install.
7128 # Don't use installbsd from OSF since it installs stuff as root
7129 # by default.
7130 for ac_prog in ginstall scoinst install; do
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7133 if test $ac_prog = install &&
7134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7135 # AIX install. It has an incompatible calling convention.
7136 :
7137 elif test $ac_prog = install &&
7138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7139 # program-specific install script used by HP pwplus--don't use.
7140 :
7141 else
7142 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7143 break 3
7144 fi
7145 fi
7146 done
7147 done
7148 ;;
c906108c 7149esac
bec39cab
AC
7150done
7151
7152
7153fi
7154 if test "${ac_cv_path_install+set}" = set; then
7155 INSTALL=$ac_cv_path_install
7156 else
7157 # As a last resort, use the slow shell script. We don't cache a
7158 # path for INSTALL within a source directory, because that will
7159 # break other packages using the cache if that directory is
7160 # removed, or if the path is relative.
7161 INSTALL=$ac_install_sh
7162 fi
7163fi
7164echo "$as_me:$LINENO: result: $INSTALL" >&5
7165echo "${ECHO_T}$INSTALL" >&6
7166
7167# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7168# It thinks the first close brace ends the variable substitution.
7169test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7170
7171test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7172
7173test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7174
7175echo "$as_me:$LINENO: checking whether ln -s works" >&5
7176echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7177LN_S=$as_ln_s
7178if test "$LN_S" = "ln -s"; then
7179 echo "$as_me:$LINENO: result: yes" >&5
7180echo "${ECHO_T}yes" >&6
7181else
7182 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7183echo "${ECHO_T}no, using $LN_S" >&6
7184fi
7185
7186if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7188set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7189echo "$as_me:$LINENO: checking for $ac_word" >&5
7190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7191if test "${ac_cv_prog_RANLIB+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194 if test -n "$RANLIB"; then
7195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7196else
7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 break 2
7207 fi
7208done
7209done
7210
7211fi
7212fi
7213RANLIB=$ac_cv_prog_RANLIB
7214if test -n "$RANLIB"; then
7215 echo "$as_me:$LINENO: result: $RANLIB" >&5
7216echo "${ECHO_T}$RANLIB" >&6
7217else
7218 echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6
7220fi
7221
7222fi
7223if test -z "$ac_cv_prog_RANLIB"; then
7224 ac_ct_RANLIB=$RANLIB
7225 # Extract the first word of "ranlib", so it can be a program name with args.
7226set dummy ranlib; ac_word=$2
7227echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 if test -n "$ac_ct_RANLIB"; then
7233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7234else
7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_ac_ct_RANLIB="ranlib"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247done
7248
7249 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7250fi
7251fi
7252ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7253if test -n "$ac_ct_RANLIB"; then
7254 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7255echo "${ECHO_T}$ac_ct_RANLIB" >&6
7256else
7257 echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6
7259fi
7260
7261 RANLIB=$ac_ct_RANLIB
7262else
7263 RANLIB="$ac_cv_prog_RANLIB"
7264fi
7265
7266for ac_prog in 'bison -y' byacc
7267do
7268 # Extract the first word of "$ac_prog", so it can be a program name with args.
7269set dummy $ac_prog; ac_word=$2
7270echo "$as_me:$LINENO: checking for $ac_word" >&5
7271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7272if test "${ac_cv_prog_YACC+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275 if test -n "$YACC"; then
7276 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7277else
7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_YACC="$ac_prog"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289done
7290done
7291
7292fi
7293fi
7294YACC=$ac_cv_prog_YACC
7295if test -n "$YACC"; then
7296 echo "$as_me:$LINENO: result: $YACC" >&5
7297echo "${ECHO_T}$YACC" >&6
7298else
7299 echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
7301fi
7302
7303 test -n "$YACC" && break
7304done
7305test -n "$YACC" || YACC="yacc"
7306
7307
7308if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7310set dummy ${ac_tool_prefix}ar; ac_word=$2
7311echo "$as_me:$LINENO: checking for $ac_word" >&5
7312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7313if test "${ac_cv_prog_AR+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315else
7316 if test -n "$AR"; then
7317 ac_cv_prog_AR="$AR" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_AR="${ac_tool_prefix}ar"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330done
7331done
7332
7333fi
7334fi
7335AR=$ac_cv_prog_AR
7336if test -n "$AR"; then
7337 echo "$as_me:$LINENO: result: $AR" >&5
7338echo "${ECHO_T}$AR" >&6
7339else
7340 echo "$as_me:$LINENO: result: no" >&5
7341echo "${ECHO_T}no" >&6
7342fi
7343
7344fi
7345if test -z "$ac_cv_prog_AR"; then
7346 ac_ct_AR=$AR
7347 # Extract the first word of "ar", so it can be a program name with args.
7348set dummy ar; ac_word=$2
7349echo "$as_me:$LINENO: checking for $ac_word" >&5
7350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7351if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354 if test -n "$ac_ct_AR"; then
7355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_AR="ar"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368done
7369done
7370
7371fi
7372fi
7373ac_ct_AR=$ac_cv_prog_ac_ct_AR
7374if test -n "$ac_ct_AR"; then
7375 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7376echo "${ECHO_T}$ac_ct_AR" >&6
7377else
7378 echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6
7380fi
7381
7382 AR=$ac_ct_AR
7383else
7384 AR="$ac_cv_prog_AR"
7385fi
7386
7387if test -n "$ac_tool_prefix"; then
7388 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7389set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7390echo "$as_me:$LINENO: checking for $ac_word" >&5
7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7392if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395 if test -n "$DLLTOOL"; then
7396 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7397else
7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH
7400do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7408 fi
7409done
7410done
7411
7412fi
7413fi
7414DLLTOOL=$ac_cv_prog_DLLTOOL
7415if test -n "$DLLTOOL"; then
7416 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7417echo "${ECHO_T}$DLLTOOL" >&6
7418else
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421fi
7422
7423fi
7424if test -z "$ac_cv_prog_DLLTOOL"; then
7425 ac_ct_DLLTOOL=$DLLTOOL
7426 # Extract the first word of "dlltool", so it can be a program name with args.
7427set dummy dlltool; ac_word=$2
7428echo "$as_me:$LINENO: checking for $ac_word" >&5
7429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432else
7433 if test -n "$ac_ct_DLLTOOL"; then
7434 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7435else
7436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447done
7448done
7449
7450fi
7451fi
7452ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7453if test -n "$ac_ct_DLLTOOL"; then
7454 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7455echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7456else
7457 echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
7459fi
7460
7461 DLLTOOL=$ac_ct_DLLTOOL
7462else
7463 DLLTOOL="$ac_cv_prog_DLLTOOL"
7464fi
7465
7466if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7468set dummy ${ac_tool_prefix}windres; ac_word=$2
7469echo "$as_me:$LINENO: checking for $ac_word" >&5
7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7471if test "${ac_cv_prog_WINDRES+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474 if test -n "$WINDRES"; then
7475 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7476else
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488done
7489done
7490
7491fi
7492fi
7493WINDRES=$ac_cv_prog_WINDRES
7494if test -n "$WINDRES"; then
7495 echo "$as_me:$LINENO: result: $WINDRES" >&5
7496echo "${ECHO_T}$WINDRES" >&6
7497else
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
7500fi
7501
7502fi
7503if test -z "$ac_cv_prog_WINDRES"; then
7504 ac_ct_WINDRES=$WINDRES
7505 # Extract the first word of "windres", so it can be a program name with args.
7506set dummy windres; ac_word=$2
7507echo "$as_me:$LINENO: checking for $ac_word" >&5
7508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7509if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511else
7512 if test -n "$ac_ct_WINDRES"; then
7513 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7514else
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_WINDRES="windres"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528
7529fi
7530fi
7531ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7532if test -n "$ac_ct_WINDRES"; then
7533 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7534echo "${ECHO_T}$ac_ct_WINDRES" >&6
7535else
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
c906108c 7538fi
bec39cab
AC
7539
7540 WINDRES=$ac_ct_WINDRES
c906108c 7541else
bec39cab 7542 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7543fi
7544
bec39cab
AC
7545
7546# Needed for GNU/Hurd.
7547if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7549set dummy ${ac_tool_prefix}mig; ac_word=$2
7550echo "$as_me:$LINENO: checking for $ac_word" >&5
7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7552if test "${ac_cv_prog_MIG+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7554else
bec39cab
AC
7555 if test -n "$MIG"; then
7556 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7557else
7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
7560do
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 break 2
7568 fi
7569done
7570done
7571
c906108c 7572fi
bec39cab
AC
7573fi
7574MIG=$ac_cv_prog_MIG
7575if test -n "$MIG"; then
7576 echo "$as_me:$LINENO: result: $MIG" >&5
7577echo "${ECHO_T}$MIG" >&6
c906108c 7578else
bec39cab
AC
7579 echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6
c906108c
SS
7581fi
7582
bec39cab
AC
7583fi
7584if test -z "$ac_cv_prog_MIG"; then
7585 ac_ct_MIG=$MIG
7586 # Extract the first word of "mig", so it can be a program name with args.
7587set dummy mig; ac_word=$2
7588echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7590if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 if test -n "$ac_ct_MIG"; then
7594 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 ac_cv_prog_ac_ct_MIG="mig"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607done
7608done
c906108c 7609
bec39cab
AC
7610fi
7611fi
7612ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7613if test -n "$ac_ct_MIG"; then
7614 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7615echo "${ECHO_T}$ac_ct_MIG" >&6
7616else
7617 echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6
7619fi
c906108c 7620
bec39cab
AC
7621 MIG=$ac_ct_MIG
7622else
7623 MIG="$ac_cv_prog_MIG"
7624fi
c906108c 7625
c906108c 7626
bec39cab
AC
7627# ---------------------- #
7628# Checks for libraries. #
7629# ---------------------- #
c906108c 7630
bec39cab 7631# We might need to link with -lm; most simulators need it.
c906108c 7632
bec39cab
AC
7633echo "$as_me:$LINENO: checking for main in -lm" >&5
7634echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7635if test "${ac_cv_lib_m_main+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638 ac_check_lib_save_LIBS=$LIBS
7639LIBS="-lm $LIBS"
7640cat >conftest.$ac_ext <<_ACEOF
7641/* confdefs.h. */
7642_ACEOF
7643cat confdefs.h >>conftest.$ac_ext
7644cat >>conftest.$ac_ext <<_ACEOF
7645/* end confdefs.h. */
c906108c 7646
c906108c 7647
bec39cab
AC
7648int
7649main ()
7650{
7651main ();
7652 ;
7653 return 0;
7654}
7655_ACEOF
7656rm -f conftest.$ac_objext conftest$ac_exeext
7657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag"
7666 || test ! -s conftest.err'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_m_main=yes
7679else
7680 echo "$as_me: failed program was:" >&5
7681sed 's/^/| /' conftest.$ac_ext >&5
7682
7683ac_cv_lib_m_main=no
7684fi
7685rm -f conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687LIBS=$ac_check_lib_save_LIBS
7688fi
7689echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7690echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7691if test $ac_cv_lib_m_main = yes; then
7692 cat >>confdefs.h <<_ACEOF
7693#define HAVE_LIBM 1
7694_ACEOF
7695
7696 LIBS="-lm $LIBS"
c906108c 7697
c906108c 7698fi
bec39cab
AC
7699
7700
7701# We need to link with -lw to get `wctype' on Solaris before Solaris
7702# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7703# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7704# is known to have this problem). Therefore we avoid libw if we can.
7705echo "$as_me:$LINENO: checking for wctype" >&5
7706echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7707if test "${ac_cv_func_wctype+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710 cat >conftest.$ac_ext <<_ACEOF
7711/* confdefs.h. */
7712_ACEOF
7713cat confdefs.h >>conftest.$ac_ext
7714cat >>conftest.$ac_ext <<_ACEOF
7715/* end confdefs.h. */
7716/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7718#define wctype innocuous_wctype
7719
7720/* System header to define __stub macros and hopefully few prototypes,
7721 which can conflict with char wctype (); below.
7722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7723 <limits.h> exists even on freestanding compilers. */
7724
7725#ifdef __STDC__
7726# include <limits.h>
7727#else
7728# include <assert.h>
7729#endif
7730
7731#undef wctype
7732
7733/* Override any gcc2 internal prototype to avoid an error. */
7734#ifdef __cplusplus
7735extern "C"
7736{
7737#endif
7738/* We use char because int might match the return type of a gcc2
7739 builtin and then its argument prototype would still apply. */
7740char wctype ();
7741/* The GNU C library defines this for functions which it implements
7742 to always fail with ENOSYS. Some functions are actually named
7743 something starting with __ and the normal name is an alias. */
7744#if defined (__stub_wctype) || defined (__stub___wctype)
7745choke me
7746#else
7747char (*f) () = wctype;
7748#endif
7749#ifdef __cplusplus
7750}
7751#endif
7752
7753int
7754main ()
7755{
7756return f != wctype;
7757 ;
7758 return 0;
7759}
7760_ACEOF
7761rm -f conftest.$ac_objext conftest$ac_exeext
7762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7763 (eval $ac_link) 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } &&
7770 { ac_try='test -z "$ac_c_werror_flag"
7771 || test ! -s conftest.err'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 (eval $ac_try) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; } &&
7777 { ac_try='test -s conftest$ac_exeext'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_func_wctype=yes
7784else
7785 echo "$as_me: failed program was:" >&5
7786sed 's/^/| /' conftest.$ac_ext >&5
7787
7788ac_cv_func_wctype=no
7789fi
7790rm -f conftest.err conftest.$ac_objext \
7791 conftest$ac_exeext conftest.$ac_ext
7792fi
7793echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7794echo "${ECHO_T}$ac_cv_func_wctype" >&6
7795if test $ac_cv_func_wctype = yes; then
7796 :
c906108c 7797else
c906108c 7798
bec39cab
AC
7799echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7800echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7801if test "${ac_cv_lib_w_wctype+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803else
7804 ac_check_lib_save_LIBS=$LIBS
7805LIBS="-lw $LIBS"
7806cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
c906108c 7812
bec39cab
AC
7813/* Override any gcc2 internal prototype to avoid an error. */
7814#ifdef __cplusplus
7815extern "C"
7816#endif
7817/* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7819char wctype ();
7820int
7821main ()
7822{
7823wctype ();
7824 ;
7825 return 0;
7826}
7827_ACEOF
7828rm -f conftest.$ac_objext conftest$ac_exeext
7829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
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); }; } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_cv_lib_w_wctype=yes
7851else
7852 echo "$as_me: failed program was:" >&5
7853sed 's/^/| /' conftest.$ac_ext >&5
7854
7855ac_cv_lib_w_wctype=no
7856fi
7857rm -f conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859LIBS=$ac_check_lib_save_LIBS
7860fi
7861echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7862echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7863if test $ac_cv_lib_w_wctype = yes; then
7864 cat >>confdefs.h <<_ACEOF
7865#define HAVE_LIBW 1
7866_ACEOF
c906108c 7867
bec39cab 7868 LIBS="-lw $LIBS"
c906108c 7869
bec39cab 7870fi
c906108c 7871
bec39cab 7872fi
c906108c 7873
ddc9cd0f 7874
bec39cab
AC
7875# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7876echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7877echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7878if test "${ac_cv_search_gethostbyname+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881 ac_func_search_save_LIBS=$LIBS
7882ac_cv_search_gethostbyname=no
7883cat >conftest.$ac_ext <<_ACEOF
7884/* confdefs.h. */
7885_ACEOF
7886cat confdefs.h >>conftest.$ac_ext
7887cat >>conftest.$ac_ext <<_ACEOF
7888/* end confdefs.h. */
ddc9cd0f 7889
bec39cab
AC
7890/* Override any gcc2 internal prototype to avoid an error. */
7891#ifdef __cplusplus
7892extern "C"
7893#endif
7894/* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7896char gethostbyname ();
7897int
7898main ()
7899{
7900gethostbyname ();
7901 ;
7902 return 0;
7903}
7904_ACEOF
7905rm -f conftest.$ac_objext conftest$ac_exeext
7906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 ac_cv_search_gethostbyname="none required"
7928else
7929 echo "$as_me: failed program was:" >&5
7930sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7931
bec39cab
AC
7932fi
7933rm -f conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7935if test "$ac_cv_search_gethostbyname" = no; then
7936 for ac_lib in nsl; do
7937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7938 cat >conftest.$ac_ext <<_ACEOF
7939/* confdefs.h. */
7940_ACEOF
7941cat confdefs.h >>conftest.$ac_ext
7942cat >>conftest.$ac_ext <<_ACEOF
7943/* end confdefs.h. */
ddc9cd0f 7944
bec39cab
AC
7945/* Override any gcc2 internal prototype to avoid an error. */
7946#ifdef __cplusplus
7947extern "C"
7948#endif
7949/* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7951char gethostbyname ();
7952int
7953main ()
7954{
7955gethostbyname ();
7956 ;
7957 return 0;
7958}
7959_ACEOF
7960rm -f conftest.$ac_objext conftest$ac_exeext
7961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_cv_search_gethostbyname="-l$ac_lib"
7983break
7984else
7985 echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
7988fi
7989rm -f conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7991 done
bec39cab
AC
7992fi
7993LIBS=$ac_func_search_save_LIBS
7994fi
7995echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7996echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7997if test "$ac_cv_search_gethostbyname" != no; then
7998 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7999
ddc9cd0f
AC
8000fi
8001
0fbb3da7 8002
bec39cab
AC
8003# Some systems (e.g. Solaris) have `socketpair' in libsocket.
8004echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8005echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8006if test "${ac_cv_search_socketpair+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009 ac_func_search_save_LIBS=$LIBS
8010ac_cv_search_socketpair=no
8011cat >conftest.$ac_ext <<_ACEOF
8012/* confdefs.h. */
8013_ACEOF
8014cat confdefs.h >>conftest.$ac_ext
8015cat >>conftest.$ac_ext <<_ACEOF
8016/* end confdefs.h. */
0fbb3da7 8017
bec39cab
AC
8018/* Override any gcc2 internal prototype to avoid an error. */
8019#ifdef __cplusplus
8020extern "C"
8021#endif
8022/* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8024char socketpair ();
8025int
8026main ()
8027{
8028socketpair ();
8029 ;
8030 return 0;
8031}
8032_ACEOF
8033rm -f conftest.$ac_objext conftest$ac_exeext
8034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8035 (eval $ac_link) 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -z "$ac_c_werror_flag"
8043 || test ! -s conftest.err'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 (eval $ac_try) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; } &&
8049 { ac_try='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 ac_cv_search_socketpair="none required"
8056else
8057 echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 8059
5b5d99cf 8060fi
bec39cab
AC
8061rm -f conftest.err conftest.$ac_objext \
8062 conftest$ac_exeext conftest.$ac_ext
8063if test "$ac_cv_search_socketpair" = no; then
8064 for ac_lib in socket; do
8065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8066 cat >conftest.$ac_ext <<_ACEOF
8067/* confdefs.h. */
8068_ACEOF
8069cat confdefs.h >>conftest.$ac_ext
8070cat >>conftest.$ac_ext <<_ACEOF
8071/* end confdefs.h. */
5b5d99cf 8072
bec39cab
AC
8073/* Override any gcc2 internal prototype to avoid an error. */
8074#ifdef __cplusplus
8075extern "C"
8076#endif
8077/* We use char because int might match the return type of a gcc2
8078 builtin and then its argument prototype would still apply. */
8079char socketpair ();
8080int
8081main ()
8082{
8083socketpair ();
8084 ;
8085 return 0;
8086}
8087_ACEOF
8088rm -f conftest.$ac_objext conftest$ac_exeext
8089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try='test -z "$ac_c_werror_flag"
8098 || test ! -s conftest.err'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 (eval $ac_try) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; } &&
8104 { ac_try='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_search_socketpair="-l$ac_lib"
8111break
8112else
8113 echo "$as_me: failed program was:" >&5
8114sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8115
bec39cab
AC
8116fi
8117rm -f conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 done
8120fi
8121LIBS=$ac_func_search_save_LIBS
8122fi
8123echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8124echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8125if test "$ac_cv_search_socketpair" != no; then
8126 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8127
bec39cab 8128fi
96baa820 8129
c906108c 8130
bec39cab
AC
8131# For the TUI, we need enhanced curses functionality.
8132#
8133# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8134# curses library because the latter might not provide all the
8135# functionality we need. However, this leads to problems on systems
8136# where the linker searches /usr/local/lib, but the compiler doesn't
8137# search /usr/local/include, if ncurses is installed in /usr/local. A
8138# default installation of ncurses on alpha*-dec-osf* will lead to such
8139# a situation.
8140echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8141echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8142if test "${ac_cv_search_waddstr+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144else
8145 ac_func_search_save_LIBS=$LIBS
8146ac_cv_search_waddstr=no
8147cat >conftest.$ac_ext <<_ACEOF
8148/* confdefs.h. */
8149_ACEOF
8150cat confdefs.h >>conftest.$ac_ext
8151cat >>conftest.$ac_ext <<_ACEOF
8152/* end confdefs.h. */
c906108c 8153
bec39cab
AC
8154/* Override any gcc2 internal prototype to avoid an error. */
8155#ifdef __cplusplus
8156extern "C"
8157#endif
8158/* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8160char waddstr ();
8161int
8162main ()
8163{
8164waddstr ();
8165 ;
8166 return 0;
8167}
8168_ACEOF
8169rm -f conftest.$ac_objext conftest$ac_exeext
8170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171 (eval $ac_link) 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 ac_cv_search_waddstr="none required"
8192else
8193 echo "$as_me: failed program was:" >&5
8194sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8195
bec39cab
AC
8196fi
8197rm -f conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199if test "$ac_cv_search_waddstr" = no; then
8200 for ac_lib in ncurses cursesX curses; do
8201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8202 cat >conftest.$ac_ext <<_ACEOF
8203/* confdefs.h. */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h. */
1ba607ad 8208
bec39cab
AC
8209/* Override any gcc2 internal prototype to avoid an error. */
8210#ifdef __cplusplus
8211extern "C"
8212#endif
8213/* We use char because int might match the return type of a gcc2
8214 builtin and then its argument prototype would still apply. */
8215char waddstr ();
8216int
8217main ()
8218{
8219waddstr ();
8220 ;
8221 return 0;
8222}
8223_ACEOF
8224rm -f conftest.$ac_objext conftest$ac_exeext
8225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8226 (eval $ac_link) 2>conftest.er1
8227 ac_status=$?
8228 grep -v '^ *+' conftest.er1 >conftest.err
8229 rm -f conftest.er1
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
8233 { ac_try='test -z "$ac_c_werror_flag"
8234 || test ! -s conftest.err'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_cv_search_waddstr="-l$ac_lib"
8247break
8248else
8249 echo "$as_me: failed program was:" >&5
8250sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8251
8252fi
bec39cab
AC
8253rm -f conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
8255 done
1ba607ad 8256fi
bec39cab
AC
8257LIBS=$ac_func_search_save_LIBS
8258fi
8259echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8260echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8261if test "$ac_cv_search_waddstr" != no; then
8262 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8263
8bb2c122 8264fi
8bb2c122 8265
8bb2c122 8266
bec39cab
AC
8267# Since GDB uses Readline, we need termcap functionality. In many
8268# cases this will be provided by the curses library, but some systems
8269# have a seperate termcap library, or no curses library at all.
8bb2c122 8270
bec39cab
AC
8271case $host_os in
8272 cygwin*)
8273 if test -d $srcdir/libtermcap; then
8274 LIBS="../libtermcap/libtermcap.a $LIBS"
8275 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8276 fi ;;
8277 go32* | *djgpp*)
8278 ac_cv_search_tgetent="none required"
8279 ;;
8280esac
627af7ea 8281
bec39cab
AC
8282# These are the libraries checked by Readline.
8283echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8284echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8285if test "${ac_cv_search_tgetent+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287else
8288 ac_func_search_save_LIBS=$LIBS
8289ac_cv_search_tgetent=no
8290cat >conftest.$ac_ext <<_ACEOF
8291/* confdefs.h. */
8292_ACEOF
8293cat confdefs.h >>conftest.$ac_ext
8294cat >>conftest.$ac_ext <<_ACEOF
8295/* end confdefs.h. */
8296
8297/* Override any gcc2 internal prototype to avoid an error. */
8298#ifdef __cplusplus
8299extern "C"
8300#endif
8301/* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8303char tgetent ();
8304int
8305main ()
8306{
8307tgetent ();
8308 ;
8309 return 0;
8310}
8311_ACEOF
8312rm -f conftest.$ac_objext conftest$ac_exeext
8313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_search_tgetent="none required"
627af7ea 8335else
bec39cab
AC
8336 echo "$as_me: failed program was:" >&5
8337sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8338
627af7ea 8339fi
bec39cab
AC
8340rm -f conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342if test "$ac_cv_search_tgetent" = no; then
8343 for ac_lib in termcap tinfo curses ncurses; do
8344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8345 cat >conftest.$ac_ext <<_ACEOF
8346/* confdefs.h. */
8347_ACEOF
8348cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h. */
627af7ea 8351
bec39cab
AC
8352/* Override any gcc2 internal prototype to avoid an error. */
8353#ifdef __cplusplus
8354extern "C"
8355#endif
8356/* We use char because int might match the return type of a gcc2
8357 builtin and then its argument prototype would still apply. */
8358char tgetent ();
8359int
8360main ()
8361{
8362tgetent ();
8363 ;
8364 return 0;
8365}
8366_ACEOF
8367rm -f conftest.$ac_objext conftest$ac_exeext
8368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag"
8377 || test ! -s conftest.err'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 (eval $ac_try) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_search_tgetent="-l$ac_lib"
8390break
627af7ea 8391else
bec39cab
AC
8392 echo "$as_me: failed program was:" >&5
8393sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8394
627af7ea 8395fi
bec39cab
AC
8396rm -f conftest.err conftest.$ac_objext \
8397 conftest$ac_exeext conftest.$ac_ext
8398 done
8399fi
8400LIBS=$ac_func_search_save_LIBS
8401fi
8402echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8403echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8404if test "$ac_cv_search_tgetent" != no; then
8405 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8406
06825bd1
MK
8407fi
8408
06825bd1 8409
bec39cab
AC
8410if test "$ac_cv_search_tgetent" = no; then
8411 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8412echo "$as_me: error: no termcap library found" >&2;}
8413 { (exit 1); exit 1; }; }
8ee53726
MK
8414fi
8415
bec39cab
AC
8416# ------------------------- #
8417# Checks for header files. #
8418# ------------------------- #
8ee53726 8419
0e5d83e3 8420
bec39cab
AC
8421
8422
8423
8424
8425ac_header_dirent=no
8426for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8427 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8428echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8429echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8430if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432else
8433 cat >conftest.$ac_ext <<_ACEOF
8434/* confdefs.h. */
8435_ACEOF
8436cat confdefs.h >>conftest.$ac_ext
8437cat >>conftest.$ac_ext <<_ACEOF
8438/* end confdefs.h. */
8439#include <sys/types.h>
0e5d83e3 8440#include <$ac_hdr>
bec39cab
AC
8441
8442int
8443main ()
8444{
8445if ((DIR *) 0)
8446return 0;
8447 ;
8448 return 0;
8449}
8450_ACEOF
8451rm -f conftest.$ac_objext
8452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8453 (eval $ac_compile) 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -z "$ac_c_werror_flag"
8461 || test ! -s conftest.err'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest.$ac_objext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 eval "$as_ac_Header=yes"
8474else
8475 echo "$as_me: failed program was:" >&5
8476sed 's/^/| /' conftest.$ac_ext >&5
8477
8478eval "$as_ac_Header=no"
8479fi
8480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi
8482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8484if test `eval echo '${'$as_ac_Header'}'` = yes; then
8485 cat >>confdefs.h <<_ACEOF
8486#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8487_ACEOF
8488
8489ac_header_dirent=$ac_hdr; break
0e5d83e3 8490fi
0e5d83e3 8491
bec39cab
AC
8492done
8493# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8494if test $ac_header_dirent = dirent.h; then
8495 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8496echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8497if test "${ac_cv_search_opendir+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500 ac_func_search_save_LIBS=$LIBS
8501ac_cv_search_opendir=no
8502cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h. */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h. */
0e5d83e3 8508
bec39cab
AC
8509/* Override any gcc2 internal prototype to avoid an error. */
8510#ifdef __cplusplus
8511extern "C"
8512#endif
8513/* We use char because int might match the return type of a gcc2
8514 builtin and then its argument prototype would still apply. */
8515char opendir ();
8516int
8517main ()
8518{
8519opendir ();
8520 ;
8521 return 0;
8522}
8523_ACEOF
8524rm -f conftest.$ac_objext conftest$ac_exeext
8525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag"
8534 || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_cv_search_opendir="none required"
8547else
8548 echo "$as_me: failed program was:" >&5
8549sed 's/^/| /' conftest.$ac_ext >&5
8550
8551fi
8552rm -f conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554if test "$ac_cv_search_opendir" = no; then
8555 for ac_lib in dir; do
8556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8557 cat >conftest.$ac_ext <<_ACEOF
8558/* confdefs.h. */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h. */
0e5d83e3 8563
bec39cab
AC
8564/* Override any gcc2 internal prototype to avoid an error. */
8565#ifdef __cplusplus
8566extern "C"
8567#endif
8568/* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8570char opendir ();
8571int
8572main ()
8573{
8574opendir ();
8575 ;
8576 return 0;
8577}
8578_ACEOF
8579rm -f conftest.$ac_objext conftest$ac_exeext
8580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_search_opendir="-l$ac_lib"
8602break
0e5d83e3 8603else
bec39cab
AC
8604 echo "$as_me: failed program was:" >&5
8605sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8606
0e5d83e3 8607fi
bec39cab
AC
8608rm -f conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 done
0e5d83e3 8611fi
bec39cab 8612LIBS=$ac_func_search_save_LIBS
0e5d83e3 8613fi
bec39cab
AC
8614echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8615echo "${ECHO_T}$ac_cv_search_opendir" >&6
8616if test "$ac_cv_search_opendir" != no; then
8617 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8618
0e5d83e3
JJ
8619fi
8620
d28f9cdf 8621else
bec39cab
AC
8622 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8623echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8624if test "${ac_cv_search_opendir+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626else
8627 ac_func_search_save_LIBS=$LIBS
8628ac_cv_search_opendir=no
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
d28f9cdf 8635
d28f9cdf 8636/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8637#ifdef __cplusplus
8638extern "C"
8639#endif
d28f9cdf 8640/* We use char because int might match the return type of a gcc2
bec39cab
AC
8641 builtin and then its argument prototype would still apply. */
8642char opendir ();
8643int
8644main ()
8645{
8646opendir ();
8647 ;
8648 return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext conftest$ac_exeext
8652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653 (eval $ac_link) 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -z "$ac_c_werror_flag"
8661 || test ! -s conftest.err'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 (eval $ac_try) 2>&5
8664 ac_status=$?
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest$ac_exeext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 (eval $ac_try) 2>&5
8670 ac_status=$?
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8673 ac_cv_search_opendir="none required"
8674else
8675 echo "$as_me: failed program was:" >&5
8676sed 's/^/| /' conftest.$ac_ext >&5
8677
8678fi
8679rm -f conftest.err conftest.$ac_objext \
8680 conftest$ac_exeext conftest.$ac_ext
8681if test "$ac_cv_search_opendir" = no; then
8682 for ac_lib in x; do
8683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8684 cat >conftest.$ac_ext <<_ACEOF
8685/* confdefs.h. */
8686_ACEOF
8687cat confdefs.h >>conftest.$ac_ext
8688cat >>conftest.$ac_ext <<_ACEOF
8689/* end confdefs.h. */
d28f9cdf 8690
bec39cab
AC
8691/* Override any gcc2 internal prototype to avoid an error. */
8692#ifdef __cplusplus
8693extern "C"
d28f9cdf 8694#endif
bec39cab
AC
8695/* We use char because int might match the return type of a gcc2
8696 builtin and then its argument prototype would still apply. */
8697char opendir ();
8698int
8699main ()
8700{
8701opendir ();
8702 ;
8703 return 0;
8704}
8705_ACEOF
8706rm -f conftest.$ac_objext conftest$ac_exeext
8707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8708 (eval $ac_link) 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -z "$ac_c_werror_flag"
8716 || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest$ac_exeext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_cv_search_opendir="-l$ac_lib"
8729break
d28f9cdf 8730else
bec39cab
AC
8731 echo "$as_me: failed program was:" >&5
8732sed 's/^/| /' conftest.$ac_ext >&5
8733
d28f9cdf 8734fi
bec39cab
AC
8735rm -f conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737 done
8738fi
8739LIBS=$ac_func_search_save_LIBS
d28f9cdf 8740fi
bec39cab
AC
8741echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8742echo "${ECHO_T}$ac_cv_search_opendir" >&6
8743if test "$ac_cv_search_opendir" != no; then
8744 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8745
d28f9cdf
DJ
8746fi
8747
bec39cab 8748fi
b0b1c2c0 8749
bec39cab
AC
8750echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8751echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8752if test "${ac_cv_header_stat_broken+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8754else
bec39cab
AC
8755 cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
8761#include <sys/types.h>
8762#include <sys/stat.h>
b0b1c2c0 8763
bec39cab
AC
8764#if defined(S_ISBLK) && defined(S_IFDIR)
8765# if S_ISBLK (S_IFDIR)
8766You lose.
8767# endif
8768#endif
b0b1c2c0 8769
bec39cab
AC
8770#if defined(S_ISBLK) && defined(S_IFCHR)
8771# if S_ISBLK (S_IFCHR)
8772You lose.
8773# endif
8774#endif
d28f9cdf 8775
bec39cab
AC
8776#if defined(S_ISLNK) && defined(S_IFREG)
8777# if S_ISLNK (S_IFREG)
8778You lose.
8779# endif
8780#endif
d28f9cdf 8781
bec39cab
AC
8782#if defined(S_ISSOCK) && defined(S_IFREG)
8783# if S_ISSOCK (S_IFREG)
8784You lose.
8785# endif
8786#endif
8787
8788_ACEOF
8789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8790 $EGREP "You lose" >/dev/null 2>&1; then
8791 ac_cv_header_stat_broken=yes
d28f9cdf 8792else
bec39cab 8793 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8794fi
8795rm -f conftest*
d28f9cdf 8796
d28f9cdf 8797fi
bec39cab
AC
8798echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8799echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8800if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8801
bec39cab
AC
8802cat >>confdefs.h <<\_ACEOF
8803#define STAT_MACROS_BROKEN 1
8804_ACEOF
8bb2c122 8805
7a292a7a 8806fi
bec39cab
AC
8807
8808echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8809echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8810if test "${ac_cv_header_stdc+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8812else
bec39cab
AC
8813 cat >conftest.$ac_ext <<_ACEOF
8814/* confdefs.h. */
8815_ACEOF
8816cat confdefs.h >>conftest.$ac_ext
8817cat >>conftest.$ac_ext <<_ACEOF
8818/* end confdefs.h. */
8819#include <stdlib.h>
8820#include <stdarg.h>
8821#include <string.h>
8822#include <float.h>
7a292a7a 8823
bec39cab
AC
8824int
8825main ()
8826{
7a292a7a 8827
bec39cab
AC
8828 ;
8829 return 0;
8830}
8831_ACEOF
8832rm -f conftest.$ac_objext
8833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834 (eval $ac_compile) 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest.$ac_objext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_header_stdc=yes
c906108c 8855else
bec39cab
AC
8856 echo "$as_me: failed program was:" >&5
8857sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8858
bec39cab 8859ac_cv_header_stdc=no
c906108c 8860fi
bec39cab 8861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8862
bec39cab
AC
8863if test $ac_cv_header_stdc = yes; then
8864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8865 cat >conftest.$ac_ext <<_ACEOF
8866/* confdefs.h. */
8867_ACEOF
8868cat confdefs.h >>conftest.$ac_ext
8869cat >>conftest.$ac_ext <<_ACEOF
8870/* end confdefs.h. */
8871#include <string.h>
c906108c 8872
bec39cab
AC
8873_ACEOF
8874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8875 $EGREP "memchr" >/dev/null 2>&1; then
8876 :
8bb2c122 8877else
bec39cab 8878 ac_cv_header_stdc=no
8bb2c122 8879fi
bec39cab
AC
8880rm -f conftest*
8881
c906108c
SS
8882fi
8883
bec39cab
AC
8884if test $ac_cv_header_stdc = yes; then
8885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8886 cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h. */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h. */
8892#include <stdlib.h>
8893
8894_ACEOF
8895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8896 $EGREP "free" >/dev/null 2>&1; then
8897 :
c906108c 8898else
bec39cab 8899 ac_cv_header_stdc=no
c906108c 8900fi
bec39cab
AC
8901rm -f conftest*
8902
c906108c
SS
8903fi
8904
bec39cab
AC
8905if test $ac_cv_header_stdc = yes; then
8906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8907 if test "$cross_compiling" = yes; then
8908 :
c906108c 8909else
bec39cab
AC
8910 cat >conftest.$ac_ext <<_ACEOF
8911/* confdefs.h. */
8912_ACEOF
8913cat confdefs.h >>conftest.$ac_ext
8914cat >>conftest.$ac_ext <<_ACEOF
8915/* end confdefs.h. */
8916#include <ctype.h>
8917#if ((' ' & 0x0FF) == 0x020)
8918# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8919# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8920#else
8921# define ISLOWER(c) \
8922 (('a' <= (c) && (c) <= 'i') \
8923 || ('j' <= (c) && (c) <= 'r') \
8924 || ('s' <= (c) && (c) <= 'z'))
8925# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8926#endif
8927
8928#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8929int
8930main ()
8931{
8932 int i;
8933 for (i = 0; i < 256; i++)
8934 if (XOR (islower (i), ISLOWER (i))
8935 || toupper (i) != TOUPPER (i))
8936 exit(2);
8937 exit (0);
8938}
8939_ACEOF
8940rm -f conftest$ac_exeext
8941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 :
8952else
8953 echo "$as_me: program exited with status $ac_status" >&5
8954echo "$as_me: failed program was:" >&5
8955sed 's/^/| /' conftest.$ac_ext >&5
8956
8957( exit $ac_status )
8958ac_cv_header_stdc=no
c906108c 8959fi
bec39cab 8960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8961fi
c906108c 8962fi
bec39cab
AC
8963fi
8964echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8965echo "${ECHO_T}$ac_cv_header_stdc" >&6
8966if test $ac_cv_header_stdc = yes; then
c906108c 8967
bec39cab
AC
8968cat >>confdefs.h <<\_ACEOF
8969#define STDC_HEADERS 1
8970_ACEOF
c906108c 8971
bec39cab 8972fi
8bb2c122 8973
bec39cab 8974
7cb9022a 8975for ac_header in nlist.h
bec39cab
AC
8976do
8977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8978if eval "test \"\${$as_ac_Header+set}\" = set"; then
8979 echo "$as_me:$LINENO: checking for $ac_header" >&5
8980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8981if eval "test \"\${$as_ac_Header+set}\" = set"; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983fi
8984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8986else
8987 # Is the header compilable?
8988echo "$as_me:$LINENO: checking $ac_header usability" >&5
8989echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
8996$ac_includes_default
8997#include <$ac_header>
8998_ACEOF
8999rm -f conftest.$ac_objext
9000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001 (eval $ac_compile) 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -z "$ac_c_werror_flag"
9009 || test ! -s conftest.err'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try='test -s conftest.$ac_objext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_header_compiler=yes
9022else
9023 echo "$as_me: failed program was:" >&5
9024sed 's/^/| /' conftest.$ac_ext >&5
9025
9026ac_header_compiler=no
9027fi
9028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9029echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9030echo "${ECHO_T}$ac_header_compiler" >&6
9031
9032# Is the header present?
9033echo "$as_me:$LINENO: checking $ac_header presence" >&5
9034echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9035cat >conftest.$ac_ext <<_ACEOF
9036/* confdefs.h. */
9037_ACEOF
9038cat confdefs.h >>conftest.$ac_ext
9039cat >>conftest.$ac_ext <<_ACEOF
9040/* end confdefs.h. */
9041#include <$ac_header>
9042_ACEOF
9043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } >/dev/null; then
9051 if test -s conftest.err; then
9052 ac_cpp_err=$ac_c_preproc_warn_flag
9053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9054 else
9055 ac_cpp_err=
9056 fi
c906108c 9057else
bec39cab 9058 ac_cpp_err=yes
c906108c 9059fi
bec39cab
AC
9060if test -z "$ac_cpp_err"; then
9061 ac_header_preproc=yes
c906108c 9062else
bec39cab
AC
9063 echo "$as_me: failed program was:" >&5
9064sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 9065
bec39cab
AC
9066 ac_header_preproc=no
9067fi
9068rm -f conftest.err conftest.$ac_ext
9069echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9070echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 9071
bec39cab
AC
9072# So? What about this header?
9073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9074 yes:no: )
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9076echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9078echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9079 ac_header_preproc=yes
9080 ;;
9081 no:yes:* )
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9087echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9089echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9091echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9093echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9094 (
9095 cat <<\_ASBOX
9096## ------------------------------------------ ##
9097## Report this to the AC_PACKAGE_NAME lists. ##
9098## ------------------------------------------ ##
9099_ASBOX
9100 ) |
9101 sed "s/^/$as_me: WARNING: /" >&2
9102 ;;
9103esac
9104echo "$as_me:$LINENO: checking for $ac_header" >&5
9105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9106if eval "test \"\${$as_ac_Header+set}\" = set"; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9108else
bec39cab 9109 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9110fi
bec39cab
AC
9111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9113
95ca63c4 9114fi
bec39cab
AC
9115if test `eval echo '${'$as_ac_Header'}'` = yes; then
9116 cat >>confdefs.h <<_ACEOF
9117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9118_ACEOF
9119
95ca63c4
CF
9120fi
9121
bec39cab 9122done
95ca63c4
CF
9123
9124
7cb9022a 9125for ac_header in link.h
bec39cab
AC
9126do
9127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 9128echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
9129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9130if eval "test \"\${$as_ac_Header+set}\" = set"; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9132else
7cb9022a 9133 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9134/* confdefs.h. */
9135_ACEOF
9136cat confdefs.h >>conftest.$ac_ext
9137cat >>conftest.$ac_ext <<_ACEOF
9138/* end confdefs.h. */
7cb9022a
MK
9139#if HAVE_SYS_TYPES_H
9140# include <sys/types.h>
9141#endif
9142#if HAVE_NLIST_H
9143# include <nlist.h>
9144#endif
9145
9146
bec39cab
AC
9147#include <$ac_header>
9148_ACEOF
9149rm -f conftest.$ac_objext
9150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151 (eval $ac_compile) 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try='test -s conftest.$ac_objext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
7cb9022a 9171 eval "$as_ac_Header=yes"
bec39cab
AC
9172else
9173 echo "$as_me: failed program was:" >&5
9174sed 's/^/| /' conftest.$ac_ext >&5
9175
7cb9022a 9176eval "$as_ac_Header=no"
bec39cab
AC
9177fi
9178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9179fi
9180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9182if test `eval echo '${'$as_ac_Header'}'` = yes; then
9183 cat >>confdefs.h <<_ACEOF
9184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9185_ACEOF
95ca63c4 9186
bec39cab 9187fi
95ca63c4 9188
bec39cab 9189done
95ca63c4 9190
c906108c 9191
7cb9022a 9192for ac_header in machine/reg.h
bec39cab
AC
9193do
9194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200fi
9201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9203else
9204 # Is the header compilable?
9205echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207cat >conftest.$ac_ext <<_ACEOF
9208/* confdefs.h. */
9209_ACEOF
9210cat confdefs.h >>conftest.$ac_ext
9211cat >>conftest.$ac_ext <<_ACEOF
9212/* end confdefs.h. */
9213$ac_includes_default
9214#include <$ac_header>
9215_ACEOF
9216rm -f conftest.$ac_objext
9217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218 (eval $ac_compile) 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -z "$ac_c_werror_flag"
9226 || test ! -s conftest.err'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_header_compiler=yes
9239else
9240 echo "$as_me: failed program was:" >&5
9241sed 's/^/| /' conftest.$ac_ext >&5
9242
9243ac_header_compiler=no
9244fi
9245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9247echo "${ECHO_T}$ac_header_compiler" >&6
9248
9249# Is the header present?
9250echo "$as_me:$LINENO: checking $ac_header presence" >&5
9251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9252cat >conftest.$ac_ext <<_ACEOF
9253/* confdefs.h. */
9254_ACEOF
9255cat confdefs.h >>conftest.$ac_ext
9256cat >>conftest.$ac_ext <<_ACEOF
9257/* end confdefs.h. */
9258#include <$ac_header>
9259_ACEOF
9260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } >/dev/null; then
9268 if test -s conftest.err; then
9269 ac_cpp_err=$ac_c_preproc_warn_flag
9270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9271 else
9272 ac_cpp_err=
9273 fi
75c6e08a 9274else
bec39cab 9275 ac_cpp_err=yes
75c6e08a 9276fi
bec39cab
AC
9277if test -z "$ac_cpp_err"; then
9278 ac_header_preproc=yes
9279else
9280 echo "$as_me: failed program was:" >&5
9281sed 's/^/| /' conftest.$ac_ext >&5
9282
9283 ac_header_preproc=no
75c6e08a 9284fi
bec39cab
AC
9285rm -f conftest.err conftest.$ac_ext
9286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9287echo "${ECHO_T}$ac_header_preproc" >&6
9288
9289# So? What about this header?
9290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9291 yes:no: )
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9295echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9296 ac_header_preproc=yes
9297 ;;
9298 no:yes:* )
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9300echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9302echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9304echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9306echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9311 (
9312 cat <<\_ASBOX
9313## ------------------------------------------ ##
9314## Report this to the AC_PACKAGE_NAME lists. ##
9315## ------------------------------------------ ##
9316_ASBOX
9317 ) |
9318 sed "s/^/$as_me: WARNING: /" >&2
9319 ;;
9320esac
9321echo "$as_me:$LINENO: checking for $ac_header" >&5
9322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9325else
bec39cab
AC
9326 eval "$as_ac_Header=\$ac_header_preproc"
9327fi
9328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9329echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9330
75c6e08a 9331fi
bec39cab
AC
9332if test `eval echo '${'$as_ac_Header'}'` = yes; then
9333 cat >>confdefs.h <<_ACEOF
9334#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335_ACEOF
75c6e08a 9336
bec39cab 9337fi
75c6e08a 9338
bec39cab 9339done
75c6e08a
MK
9340
9341
9a156167 9342
bec39cab
AC
9343for ac_header in poll.h sys/poll.h
9344do
9345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9346if eval "test \"\${$as_ac_Header+set}\" = set"; then
9347 echo "$as_me:$LINENO: checking for $ac_header" >&5
9348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9349if eval "test \"\${$as_ac_Header+set}\" = set"; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351fi
9352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9354else
9355 # Is the header compilable?
9356echo "$as_me:$LINENO: checking $ac_header usability" >&5
9357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9358cat >conftest.$ac_ext <<_ACEOF
9359/* confdefs.h. */
9360_ACEOF
9361cat confdefs.h >>conftest.$ac_ext
9362cat >>conftest.$ac_ext <<_ACEOF
9363/* end confdefs.h. */
9364$ac_includes_default
9365#include <$ac_header>
9366_ACEOF
9367rm -f conftest.$ac_objext
9368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369 (eval $ac_compile) 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag"
9377 || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest.$ac_objext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_header_compiler=yes
9390else
9391 echo "$as_me: failed program was:" >&5
9392sed 's/^/| /' conftest.$ac_ext >&5
9393
9394ac_header_compiler=no
9395fi
9396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9397echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9398echo "${ECHO_T}$ac_header_compiler" >&6
9399
9400# Is the header present?
9401echo "$as_me:$LINENO: checking $ac_header presence" >&5
9402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9403cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h. */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h. */
9409#include <$ac_header>
9410_ACEOF
9411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } >/dev/null; then
9419 if test -s conftest.err; then
9420 ac_cpp_err=$ac_c_preproc_warn_flag
9421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9422 else
9423 ac_cpp_err=
9424 fi
9a156167 9425else
bec39cab 9426 ac_cpp_err=yes
9a156167 9427fi
bec39cab
AC
9428if test -z "$ac_cpp_err"; then
9429 ac_header_preproc=yes
9430else
9431 echo "$as_me: failed program was:" >&5
9432sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9433
bec39cab 9434 ac_header_preproc=no
9a156167 9435fi
bec39cab
AC
9436rm -f conftest.err conftest.$ac_ext
9437echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9438echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9439
bec39cab
AC
9440# So? What about this header?
9441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9442 yes:no: )
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9447 ac_header_preproc=yes
9448 ;;
9449 no:yes:* )
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9462 (
9463 cat <<\_ASBOX
9464## ------------------------------------------ ##
9465## Report this to the AC_PACKAGE_NAME lists. ##
9466## ------------------------------------------ ##
9467_ASBOX
9468 ) |
9469 sed "s/^/$as_me: WARNING: /" >&2
9470 ;;
9471esac
9472echo "$as_me:$LINENO: checking for $ac_header" >&5
9473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9474if eval "test \"\${$as_ac_Header+set}\" = set"; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9476else
bec39cab 9477 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9478fi
bec39cab
AC
9479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9481
bec39cab
AC
9482fi
9483if test `eval echo '${'$as_ac_Header'}'` = yes; then
9484 cat >>confdefs.h <<_ACEOF
9485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9486_ACEOF
9a156167 9487
bec39cab 9488fi
9a156167 9489
bec39cab 9490done
9a156167 9491
9a156167 9492
9a156167 9493
bec39cab
AC
9494
9495for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9496do
9497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9498if eval "test \"\${$as_ac_Header+set}\" = set"; then
9499 echo "$as_me:$LINENO: checking for $ac_header" >&5
9500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9501if eval "test \"\${$as_ac_Header+set}\" = set"; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503fi
9504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9506else
9507 # Is the header compilable?
9508echo "$as_me:$LINENO: checking $ac_header usability" >&5
9509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9510cat >conftest.$ac_ext <<_ACEOF
9511/* confdefs.h. */
9512_ACEOF
9513cat confdefs.h >>conftest.$ac_ext
9514cat >>conftest.$ac_ext <<_ACEOF
9515/* end confdefs.h. */
9516$ac_includes_default
9517#include <$ac_header>
9518_ACEOF
9519rm -f conftest.$ac_objext
9520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521 (eval $ac_compile) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_header_compiler=yes
9542else
9543 echo "$as_me: failed program was:" >&5
9544sed 's/^/| /' conftest.$ac_ext >&5
9545
9546ac_header_compiler=no
9547fi
9548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9550echo "${ECHO_T}$ac_header_compiler" >&6
9551
9552# Is the header present?
9553echo "$as_me:$LINENO: checking $ac_header presence" >&5
9554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9555cat >conftest.$ac_ext <<_ACEOF
9556/* confdefs.h. */
9557_ACEOF
9558cat confdefs.h >>conftest.$ac_ext
9559cat >>conftest.$ac_ext <<_ACEOF
9560/* end confdefs.h. */
9561#include <$ac_header>
9562_ACEOF
9563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } >/dev/null; then
9571 if test -s conftest.err; then
9572 ac_cpp_err=$ac_c_preproc_warn_flag
9573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9574 else
9575 ac_cpp_err=
9576 fi
9a156167 9577else
bec39cab 9578 ac_cpp_err=yes
9a156167 9579fi
bec39cab
AC
9580if test -z "$ac_cpp_err"; then
9581 ac_header_preproc=yes
9582else
9583 echo "$as_me: failed program was:" >&5
9584sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9585
bec39cab 9586 ac_header_preproc=no
9a156167 9587fi
bec39cab
AC
9588rm -f conftest.err conftest.$ac_ext
9589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9590echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9591
bec39cab
AC
9592# So? What about this header?
9593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9594 yes:no: )
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9599 ac_header_preproc=yes
9600 ;;
9601 no:yes:* )
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9609echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9614 (
9615 cat <<\_ASBOX
9616## ------------------------------------------ ##
9617## Report this to the AC_PACKAGE_NAME lists. ##
9618## ------------------------------------------ ##
9619_ASBOX
9620 ) |
9621 sed "s/^/$as_me: WARNING: /" >&2
9622 ;;
9623esac
9624echo "$as_me:$LINENO: checking for $ac_header" >&5
9625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9626if eval "test \"\${$as_ac_Header+set}\" = set"; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9628else
bec39cab 9629 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9630fi
bec39cab
AC
9631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9633
9634fi
bec39cab
AC
9635if test `eval echo '${'$as_ac_Header'}'` = yes; then
9636 cat >>confdefs.h <<_ACEOF
9637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9638_ACEOF
9a156167 9639
bec39cab
AC
9640fi
9641
9642done
9a156167 9643
c890192f 9644
bec39cab
AC
9645for ac_header in stddef.h
9646do
9647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9648if eval "test \"\${$as_ac_Header+set}\" = set"; then
9649 echo "$as_me:$LINENO: checking for $ac_header" >&5
9650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9651if eval "test \"\${$as_ac_Header+set}\" = set"; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653fi
9654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9656else
9657 # Is the header compilable?
9658echo "$as_me:$LINENO: checking $ac_header usability" >&5
9659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9660cat >conftest.$ac_ext <<_ACEOF
9661/* confdefs.h. */
9662_ACEOF
9663cat confdefs.h >>conftest.$ac_ext
9664cat >>conftest.$ac_ext <<_ACEOF
9665/* end confdefs.h. */
9666$ac_includes_default
9667#include <$ac_header>
9668_ACEOF
9669rm -f conftest.$ac_objext
9670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>conftest.er1
9672 ac_status=$?
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -z "$ac_c_werror_flag"
9679 || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_header_compiler=yes
9692else
9693 echo "$as_me: failed program was:" >&5
9694sed 's/^/| /' conftest.$ac_ext >&5
9695
9696ac_header_compiler=no
9697fi
9698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9699echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9700echo "${ECHO_T}$ac_header_compiler" >&6
9701
9702# Is the header present?
9703echo "$as_me:$LINENO: checking $ac_header presence" >&5
9704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9705cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h. */
9711#include <$ac_header>
9712_ACEOF
9713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } >/dev/null; then
9721 if test -s conftest.err; then
9722 ac_cpp_err=$ac_c_preproc_warn_flag
9723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9724 else
9725 ac_cpp_err=
9726 fi
c890192f 9727else
bec39cab
AC
9728 ac_cpp_err=yes
9729fi
9730if test -z "$ac_cpp_err"; then
9731 ac_header_preproc=yes
c890192f 9732else
bec39cab
AC
9733 echo "$as_me: failed program was:" >&5
9734sed 's/^/| /' conftest.$ac_ext >&5
9735
9736 ac_header_preproc=no
c890192f 9737fi
bec39cab
AC
9738rm -f conftest.err conftest.$ac_ext
9739echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9740echo "${ECHO_T}$ac_header_preproc" >&6
9741
9742# So? What about this header?
9743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9744 yes:no: )
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9749 ac_header_preproc=yes
9750 ;;
9751 no:yes:* )
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9755echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9759echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9764 (
9765 cat <<\_ASBOX
9766## ------------------------------------------ ##
9767## Report this to the AC_PACKAGE_NAME lists. ##
9768## ------------------------------------------ ##
9769_ASBOX
9770 ) |
9771 sed "s/^/$as_me: WARNING: /" >&2
9772 ;;
9773esac
9774echo "$as_me:$LINENO: checking for $ac_header" >&5
9775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9776if eval "test \"\${$as_ac_Header+set}\" = set"; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9778else
bec39cab 9779 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9780fi
bec39cab
AC
9781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9783
c890192f 9784fi
bec39cab
AC
9785if test `eval echo '${'$as_ac_Header'}'` = yes; then
9786 cat >>confdefs.h <<_ACEOF
9787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9788_ACEOF
c890192f 9789
c890192f
MK
9790fi
9791
bec39cab 9792done
9a156167 9793
bec39cab
AC
9794
9795for ac_header in stdlib.h
9796do
9797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9798if eval "test \"\${$as_ac_Header+set}\" = set"; then
9799 echo "$as_me:$LINENO: checking for $ac_header" >&5
9800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9801if eval "test \"\${$as_ac_Header+set}\" = set"; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803fi
9804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9806else
9807 # Is the header compilable?
9808echo "$as_me:$LINENO: checking $ac_header usability" >&5
9809echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9810cat >conftest.$ac_ext <<_ACEOF
9811/* confdefs.h. */
9812_ACEOF
9813cat confdefs.h >>conftest.$ac_ext
9814cat >>conftest.$ac_ext <<_ACEOF
9815/* end confdefs.h. */
9816$ac_includes_default
9817#include <$ac_header>
9818_ACEOF
9819rm -f conftest.$ac_objext
9820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_header_compiler=yes
9842else
9843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846ac_header_compiler=no
9847fi
9848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9850echo "${ECHO_T}$ac_header_compiler" >&6
9851
9852# Is the header present?
9853echo "$as_me:$LINENO: checking $ac_header presence" >&5
9854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9855cat >conftest.$ac_ext <<_ACEOF
9856/* confdefs.h. */
9857_ACEOF
9858cat confdefs.h >>conftest.$ac_ext
9859cat >>conftest.$ac_ext <<_ACEOF
9860/* end confdefs.h. */
9861#include <$ac_header>
9862_ACEOF
9863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9865 ac_status=$?
9866 grep -v '^ *+' conftest.er1 >conftest.err
9867 rm -f conftest.er1
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } >/dev/null; then
9871 if test -s conftest.err; then
9872 ac_cpp_err=$ac_c_preproc_warn_flag
9873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9874 else
9875 ac_cpp_err=
9876 fi
9a156167 9877else
bec39cab
AC
9878 ac_cpp_err=yes
9879fi
9880if test -z "$ac_cpp_err"; then
9881 ac_header_preproc=yes
9a156167 9882else
bec39cab
AC
9883 echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_header_preproc=no
9a156167 9887fi
bec39cab
AC
9888rm -f conftest.err conftest.$ac_ext
9889echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9890echo "${ECHO_T}$ac_header_preproc" >&6
9891
9892# So? What about this header?
9893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9894 yes:no: )
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9898echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9899 ac_header_preproc=yes
9900 ;;
9901 no:yes:* )
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9903echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9905echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9907echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9909echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9913echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9914 (
9915 cat <<\_ASBOX
9916## ------------------------------------------ ##
9917## Report this to the AC_PACKAGE_NAME lists. ##
9918## ------------------------------------------ ##
9919_ASBOX
9920 ) |
9921 sed "s/^/$as_me: WARNING: /" >&2
9922 ;;
9923esac
9924echo "$as_me:$LINENO: checking for $ac_header" >&5
9925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9926if eval "test \"\${$as_ac_Header+set}\" = set"; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9928else
bec39cab 9929 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9930fi
bec39cab
AC
9931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9933
9a156167 9934fi
bec39cab
AC
9935if test `eval echo '${'$as_ac_Header'}'` = yes; then
9936 cat >>confdefs.h <<_ACEOF
9937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9938_ACEOF
9a156167 9939
9a156167
MK
9940fi
9941
bec39cab
AC
9942done
9943
06825bd1 9944
bec39cab
AC
9945for ac_header in stdint.h
9946do
9947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949 echo "$as_me:$LINENO: checking for $ac_header" >&5
9950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9951if eval "test \"\${$as_ac_Header+set}\" = set"; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953fi
9954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9956else
9957 # Is the header compilable?
9958echo "$as_me:$LINENO: checking $ac_header usability" >&5
9959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9960cat >conftest.$ac_ext <<_ACEOF
9961/* confdefs.h. */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
9965/* end confdefs.h. */
9966$ac_includes_default
9967#include <$ac_header>
9968_ACEOF
9969rm -f conftest.$ac_objext
9970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9971 (eval $ac_compile) 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag"
9979 || test ! -s conftest.err'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try='test -s conftest.$ac_objext'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 (eval $ac_try) 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; }; then
9991 ac_header_compiler=yes
9992else
9993 echo "$as_me: failed program was:" >&5
9994sed 's/^/| /' conftest.$ac_ext >&5
9995
9996ac_header_compiler=no
9997fi
9998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10000echo "${ECHO_T}$ac_header_compiler" >&6
10001
10002# Is the header present?
10003echo "$as_me:$LINENO: checking $ac_header presence" >&5
10004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10005cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */
10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
10011#include <$ac_header>
10012_ACEOF
10013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } >/dev/null; then
10021 if test -s conftest.err; then
10022 ac_cpp_err=$ac_c_preproc_warn_flag
10023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10024 else
10025 ac_cpp_err=
10026 fi
06825bd1 10027else
bec39cab
AC
10028 ac_cpp_err=yes
10029fi
10030if test -z "$ac_cpp_err"; then
10031 ac_header_preproc=yes
06825bd1 10032else
bec39cab
AC
10033 echo "$as_me: failed program was:" >&5
10034sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 ac_header_preproc=no
06825bd1 10037fi
bec39cab
AC
10038rm -f conftest.err conftest.$ac_ext
10039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10040echo "${ECHO_T}$ac_header_preproc" >&6
10041
10042# So? What about this header?
10043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10044 yes:no: )
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10049 ac_header_preproc=yes
10050 ;;
10051 no:yes:* )
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10055echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10059echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10064 (
10065 cat <<\_ASBOX
10066## ------------------------------------------ ##
10067## Report this to the AC_PACKAGE_NAME lists. ##
10068## ------------------------------------------ ##
10069_ASBOX
10070 ) |
10071 sed "s/^/$as_me: WARNING: /" >&2
10072 ;;
10073esac
10074echo "$as_me:$LINENO: checking for $ac_header" >&5
10075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10076if eval "test \"\${$as_ac_Header+set}\" = set"; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 10078else
bec39cab 10079 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10080fi
bec39cab
AC
10081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10083
06825bd1 10084fi
bec39cab
AC
10085if test `eval echo '${'$as_ac_Header'}'` = yes; then
10086 cat >>confdefs.h <<_ACEOF
10087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10088_ACEOF
06825bd1 10089
06825bd1 10090fi
4f0be353 10091
bec39cab 10092done
4f0be353 10093
06825bd1 10094
06825bd1 10095
bec39cab
AC
10096
10097for ac_header in string.h memory.h strings.h
10098do
10099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10100if eval "test \"\${$as_ac_Header+set}\" = set"; then
10101 echo "$as_me:$LINENO: checking for $ac_header" >&5
10102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105fi
10106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10108else
10109 # Is the header compilable?
10110echo "$as_me:$LINENO: checking $ac_header usability" >&5
10111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10112cat >conftest.$ac_ext <<_ACEOF
10113/* confdefs.h. */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
10117/* end confdefs.h. */
10118$ac_includes_default
10119#include <$ac_header>
10120_ACEOF
10121rm -f conftest.$ac_objext
10122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10123 (eval $ac_compile) 2>conftest.er1
10124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag"
10131 || test ! -s conftest.err'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest.$ac_objext'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_header_compiler=yes
10144else
10145 echo "$as_me: failed program was:" >&5
10146sed 's/^/| /' conftest.$ac_ext >&5
10147
10148ac_header_compiler=no
10149fi
10150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10152echo "${ECHO_T}$ac_header_compiler" >&6
10153
10154# Is the header present?
10155echo "$as_me:$LINENO: checking $ac_header presence" >&5
10156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10157cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163#include <$ac_header>
10164_ACEOF
10165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } >/dev/null; then
10173 if test -s conftest.err; then
10174 ac_cpp_err=$ac_c_preproc_warn_flag
10175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10176 else
10177 ac_cpp_err=
10178 fi
06825bd1 10179else
bec39cab
AC
10180 ac_cpp_err=yes
10181fi
10182if test -z "$ac_cpp_err"; then
10183 ac_header_preproc=yes
06825bd1 10184else
bec39cab
AC
10185 echo "$as_me: failed program was:" >&5
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ac_header_preproc=no
06825bd1 10189fi
bec39cab
AC
10190rm -f conftest.err conftest.$ac_ext
10191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10192echo "${ECHO_T}$ac_header_preproc" >&6
10193
10194# So? What about this header?
10195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10196 yes:no: )
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10201 ac_header_preproc=yes
10202 ;;
10203 no:yes:* )
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10216 (
10217 cat <<\_ASBOX
10218## ------------------------------------------ ##
10219## Report this to the AC_PACKAGE_NAME lists. ##
10220## ------------------------------------------ ##
10221_ASBOX
10222 ) |
10223 sed "s/^/$as_me: WARNING: /" >&2
10224 ;;
10225esac
10226echo "$as_me:$LINENO: checking for $ac_header" >&5
10227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10228if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230else
10231 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10232fi
bec39cab
AC
10233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10235
06825bd1 10236fi
bec39cab
AC
10237if test `eval echo '${'$as_ac_Header'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10240_ACEOF
06825bd1 10241
06825bd1
MK
10242fi
10243
bec39cab 10244done
5ee754fc 10245
bec39cab
AC
10246
10247for ac_header in sys/fault.h
5ee754fc 10248do
bec39cab
AC
10249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10250if eval "test \"\${$as_ac_Header+set}\" = set"; then
10251 echo "$as_me:$LINENO: checking for $ac_header" >&5
10252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10253if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255fi
10256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10258else
10259 # Is the header compilable?
10260echo "$as_me:$LINENO: checking $ac_header usability" >&5
10261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10262cat >conftest.$ac_ext <<_ACEOF
10263/* confdefs.h. */
10264_ACEOF
10265cat confdefs.h >>conftest.$ac_ext
10266cat >>conftest.$ac_ext <<_ACEOF
10267/* end confdefs.h. */
10268$ac_includes_default
10269#include <$ac_header>
10270_ACEOF
10271rm -f conftest.$ac_objext
10272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>conftest.er1
10274 ac_status=$?
10275 grep -v '^ *+' conftest.er1 >conftest.err
10276 rm -f conftest.er1
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag"
10281 || test ! -s conftest.err'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest.$ac_objext'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 ac_header_compiler=yes
10294else
10295 echo "$as_me: failed program was:" >&5
10296sed 's/^/| /' conftest.$ac_ext >&5
10297
10298ac_header_compiler=no
10299fi
10300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10302echo "${ECHO_T}$ac_header_compiler" >&6
10303
10304# Is the header present?
10305echo "$as_me:$LINENO: checking $ac_header presence" >&5
10306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10307cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h. */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h. */
10313#include <$ac_header>
10314_ACEOF
10315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } >/dev/null; then
10323 if test -s conftest.err; then
10324 ac_cpp_err=$ac_c_preproc_warn_flag
10325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10326 else
10327 ac_cpp_err=
10328 fi
5ee754fc 10329else
bec39cab 10330 ac_cpp_err=yes
5ee754fc 10331fi
bec39cab
AC
10332if test -z "$ac_cpp_err"; then
10333 ac_header_preproc=yes
10334else
10335 echo "$as_me: failed program was:" >&5
10336sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10337
bec39cab 10338 ac_header_preproc=no
5ee754fc 10339fi
bec39cab
AC
10340rm -f conftest.err conftest.$ac_ext
10341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10342echo "${ECHO_T}$ac_header_preproc" >&6
10343
10344# So? What about this header?
10345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10346 yes:no: )
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10351 ac_header_preproc=yes
10352 ;;
10353 no:yes:* )
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10366 (
10367 cat <<\_ASBOX
10368## ------------------------------------------ ##
10369## Report this to the AC_PACKAGE_NAME lists. ##
10370## ------------------------------------------ ##
10371_ASBOX
10372 ) |
10373 sed "s/^/$as_me: WARNING: /" >&2
10374 ;;
10375esac
10376echo "$as_me:$LINENO: checking for $ac_header" >&5
10377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10378if eval "test \"\${$as_ac_Header+set}\" = set"; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10380else
bec39cab 10381 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10382fi
bec39cab
AC
10383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10385
5ee754fc 10386fi
bec39cab
AC
10387if test `eval echo '${'$as_ac_Header'}'` = yes; then
10388 cat >>confdefs.h <<_ACEOF
10389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10390_ACEOF
c906108c 10391
5ee754fc 10392fi
bec39cab
AC
10393
10394done
10395
10396
10397for ac_header in sys/file.h
10398do
10399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10400if eval "test \"\${$as_ac_Header+set}\" = set"; then
10401 echo "$as_me:$LINENO: checking for $ac_header" >&5
10402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10403if eval "test \"\${$as_ac_Header+set}\" = set"; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405fi
10406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10408else
10409 # Is the header compilable?
10410echo "$as_me:$LINENO: checking $ac_header usability" >&5
10411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10412cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h. */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h. */
10418$ac_includes_default
10419#include <$ac_header>
10420_ACEOF
10421rm -f conftest.$ac_objext
10422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
10430 { ac_try='test -z "$ac_c_werror_flag"
10431 || test ! -s conftest.err'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest.$ac_objext'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_header_compiler=yes
10444else
10445 echo "$as_me: failed program was:" >&5
10446sed 's/^/| /' conftest.$ac_ext >&5
10447
10448ac_header_compiler=no
10449fi
10450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10452echo "${ECHO_T}$ac_header_compiler" >&6
10453
10454# Is the header present?
10455echo "$as_me:$LINENO: checking $ac_header presence" >&5
10456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10457cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
10463#include <$ac_header>
10464_ACEOF
10465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } >/dev/null; then
10473 if test -s conftest.err; then
10474 ac_cpp_err=$ac_c_preproc_warn_flag
10475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10476 else
10477 ac_cpp_err=
10478 fi
5ee754fc 10479else
bec39cab 10480 ac_cpp_err=yes
5ee754fc 10481fi
bec39cab
AC
10482if test -z "$ac_cpp_err"; then
10483 ac_header_preproc=yes
10484else
10485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10487
bec39cab 10488 ac_header_preproc=no
5ee754fc 10489fi
bec39cab
AC
10490rm -f conftest.err conftest.$ac_ext
10491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10492echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10493
bec39cab
AC
10494# So? What about this header?
10495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10496 yes:no: )
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10501 ac_header_preproc=yes
10502 ;;
10503 no:yes:* )
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10516 (
10517 cat <<\_ASBOX
10518## ------------------------------------------ ##
10519## Report this to the AC_PACKAGE_NAME lists. ##
10520## ------------------------------------------ ##
10521_ASBOX
10522 ) |
10523 sed "s/^/$as_me: WARNING: /" >&2
10524 ;;
10525esac
10526echo "$as_me:$LINENO: checking for $ac_header" >&5
10527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10528if eval "test \"\${$as_ac_Header+set}\" = set"; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10530else
bec39cab
AC
10531 eval "$as_ac_Header=\$ac_header_preproc"
10532fi
10533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10535
bec39cab
AC
10536fi
10537if test `eval echo '${'$as_ac_Header'}'` = yes; then
10538 cat >>confdefs.h <<_ACEOF
10539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10540_ACEOF
5ee754fc 10541
bec39cab 10542fi
5ee754fc 10543
bec39cab 10544done
5ee754fc 10545
5ee754fc 10546
bec39cab
AC
10547for ac_header in sys/filio.h
10548do
10549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10550if eval "test \"\${$as_ac_Header+set}\" = set"; then
10551 echo "$as_me:$LINENO: checking for $ac_header" >&5
10552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10553if eval "test \"\${$as_ac_Header+set}\" = set"; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555fi
10556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10558else
10559 # Is the header compilable?
10560echo "$as_me:$LINENO: checking $ac_header usability" >&5
10561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10562cat >conftest.$ac_ext <<_ACEOF
10563/* confdefs.h. */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h. */
10568$ac_includes_default
10569#include <$ac_header>
10570_ACEOF
10571rm -f conftest.$ac_objext
10572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest.$ac_objext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_header_compiler=yes
10594else
10595 echo "$as_me: failed program was:" >&5
10596sed 's/^/| /' conftest.$ac_ext >&5
10597
10598ac_header_compiler=no
10599fi
10600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10602echo "${ECHO_T}$ac_header_compiler" >&6
10603
10604# Is the header present?
10605echo "$as_me:$LINENO: checking $ac_header presence" >&5
10606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10607cat >conftest.$ac_ext <<_ACEOF
10608/* confdefs.h. */
10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
10613#include <$ac_header>
10614_ACEOF
10615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } >/dev/null; then
10623 if test -s conftest.err; then
10624 ac_cpp_err=$ac_c_preproc_warn_flag
10625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10626 else
10627 ac_cpp_err=
10628 fi
5ee754fc 10629else
bec39cab 10630 ac_cpp_err=yes
5ee754fc 10631fi
bec39cab
AC
10632if test -z "$ac_cpp_err"; then
10633 ac_header_preproc=yes
10634else
10635 echo "$as_me: failed program was:" >&5
10636sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10637
bec39cab 10638 ac_header_preproc=no
5ee754fc 10639fi
bec39cab
AC
10640rm -f conftest.err conftest.$ac_ext
10641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10642echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10643
bec39cab
AC
10644# So? What about this header?
10645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10646 yes:no: )
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10651 ac_header_preproc=yes
10652 ;;
10653 no:yes:* )
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10657echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10661echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10666 (
10667 cat <<\_ASBOX
10668## ------------------------------------------ ##
10669## Report this to the AC_PACKAGE_NAME lists. ##
10670## ------------------------------------------ ##
10671_ASBOX
10672 ) |
10673 sed "s/^/$as_me: WARNING: /" >&2
10674 ;;
10675esac
10676echo "$as_me:$LINENO: checking for $ac_header" >&5
10677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10678if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10680else
bec39cab 10681 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10682fi
bec39cab
AC
10683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10685
5ee754fc 10686fi
bec39cab
AC
10687if test `eval echo '${'$as_ac_Header'}'` = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690_ACEOF
5ee754fc
MK
10691
10692fi
10693
bec39cab
AC
10694done
10695
10696
10697for ac_header in sys/ioctl.h
10698do
10699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10700if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701 echo "$as_me:$LINENO: checking for $ac_header" >&5
10702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10703if eval "test \"\${$as_ac_Header+set}\" = set"; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705fi
10706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10708else
10709 # Is the header compilable?
10710echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10712cat >conftest.$ac_ext <<_ACEOF
10713/* confdefs.h. */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
10717/* end confdefs.h. */
10718$ac_includes_default
10719#include <$ac_header>
10720_ACEOF
10721rm -f conftest.$ac_objext
10722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10723 (eval $ac_compile) 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag"
10731 || test ! -s conftest.err'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest.$ac_objext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_header_compiler=yes
10744else
10745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
10748ac_header_compiler=no
10749fi
10750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10752echo "${ECHO_T}$ac_header_compiler" >&6
10753
10754# Is the header present?
10755echo "$as_me:$LINENO: checking $ac_header presence" >&5
10756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10757cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
10763#include <$ac_header>
10764_ACEOF
10765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } >/dev/null; then
10773 if test -s conftest.err; then
10774 ac_cpp_err=$ac_c_preproc_warn_flag
10775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10776 else
10777 ac_cpp_err=
10778 fi
5ee754fc 10779else
bec39cab 10780 ac_cpp_err=yes
5ee754fc 10781fi
bec39cab
AC
10782if test -z "$ac_cpp_err"; then
10783 ac_header_preproc=yes
10784else
10785 echo "$as_me: failed program was:" >&5
10786sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10787
bec39cab 10788 ac_header_preproc=no
5ee754fc 10789fi
bec39cab
AC
10790rm -f conftest.err conftest.$ac_ext
10791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10792echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10793
bec39cab
AC
10794# So? What about this header?
10795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10796 yes:no: )
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10801 ac_header_preproc=yes
10802 ;;
10803 no:yes:* )
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10816 (
10817 cat <<\_ASBOX
10818## ------------------------------------------ ##
10819## Report this to the AC_PACKAGE_NAME lists. ##
10820## ------------------------------------------ ##
10821_ASBOX
10822 ) |
10823 sed "s/^/$as_me: WARNING: /" >&2
10824 ;;
10825esac
10826echo "$as_me:$LINENO: checking for $ac_header" >&5
10827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10828if eval "test \"\${$as_ac_Header+set}\" = set"; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10830else
bec39cab 10831 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10832fi
bec39cab
AC
10833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10835
10836fi
bec39cab
AC
10837if test `eval echo '${'$as_ac_Header'}'` = yes; then
10838 cat >>confdefs.h <<_ACEOF
10839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10840_ACEOF
10841
5ee754fc
MK
10842fi
10843
bec39cab 10844done
5ee754fc 10845
5ee754fc 10846
bec39cab 10847for ac_header in sys/param.h
5ee754fc 10848do
bec39cab
AC
10849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10850if eval "test \"\${$as_ac_Header+set}\" = set"; then
10851 echo "$as_me:$LINENO: checking for $ac_header" >&5
10852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10853if eval "test \"\${$as_ac_Header+set}\" = set"; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855fi
10856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10858else
10859 # Is the header compilable?
10860echo "$as_me:$LINENO: checking $ac_header usability" >&5
10861echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10862cat >conftest.$ac_ext <<_ACEOF
10863/* confdefs.h. */
10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
10868$ac_includes_default
10869#include <$ac_header>
10870_ACEOF
10871rm -f conftest.$ac_objext
10872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10873 (eval $ac_compile) 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag"
10881 || test ! -s conftest.err'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest.$ac_objext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_header_compiler=yes
10894else
10895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898ac_header_compiler=no
10899fi
10900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10901echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902echo "${ECHO_T}$ac_header_compiler" >&6
10903
10904# Is the header present?
10905echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10907cat >conftest.$ac_ext <<_ACEOF
10908/* confdefs.h. */
10909_ACEOF
10910cat confdefs.h >>conftest.$ac_ext
10911cat >>conftest.$ac_ext <<_ACEOF
10912/* end confdefs.h. */
10913#include <$ac_header>
10914_ACEOF
10915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } >/dev/null; then
10923 if test -s conftest.err; then
10924 ac_cpp_err=$ac_c_preproc_warn_flag
10925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10926 else
10927 ac_cpp_err=
10928 fi
5ee754fc 10929else
bec39cab 10930 ac_cpp_err=yes
5ee754fc 10931fi
bec39cab
AC
10932if test -z "$ac_cpp_err"; then
10933 ac_header_preproc=yes
10934else
10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10937
bec39cab 10938 ac_header_preproc=no
5ee754fc 10939fi
bec39cab
AC
10940rm -f conftest.err conftest.$ac_ext
10941echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942echo "${ECHO_T}$ac_header_preproc" >&6
10943
10944# So? What about this header?
10945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10946 yes:no: )
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951 ac_header_preproc=yes
10952 ;;
10953 no:yes:* )
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10961echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10966 (
10967 cat <<\_ASBOX
10968## ------------------------------------------ ##
10969## Report this to the AC_PACKAGE_NAME lists. ##
10970## ------------------------------------------ ##
10971_ASBOX
10972 ) |
10973 sed "s/^/$as_me: WARNING: /" >&2
10974 ;;
10975esac
10976echo "$as_me:$LINENO: checking for $ac_header" >&5
10977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10978if eval "test \"\${$as_ac_Header+set}\" = set"; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10980else
bec39cab 10981 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10982fi
bec39cab
AC
10983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10985
5ee754fc 10986fi
bec39cab
AC
10987if test `eval echo '${'$as_ac_Header'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10990_ACEOF
10991
5ee754fc 10992fi
bec39cab 10993
5ee754fc
MK
10994done
10995
bec39cab
AC
10996
10997for ac_header in sys/proc.h
5ee754fc 10998do
bec39cab 10999as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11000echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11002if eval "test \"\${$as_ac_Header+set}\" = set"; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11004else
7cb9022a 11005 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11006/* confdefs.h. */
11007_ACEOF
11008cat confdefs.h >>conftest.$ac_ext
11009cat >>conftest.$ac_ext <<_ACEOF
11010/* end confdefs.h. */
7cb9022a
MK
11011#if HAVE_SYS_PARAM_H
11012# include <sys/param.h>
11013#endif
11014
11015
bec39cab
AC
11016#include <$ac_header>
11017_ACEOF
11018rm -f conftest.$ac_objext
11019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11020 (eval $ac_compile) 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -z "$ac_c_werror_flag"
11028 || test ! -s conftest.err'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest.$ac_objext'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
7cb9022a 11040 eval "$as_ac_Header=yes"
bec39cab
AC
11041else
11042 echo "$as_me: failed program was:" >&5
11043sed 's/^/| /' conftest.$ac_ext >&5
11044
7cb9022a 11045eval "$as_ac_Header=no"
bec39cab
AC
11046fi
11047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11048fi
bec39cab
AC
11049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11051if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054_ACEOF
11055
5ee754fc 11056fi
bec39cab 11057
5ee754fc
MK
11058done
11059
bec39cab
AC
11060
11061for ac_header in sys/procfs.h
5ee754fc 11062do
bec39cab
AC
11063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064if eval "test \"\${$as_ac_Header+set}\" = set"; then
11065 echo "$as_me:$LINENO: checking for $ac_header" >&5
11066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11067if eval "test \"\${$as_ac_Header+set}\" = set"; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069fi
11070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11072else
11073 # Is the header compilable?
11074echo "$as_me:$LINENO: checking $ac_header usability" >&5
11075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11076cat >conftest.$ac_ext <<_ACEOF
11077/* confdefs.h. */
11078_ACEOF
11079cat confdefs.h >>conftest.$ac_ext
11080cat >>conftest.$ac_ext <<_ACEOF
11081/* end confdefs.h. */
11082$ac_includes_default
11083#include <$ac_header>
11084_ACEOF
11085rm -f conftest.$ac_objext
11086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087 (eval $ac_compile) 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest.$ac_objext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 ac_header_compiler=yes
11108else
11109 echo "$as_me: failed program was:" >&5
11110sed 's/^/| /' conftest.$ac_ext >&5
11111
11112ac_header_compiler=no
11113fi
11114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116echo "${ECHO_T}$ac_header_compiler" >&6
11117
11118# Is the header present?
11119echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11121cat >conftest.$ac_ext <<_ACEOF
11122/* confdefs.h. */
11123_ACEOF
11124cat confdefs.h >>conftest.$ac_ext
11125cat >>conftest.$ac_ext <<_ACEOF
11126/* end confdefs.h. */
11127#include <$ac_header>
11128_ACEOF
11129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } >/dev/null; then
11137 if test -s conftest.err; then
11138 ac_cpp_err=$ac_c_preproc_warn_flag
11139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11140 else
11141 ac_cpp_err=
11142 fi
11143else
11144 ac_cpp_err=yes
5ee754fc 11145fi
bec39cab
AC
11146if test -z "$ac_cpp_err"; then
11147 ac_header_preproc=yes
5ee754fc 11148else
bec39cab
AC
11149 echo "$as_me: failed program was:" >&5
11150sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 ac_header_preproc=no
5ee754fc 11153fi
bec39cab
AC
11154rm -f conftest.err conftest.$ac_ext
11155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11156echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11157
bec39cab
AC
11158# So? What about this header?
11159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11160 yes:no: )
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11165 ac_header_preproc=yes
11166 ;;
11167 no:yes:* )
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11180 (
11181 cat <<\_ASBOX
11182## ------------------------------------------ ##
11183## Report this to the AC_PACKAGE_NAME lists. ##
11184## ------------------------------------------ ##
11185_ASBOX
11186 ) |
11187 sed "s/^/$as_me: WARNING: /" >&2
11188 ;;
11189esac
11190echo "$as_me:$LINENO: checking for $ac_header" >&5
11191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11192if eval "test \"\${$as_ac_Header+set}\" = set"; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11196fi
bec39cab
AC
11197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11199
5ee754fc 11200fi
bec39cab
AC
11201if test `eval echo '${'$as_ac_Header'}'` = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11204_ACEOF
11205
5ee754fc 11206fi
bec39cab 11207
5ee754fc
MK
11208done
11209
bec39cab
AC
11210
11211
11212for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11213do
bec39cab
AC
11214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11215if eval "test \"\${$as_ac_Header+set}\" = set"; then
11216 echo "$as_me:$LINENO: checking for $ac_header" >&5
11217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11218if eval "test \"\${$as_ac_Header+set}\" = set"; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220fi
11221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11223else
11224 # Is the header compilable?
11225echo "$as_me:$LINENO: checking $ac_header usability" >&5
11226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11227cat >conftest.$ac_ext <<_ACEOF
11228/* confdefs.h. */
11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
11233$ac_includes_default
11234#include <$ac_header>
11235_ACEOF
11236rm -f conftest.$ac_objext
11237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11238 (eval $ac_compile) 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -z "$ac_c_werror_flag"
11246 || test ! -s conftest.err'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_header_compiler=yes
11259else
11260 echo "$as_me: failed program was:" >&5
11261sed 's/^/| /' conftest.$ac_ext >&5
11262
11263ac_header_compiler=no
11264fi
11265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11267echo "${ECHO_T}$ac_header_compiler" >&6
11268
11269# Is the header present?
11270echo "$as_me:$LINENO: checking $ac_header presence" >&5
11271echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11272cat >conftest.$ac_ext <<_ACEOF
11273/* confdefs.h. */
11274_ACEOF
11275cat confdefs.h >>conftest.$ac_ext
11276cat >>conftest.$ac_ext <<_ACEOF
11277/* end confdefs.h. */
11278#include <$ac_header>
11279_ACEOF
11280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } >/dev/null; then
11288 if test -s conftest.err; then
11289 ac_cpp_err=$ac_c_preproc_warn_flag
11290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11291 else
11292 ac_cpp_err=
11293 fi
11294else
11295 ac_cpp_err=yes
5ee754fc 11296fi
bec39cab
AC
11297if test -z "$ac_cpp_err"; then
11298 ac_header_preproc=yes
5ee754fc 11299else
bec39cab
AC
11300 echo "$as_me: failed program was:" >&5
11301sed 's/^/| /' conftest.$ac_ext >&5
11302
11303 ac_header_preproc=no
5ee754fc 11304fi
bec39cab
AC
11305rm -f conftest.err conftest.$ac_ext
11306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11307echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11308
bec39cab
AC
11309# So? What about this header?
11310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11311 yes:no: )
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11313echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11315echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11316 ac_header_preproc=yes
11317 ;;
11318 no:yes:* )
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11320echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11322echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11324echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11326echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11328echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11330echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11331 (
11332 cat <<\_ASBOX
11333## ------------------------------------------ ##
11334## Report this to the AC_PACKAGE_NAME lists. ##
11335## ------------------------------------------ ##
11336_ASBOX
11337 ) |
11338 sed "s/^/$as_me: WARNING: /" >&2
11339 ;;
11340esac
11341echo "$as_me:$LINENO: checking for $ac_header" >&5
11342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11343if eval "test \"\${$as_ac_Header+set}\" = set"; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345else
11346 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11347fi
bec39cab
AC
11348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11350
5ee754fc 11351fi
bec39cab
AC
11352if test `eval echo '${'$as_ac_Header'}'` = yes; then
11353 cat >>confdefs.h <<_ACEOF
11354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11355_ACEOF
11356
5ee754fc 11357fi
bec39cab 11358
5ee754fc
MK
11359done
11360
bec39cab
AC
11361
11362
11363for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11364do
bec39cab
AC
11365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11366if eval "test \"\${$as_ac_Header+set}\" = set"; then
11367 echo "$as_me:$LINENO: checking for $ac_header" >&5
11368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11369if eval "test \"\${$as_ac_Header+set}\" = set"; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371fi
11372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11374else
11375 # Is the header compilable?
11376echo "$as_me:$LINENO: checking $ac_header usability" >&5
11377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11378cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
11384$ac_includes_default
11385#include <$ac_header>
11386_ACEOF
11387rm -f conftest.$ac_objext
11388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11389 (eval $ac_compile) 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -z "$ac_c_werror_flag"
11397 || test ! -s conftest.err'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest.$ac_objext'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_header_compiler=yes
11410else
11411 echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
11414ac_header_compiler=no
11415fi
11416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11417echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11418echo "${ECHO_T}$ac_header_compiler" >&6
11419
11420# Is the header present?
11421echo "$as_me:$LINENO: checking $ac_header presence" >&5
11422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11423cat >conftest.$ac_ext <<_ACEOF
11424/* confdefs.h. */
11425_ACEOF
11426cat confdefs.h >>conftest.$ac_ext
11427cat >>conftest.$ac_ext <<_ACEOF
11428/* end confdefs.h. */
11429#include <$ac_header>
11430_ACEOF
11431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } >/dev/null; then
11439 if test -s conftest.err; then
11440 ac_cpp_err=$ac_c_preproc_warn_flag
11441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11442 else
11443 ac_cpp_err=
11444 fi
11445else
11446 ac_cpp_err=yes
5ee754fc 11447fi
bec39cab
AC
11448if test -z "$ac_cpp_err"; then
11449 ac_header_preproc=yes
5ee754fc 11450else
bec39cab
AC
11451 echo "$as_me: failed program was:" >&5
11452sed 's/^/| /' conftest.$ac_ext >&5
11453
11454 ac_header_preproc=no
5ee754fc 11455fi
bec39cab
AC
11456rm -f conftest.err conftest.$ac_ext
11457echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11459
bec39cab
AC
11460# So? What about this header?
11461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462 yes:no: )
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11468 ;;
11469 no:yes:* )
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482 (
11483 cat <<\_ASBOX
11484## ------------------------------------------ ##
11485## Report this to the AC_PACKAGE_NAME lists. ##
11486## ------------------------------------------ ##
11487_ASBOX
11488 ) |
11489 sed "s/^/$as_me: WARNING: /" >&2
11490 ;;
11491esac
11492echo "$as_me:$LINENO: checking for $ac_header" >&5
11493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11494if eval "test \"\${$as_ac_Header+set}\" = set"; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11498fi
bec39cab
AC
11499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11501
5ee754fc 11502fi
bec39cab
AC
11503if test `eval echo '${'$as_ac_Header'}'` = yes; then
11504 cat >>confdefs.h <<_ACEOF
11505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11506_ACEOF
11507
5ee754fc 11508fi
bec39cab 11509
5ee754fc
MK
11510done
11511
bec39cab
AC
11512
11513for ac_header in sys/select.h
5ee754fc 11514do
bec39cab
AC
11515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516if eval "test \"\${$as_ac_Header+set}\" = set"; then
11517 echo "$as_me:$LINENO: checking for $ac_header" >&5
11518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11519if eval "test \"\${$as_ac_Header+set}\" = set"; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521fi
11522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11524else
11525 # Is the header compilable?
11526echo "$as_me:$LINENO: checking $ac_header usability" >&5
11527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11528cat >conftest.$ac_ext <<_ACEOF
11529/* confdefs.h. */
11530_ACEOF
11531cat confdefs.h >>conftest.$ac_ext
11532cat >>conftest.$ac_ext <<_ACEOF
11533/* end confdefs.h. */
11534$ac_includes_default
11535#include <$ac_header>
11536_ACEOF
11537rm -f conftest.$ac_objext
11538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag"
11547 || test ! -s conftest.err'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; } &&
11553 { ac_try='test -s conftest.$ac_objext'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 ac_header_compiler=yes
11560else
11561 echo "$as_me: failed program was:" >&5
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
11564ac_header_compiler=no
11565fi
11566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11568echo "${ECHO_T}$ac_header_compiler" >&6
11569
11570# Is the header present?
11571echo "$as_me:$LINENO: checking $ac_header presence" >&5
11572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11573cat >conftest.$ac_ext <<_ACEOF
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
11579#include <$ac_header>
11580_ACEOF
11581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null; then
11589 if test -s conftest.err; then
11590 ac_cpp_err=$ac_c_preproc_warn_flag
11591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11592 else
11593 ac_cpp_err=
11594 fi
11595else
11596 ac_cpp_err=yes
5ee754fc 11597fi
bec39cab
AC
11598if test -z "$ac_cpp_err"; then
11599 ac_header_preproc=yes
5ee754fc 11600else
bec39cab
AC
11601 echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
11603
11604 ac_header_preproc=no
5ee754fc 11605fi
bec39cab
AC
11606rm -f conftest.err conftest.$ac_ext
11607echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11609
bec39cab
AC
11610# So? What about this header?
11611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 yes:no: )
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11618 ;;
11619 no:yes:* )
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632 (
11633 cat <<\_ASBOX
11634## ------------------------------------------ ##
11635## Report this to the AC_PACKAGE_NAME lists. ##
11636## ------------------------------------------ ##
11637_ASBOX
11638 ) |
11639 sed "s/^/$as_me: WARNING: /" >&2
11640 ;;
11641esac
11642echo "$as_me:$LINENO: checking for $ac_header" >&5
11643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11644if eval "test \"\${$as_ac_Header+set}\" = set"; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11646else
11647 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11648fi
bec39cab
AC
11649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11651
5ee754fc 11652fi
bec39cab
AC
11653if test `eval echo '${'$as_ac_Header'}'` = yes; then
11654 cat >>confdefs.h <<_ACEOF
11655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11656_ACEOF
11657
5ee754fc 11658fi
bec39cab 11659
5ee754fc
MK
11660done
11661
bec39cab
AC
11662
11663for ac_header in sys/syscall.h
5ee754fc 11664do
bec39cab
AC
11665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666if eval "test \"\${$as_ac_Header+set}\" = set"; then
11667 echo "$as_me:$LINENO: checking for $ac_header" >&5
11668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11669if eval "test \"\${$as_ac_Header+set}\" = set"; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671fi
11672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11674else
11675 # Is the header compilable?
11676echo "$as_me:$LINENO: checking $ac_header usability" >&5
11677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11678cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */
11684$ac_includes_default
11685#include <$ac_header>
11686_ACEOF
11687rm -f conftest.$ac_objext
11688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag"
11697 || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_header_compiler=yes
11710else
11711 echo "$as_me: failed program was:" >&5
11712sed 's/^/| /' conftest.$ac_ext >&5
11713
11714ac_header_compiler=no
11715fi
11716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11718echo "${ECHO_T}$ac_header_compiler" >&6
11719
11720# Is the header present?
11721echo "$as_me:$LINENO: checking $ac_header presence" >&5
11722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11723cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h. */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h. */
11729#include <$ac_header>
11730_ACEOF
11731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } >/dev/null; then
11739 if test -s conftest.err; then
11740 ac_cpp_err=$ac_c_preproc_warn_flag
11741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11742 else
11743 ac_cpp_err=
11744 fi
11745else
11746 ac_cpp_err=yes
5ee754fc 11747fi
bec39cab
AC
11748if test -z "$ac_cpp_err"; then
11749 ac_header_preproc=yes
5ee754fc 11750else
bec39cab
AC
11751 echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 ac_header_preproc=no
5ee754fc 11755fi
bec39cab
AC
11756rm -f conftest.err conftest.$ac_ext
11757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11758echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11759
bec39cab
AC
11760# So? What about this header?
11761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11762 yes:no: )
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11767 ac_header_preproc=yes
11768 ;;
11769 no:yes:* )
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11782 (
11783 cat <<\_ASBOX
11784## ------------------------------------------ ##
11785## Report this to the AC_PACKAGE_NAME lists. ##
11786## ------------------------------------------ ##
11787_ASBOX
11788 ) |
11789 sed "s/^/$as_me: WARNING: /" >&2
11790 ;;
11791esac
11792echo "$as_me:$LINENO: checking for $ac_header" >&5
11793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11794if eval "test \"\${$as_ac_Header+set}\" = set"; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796else
11797 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11798fi
bec39cab
AC
11799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801
5ee754fc 11802fi
bec39cab
AC
11803if test `eval echo '${'$as_ac_Header'}'` = yes; then
11804 cat >>confdefs.h <<_ACEOF
11805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11806_ACEOF
11807
5ee754fc 11808fi
bec39cab 11809
5ee754fc
MK
11810done
11811
bec39cab
AC
11812
11813for ac_header in sys/types.h
5ee754fc 11814do
bec39cab
AC
11815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11816if eval "test \"\${$as_ac_Header+set}\" = set"; then
11817 echo "$as_me:$LINENO: checking for $ac_header" >&5
11818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11819if eval "test \"\${$as_ac_Header+set}\" = set"; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821fi
11822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11824else
11825 # Is the header compilable?
11826echo "$as_me:$LINENO: checking $ac_header usability" >&5
11827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11828cat >conftest.$ac_ext <<_ACEOF
11829/* confdefs.h. */
11830_ACEOF
11831cat confdefs.h >>conftest.$ac_ext
11832cat >>conftest.$ac_ext <<_ACEOF
11833/* end confdefs.h. */
11834$ac_includes_default
11835#include <$ac_header>
11836_ACEOF
11837rm -f conftest.$ac_objext
11838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839 (eval $ac_compile) 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -z "$ac_c_werror_flag"
11847 || test ! -s conftest.err'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; } &&
11853 { ac_try='test -s conftest.$ac_objext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_header_compiler=yes
11860else
11861 echo "$as_me: failed program was:" >&5
11862sed 's/^/| /' conftest.$ac_ext >&5
11863
11864ac_header_compiler=no
11865fi
11866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11867echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11868echo "${ECHO_T}$ac_header_compiler" >&6
11869
11870# Is the header present?
11871echo "$as_me:$LINENO: checking $ac_header presence" >&5
11872echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11873cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879#include <$ac_header>
11880_ACEOF
11881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11883 ac_status=$?
11884 grep -v '^ *+' conftest.er1 >conftest.err
11885 rm -f conftest.er1
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } >/dev/null; then
11889 if test -s conftest.err; then
11890 ac_cpp_err=$ac_c_preproc_warn_flag
11891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11892 else
11893 ac_cpp_err=
11894 fi
11895else
11896 ac_cpp_err=yes
5ee754fc 11897fi
bec39cab
AC
11898if test -z "$ac_cpp_err"; then
11899 ac_header_preproc=yes
5ee754fc 11900else
bec39cab
AC
11901 echo "$as_me: failed program was:" >&5
11902sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 ac_header_preproc=no
5ee754fc 11905fi
bec39cab
AC
11906rm -f conftest.err conftest.$ac_ext
11907echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11908echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11909
bec39cab
AC
11910# So? What about this header?
11911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11912 yes:no: )
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11917 ac_header_preproc=yes
11918 ;;
11919 no:yes:* )
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11932 (
11933 cat <<\_ASBOX
11934## ------------------------------------------ ##
11935## Report this to the AC_PACKAGE_NAME lists. ##
11936## ------------------------------------------ ##
11937_ASBOX
11938 ) |
11939 sed "s/^/$as_me: WARNING: /" >&2
11940 ;;
11941esac
11942echo "$as_me:$LINENO: checking for $ac_header" >&5
11943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11944if eval "test \"\${$as_ac_Header+set}\" = set"; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946else
11947 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11948fi
bec39cab
AC
11949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11951
5ee754fc 11952fi
bec39cab
AC
11953if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956_ACEOF
11957
5ee754fc 11958fi
bec39cab 11959
5ee754fc
MK
11960done
11961
bec39cab
AC
11962
11963for ac_header in sys/user.h
5ee754fc 11964do
bec39cab 11965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11966echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11968if eval "test \"\${$as_ac_Header+set}\" = set"; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11970else
7cb9022a 11971 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11972/* confdefs.h. */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h. */
7cb9022a
MK
11977#if HAVE_SYS_PARAM_H
11978# include <sys/param.h>
11979#endif
11980
11981
bec39cab
AC
11982#include <$ac_header>
11983_ACEOF
11984rm -f conftest.$ac_objext
11985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag"
11994 || test ! -s conftest.err'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest.$ac_objext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
7cb9022a 12006 eval "$as_ac_Header=yes"
bec39cab
AC
12007else
12008 echo "$as_me: failed program was:" >&5
12009sed 's/^/| /' conftest.$ac_ext >&5
12010
7cb9022a 12011eval "$as_ac_Header=no"
bec39cab
AC
12012fi
12013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 12014fi
bec39cab
AC
12015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12017if test `eval echo '${'$as_ac_Header'}'` = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12020_ACEOF
12021
5ee754fc 12022fi
bec39cab 12023
5ee754fc
MK
12024done
12025
bec39cab
AC
12026
12027
12028for ac_header in sys/wait.h wait.h
5ee754fc 12029do
bec39cab
AC
12030as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12031if eval "test \"\${$as_ac_Header+set}\" = set"; then
12032 echo "$as_me:$LINENO: checking for $ac_header" >&5
12033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12034if eval "test \"\${$as_ac_Header+set}\" = set"; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036fi
12037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12039else
12040 # Is the header compilable?
12041echo "$as_me:$LINENO: checking $ac_header usability" >&5
12042echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12043cat >conftest.$ac_ext <<_ACEOF
12044/* confdefs.h. */
12045_ACEOF
12046cat confdefs.h >>conftest.$ac_ext
12047cat >>conftest.$ac_ext <<_ACEOF
12048/* end confdefs.h. */
12049$ac_includes_default
12050#include <$ac_header>
12051_ACEOF
12052rm -f conftest.$ac_objext
12053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>conftest.er1
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -z "$ac_c_werror_flag"
12062 || test ! -s conftest.err'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 ac_header_compiler=yes
12075else
12076 echo "$as_me: failed program was:" >&5
12077sed 's/^/| /' conftest.$ac_ext >&5
12078
12079ac_header_compiler=no
12080fi
12081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12083echo "${ECHO_T}$ac_header_compiler" >&6
12084
12085# Is the header present?
12086echo "$as_me:$LINENO: checking $ac_header presence" >&5
12087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12088cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094#include <$ac_header>
12095_ACEOF
12096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } >/dev/null; then
12104 if test -s conftest.err; then
12105 ac_cpp_err=$ac_c_preproc_warn_flag
12106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12107 else
12108 ac_cpp_err=
12109 fi
12110else
12111 ac_cpp_err=yes
5ee754fc 12112fi
bec39cab
AC
12113if test -z "$ac_cpp_err"; then
12114 ac_header_preproc=yes
5ee754fc 12115else
bec39cab
AC
12116 echo "$as_me: failed program was:" >&5
12117sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 ac_header_preproc=no
5ee754fc 12120fi
bec39cab
AC
12121rm -f conftest.err conftest.$ac_ext
12122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12123echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 12124
bec39cab
AC
12125# So? What about this header?
12126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12127 yes:no: )
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12132 ac_header_preproc=yes
12133 ;;
12134 no:yes:* )
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12147 (
12148 cat <<\_ASBOX
12149## ------------------------------------------ ##
12150## Report this to the AC_PACKAGE_NAME lists. ##
12151## ------------------------------------------ ##
12152_ASBOX
12153 ) |
12154 sed "s/^/$as_me: WARNING: /" >&2
12155 ;;
12156esac
12157echo "$as_me:$LINENO: checking for $ac_header" >&5
12158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12159if eval "test \"\${$as_ac_Header+set}\" = set"; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161else
12162 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12163fi
bec39cab
AC
12164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12166
9608ab8b 12167fi
bec39cab
AC
12168if test `eval echo '${'$as_ac_Header'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12171_ACEOF
12172
9608ab8b 12173fi
bec39cab 12174
9608ab8b 12175done
5ee754fc 12176
bec39cab
AC
12177
12178
12179
12180for ac_header in termios.h termio.h sgtty.h
5ee754fc 12181do
bec39cab
AC
12182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12183if eval "test \"\${$as_ac_Header+set}\" = set"; then
12184 echo "$as_me:$LINENO: checking for $ac_header" >&5
12185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12186if eval "test \"\${$as_ac_Header+set}\" = set"; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188fi
12189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12191else
12192 # Is the header compilable?
12193echo "$as_me:$LINENO: checking $ac_header usability" >&5
12194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12195cat >conftest.$ac_ext <<_ACEOF
12196/* confdefs.h. */
12197_ACEOF
12198cat confdefs.h >>conftest.$ac_ext
12199cat >>conftest.$ac_ext <<_ACEOF
12200/* end confdefs.h. */
12201$ac_includes_default
12202#include <$ac_header>
12203_ACEOF
12204rm -f conftest.$ac_objext
12205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12206 (eval $ac_compile) 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag"
12214 || test ! -s conftest.err'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_header_compiler=yes
12227else
12228 echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231ac_header_compiler=no
12232fi
12233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12235echo "${ECHO_T}$ac_header_compiler" >&6
12236
12237# Is the header present?
12238echo "$as_me:$LINENO: checking $ac_header presence" >&5
12239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12240cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h. */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h. */
12246#include <$ac_header>
12247_ACEOF
12248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } >/dev/null; then
12256 if test -s conftest.err; then
12257 ac_cpp_err=$ac_c_preproc_warn_flag
12258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12259 else
12260 ac_cpp_err=
12261 fi
12262else
12263 ac_cpp_err=yes
9608ab8b 12264fi
bec39cab
AC
12265if test -z "$ac_cpp_err"; then
12266 ac_header_preproc=yes
9608ab8b 12267else
bec39cab
AC
12268 echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 ac_header_preproc=no
9608ab8b 12272fi
bec39cab
AC
12273rm -f conftest.err conftest.$ac_ext
12274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12276
bec39cab
AC
12277# So? What about this header?
12278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279 yes:no: )
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12284 ac_header_preproc=yes
12285 ;;
12286 no:yes:* )
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12299 (
12300 cat <<\_ASBOX
12301## ------------------------------------------ ##
12302## Report this to the AC_PACKAGE_NAME lists. ##
12303## ------------------------------------------ ##
12304_ASBOX
12305 ) |
12306 sed "s/^/$as_me: WARNING: /" >&2
12307 ;;
12308esac
12309echo "$as_me:$LINENO: checking for $ac_header" >&5
12310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12311if eval "test \"\${$as_ac_Header+set}\" = set"; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313else
12314 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12315fi
bec39cab
AC
12316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12318
9608ab8b 12319fi
bec39cab
AC
12320if test `eval echo '${'$as_ac_Header'}'` = yes; then
12321 cat >>confdefs.h <<_ACEOF
12322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12323_ACEOF
12324
9608ab8b 12325fi
bec39cab 12326
5ee754fc 12327done
9608ab8b 12328
bec39cab
AC
12329
12330for ac_header in unistd.h
78434e59 12331do
bec39cab
AC
12332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333if eval "test \"\${$as_ac_Header+set}\" = set"; then
12334 echo "$as_me:$LINENO: checking for $ac_header" >&5
12335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12336if eval "test \"\${$as_ac_Header+set}\" = set"; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338fi
12339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12341else
12342 # Is the header compilable?
12343echo "$as_me:$LINENO: checking $ac_header usability" >&5
12344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12345cat >conftest.$ac_ext <<_ACEOF
12346/* confdefs.h. */
12347_ACEOF
12348cat confdefs.h >>conftest.$ac_ext
12349cat >>conftest.$ac_ext <<_ACEOF
12350/* end confdefs.h. */
12351$ac_includes_default
12352#include <$ac_header>
12353_ACEOF
12354rm -f conftest.$ac_objext
12355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356 (eval $ac_compile) 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest.$ac_objext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_header_compiler=yes
12377else
12378 echo "$as_me: failed program was:" >&5
12379sed 's/^/| /' conftest.$ac_ext >&5
12380
12381ac_header_compiler=no
12382fi
12383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12385echo "${ECHO_T}$ac_header_compiler" >&6
12386
12387# Is the header present?
12388echo "$as_me:$LINENO: checking $ac_header presence" >&5
12389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12390cat >conftest.$ac_ext <<_ACEOF
12391/* confdefs.h. */
12392_ACEOF
12393cat confdefs.h >>conftest.$ac_ext
12394cat >>conftest.$ac_ext <<_ACEOF
12395/* end confdefs.h. */
12396#include <$ac_header>
12397_ACEOF
12398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } >/dev/null; then
12406 if test -s conftest.err; then
12407 ac_cpp_err=$ac_c_preproc_warn_flag
12408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12409 else
12410 ac_cpp_err=
12411 fi
12412else
12413 ac_cpp_err=yes
78434e59 12414fi
bec39cab
AC
12415if test -z "$ac_cpp_err"; then
12416 ac_header_preproc=yes
78434e59 12417else
bec39cab
AC
12418 echo "$as_me: failed program was:" >&5
12419sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 ac_header_preproc=no
78434e59 12422fi
bec39cab
AC
12423rm -f conftest.err conftest.$ac_ext
12424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12425echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12426
bec39cab
AC
12427# So? What about this header?
12428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12429 yes:no: )
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12434 ac_header_preproc=yes
12435 ;;
12436 no:yes:* )
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12449 (
12450 cat <<\_ASBOX
12451## ------------------------------------------ ##
12452## Report this to the AC_PACKAGE_NAME lists. ##
12453## ------------------------------------------ ##
12454_ASBOX
12455 ) |
12456 sed "s/^/$as_me: WARNING: /" >&2
12457 ;;
12458esac
12459echo "$as_me:$LINENO: checking for $ac_header" >&5
12460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12461if eval "test \"\${$as_ac_Header+set}\" = set"; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463else
12464 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12465fi
bec39cab
AC
12466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12468
086ec9eb 12469fi
bec39cab
AC
12470if test `eval echo '${'$as_ac_Header'}'` = yes; then
12471 cat >>confdefs.h <<_ACEOF
12472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12473_ACEOF
12474
086ec9eb 12475fi
bec39cab 12476
086ec9eb
MK
12477done
12478
9608ab8b 12479
b1d19a62 12480# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12481# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12482# think that we don't have <curses.h> if we're using GCC.
12483case $host_os in
b1d19a62 12484 solaris2.[789])
5ee754fc 12485 if test "$GCC" = yes; then
bec39cab
AC
12486
12487cat >>confdefs.h <<\_ACEOF
5ee754fc 12488#define _MSE_INT_H 1
bec39cab 12489_ACEOF
5ee754fc
MK
12490
12491 fi ;;
12492esac
bec39cab
AC
12493
12494
12495
12496
12497for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12498do
bec39cab
AC
12499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500if eval "test \"\${$as_ac_Header+set}\" = set"; then
12501 echo "$as_me:$LINENO: checking for $ac_header" >&5
12502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12503if eval "test \"\${$as_ac_Header+set}\" = set"; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505fi
12506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12508else
12509 # Is the header compilable?
12510echo "$as_me:$LINENO: checking $ac_header usability" >&5
12511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12512cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518$ac_includes_default
12519#include <$ac_header>
12520_ACEOF
12521rm -f conftest.$ac_objext
12522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12523 (eval $ac_compile) 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag"
12531 || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest.$ac_objext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_header_compiler=yes
12544else
12545 echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548ac_header_compiler=no
12549fi
12550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12552echo "${ECHO_T}$ac_header_compiler" >&6
12553
12554# Is the header present?
12555echo "$as_me:$LINENO: checking $ac_header presence" >&5
12556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12557cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563#include <$ac_header>
12564_ACEOF
12565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } >/dev/null; then
12573 if test -s conftest.err; then
12574 ac_cpp_err=$ac_c_preproc_warn_flag
12575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12576 else
12577 ac_cpp_err=
12578 fi
12579else
12580 ac_cpp_err=yes
c906108c 12581fi
bec39cab
AC
12582if test -z "$ac_cpp_err"; then
12583 ac_header_preproc=yes
12584else
12585 echo "$as_me: failed program was:" >&5
12586sed 's/^/| /' conftest.$ac_ext >&5
12587
12588 ac_header_preproc=no
c906108c 12589fi
bec39cab
AC
12590rm -f conftest.err conftest.$ac_ext
12591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12592echo "${ECHO_T}$ac_header_preproc" >&6
12593
12594# So? What about this header?
12595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12596 yes:no: )
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12601 ac_header_preproc=yes
12602 ;;
12603 no:yes:* )
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12607echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12611echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12616 (
12617 cat <<\_ASBOX
12618## ------------------------------------------ ##
12619## Report this to the AC_PACKAGE_NAME lists. ##
12620## ------------------------------------------ ##
12621_ASBOX
12622 ) |
12623 sed "s/^/$as_me: WARNING: /" >&2
12624 ;;
12625esac
12626echo "$as_me:$LINENO: checking for $ac_header" >&5
12627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12628if eval "test \"\${$as_ac_Header+set}\" = set"; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12630else
bec39cab 12631 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12632fi
bec39cab
AC
12633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12635
12636fi
12637if test `eval echo '${'$as_ac_Header'}'` = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12640_ACEOF
12641
12642fi
12643
5ee754fc 12644done
c906108c 12645
bec39cab 12646
065a1afc 12647for ac_header in ncurses/term.h
3b78cdbb 12648do
bec39cab
AC
12649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12650if eval "test \"\${$as_ac_Header+set}\" = set"; then
12651 echo "$as_me:$LINENO: checking for $ac_header" >&5
12652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12653if eval "test \"\${$as_ac_Header+set}\" = set"; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655fi
12656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12658else
12659 # Is the header compilable?
12660echo "$as_me:$LINENO: checking $ac_header usability" >&5
12661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12662cat >conftest.$ac_ext <<_ACEOF
12663/* confdefs.h. */
12664_ACEOF
12665cat confdefs.h >>conftest.$ac_ext
12666cat >>conftest.$ac_ext <<_ACEOF
12667/* end confdefs.h. */
12668$ac_includes_default
12669#include <$ac_header>
12670_ACEOF
12671rm -f conftest.$ac_objext
12672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag"
12681 || test ! -s conftest.err'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; } &&
12687 { ac_try='test -s conftest.$ac_objext'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; }; then
12693 ac_header_compiler=yes
12694else
12695 echo "$as_me: failed program was:" >&5
12696sed 's/^/| /' conftest.$ac_ext >&5
12697
12698ac_header_compiler=no
12699fi
12700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12702echo "${ECHO_T}$ac_header_compiler" >&6
12703
12704# Is the header present?
12705echo "$as_me:$LINENO: checking $ac_header presence" >&5
12706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12707cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h. */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
12712/* end confdefs.h. */
12713#include <$ac_header>
12714_ACEOF
12715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } >/dev/null; then
12723 if test -s conftest.err; then
12724 ac_cpp_err=$ac_c_preproc_warn_flag
12725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12726 else
12727 ac_cpp_err=
12728 fi
12729else
12730 ac_cpp_err=yes
3b78cdbb 12731fi
bec39cab
AC
12732if test -z "$ac_cpp_err"; then
12733 ac_header_preproc=yes
12734else
12735 echo "$as_me: failed program was:" >&5
12736sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 ac_header_preproc=no
3b78cdbb 12739fi
bec39cab
AC
12740rm -f conftest.err conftest.$ac_ext
12741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12742echo "${ECHO_T}$ac_header_preproc" >&6
12743
12744# So? What about this header?
12745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12746 yes:no: )
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12751 ac_header_preproc=yes
12752 ;;
12753 no:yes:* )
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12766 (
12767 cat <<\_ASBOX
12768## ------------------------------------------ ##
12769## Report this to the AC_PACKAGE_NAME lists. ##
12770## ------------------------------------------ ##
12771_ASBOX
12772 ) |
12773 sed "s/^/$as_me: WARNING: /" >&2
12774 ;;
12775esac
12776echo "$as_me:$LINENO: checking for $ac_header" >&5
12777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12778if eval "test \"\${$as_ac_Header+set}\" = set"; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12780else
bec39cab
AC
12781 eval "$as_ac_Header=\$ac_header_preproc"
12782fi
12783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12785
3b78cdbb 12786fi
bec39cab
AC
12787if test `eval echo '${'$as_ac_Header'}'` = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12790_ACEOF
12791
12792fi
12793
3b78cdbb
DA
12794done
12795
c906108c 12796
065a1afc
JB
12797for ac_header in term.h
12798do
12799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12800echo "$as_me:$LINENO: checking for $ac_header" >&5
12801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12802if eval "test \"\${$as_ac_Header+set}\" = set"; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805 cat >conftest.$ac_ext <<_ACEOF
12806/* confdefs.h. */
12807_ACEOF
12808cat confdefs.h >>conftest.$ac_ext
12809cat >>conftest.$ac_ext <<_ACEOF
12810/* end confdefs.h. */
12811#if HAVE_CURSES_H
12812# include <curses.h>
12813#endif
12814
12815
12816#include <$ac_header>
12817_ACEOF
12818rm -f conftest.$ac_objext
12819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag"
12828 || test ! -s conftest.err'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 eval "$as_ac_Header=yes"
12841else
12842 echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
12844
12845eval "$as_ac_Header=no"
12846fi
12847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848fi
12849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12851if test `eval echo '${'$as_ac_Header'}'` = yes; then
12852 cat >>confdefs.h <<_ACEOF
12853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12854_ACEOF
12855
12856fi
12857
12858done
12859
12860
5ee754fc
MK
12861# FIXME: kettenis/20030102: In most cases we include these
12862# unconditionally, so what's the point in checking these?
bec39cab
AC
12863
12864
12865for ac_header in ctype.h time.h
c906108c 12866do
bec39cab
AC
12867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12868if eval "test \"\${$as_ac_Header+set}\" = set"; then
12869 echo "$as_me:$LINENO: checking for $ac_header" >&5
12870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12871if eval "test \"\${$as_ac_Header+set}\" = set"; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12873fi
12874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12876else
12877 # Is the header compilable?
12878echo "$as_me:$LINENO: checking $ac_header usability" >&5
12879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12880cat >conftest.$ac_ext <<_ACEOF
12881/* confdefs.h. */
12882_ACEOF
12883cat confdefs.h >>conftest.$ac_ext
12884cat >>conftest.$ac_ext <<_ACEOF
12885/* end confdefs.h. */
12886$ac_includes_default
12887#include <$ac_header>
12888_ACEOF
12889rm -f conftest.$ac_objext
12890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag"
12899 || test ! -s conftest.err'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest.$ac_objext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_header_compiler=yes
12912else
12913 echo "$as_me: failed program was:" >&5
12914sed 's/^/| /' conftest.$ac_ext >&5
12915
12916ac_header_compiler=no
12917fi
12918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12920echo "${ECHO_T}$ac_header_compiler" >&6
12921
12922# Is the header present?
12923echo "$as_me:$LINENO: checking $ac_header presence" >&5
12924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12925cat >conftest.$ac_ext <<_ACEOF
12926/* confdefs.h. */
12927_ACEOF
12928cat confdefs.h >>conftest.$ac_ext
12929cat >>conftest.$ac_ext <<_ACEOF
12930/* end confdefs.h. */
12931#include <$ac_header>
12932_ACEOF
12933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev/null; then
12941 if test -s conftest.err; then
12942 ac_cpp_err=$ac_c_preproc_warn_flag
12943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12944 else
12945 ac_cpp_err=
12946 fi
12947else
12948 ac_cpp_err=yes
c906108c 12949fi
bec39cab
AC
12950if test -z "$ac_cpp_err"; then
12951 ac_header_preproc=yes
12952else
12953 echo "$as_me: failed program was:" >&5
12954sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 ac_header_preproc=no
c906108c 12957fi
bec39cab
AC
12958rm -f conftest.err conftest.$ac_ext
12959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12960echo "${ECHO_T}$ac_header_preproc" >&6
12961
12962# So? What about this header?
12963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12964 yes:no: )
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12969 ac_header_preproc=yes
12970 ;;
12971 no:yes:* )
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12984 (
12985 cat <<\_ASBOX
12986## ------------------------------------------ ##
12987## Report this to the AC_PACKAGE_NAME lists. ##
12988## ------------------------------------------ ##
12989_ASBOX
12990 ) |
12991 sed "s/^/$as_me: WARNING: /" >&2
12992 ;;
12993esac
12994echo "$as_me:$LINENO: checking for $ac_header" >&5
12995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12996if eval "test \"\${$as_ac_Header+set}\" = set"; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12998else
bec39cab
AC
12999 eval "$as_ac_Header=\$ac_header_preproc"
13000fi
13001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13003
13004fi
13005if test `eval echo '${'$as_ac_Header'}'` = yes; then
13006 cat >>confdefs.h <<_ACEOF
13007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13008_ACEOF
13009
c906108c 13010fi
bec39cab 13011
c906108c
SS
13012done
13013
5ee754fc 13014
666ec76f
MK
13015# ------------------------- #
13016# Checks for declarations. #
13017# ------------------------- #
13018
a3828db0
MK
13019echo "$as_me:$LINENO: checking whether free is declared" >&5
13020echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13021if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 13022 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 13023else
bec39cab
AC
13024 cat >conftest.$ac_ext <<_ACEOF
13025/* confdefs.h. */
13026_ACEOF
13027cat confdefs.h >>conftest.$ac_ext
13028cat >>conftest.$ac_ext <<_ACEOF
13029/* end confdefs.h. */
a3828db0 13030$ac_includes_default
bec39cab
AC
13031int
13032main ()
13033{
a3828db0
MK
13034#ifndef free
13035 char *p = (char *) free;
666ec76f 13036#endif
a3828db0 13037
bec39cab
AC
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042rm -f conftest.$ac_objext
13043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044 (eval $ac_compile) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -z "$ac_c_werror_flag"
13052 || test ! -s conftest.err'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest.$ac_objext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
a3828db0 13064 ac_cv_have_decl_free=yes
40a7debc 13065else
bec39cab
AC
13066 echo "$as_me: failed program was:" >&5
13067sed 's/^/| /' conftest.$ac_ext >&5
13068
a3828db0 13069ac_cv_have_decl_free=no
40a7debc 13070fi
bec39cab 13071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 13072fi
a3828db0
MK
13073echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13074echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13075if test $ac_cv_have_decl_free = yes; then
40a7debc 13076
a3828db0
MK
13077cat >>confdefs.h <<_ACEOF
13078#define HAVE_DECL_FREE 1
666ec76f
MK
13079_ACEOF
13080
a3828db0 13081
666ec76f 13082else
a3828db0
MK
13083 cat >>confdefs.h <<_ACEOF
13084#define HAVE_DECL_FREE 0
bec39cab 13085_ACEOF
40a7debc 13086
b9362cc7 13087
666ec76f 13088fi
a3828db0
MK
13089echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13090echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13091if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093else
13094 cat >conftest.$ac_ext <<_ACEOF
13095/* confdefs.h. */
13096_ACEOF
13097cat confdefs.h >>conftest.$ac_ext
13098cat >>conftest.$ac_ext <<_ACEOF
13099/* end confdefs.h. */
666ec76f
MK
13100$ac_includes_default
13101int
13102main ()
13103{
a3828db0
MK
13104#ifndef malloc
13105 char *p = (char *) malloc;
13106#endif
13107
666ec76f
MK
13108 ;
13109 return 0;
13110}
13111_ACEOF
13112rm -f conftest.$ac_objext
13113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13114 (eval $ac_compile) 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -z "$ac_c_werror_flag"
13122 || test ! -s conftest.err'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest.$ac_objext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
a3828db0 13134 ac_cv_have_decl_malloc=yes
666ec76f
MK
13135else
13136 echo "$as_me: failed program was:" >&5
13137sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 13138
a3828db0
MK
13139ac_cv_have_decl_malloc=no
13140fi
13141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13142fi
13143echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13144echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13145if test $ac_cv_have_decl_malloc = yes; then
13146
13147cat >>confdefs.h <<_ACEOF
13148#define HAVE_DECL_MALLOC 1
13149_ACEOF
13150
13151
13152else
13153 cat >>confdefs.h <<_ACEOF
13154#define HAVE_DECL_MALLOC 0
13155_ACEOF
13156
13157
13158fi
13159echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13160echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13161if test "${ac_cv_have_decl_realloc+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163else
13164 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13165/* confdefs.h. */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h. */
13170$ac_includes_default
bec39cab
AC
13171int
13172main ()
13173{
a3828db0
MK
13174#ifndef realloc
13175 char *p = (char *) realloc;
13176#endif
13177
bec39cab
AC
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext
13183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
a3828db0 13204 ac_cv_have_decl_realloc=yes
b9362cc7 13205else
bec39cab
AC
13206 echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
a3828db0 13209ac_cv_have_decl_realloc=no
b9362cc7 13210fi
bec39cab 13211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13212fi
a3828db0
MK
13213echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13214echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13215if test $ac_cv_have_decl_realloc = yes; then
b9362cc7 13216
666ec76f 13217cat >>confdefs.h <<_ACEOF
a3828db0 13218#define HAVE_DECL_REALLOC 1
bec39cab
AC
13219_ACEOF
13220
bec39cab 13221
a3828db0
MK
13222else
13223 cat >>confdefs.h <<_ACEOF
13224#define HAVE_DECL_REALLOC 0
13225_ACEOF
b9362cc7
AC
13226
13227
a3828db0 13228fi
5ee754fc 13229
a3828db0
MK
13230
13231echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13232echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13233if test "${ac_cv_have_decl_strerror+set}" = set; then
bec39cab
AC
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235else
13236 cat >conftest.$ac_ext <<_ACEOF
13237/* confdefs.h. */
13238_ACEOF
13239cat confdefs.h >>conftest.$ac_ext
13240cat >>conftest.$ac_ext <<_ACEOF
13241/* end confdefs.h. */
a3828db0 13242$ac_includes_default
bec39cab
AC
13243int
13244main ()
13245{
a3828db0
MK
13246#ifndef strerror
13247 char *p = (char *) strerror;
13248#endif
13249
bec39cab
AC
13250 ;
13251 return 0;
13252}
13253_ACEOF
13254rm -f conftest.$ac_objext
13255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
a3828db0 13276 ac_cv_have_decl_strerror=yes
c906108c 13277else
bec39cab
AC
13278 echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
a3828db0 13281ac_cv_have_decl_strerror=no
c906108c 13282fi
bec39cab 13283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13284fi
a3828db0
MK
13285echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13286echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13287if test $ac_cv_have_decl_strerror = yes; then
c906108c 13288
bec39cab 13289cat >>confdefs.h <<_ACEOF
a3828db0 13290#define HAVE_DECL_STRERROR 1
bec39cab 13291_ACEOF
c906108c 13292
c906108c 13293
a3828db0
MK
13294else
13295 cat >>confdefs.h <<_ACEOF
13296#define HAVE_DECL_STRERROR 0
13297_ACEOF
c906108c 13298
5ee754fc 13299
a3828db0
MK
13300fi
13301echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13302echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13303if test "${ac_cv_have_decl_strstr+set}" = set; then
bec39cab
AC
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305else
13306 cat >conftest.$ac_ext <<_ACEOF
13307/* confdefs.h. */
13308_ACEOF
13309cat confdefs.h >>conftest.$ac_ext
13310cat >>conftest.$ac_ext <<_ACEOF
13311/* end confdefs.h. */
a3828db0 13312$ac_includes_default
bec39cab
AC
13313int
13314main ()
13315{
a3828db0
MK
13316#ifndef strstr
13317 char *p = (char *) strstr;
bec39cab
AC
13318#endif
13319
13320 ;
13321 return 0;
13322}
13323_ACEOF
13324rm -f conftest.$ac_objext
13325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326 (eval $ac_compile) 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_c_werror_flag"
13334 || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
a3828db0 13346 ac_cv_have_decl_strstr=yes
c906108c 13347else
bec39cab
AC
13348 echo "$as_me: failed program was:" >&5
13349sed 's/^/| /' conftest.$ac_ext >&5
13350
a3828db0 13351ac_cv_have_decl_strstr=no
c906108c 13352fi
bec39cab 13353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13354fi
a3828db0
MK
13355echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13356echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13357if test $ac_cv_have_decl_strstr = yes; then
bec39cab 13358
a3828db0
MK
13359cat >>confdefs.h <<_ACEOF
13360#define HAVE_DECL_STRSTR 1
13361_ACEOF
13362
13363
13364else
13365 cat >>confdefs.h <<_ACEOF
13366#define HAVE_DECL_STRSTR 0
bec39cab 13367_ACEOF
c906108c 13368
a3828db0 13369
c906108c
SS
13370fi
13371
a3828db0
MK
13372
13373echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13374echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13375if test "${ac_cv_have_decl_getopt+set}" = set; then
bec39cab 13376 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13377else
bec39cab
AC
13378 cat >conftest.$ac_ext <<_ACEOF
13379/* confdefs.h. */
13380_ACEOF
13381cat confdefs.h >>conftest.$ac_ext
13382cat >>conftest.$ac_ext <<_ACEOF
13383/* end confdefs.h. */
a3828db0
MK
13384$ac_includes_default
13385int
13386main ()
13387{
13388#ifndef getopt
13389 char *p = (char *) getopt;
bec39cab
AC
13390#endif
13391
a3828db0
MK
13392 ;
13393 return 0;
13394}
bec39cab
AC
13395_ACEOF
13396rm -f conftest.$ac_objext
13397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag"
13406 || test ! -s conftest.err'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
a3828db0 13418 ac_cv_have_decl_getopt=yes
bce58c09 13419else
bec39cab
AC
13420 echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
a3828db0 13423ac_cv_have_decl_getopt=no
bce58c09 13424fi
bec39cab 13425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13426fi
a3828db0
MK
13427echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13428echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13429if test $ac_cv_have_decl_getopt = yes; then
bec39cab 13430
a3828db0
MK
13431cat >>confdefs.h <<_ACEOF
13432#define HAVE_DECL_GETOPT 1
13433_ACEOF
bce58c09 13434
a3828db0
MK
13435
13436else
13437 cat >>confdefs.h <<_ACEOF
13438#define HAVE_DECL_GETOPT 0
bec39cab 13439_ACEOF
bce58c09 13440
c906108c 13441
a3828db0 13442fi
5ee754fc 13443
a3828db0
MK
13444
13445
13446# ----------------------- #
13447# Checks for structures. #
13448# ----------------------- #
13449
13450echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13451echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13452if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
bec39cab
AC
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454else
13455 cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
a3828db0 13461$ac_includes_default
bec39cab
AC
13462int
13463main ()
13464{
a3828db0
MK
13465static struct stat ac_aggr;
13466if (ac_aggr.st_blocks)
13467return 0;
bec39cab
AC
13468 ;
13469 return 0;
13470}
13471_ACEOF
a3828db0
MK
13472rm -f conftest.$ac_objext
13473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_c_werror_flag"
13482 || test ! -s conftest.err'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
a3828db0 13488 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
a3828db0 13494 ac_cv_member_struct_stat_st_blocks=yes
bec39cab
AC
13495else
13496 echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
a3828db0
MK
13499cat >conftest.$ac_ext <<_ACEOF
13500/* confdefs.h. */
bec39cab
AC
13501_ACEOF
13502cat confdefs.h >>conftest.$ac_ext
13503cat >>conftest.$ac_ext <<_ACEOF
13504/* end confdefs.h. */
a3828db0 13505$ac_includes_default
bec39cab
AC
13506int
13507main ()
13508{
a3828db0
MK
13509static struct stat ac_aggr;
13510if (sizeof ac_aggr.st_blocks)
13511return 0;
bec39cab
AC
13512 ;
13513 return 0;
13514}
13515_ACEOF
a3828db0
MK
13516rm -f conftest.$ac_objext
13517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13519 ac_status=$?
13520 grep -v '^ *+' conftest.er1 >conftest.err
13521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -z "$ac_c_werror_flag"
13526 || test ! -s conftest.err'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; } &&
a3828db0 13532 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
a3828db0 13538 ac_cv_member_struct_stat_st_blocks=yes
46711df8 13539else
bec39cab
AC
13540 echo "$as_me: failed program was:" >&5
13541sed 's/^/| /' conftest.$ac_ext >&5
13542
a3828db0 13543ac_cv_member_struct_stat_st_blocks=no
46711df8 13544fi
a3828db0 13545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13546fi
a3828db0
MK
13547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13548fi
13549echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13550echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13551if test $ac_cv_member_struct_stat_st_blocks = yes; then
46711df8 13552
a3828db0
MK
13553cat >>confdefs.h <<_ACEOF
13554#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab 13555_ACEOF
46711df8 13556
46711df8 13557
a3828db0 13558fi
46711df8 13559
46711df8 13560
a3828db0
MK
13561# ------------------ #
13562# Checks for types. #
13563# ------------------ #
46711df8 13564
a3828db0
MK
13565echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13566echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13567if test "${ac_cv_type_signal+set}" = set; then
bec39cab
AC
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569else
13570 cat >conftest.$ac_ext <<_ACEOF
13571/* confdefs.h. */
13572_ACEOF
13573cat confdefs.h >>conftest.$ac_ext
13574cat >>conftest.$ac_ext <<_ACEOF
13575/* end confdefs.h. */
a3828db0
MK
13576#include <sys/types.h>
13577#include <signal.h>
13578#ifdef signal
13579# undef signal
bec39cab 13580#endif
bec39cab 13581#ifdef __cplusplus
a3828db0 13582extern "C" void (*signal (int, void (*)(int)))(int);
46711df8 13583#else
a3828db0 13584void (*signal ()) ();
46711df8
MK
13585#endif
13586
bec39cab
AC
13587int
13588main ()
13589{
a3828db0 13590int i;
bec39cab
AC
13591 ;
13592 return 0;
13593}
13594_ACEOF
a3828db0
MK
13595rm -f conftest.$ac_objext
13596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag"
13605 || test ! -s conftest.err'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
a3828db0 13611 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
a3828db0 13617 ac_cv_type_signal=void
bec39cab
AC
13618else
13619 echo "$as_me: failed program was:" >&5
13620sed 's/^/| /' conftest.$ac_ext >&5
13621
a3828db0 13622ac_cv_type_signal=int
bec39cab 13623fi
a3828db0 13624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 13625fi
a3828db0
MK
13626echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13627echo "${ECHO_T}$ac_cv_type_signal" >&6
bec39cab
AC
13628
13629cat >>confdefs.h <<_ACEOF
a3828db0 13630#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13631_ACEOF
46711df8 13632
46711df8 13633
46711df8 13634
a3828db0
MK
13635# ------------------------------------- #
13636# Checks for compiler characteristics. #
13637# ------------------------------------- #
13638
13639echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13640echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13641if test "${ac_cv_c_const+set}" = set; then
bec39cab 13642 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13643else
bec39cab
AC
13644 cat >conftest.$ac_ext <<_ACEOF
13645/* confdefs.h. */
13646_ACEOF
13647cat confdefs.h >>conftest.$ac_ext
13648cat >>conftest.$ac_ext <<_ACEOF
13649/* end confdefs.h. */
bec39cab
AC
13650
13651int
46711df8
MK
13652main ()
13653{
a3828db0
MK
13654/* FIXME: Include the comments suggested by Paul. */
13655#ifndef __cplusplus
13656 /* Ultrix mips cc rejects this. */
13657 typedef int charset[2];
13658 const charset x;
13659 /* SunOS 4.1.1 cc rejects this. */
13660 char const *const *ccp;
13661 char **p;
13662 /* NEC SVR4.0.2 mips cc rejects this. */
13663 struct point {int x, y;};
13664 static struct point const zero = {0,0};
13665 /* AIX XL C 1.02.0.0 rejects this.
13666 It does not let you subtract one const X* pointer from another in
13667 an arm of an if-expression whose if-part is not a constant
13668 expression */
13669 const char *g = "string";
13670 ccp = &g + (g ? g-g : 0);
13671 /* HPUX 7.0 cc rejects these. */
13672 ++ccp;
13673 p = (char**) ccp;
13674 ccp = (char const *const *) p;
13675 { /* SCO 3.2v4 cc rejects this. */
13676 char *t;
13677 char const *s = 0 ? (char *) 0 : (char const *) 0;
13678
13679 *t++ = 0;
13680 }
13681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13682 int x[] = {25, 17};
13683 const int *foo = &x[0];
13684 ++foo;
13685 }
13686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13687 typedef const int *iptr;
13688 iptr p = 0;
13689 ++p;
13690 }
13691 { /* AIX XL C 1.02.0.0 rejects this saying
13692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13693 struct s { int j; const int *ap[3]; };
13694 struct s *b; b->j = 5;
13695 }
13696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13697 const int foo = 10;
13698 }
13699#endif
13700
13701 ;
13702 return 0;
46711df8 13703}
bec39cab 13704_ACEOF
a3828db0
MK
13705rm -f conftest.$ac_objext
13706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13707 (eval $ac_compile) 2>conftest.er1
13708 ac_status=$?
13709 grep -v '^ *+' conftest.er1 >conftest.err
13710 rm -f conftest.er1
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
bec39cab
AC
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
a3828db0 13727 ac_cv_c_const=yes
46711df8 13728else
a3828db0 13729 echo "$as_me: failed program was:" >&5
bec39cab
AC
13730sed 's/^/| /' conftest.$ac_ext >&5
13731
a3828db0 13732ac_cv_c_const=no
46711df8 13733fi
a3828db0 13734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13735fi
a3828db0
MK
13736echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13737echo "${ECHO_T}$ac_cv_c_const" >&6
13738if test $ac_cv_c_const = no; then
46711df8 13739
a3828db0
MK
13740cat >>confdefs.h <<\_ACEOF
13741#define const
bec39cab
AC
13742_ACEOF
13743
46711df8
MK
13744fi
13745
a3828db0
MK
13746echo "$as_me:$LINENO: checking for inline" >&5
13747echo $ECHO_N "checking for inline... $ECHO_C" >&6
13748if test "${ac_cv_c_inline+set}" = set; then
bec39cab 13749 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13750else
a3828db0
MK
13751 ac_cv_c_inline=no
13752for ac_kw in inline __inline__ __inline; do
13753 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13754/* confdefs.h. */
13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h. */
a3828db0
MK
13759#ifndef __cplusplus
13760typedef int foo_t;
13761static $ac_kw foo_t static_foo () {return 0; }
13762$ac_kw foo_t foo () {return 0; }
13763#endif
13764
bec39cab
AC
13765_ACEOF
13766rm -f conftest.$ac_objext
13767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>conftest.er1
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try='test -z "$ac_c_werror_flag"
13776 || test ! -s conftest.err'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest.$ac_objext'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
a3828db0 13788 ac_cv_c_inline=$ac_kw; break
bec39cab
AC
13789else
13790 echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
bec39cab
AC
13793fi
13794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0 13795done
bec39cab 13796
74c1b268 13797fi
a3828db0
MK
13798echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13799echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 13800
bec39cab 13801
a3828db0
MK
13802case $ac_cv_c_inline in
13803 inline | yes) ;;
13804 *)
13805 case $ac_cv_c_inline in
13806 no) ac_val=;;
13807 *) ac_val=$ac_cv_c_inline;;
13808 esac
13809 cat >>confdefs.h <<_ACEOF
13810#ifndef __cplusplus
13811#define inline $ac_val
13812#endif
13813_ACEOF
bec39cab
AC
13814 ;;
13815esac
bec39cab 13816
74c1b268 13817
a3828db0
MK
13818# ------------------------------ #
13819# Checks for library functions. #
13820# ------------------------------ #
bec39cab 13821
a3828db0
MK
13822# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13823# for constant arguments. Useless!
13824echo "$as_me:$LINENO: checking for working alloca.h" >&5
13825echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13826if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828else
13829 cat >conftest.$ac_ext <<_ACEOF
13830/* confdefs.h. */
13831_ACEOF
13832cat confdefs.h >>conftest.$ac_ext
13833cat >>conftest.$ac_ext <<_ACEOF
13834/* end confdefs.h. */
a3828db0 13835#include <alloca.h>
bec39cab
AC
13836int
13837main ()
13838{
a3828db0 13839char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
13840 ;
13841 return 0;
13842}
13843_ACEOF
13844rm -f conftest.$ac_objext conftest$ac_exeext
13845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
a3828db0 13866 ac_cv_working_alloca_h=yes
bec39cab
AC
13867else
13868 echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
a3828db0 13871ac_cv_working_alloca_h=no
bec39cab
AC
13872fi
13873rm -f conftest.err conftest.$ac_objext \
13874 conftest$ac_exeext conftest.$ac_ext
13875fi
a3828db0
MK
13876echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13877echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13878if test $ac_cv_working_alloca_h = yes; then
13879
13880cat >>confdefs.h <<\_ACEOF
13881#define HAVE_ALLOCA_H 1
bec39cab 13882_ACEOF
74c1b268 13883
74c1b268
AC
13884fi
13885
a3828db0
MK
13886echo "$as_me:$LINENO: checking for alloca" >&5
13887echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13888if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 13889 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 13890else
bec39cab
AC
13891 cat >conftest.$ac_ext <<_ACEOF
13892/* confdefs.h. */
13893_ACEOF
13894cat confdefs.h >>conftest.$ac_ext
13895cat >>conftest.$ac_ext <<_ACEOF
13896/* end confdefs.h. */
a3828db0
MK
13897#ifdef __GNUC__
13898# define alloca __builtin_alloca
13899#else
13900# ifdef _MSC_VER
13901# include <malloc.h>
13902# define alloca _alloca
13903# else
13904# if HAVE_ALLOCA_H
13905# include <alloca.h>
13906# else
13907# ifdef _AIX
13908 #pragma alloca
13909# else
13910# ifndef alloca /* predefined by HP cc +Olibcalls */
13911char *alloca ();
13912# endif
13913# endif
13914# endif
97bf5e38 13915# endif
a3828db0 13916#endif
97bf5e38 13917
bec39cab
AC
13918int
13919main ()
13920{
a3828db0 13921char *p = (char *) alloca (1);
bec39cab
AC
13922 ;
13923 return 0;
13924}
13925_ACEOF
a3828db0
MK
13926rm -f conftest.$ac_objext conftest$ac_exeext
13927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928 (eval $ac_link) 2>conftest.er1
bec39cab
AC
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
a3828db0 13942 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
a3828db0 13948 ac_cv_func_alloca_works=yes
0200359f 13949else
bec39cab
AC
13950 echo "$as_me: failed program was:" >&5
13951sed 's/^/| /' conftest.$ac_ext >&5
0200359f 13952
a3828db0 13953ac_cv_func_alloca_works=no
0200359f 13954fi
a3828db0
MK
13955rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
72473524 13957fi
a3828db0
MK
13958echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13959echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 13960
a3828db0
MK
13961if test $ac_cv_func_alloca_works = yes; then
13962
13963cat >>confdefs.h <<\_ACEOF
13964#define HAVE_ALLOCA 1
bec39cab
AC
13965_ACEOF
13966
a3828db0
MK
13967else
13968 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13969# that cause trouble. Some versions do not even contain alloca or
13970# contain a buggy version. If you still want to use their alloca,
13971# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 13972
a3828db0 13973ALLOCA=alloca.$ac_objext
bec39cab 13974
a3828db0
MK
13975cat >>confdefs.h <<\_ACEOF
13976#define C_ALLOCA 1
13977_ACEOF
bec39cab 13978
a3828db0
MK
13979
13980echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13981echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13982if test "${ac_cv_os_cray+set}" = set; then
bec39cab 13983 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13984else
a3828db0 13985 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13986/* confdefs.h. */
13987_ACEOF
13988cat confdefs.h >>conftest.$ac_ext
13989cat >>conftest.$ac_ext <<_ACEOF
13990/* end confdefs.h. */
a3828db0
MK
13991#if defined(CRAY) && ! defined(CRAY2)
13992webecray
13993#else
13994wenotbecray
13995#endif
13996
13997_ACEOF
13998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13999 $EGREP "webecray" >/dev/null 2>&1; then
14000 ac_cv_os_cray=yes
14001else
14002 ac_cv_os_cray=no
14003fi
14004rm -f conftest*
14005
14006fi
14007echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14008echo "${ECHO_T}$ac_cv_os_cray" >&6
14009if test $ac_cv_os_cray = yes; then
14010 for ac_func in _getb67 GETB67 getb67; do
14011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14012echo "$as_me:$LINENO: checking for $ac_func" >&5
14013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14014if eval "test \"\${$as_ac_var+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016else
14017 cat >conftest.$ac_ext <<_ACEOF
14018/* confdefs.h. */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
14022/* end confdefs.h. */
14023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14025#define $ac_func innocuous_$ac_func
14026
14027/* System header to define __stub macros and hopefully few prototypes,
14028 which can conflict with char $ac_func (); below.
14029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14030 <limits.h> exists even on freestanding compilers. */
14031
14032#ifdef __STDC__
14033# include <limits.h>
14034#else
14035# include <assert.h>
14036#endif
14037
14038#undef $ac_func
14039
14040/* Override any gcc2 internal prototype to avoid an error. */
14041#ifdef __cplusplus
14042extern "C"
14043{
14044#endif
14045/* We use char because int might match the return type of a gcc2
14046 builtin and then its argument prototype would still apply. */
14047char $ac_func ();
14048/* The GNU C library defines this for functions which it implements
14049 to always fail with ENOSYS. Some functions are actually named
14050 something starting with __ and the normal name is an alias. */
14051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14052choke me
14053#else
14054char (*f) () = $ac_func;
14055#endif
14056#ifdef __cplusplus
14057}
14058#endif
14059
14060int
14061main ()
14062{
14063return f != $ac_func;
14064 ;
14065 return 0;
14066}
14067_ACEOF
14068rm -f conftest.$ac_objext conftest$ac_exeext
14069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14070 (eval $ac_link) 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -z "$ac_c_werror_flag"
14078 || test ! -s conftest.err'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; } &&
14084 { ac_try='test -s conftest$ac_exeext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 eval "$as_ac_var=yes"
14091else
14092 echo "$as_me: failed program was:" >&5
14093sed 's/^/| /' conftest.$ac_ext >&5
14094
14095eval "$as_ac_var=no"
14096fi
14097rm -f conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099fi
14100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14102if test `eval echo '${'$as_ac_var'}'` = yes; then
14103
14104cat >>confdefs.h <<_ACEOF
14105#define CRAY_STACKSEG_END $ac_func
14106_ACEOF
14107
14108 break
14109fi
14110
14111 done
14112fi
14113
14114echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14115echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14116if test "${ac_cv_c_stack_direction+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118else
14119 if test "$cross_compiling" = yes; then
14120 ac_cv_c_stack_direction=0
14121else
14122 cat >conftest.$ac_ext <<_ACEOF
14123/* confdefs.h. */
14124_ACEOF
14125cat confdefs.h >>conftest.$ac_ext
14126cat >>conftest.$ac_ext <<_ACEOF
14127/* end confdefs.h. */
14128int
14129find_stack_direction ()
14130{
14131 static char *addr = 0;
14132 auto char dummy;
14133 if (addr == 0)
14134 {
14135 addr = &dummy;
14136 return find_stack_direction ();
14137 }
14138 else
14139 return (&dummy > addr) ? 1 : -1;
14140}
14141
14142int
14143main ()
14144{
14145 exit (find_stack_direction () < 0);
14146}
14147_ACEOF
14148rm -f conftest$ac_exeext
14149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14150 (eval $ac_link) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_c_stack_direction=1
14160else
14161 echo "$as_me: program exited with status $ac_status" >&5
14162echo "$as_me: failed program was:" >&5
14163sed 's/^/| /' conftest.$ac_ext >&5
14164
14165( exit $ac_status )
14166ac_cv_c_stack_direction=-1
14167fi
14168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14169fi
14170fi
14171echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14172echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14173
14174cat >>confdefs.h <<_ACEOF
14175#define STACK_DIRECTION $ac_cv_c_stack_direction
14176_ACEOF
14177
14178
14179fi
14180
14181
14182
14183for ac_header in stdlib.h unistd.h
14184do
14185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186if eval "test \"\${$as_ac_Header+set}\" = set"; then
14187 echo "$as_me:$LINENO: checking for $ac_header" >&5
14188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14189if eval "test \"\${$as_ac_Header+set}\" = set"; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191fi
14192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14194else
14195 # Is the header compilable?
14196echo "$as_me:$LINENO: checking $ac_header usability" >&5
14197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14198cat >conftest.$ac_ext <<_ACEOF
14199/* confdefs.h. */
14200_ACEOF
14201cat confdefs.h >>conftest.$ac_ext
14202cat >>conftest.$ac_ext <<_ACEOF
14203/* end confdefs.h. */
14204$ac_includes_default
14205#include <$ac_header>
14206_ACEOF
14207rm -f conftest.$ac_objext
14208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209 (eval $ac_compile) 2>conftest.er1
14210 ac_status=$?
bec39cab
AC
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag"
14217 || test ! -s conftest.err'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest.$ac_objext'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14229 ac_header_compiler=yes
14230else
14231 echo "$as_me: failed program was:" >&5
14232sed 's/^/| /' conftest.$ac_ext >&5
14233
14234ac_header_compiler=no
14235fi
14236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14237echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14238echo "${ECHO_T}$ac_header_compiler" >&6
14239
14240# Is the header present?
14241echo "$as_me:$LINENO: checking $ac_header presence" >&5
14242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14243cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h. */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h. */
14249#include <$ac_header>
14250_ACEOF
14251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } >/dev/null; then
14259 if test -s conftest.err; then
14260 ac_cpp_err=$ac_c_preproc_warn_flag
14261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14262 else
14263 ac_cpp_err=
14264 fi
14265else
14266 ac_cpp_err=yes
14267fi
14268if test -z "$ac_cpp_err"; then
14269 ac_header_preproc=yes
97bf5e38 14270else
bec39cab
AC
14271 echo "$as_me: failed program was:" >&5
14272sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 ac_header_preproc=no
72473524 14275fi
bec39cab
AC
14276rm -f conftest.err conftest.$ac_ext
14277echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14278echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14279
bec39cab
AC
14280# So? What about this header?
14281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14282 yes:no: )
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14286echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14287 ac_header_preproc=yes
14288 ;;
14289 no:yes:* )
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14291echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14293echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14295echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14297echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14299echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14301echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14302 (
14303 cat <<\_ASBOX
14304## ------------------------------------------ ##
14305## Report this to the AC_PACKAGE_NAME lists. ##
14306## ------------------------------------------ ##
14307_ASBOX
14308 ) |
14309 sed "s/^/$as_me: WARNING: /" >&2
14310 ;;
14311esac
14312echo "$as_me:$LINENO: checking for $ac_header" >&5
14313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14314if eval "test \"\${$as_ac_Header+set}\" = set"; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14316else
bec39cab
AC
14317 eval "$as_ac_Header=\$ac_header_preproc"
14318fi
14319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14321
14322fi
14323if test `eval echo '${'$as_ac_Header'}'` = yes; then
14324 cat >>confdefs.h <<_ACEOF
14325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14326_ACEOF
14327
14328fi
14329
14330done
14331
14332
a3828db0 14333for ac_func in getpagesize
bec39cab
AC
14334do
14335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14336echo "$as_me:$LINENO: checking for $ac_func" >&5
14337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14338if eval "test \"\${$as_ac_var+set}\" = set"; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h. */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h. */
14347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14349#define $ac_func innocuous_$ac_func
14350
97bf5e38 14351/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14352 which can conflict with char $ac_func (); below.
14353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14354 <limits.h> exists even on freestanding compilers. */
2b2d558c 14355
bec39cab
AC
14356#ifdef __STDC__
14357# include <limits.h>
14358#else
14359# include <assert.h>
14360#endif
97bf5e38 14361
bec39cab
AC
14362#undef $ac_func
14363
14364/* Override any gcc2 internal prototype to avoid an error. */
14365#ifdef __cplusplus
14366extern "C"
14367{
14368#endif
14369/* We use char because int might match the return type of a gcc2
14370 builtin and then its argument prototype would still apply. */
14371char $ac_func ();
97bf5e38
MK
14372/* The GNU C library defines this for functions which it implements
14373 to always fail with ENOSYS. Some functions are actually named
14374 something starting with __ and the normal name is an alias. */
bec39cab 14375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14376choke me
14377#else
bec39cab
AC
14378char (*f) () = $ac_func;
14379#endif
14380#ifdef __cplusplus
14381}
97bf5e38
MK
14382#endif
14383
bec39cab
AC
14384int
14385main ()
14386{
14387return f != $ac_func;
14388 ;
14389 return 0;
14390}
14391_ACEOF
14392rm -f conftest.$ac_objext conftest$ac_exeext
14393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14394 (eval $ac_link) 2>conftest.er1
14395 ac_status=$?
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -z "$ac_c_werror_flag"
14402 || test ! -s conftest.err'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest$ac_exeext'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 eval "$as_ac_var=yes"
14415else
14416 echo "$as_me: failed program was:" >&5
14417sed 's/^/| /' conftest.$ac_ext >&5
14418
14419eval "$as_ac_var=no"
14420fi
14421rm -f conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423fi
14424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14426if test `eval echo '${'$as_ac_var'}'` = yes; then
14427 cat >>confdefs.h <<_ACEOF
14428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14429_ACEOF
14430
2b2d558c 14431fi
bec39cab 14432done
2b2d558c 14433
a3828db0
MK
14434echo "$as_me:$LINENO: checking for working mmap" >&5
14435echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14436if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 14437 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14438else
bec39cab 14439 if test "$cross_compiling" = yes; then
a3828db0 14440 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
14441else
14442 cat >conftest.$ac_ext <<_ACEOF
a3828db0 14443/* confdefs.h. */
bec39cab
AC
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
14447/* end confdefs.h. */
a3828db0
MK
14448$ac_includes_default
14449/* malloc might have been renamed as rpl_malloc. */
14450#undef malloc
bec39cab 14451
a3828db0
MK
14452/* Thanks to Mike Haertel and Jim Avera for this test.
14453 Here is a matrix of mmap possibilities:
14454 mmap private not fixed
14455 mmap private fixed at somewhere currently unmapped
14456 mmap private fixed at somewhere already mapped
14457 mmap shared not fixed
14458 mmap shared fixed at somewhere currently unmapped
14459 mmap shared fixed at somewhere already mapped
14460 For private mappings, we should verify that changes cannot be read()
14461 back from the file, nor mmap's back from the file at a different
14462 address. (There have been systems where private was not correctly
14463 implemented like the infamous i386 svr4.0, and systems where the
14464 VM page cache was not coherent with the file system buffer cache
14465 like early versions of FreeBSD and possibly contemporary NetBSD.)
14466 For shared mappings, we should conversely verify that changes get
14467 propagated back to all the places they're supposed to be.
7dfa765c 14468
a3828db0
MK
14469 Grep wants private fixed already mapped.
14470 The main things grep needs to know about mmap are:
14471 * does it exist and is it safe to write into the mmap'd area
14472 * how to use it (BSD variants) */
7dfa765c 14473
a3828db0
MK
14474#include <fcntl.h>
14475#include <sys/mman.h>
7dfa765c 14476
a3828db0
MK
14477#if !STDC_HEADERS && !HAVE_STDLIB_H
14478char *malloc ();
14479#endif
7dfa765c 14480
a3828db0
MK
14481/* This mess was copied from the GNU getpagesize.h. */
14482#if !HAVE_GETPAGESIZE
14483/* Assume that all systems that can run configure have sys/param.h. */
14484# if !HAVE_SYS_PARAM_H
14485# define HAVE_SYS_PARAM_H 1
14486# endif
64bb1671 14487
a3828db0
MK
14488# ifdef _SC_PAGESIZE
14489# define getpagesize() sysconf(_SC_PAGESIZE)
14490# else /* no _SC_PAGESIZE */
14491# if HAVE_SYS_PARAM_H
14492# include <sys/param.h>
14493# ifdef EXEC_PAGESIZE
14494# define getpagesize() EXEC_PAGESIZE
14495# else /* no EXEC_PAGESIZE */
14496# ifdef NBPG
14497# define getpagesize() NBPG * CLSIZE
14498# ifndef CLSIZE
14499# define CLSIZE 1
14500# endif /* no CLSIZE */
14501# else /* no NBPG */
14502# ifdef NBPC
14503# define getpagesize() NBPC
14504# else /* no NBPC */
14505# ifdef PAGESIZE
14506# define getpagesize() PAGESIZE
14507# endif /* PAGESIZE */
14508# endif /* no NBPC */
14509# endif /* no NBPG */
14510# endif /* no EXEC_PAGESIZE */
14511# else /* no HAVE_SYS_PARAM_H */
14512# define getpagesize() 8192 /* punt totally */
14513# endif /* no HAVE_SYS_PARAM_H */
14514# endif /* no _SC_PAGESIZE */
64bb1671 14515
a3828db0 14516#endif /* no HAVE_GETPAGESIZE */
64bb1671 14517
a3828db0
MK
14518int
14519main ()
14520{
14521 char *data, *data2, *data3;
14522 int i, pagesize;
14523 int fd;
97bf5e38 14524
a3828db0
MK
14525 pagesize = getpagesize ();
14526
14527 /* First, make a file with some known garbage in it. */
14528 data = (char *) malloc (pagesize);
14529 if (!data)
14530 exit (1);
14531 for (i = 0; i < pagesize; ++i)
14532 *(data + i) = rand ();
14533 umask (0);
14534 fd = creat ("conftest.mmap", 0600);
14535 if (fd < 0)
14536 exit (1);
14537 if (write (fd, data, pagesize) != pagesize)
14538 exit (1);
14539 close (fd);
14540
14541 /* Next, try to mmap the file at a fixed address which already has
14542 something else allocated at it. If we can, also make sure that
14543 we see the same garbage. */
14544 fd = open ("conftest.mmap", O_RDWR);
14545 if (fd < 0)
14546 exit (1);
14547 data2 = (char *) malloc (2 * pagesize);
14548 if (!data2)
14549 exit (1);
14550 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14551 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14553 exit (1);
14554 for (i = 0; i < pagesize; ++i)
14555 if (*(data + i) != *(data2 + i))
14556 exit (1);
14557
14558 /* Finally, make sure that changes to the mapped area do not
14559 percolate back to the file as seen by read(). (This is a bug on
14560 some variants of i386 svr4.0.) */
14561 for (i = 0; i < pagesize; ++i)
14562 *(data2 + i) = *(data2 + i) + 1;
14563 data3 = (char *) malloc (pagesize);
14564 if (!data3)
14565 exit (1);
14566 if (read (fd, data3, pagesize) != pagesize)
14567 exit (1);
14568 for (i = 0; i < pagesize; ++i)
14569 if (*(data + i) != *(data3 + i))
14570 exit (1);
14571 close (fd);
14572 exit (0);
97bf5e38 14573}
bec39cab
AC
14574_ACEOF
14575rm -f conftest$ac_exeext
14576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14577 (eval $ac_link) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
a3828db0 14586 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 14587else
bec39cab
AC
14588 echo "$as_me: program exited with status $ac_status" >&5
14589echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592( exit $ac_status )
a3828db0 14593ac_cv_func_mmap_fixed_mapped=no
0afdd437 14594fi
a3828db0 14595rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 14596fi
a3828db0
MK
14597fi
14598echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14599echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14600if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14601
14602cat >>confdefs.h <<\_ACEOF
a3828db0 14603#define HAVE_MMAP 1
bec39cab 14604_ACEOF
0afdd437
MK
14605
14606fi
a3828db0 14607rm -f conftest.mmap
0afdd437 14608
a3828db0
MK
14609echo "$as_me:$LINENO: checking for pid_t" >&5
14610echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14611if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14613else
14614 cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h. */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h. */
a3828db0 14620$ac_includes_default
bec39cab
AC
14621int
14622main ()
14623{
a3828db0
MK
14624if ((pid_t *) 0)
14625 return 0;
14626if (sizeof (pid_t))
14627 return 0;
bec39cab
AC
14628 ;
14629 return 0;
14630}
14631_ACEOF
a3828db0
MK
14632rm -f conftest.$ac_objext
14633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
14641 { ac_try='test -z "$ac_c_werror_flag"
14642 || test ! -s conftest.err'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; } &&
a3828db0 14648 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
a3828db0 14654 ac_cv_type_pid_t=yes
bec39cab
AC
14655else
14656 echo "$as_me: failed program was:" >&5
14657sed 's/^/| /' conftest.$ac_ext >&5
14658
a3828db0 14659ac_cv_type_pid_t=no
bec39cab 14660fi
a3828db0 14661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 14662fi
a3828db0
MK
14663echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14664echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14665if test $ac_cv_type_pid_t = yes; then
14666 :
14667else
14668
14669cat >>confdefs.h <<_ACEOF
14670#define pid_t int
bec39cab 14671_ACEOF
7e89e357 14672
7e89e357
JT
14673fi
14674
bec39cab 14675
a3828db0
MK
14676
14677for ac_header in unistd.h vfork.h
7be570e7 14678do
a3828db0
MK
14679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14680if eval "test \"\${$as_ac_Header+set}\" = set"; then
14681 echo "$as_me:$LINENO: checking for $ac_header" >&5
14682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14683if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14684 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
14685fi
14686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14688else
a3828db0
MK
14689 # Is the header compilable?
14690echo "$as_me:$LINENO: checking $ac_header usability" >&5
14691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14692cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14693/* confdefs.h. */
14694_ACEOF
14695cat confdefs.h >>conftest.$ac_ext
14696cat >>conftest.$ac_ext <<_ACEOF
14697/* end confdefs.h. */
a3828db0
MK
14698$ac_includes_default
14699#include <$ac_header>
bec39cab 14700_ACEOF
a3828db0
MK
14701rm -f conftest.$ac_objext
14702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
a3828db0 14717 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
a3828db0 14723 ac_header_compiler=yes
bec39cab
AC
14724else
14725 echo "$as_me: failed program was:" >&5
14726sed 's/^/| /' conftest.$ac_ext >&5
14727
a3828db0 14728ac_header_compiler=no
bec39cab 14729fi
a3828db0
MK
14730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732echo "${ECHO_T}$ac_header_compiler" >&6
14733
14734# Is the header present?
14735echo "$as_me:$LINENO: checking $ac_header presence" >&5
14736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14737cat >conftest.$ac_ext <<_ACEOF
14738/* confdefs.h. */
14739_ACEOF
14740cat confdefs.h >>conftest.$ac_ext
14741cat >>conftest.$ac_ext <<_ACEOF
14742/* end confdefs.h. */
14743#include <$ac_header>
14744_ACEOF
14745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev/null; then
14753 if test -s conftest.err; then
14754 ac_cpp_err=$ac_c_preproc_warn_flag
14755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14756 else
14757 ac_cpp_err=
14758 fi
14759else
14760 ac_cpp_err=yes
14761fi
14762if test -z "$ac_cpp_err"; then
14763 ac_header_preproc=yes
14764else
14765 echo "$as_me: failed program was:" >&5
14766sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_header_preproc=no
14769fi
14770rm -f conftest.err conftest.$ac_ext
14771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772echo "${ECHO_T}$ac_header_preproc" >&6
14773
14774# So? What about this header?
14775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14776 yes:no: )
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14780echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14781 ac_header_preproc=yes
14782 ;;
14783 no:yes:* )
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14785echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14787echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14789echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14791echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14796 (
14797 cat <<\_ASBOX
14798## ------------------------------------------ ##
14799## Report this to the AC_PACKAGE_NAME lists. ##
14800## ------------------------------------------ ##
14801_ASBOX
14802 ) |
14803 sed "s/^/$as_me: WARNING: /" >&2
14804 ;;
14805esac
14806echo "$as_me:$LINENO: checking for $ac_header" >&5
14807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14808if eval "test \"\${$as_ac_Header+set}\" = set"; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810else
14811 eval "$as_ac_Header=\$ac_header_preproc"
14812fi
14813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14815
bec39cab 14816fi
a3828db0 14817if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 14818 cat >>confdefs.h <<_ACEOF
a3828db0 14819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 14820_ACEOF
14abd0fb 14821
14abd0fb 14822fi
a3828db0 14823
14abd0fb
MK
14824done
14825
bec39cab 14826
a3828db0
MK
14827
14828for ac_func in fork vfork
14abd0fb 14829do
bec39cab
AC
14830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831echo "$as_me:$LINENO: checking for $ac_func" >&5
14832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14833if eval "test \"\${$as_ac_var+set}\" = set"; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835else
14836 cat >conftest.$ac_ext <<_ACEOF
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h. */
14842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14844#define $ac_func innocuous_$ac_func
14845
14abd0fb 14846/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14847 which can conflict with char $ac_func (); below.
14848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14849 <limits.h> exists even on freestanding compilers. */
14850
14851#ifdef __STDC__
14852# include <limits.h>
14853#else
14854# include <assert.h>
14855#endif
14abd0fb 14856
bec39cab 14857#undef $ac_func
14abd0fb 14858
bec39cab
AC
14859/* Override any gcc2 internal prototype to avoid an error. */
14860#ifdef __cplusplus
14861extern "C"
14862{
14863#endif
14864/* We use char because int might match the return type of a gcc2
14865 builtin and then its argument prototype would still apply. */
14866char $ac_func ();
14abd0fb
MK
14867/* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14871choke me
14872#else
bec39cab
AC
14873char (*f) () = $ac_func;
14874#endif
14875#ifdef __cplusplus
14876}
14abd0fb
MK
14877#endif
14878
bec39cab
AC
14879int
14880main ()
14881{
14882return f != $ac_func;
14883 ;
14884 return 0;
14885}
14886_ACEOF
14887rm -f conftest.$ac_objext conftest$ac_exeext
14888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889 (eval $ac_link) 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -z "$ac_c_werror_flag"
14897 || test ! -s conftest.err'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest$ac_exeext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 eval "$as_ac_var=yes"
14910else
14911 echo "$as_me: failed program was:" >&5
14912sed 's/^/| /' conftest.$ac_ext >&5
14913
14914eval "$as_ac_var=no"
14915fi
14916rm -f conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
14918fi
14919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14921if test `eval echo '${'$as_ac_var'}'` = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14924_ACEOF
7be570e7 14925
7be570e7
JM
14926fi
14927done
14928
a3828db0
MK
14929if test "x$ac_cv_func_fork" = xyes; then
14930 echo "$as_me:$LINENO: checking for working fork" >&5
14931echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14932if test "${ac_cv_func_fork_works+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934else
14935 if test "$cross_compiling" = yes; then
14936 ac_cv_func_fork_works=cross
14937else
14938 cat >conftest.$ac_ext <<_ACEOF
14939/* By Ruediger Kuhlmann. */
14940 #include <sys/types.h>
14941 #if HAVE_UNISTD_H
14942 # include <unistd.h>
14943 #endif
14944 /* Some systems only have a dummy stub for fork() */
14945 int main ()
14946 {
14947 if (fork() < 0)
14948 exit (1);
14949 exit (0);
14950 }
14951_ACEOF
14952rm -f conftest$ac_exeext
14953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14954 (eval $ac_link) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_cv_func_fork_works=yes
14964else
14965 echo "$as_me: program exited with status $ac_status" >&5
14966echo "$as_me: failed program was:" >&5
14967sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 14968
a3828db0
MK
14969( exit $ac_status )
14970ac_cv_func_fork_works=no
14971fi
14972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14973fi
14974fi
14975echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14976echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14977
14978else
14979 ac_cv_func_fork_works=$ac_cv_func_fork
14980fi
14981if test "x$ac_cv_func_fork_works" = xcross; then
14982 case $host in
14983 *-*-amigaos* | *-*-msdosdjgpp*)
14984 # Override, as these systems have only a dummy fork() stub
14985 ac_cv_func_fork_works=no
14986 ;;
14987 *)
14988 ac_cv_func_fork_works=yes
14989 ;;
14990 esac
14991 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14992echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14993fi
14994ac_cv_func_vfork_works=$ac_cv_func_vfork
14995if test "x$ac_cv_func_vfork" = xyes; then
14996 echo "$as_me:$LINENO: checking for working vfork" >&5
14997echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14998if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 14999 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
15000else
15001 if test "$cross_compiling" = yes; then
15002 ac_cv_func_vfork_works=cross
bec39cab
AC
15003else
15004 cat >conftest.$ac_ext <<_ACEOF
15005/* confdefs.h. */
15006_ACEOF
15007cat confdefs.h >>conftest.$ac_ext
15008cat >>conftest.$ac_ext <<_ACEOF
15009/* end confdefs.h. */
a3828db0
MK
15010/* Thanks to Paul Eggert for this test. */
15011#include <stdio.h>
15012#include <stdlib.h>
15013#include <sys/types.h>
15014#include <sys/stat.h>
15015#include <sys/wait.h>
15016#if HAVE_UNISTD_H
15017# include <unistd.h>
bec39cab 15018#endif
a3828db0
MK
15019#if HAVE_VFORK_H
15020# include <vfork.h>
bec39cab 15021#endif
a3828db0
MK
15022/* On some sparc systems, changes by the child to local and incoming
15023 argument registers are propagated back to the parent. The compiler
15024 is told about this with #include <vfork.h>, but some compilers
15025 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15026 static variable whose address is put into a register that is
15027 clobbered by the vfork. */
15028static void
bec39cab 15029#ifdef __cplusplus
a3828db0
MK
15030sparc_address_test (int arg)
15031# else
15032sparc_address_test (arg) int arg;
c906108c 15033#endif
a3828db0
MK
15034{
15035 static pid_t child;
15036 if (!child) {
15037 child = vfork ();
15038 if (child < 0) {
15039 perror ("vfork");
15040 _exit(2);
15041 }
15042 if (!child) {
15043 arg = getpid();
15044 write(-1, "", 0);
15045 _exit (arg);
15046 }
15047 }
15048}
97bf5e38 15049
bec39cab
AC
15050int
15051main ()
15052{
a3828db0
MK
15053 pid_t parent = getpid ();
15054 pid_t child;
15055
15056 sparc_address_test (0);
15057
15058 child = vfork ();
15059
15060 if (child == 0) {
15061 /* Here is another test for sparc vfork register problems. This
15062 test uses lots of local variables, at least as many local
15063 variables as main has allocated so far including compiler
15064 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15065 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15066 reuse the register of parent for one of the local variables,
15067 since it will think that parent can't possibly be used any more
15068 in this routine. Assigning to the local variable will thus
15069 munge parent in the parent process. */
15070 pid_t
15071 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15072 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15073 /* Convince the compiler that p..p7 are live; otherwise, it might
15074 use the same hardware register for all 8 local variables. */
15075 if (p != p1 || p != p2 || p != p3 || p != p4
15076 || p != p5 || p != p6 || p != p7)
15077 _exit(1);
15078
15079 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15080 from child file descriptors. If the child closes a descriptor
15081 before it execs or exits, this munges the parent's descriptor
15082 as well. Test for this by closing stdout in the child. */
15083 _exit(close(fileno(stdout)) != 0);
15084 } else {
15085 int status;
15086 struct stat st;
15087
15088 while (wait(&status) != child)
15089 ;
15090 exit(
15091 /* Was there some problem with vforking? */
15092 child < 0
15093
15094 /* Did the child fail? (This shouldn't happen.) */
15095 || status
15096
15097 /* Did the vfork/compiler bug occur? */
15098 || parent != getpid()
15099
15100 /* Did the file descriptor bug occur? */
15101 || fstat(fileno(stdout), &st) != 0
15102 );
15103 }
bec39cab
AC
15104}
15105_ACEOF
a3828db0 15106rm -f conftest$ac_exeext
bec39cab 15107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 15108 (eval $ac_link) 2>&5
bec39cab
AC
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 15111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; }; then
a3828db0
MK
15117 ac_cv_func_vfork_works=yes
15118else
15119 echo "$as_me: program exited with status $ac_status" >&5
15120echo "$as_me: failed program was:" >&5
15121sed 's/^/| /' conftest.$ac_ext >&5
15122
15123( exit $ac_status )
15124ac_cv_func_vfork_works=no
15125fi
15126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15127fi
15128fi
15129echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15130echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15131
15132fi;
15133if test "x$ac_cv_func_fork_works" = xcross; then
15134 ac_cv_func_vfork_works=$ac_cv_func_vfork
15135 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15136echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15137fi
15138
15139if test "x$ac_cv_func_vfork_works" = xyes; then
15140
15141cat >>confdefs.h <<\_ACEOF
15142#define HAVE_WORKING_VFORK 1
15143_ACEOF
15144
bec39cab 15145else
bec39cab 15146
a3828db0
MK
15147cat >>confdefs.h <<\_ACEOF
15148#define vfork fork
15149_ACEOF
15150
bec39cab 15151fi
a3828db0
MK
15152if test "x$ac_cv_func_fork_works" = xyes; then
15153
15154cat >>confdefs.h <<\_ACEOF
15155#define HAVE_WORKING_FORK 1
bec39cab 15156_ACEOF
c906108c 15157
c906108c
SS
15158fi
15159
bec39cab
AC
15160
15161
a3828db0 15162for ac_func in canonicalize_file_name realpath
97bf5e38 15163do
bec39cab
AC
15164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15165echo "$as_me:$LINENO: checking for $ac_func" >&5
15166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15167if eval "test \"\${$as_ac_var+set}\" = set"; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169else
15170 cat >conftest.$ac_ext <<_ACEOF
15171/* confdefs.h. */
15172_ACEOF
15173cat confdefs.h >>conftest.$ac_ext
15174cat >>conftest.$ac_ext <<_ACEOF
15175/* end confdefs.h. */
15176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15178#define $ac_func innocuous_$ac_func
15179
97bf5e38 15180/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15181 which can conflict with char $ac_func (); below.
15182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15183 <limits.h> exists even on freestanding compilers. */
c906108c 15184
bec39cab
AC
15185#ifdef __STDC__
15186# include <limits.h>
15187#else
15188# include <assert.h>
15189#endif
97bf5e38 15190
bec39cab
AC
15191#undef $ac_func
15192
15193/* Override any gcc2 internal prototype to avoid an error. */
15194#ifdef __cplusplus
15195extern "C"
15196{
15197#endif
15198/* We use char because int might match the return type of a gcc2
15199 builtin and then its argument prototype would still apply. */
15200char $ac_func ();
97bf5e38
MK
15201/* The GNU C library defines this for functions which it implements
15202 to always fail with ENOSYS. Some functions are actually named
15203 something starting with __ and the normal name is an alias. */
15204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15205choke me
c906108c 15206#else
bec39cab
AC
15207char (*f) () = $ac_func;
15208#endif
15209#ifdef __cplusplus
15210}
c906108c 15211#endif
97bf5e38 15212
bec39cab
AC
15213int
15214main ()
15215{
15216return f != $ac_func;
15217 ;
15218 return 0;
15219}
15220_ACEOF
15221rm -f conftest.$ac_objext conftest$ac_exeext
15222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15223 (eval $ac_link) 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest$ac_exeext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 eval "$as_ac_var=yes"
15244else
15245 echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
15248eval "$as_ac_var=no"
15249fi
15250rm -f conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
15252fi
15253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15255if test `eval echo '${'$as_ac_var'}'` = yes; then
15256 cat >>confdefs.h <<_ACEOF
15257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15258_ACEOF
c906108c 15259
c906108c 15260fi
97bf5e38 15261done
c906108c 15262
bec39cab 15263
a3828db0 15264for ac_func in poll
97bf5e38 15265do
bec39cab
AC
15266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15267echo "$as_me:$LINENO: checking for $ac_func" >&5
15268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15269if eval "test \"\${$as_ac_var+set}\" = set"; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271else
15272 cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
15278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15280#define $ac_func innocuous_$ac_func
15281
97bf5e38 15282/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15283 which can conflict with char $ac_func (); below.
15284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15285 <limits.h> exists even on freestanding compilers. */
15286
15287#ifdef __STDC__
15288# include <limits.h>
15289#else
15290# include <assert.h>
15291#endif
c906108c 15292
bec39cab 15293#undef $ac_func
97bf5e38 15294
bec39cab
AC
15295/* Override any gcc2 internal prototype to avoid an error. */
15296#ifdef __cplusplus
15297extern "C"
15298{
15299#endif
15300/* We use char because int might match the return type of a gcc2
15301 builtin and then its argument prototype would still apply. */
15302char $ac_func ();
97bf5e38
MK
15303/* The GNU C library defines this for functions which it implements
15304 to always fail with ENOSYS. Some functions are actually named
15305 something starting with __ and the normal name is an alias. */
15306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15307choke me
c906108c 15308#else
bec39cab
AC
15309char (*f) () = $ac_func;
15310#endif
15311#ifdef __cplusplus
15312}
c906108c 15313#endif
97bf5e38 15314
bec39cab
AC
15315int
15316main ()
15317{
15318return f != $ac_func;
15319 ;
15320 return 0;
15321}
15322_ACEOF
15323rm -f conftest.$ac_objext conftest$ac_exeext
15324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15325 (eval $ac_link) 2>conftest.er1
15326 ac_status=$?
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -f conftest.er1
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag"
15333 || test ! -s conftest.err'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 eval "$as_ac_var=yes"
15346else
15347 echo "$as_me: failed program was:" >&5
15348sed 's/^/| /' conftest.$ac_ext >&5
15349
15350eval "$as_ac_var=no"
15351fi
15352rm -f conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354fi
15355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15357if test `eval echo '${'$as_ac_var'}'` = yes; then
15358 cat >>confdefs.h <<_ACEOF
15359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15360_ACEOF
c906108c 15361
c906108c 15362fi
97bf5e38 15363done
c906108c 15364
bec39cab 15365
a3828db0 15366for ac_func in pread64
97bf5e38 15367do
bec39cab
AC
15368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15369echo "$as_me:$LINENO: checking for $ac_func" >&5
15370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15371if eval "test \"\${$as_ac_var+set}\" = set"; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373else
15374 cat >conftest.$ac_ext <<_ACEOF
15375/* confdefs.h. */
15376_ACEOF
15377cat confdefs.h >>conftest.$ac_ext
15378cat >>conftest.$ac_ext <<_ACEOF
15379/* end confdefs.h. */
15380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15382#define $ac_func innocuous_$ac_func
15383
97bf5e38 15384/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15385 which can conflict with char $ac_func (); below.
15386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15387 <limits.h> exists even on freestanding compilers. */
15388
15389#ifdef __STDC__
15390# include <limits.h>
15391#else
15392# include <assert.h>
15393#endif
c906108c 15394
bec39cab 15395#undef $ac_func
97bf5e38 15396
bec39cab
AC
15397/* Override any gcc2 internal prototype to avoid an error. */
15398#ifdef __cplusplus
15399extern "C"
15400{
15401#endif
15402/* We use char because int might match the return type of a gcc2
15403 builtin and then its argument prototype would still apply. */
15404char $ac_func ();
97bf5e38
MK
15405/* The GNU C library defines this for functions which it implements
15406 to always fail with ENOSYS. Some functions are actually named
15407 something starting with __ and the normal name is an alias. */
15408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15409choke me
c906108c 15410#else
bec39cab
AC
15411char (*f) () = $ac_func;
15412#endif
15413#ifdef __cplusplus
15414}
c906108c 15415#endif
97bf5e38 15416
bec39cab
AC
15417int
15418main ()
15419{
15420return f != $ac_func;
15421 ;
15422 return 0;
15423}
15424_ACEOF
15425rm -f conftest.$ac_objext conftest$ac_exeext
15426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15427 (eval $ac_link) 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -z "$ac_c_werror_flag"
15435 || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 eval "$as_ac_var=yes"
15448else
15449 echo "$as_me: failed program was:" >&5
15450sed 's/^/| /' conftest.$ac_ext >&5
15451
15452eval "$as_ac_var=no"
15453fi
15454rm -f conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456fi
15457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15459if test `eval echo '${'$as_ac_var'}'` = yes; then
15460 cat >>confdefs.h <<_ACEOF
15461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15462_ACEOF
c906108c 15463
c906108c 15464fi
97bf5e38 15465done
c906108c 15466
bec39cab 15467
a3828db0 15468for ac_func in sbrk
b757528f 15469do
bec39cab
AC
15470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15471echo "$as_me:$LINENO: checking for $ac_func" >&5
15472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15473if eval "test \"\${$as_ac_var+set}\" = set"; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475else
15476 cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
15482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15484#define $ac_func innocuous_$ac_func
15485
b757528f 15486/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15487 which can conflict with char $ac_func (); below.
15488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15489 <limits.h> exists even on freestanding compilers. */
15490
15491#ifdef __STDC__
15492# include <limits.h>
15493#else
15494# include <assert.h>
15495#endif
b757528f 15496
bec39cab 15497#undef $ac_func
b757528f 15498
bec39cab
AC
15499/* Override any gcc2 internal prototype to avoid an error. */
15500#ifdef __cplusplus
15501extern "C"
15502{
15503#endif
15504/* We use char because int might match the return type of a gcc2
15505 builtin and then its argument prototype would still apply. */
15506char $ac_func ();
b757528f
JJ
15507/* The GNU C library defines this for functions which it implements
15508 to always fail with ENOSYS. Some functions are actually named
15509 something starting with __ and the normal name is an alias. */
15510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15511choke me
15512#else
bec39cab
AC
15513char (*f) () = $ac_func;
15514#endif
15515#ifdef __cplusplus
15516}
b757528f
JJ
15517#endif
15518
bec39cab
AC
15519int
15520main ()
15521{
15522return f != $ac_func;
15523 ;
15524 return 0;
15525}
15526_ACEOF
15527rm -f conftest.$ac_objext conftest$ac_exeext
15528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15529 (eval $ac_link) 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
15536 { ac_try='test -z "$ac_c_werror_flag"
15537 || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest$ac_exeext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 eval "$as_ac_var=yes"
15550else
15551 echo "$as_me: failed program was:" >&5
15552sed 's/^/| /' conftest.$ac_ext >&5
15553
15554eval "$as_ac_var=no"
15555fi
15556rm -f conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
15558fi
15559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15560echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15561if test `eval echo '${'$as_ac_var'}'` = yes; then
15562 cat >>confdefs.h <<_ACEOF
15563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15564_ACEOF
b757528f 15565
b757528f
JJ
15566fi
15567done
15568
bec39cab 15569
a3828db0
MK
15570
15571for ac_func in setpgid setpgrp
bcb3dc3d 15572do
bec39cab
AC
15573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15574echo "$as_me:$LINENO: checking for $ac_func" >&5
15575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15576if eval "test \"\${$as_ac_var+set}\" = set"; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578else
15579 cat >conftest.$ac_ext <<_ACEOF
15580/* confdefs.h. */
15581_ACEOF
15582cat confdefs.h >>conftest.$ac_ext
15583cat >>conftest.$ac_ext <<_ACEOF
15584/* end confdefs.h. */
15585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15587#define $ac_func innocuous_$ac_func
15588
bcb3dc3d 15589/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15590 which can conflict with char $ac_func (); below.
15591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15592 <limits.h> exists even on freestanding compilers. */
15593
15594#ifdef __STDC__
15595# include <limits.h>
15596#else
15597# include <assert.h>
15598#endif
bcb3dc3d 15599
bec39cab 15600#undef $ac_func
bcb3dc3d 15601
bec39cab
AC
15602/* Override any gcc2 internal prototype to avoid an error. */
15603#ifdef __cplusplus
15604extern "C"
15605{
15606#endif
15607/* We use char because int might match the return type of a gcc2
15608 builtin and then its argument prototype would still apply. */
15609char $ac_func ();
bcb3dc3d
MK
15610/* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15614choke me
15615#else
bec39cab
AC
15616char (*f) () = $ac_func;
15617#endif
15618#ifdef __cplusplus
15619}
bcb3dc3d
MK
15620#endif
15621
bec39cab
AC
15622int
15623main ()
15624{
15625return f != $ac_func;
15626 ;
15627 return 0;
15628}
15629_ACEOF
15630rm -f conftest.$ac_objext conftest$ac_exeext
15631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest$ac_exeext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 eval "$as_ac_var=yes"
15653else
15654 echo "$as_me: failed program was:" >&5
15655sed 's/^/| /' conftest.$ac_ext >&5
15656
15657eval "$as_ac_var=no"
15658fi
15659rm -f conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15661fi
15662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15663echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15664if test `eval echo '${'$as_ac_var'}'` = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15667_ACEOF
bcb3dc3d 15668
bcb3dc3d
MK
15669fi
15670done
15671
bec39cab 15672
a3828db0
MK
15673
15674
15675for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 15676do
bec39cab
AC
15677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15678echo "$as_me:$LINENO: checking for $ac_func" >&5
15679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15680if eval "test \"\${$as_ac_var+set}\" = set"; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15682else
15683 cat >conftest.$ac_ext <<_ACEOF
15684/* confdefs.h. */
15685_ACEOF
15686cat confdefs.h >>conftest.$ac_ext
15687cat >>conftest.$ac_ext <<_ACEOF
15688/* end confdefs.h. */
15689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15691#define $ac_func innocuous_$ac_func
15692
8b9cf735 15693/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15694 which can conflict with char $ac_func (); below.
15695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15696 <limits.h> exists even on freestanding compilers. */
15697
15698#ifdef __STDC__
15699# include <limits.h>
15700#else
15701# include <assert.h>
15702#endif
8b9cf735 15703
bec39cab 15704#undef $ac_func
8b9cf735 15705
a3828db0
MK
15706/* Override any gcc2 internal prototype to avoid an error. */
15707#ifdef __cplusplus
15708extern "C"
15709{
15710#endif
15711/* We use char because int might match the return type of a gcc2
15712 builtin and then its argument prototype would still apply. */
15713char $ac_func ();
15714/* The GNU C library defines this for functions which it implements
15715 to always fail with ENOSYS. Some functions are actually named
15716 something starting with __ and the normal name is an alias. */
15717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15718choke me
15719#else
15720char (*f) () = $ac_func;
15721#endif
15722#ifdef __cplusplus
15723}
15724#endif
15725
bec39cab
AC
15726int
15727main ()
15728{
a3828db0 15729return f != $ac_func;
bec39cab
AC
15730 ;
15731 return 0;
15732}
15733_ACEOF
a3828db0
MK
15734rm -f conftest.$ac_objext conftest$ac_exeext
15735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15736 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15737 ac_status=$?
15738 grep -v '^ *+' conftest.er1 >conftest.err
15739 rm -f conftest.er1
15740 cat conftest.err >&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -z "$ac_c_werror_flag"
15744 || test ! -s conftest.err'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; } &&
a3828db0 15750 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
a3828db0 15756 eval "$as_ac_var=yes"
086ec9eb 15757else
bec39cab
AC
15758 echo "$as_me: failed program was:" >&5
15759sed 's/^/| /' conftest.$ac_ext >&5
15760
a3828db0
MK
15761eval "$as_ac_var=no"
15762fi
15763rm -f conftest.err conftest.$ac_objext \
15764 conftest$ac_exeext conftest.$ac_ext
15765fi
15766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15767echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15768if test `eval echo '${'$as_ac_var'}'` = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15771_ACEOF
15772
086ec9eb 15773fi
a3828db0
MK
15774done
15775
15776
15777for ac_func in socketpair
15778do
15779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15780echo "$as_me:$LINENO: checking for $ac_func" >&5
15781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15782if eval "test \"\${$as_ac_var+set}\" = set"; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15784else
15785 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15786/* confdefs.h. */
15787_ACEOF
15788cat confdefs.h >>conftest.$ac_ext
15789cat >>conftest.$ac_ext <<_ACEOF
15790/* end confdefs.h. */
a3828db0
MK
15791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15793#define $ac_func innocuous_$ac_func
15794
15795/* System header to define __stub macros and hopefully few prototypes,
15796 which can conflict with char $ac_func (); below.
15797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15798 <limits.h> exists even on freestanding compilers. */
15799
15800#ifdef __STDC__
15801# include <limits.h>
15802#else
15803# include <assert.h>
15804#endif
15805
15806#undef $ac_func
15807
15808/* Override any gcc2 internal prototype to avoid an error. */
15809#ifdef __cplusplus
15810extern "C"
15811{
15812#endif
15813/* We use char because int might match the return type of a gcc2
15814 builtin and then its argument prototype would still apply. */
15815char $ac_func ();
15816/* The GNU C library defines this for functions which it implements
15817 to always fail with ENOSYS. Some functions are actually named
15818 something starting with __ and the normal name is an alias. */
15819#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15820choke me
15821#else
15822char (*f) () = $ac_func;
15823#endif
15824#ifdef __cplusplus
15825}
15826#endif
15827
bec39cab
AC
15828int
15829main ()
15830{
a3828db0 15831return f != $ac_func;
bec39cab
AC
15832 ;
15833 return 0;
15834}
15835_ACEOF
a3828db0
MK
15836rm -f conftest.$ac_objext conftest$ac_exeext
15837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag"
15846 || test ! -s conftest.err'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; } &&
a3828db0 15852 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
a3828db0 15858 eval "$as_ac_var=yes"
086ec9eb 15859else
bec39cab
AC
15860 echo "$as_me: failed program was:" >&5
15861sed 's/^/| /' conftest.$ac_ext >&5
15862
a3828db0 15863eval "$as_ac_var=no"
086ec9eb 15864fi
a3828db0
MK
15865rm -f conftest.err conftest.$ac_objext \
15866 conftest$ac_exeext conftest.$ac_ext
086ec9eb 15867fi
a3828db0
MK
15868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15870if test `eval echo '${'$as_ac_var'}'` = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 15873_ACEOF
086ec9eb
MK
15874
15875fi
a3828db0 15876done
086ec9eb 15877
a3828db0
MK
15878
15879for ac_func in syscall
15880do
15881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15882echo "$as_me:$LINENO: checking for $ac_func" >&5
15883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15884if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 15885 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
15886else
15887 cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h. */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
15892/* end confdefs.h. */
a3828db0
MK
15893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15895#define $ac_func innocuous_$ac_func
15896
15897/* System header to define __stub macros and hopefully few prototypes,
15898 which can conflict with char $ac_func (); below.
15899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15900 <limits.h> exists even on freestanding compilers. */
15901
15902#ifdef __STDC__
15903# include <limits.h>
15904#else
15905# include <assert.h>
15906#endif
15907
15908#undef $ac_func
15909
15910/* Override any gcc2 internal prototype to avoid an error. */
15911#ifdef __cplusplus
15912extern "C"
15913{
15914#endif
15915/* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15917char $ac_func ();
15918/* The GNU C library defines this for functions which it implements
15919 to always fail with ENOSYS. Some functions are actually named
15920 something starting with __ and the normal name is an alias. */
15921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15922choke me
15923#else
15924char (*f) () = $ac_func;
15925#endif
15926#ifdef __cplusplus
15927}
c906108c 15928#endif
97bf5e38 15929
bec39cab
AC
15930int
15931main ()
97bf5e38 15932{
a3828db0 15933return f != $ac_func;
bec39cab
AC
15934 ;
15935 return 0;
97bf5e38 15936}
bec39cab 15937_ACEOF
a3828db0 15938rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 15939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 15940 (eval $ac_link) 2>conftest.er1
bec39cab 15941 ac_status=$?
a3828db0
MK
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
bec39cab 15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
15946 (exit $ac_status); } &&
15947 { ac_try='test -z "$ac_c_werror_flag"
15948 || test ! -s conftest.err'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
a3828db0 15960 eval "$as_ac_var=yes"
c906108c 15961else
a3828db0 15962 echo "$as_me: failed program was:" >&5
bec39cab
AC
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
a3828db0 15965eval "$as_ac_var=no"
97bf5e38 15966fi
a3828db0
MK
15967rm -f conftest.err conftest.$ac_objext \
15968 conftest$ac_exeext conftest.$ac_ext
15969fi
15970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15972if test `eval echo '${'$as_ac_var'}'` = yes; then
15973 cat >>confdefs.h <<_ACEOF
15974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 15975_ACEOF
c906108c
SS
15976
15977fi
a3828db0 15978done
c906108c 15979
a3828db0
MK
15980
15981for ac_func in ttrace
15982do
15983as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15984echo "$as_me:$LINENO: checking for $ac_func" >&5
15985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15986if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 15987 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 15988else
bec39cab
AC
15989 cat >conftest.$ac_ext <<_ACEOF
15990/* confdefs.h. */
15991_ACEOF
15992cat confdefs.h >>conftest.$ac_ext
15993cat >>conftest.$ac_ext <<_ACEOF
15994/* end confdefs.h. */
a3828db0
MK
15995/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15997#define $ac_func innocuous_$ac_func
b83266a0 15998
a3828db0
MK
15999/* System header to define __stub macros and hopefully few prototypes,
16000 which can conflict with char $ac_func (); below.
16001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16002 <limits.h> exists even on freestanding compilers. */
16003
16004#ifdef __STDC__
16005# include <limits.h>
16006#else
16007# include <assert.h>
16008#endif
16009
16010#undef $ac_func
16011
16012/* Override any gcc2 internal prototype to avoid an error. */
16013#ifdef __cplusplus
16014extern "C"
16015{
16016#endif
16017/* We use char because int might match the return type of a gcc2
16018 builtin and then its argument prototype would still apply. */
16019char $ac_func ();
16020/* The GNU C library defines this for functions which it implements
16021 to always fail with ENOSYS. Some functions are actually named
16022 something starting with __ and the normal name is an alias. */
16023#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16024choke me
16025#else
16026char (*f) () = $ac_func;
16027#endif
16028#ifdef __cplusplus
16029}
16030#endif
97bf5e38 16031
bec39cab
AC
16032int
16033main ()
16034{
a3828db0 16035return f != $ac_func;
bec39cab
AC
16036 ;
16037 return 0;
16038}
16039_ACEOF
a3828db0
MK
16040rm -f conftest.$ac_objext conftest$ac_exeext
16041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16042 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } &&
16049 { ac_try='test -z "$ac_c_werror_flag"
16050 || test ! -s conftest.err'
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); }; } &&
a3828db0 16056 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
a3828db0 16062 eval "$as_ac_var=yes"
b83266a0 16063else
bec39cab
AC
16064 echo "$as_me: failed program was:" >&5
16065sed 's/^/| /' conftest.$ac_ext >&5
16066
a3828db0 16067eval "$as_ac_var=no"
b83266a0 16068fi
a3828db0
MK
16069rm -f conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
b83266a0 16071fi
a3828db0
MK
16072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16073echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16074if test `eval echo '${'$as_ac_var'}'` = yes; then
16075 cat >>confdefs.h <<_ACEOF
16076#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16077_ACEOF
b83266a0 16078
97bf5e38 16079fi
a3828db0 16080done
b83266a0 16081
a3828db0
MK
16082
16083for ac_func in wborder
16084do
16085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16086echo "$as_me:$LINENO: checking for $ac_func" >&5
16087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16088if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090else
16091 cat >conftest.$ac_ext <<_ACEOF
16092/* confdefs.h. */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h. */
a3828db0
MK
16097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16099#define $ac_func innocuous_$ac_func
a4db0f07 16100
a3828db0
MK
16101/* System header to define __stub macros and hopefully few prototypes,
16102 which can conflict with char $ac_func (); below.
16103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104 <limits.h> exists even on freestanding compilers. */
16105
16106#ifdef __STDC__
16107# include <limits.h>
16108#else
16109# include <assert.h>
16110#endif
16111
16112#undef $ac_func
16113
16114/* Override any gcc2 internal prototype to avoid an error. */
16115#ifdef __cplusplus
16116extern "C"
16117{
16118#endif
16119/* We use char because int might match the return type of a gcc2
16120 builtin and then its argument prototype would still apply. */
16121char $ac_func ();
16122/* The GNU C library defines this for functions which it implements
16123 to always fail with ENOSYS. Some functions are actually named
16124 something starting with __ and the normal name is an alias. */
16125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16126choke me
16127#else
16128char (*f) () = $ac_func;
16129#endif
16130#ifdef __cplusplus
16131}
16132#endif
97bf5e38 16133
bec39cab
AC
16134int
16135main ()
16136{
a3828db0 16137return f != $ac_func;
bec39cab
AC
16138 ;
16139 return 0;
16140}
16141_ACEOF
a3828db0
MK
16142rm -f conftest.$ac_objext conftest$ac_exeext
16143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16144 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16145 ac_status=$?
16146 grep -v '^ *+' conftest.er1 >conftest.err
16147 rm -f conftest.er1
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -z "$ac_c_werror_flag"
16152 || test ! -s conftest.err'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; } &&
a3828db0 16158 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
a3828db0 16164 eval "$as_ac_var=yes"
a4db0f07 16165else
bec39cab
AC
16166 echo "$as_me: failed program was:" >&5
16167sed 's/^/| /' conftest.$ac_ext >&5
16168
a3828db0 16169eval "$as_ac_var=no"
a4db0f07 16170fi
a3828db0
MK
16171rm -f conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
a4db0f07 16173fi
a3828db0
MK
16174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16175echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16176if test `eval echo '${'$as_ac_var'}'` = yes; then
16177 cat >>confdefs.h <<_ACEOF
16178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16179_ACEOF
a4db0f07
RH
16180
16181fi
a3828db0 16182done
c906108c 16183
06825bd1 16184
a3828db0
MK
16185# Check the return and argument types of ptrace. No canned test for
16186# this, so roll our own.
16187gdb_ptrace_headers='
16188#if HAVE_SYS_TYPES_H
16189# include <sys/types.h>
16190#endif
16191#if HAVE_SYS_PTRACE_H
16192# include <sys/ptrace.h>
16193#endif
16194#if HAVE_UNISTD_H
16195# include <unistd.h>
16196#endif
16197'
16198# There is no point in checking if we don't have a prototype.
16199echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16200echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16201if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203else
16204 cat >conftest.$ac_ext <<_ACEOF
16205/* confdefs.h. */
16206_ACEOF
16207cat confdefs.h >>conftest.$ac_ext
16208cat >>conftest.$ac_ext <<_ACEOF
16209/* end confdefs.h. */
a3828db0
MK
16210$gdb_ptrace_headers
16211
bec39cab
AC
16212int
16213main ()
16214{
a3828db0
MK
16215#ifndef ptrace
16216 char *p = (char *) ptrace;
06825bd1 16217#endif
a3828db0 16218
bec39cab
AC
16219 ;
16220 return 0;
16221}
16222_ACEOF
16223rm -f conftest.$ac_objext
16224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
a3828db0 16245 ac_cv_have_decl_ptrace=yes
06825bd1 16246else
bec39cab
AC
16247 echo "$as_me: failed program was:" >&5
16248sed 's/^/| /' conftest.$ac_ext >&5
16249
a3828db0 16250ac_cv_have_decl_ptrace=no
06825bd1 16251fi
bec39cab 16252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16253fi
a3828db0
MK
16254echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16255echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16256if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 16257
a3828db0
MK
16258cat >>confdefs.h <<_ACEOF
16259#define HAVE_DECL_PTRACE 1
16260_ACEOF
bec39cab 16261
bec39cab 16262
a3828db0
MK
16263else
16264 cat >>confdefs.h <<_ACEOF
16265#define HAVE_DECL_PTRACE 0
bec39cab 16266_ACEOF
06825bd1 16267
a3828db0
MK
16268
16269 : ${gdb_cv_func_ptrace_ret='int'}
16270 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16271
06825bd1
MK
16272fi
16273
a3828db0
MK
16274
16275# Check return type.
16276echo "$as_me:$LINENO: checking return type of ptrace" >&5
16277echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16278if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280else
16281 cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
a3828db0 16287$gdb_ptrace_headers
bec39cab
AC
16288int
16289main ()
16290{
a3828db0 16291extern int ptrace ();
bec39cab
AC
16292 ;
16293 return 0;
16294}
16295_ACEOF
16296rm -f conftest.$ac_objext
16297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298 (eval $ac_compile) 2>conftest.er1
16299 ac_status=$?
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
16305 { ac_try='test -z "$ac_c_werror_flag"
16306 || test ! -s conftest.err'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest.$ac_objext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
a3828db0 16318 gdb_cv_func_ptrace_ret='int'
70f9f479 16319else
bec39cab
AC
16320 echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5
16322
a3828db0 16323gdb_cv_func_ptrace_ret='long'
70f9f479 16324fi
bec39cab 16325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16326fi
a3828db0
MK
16327echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16328echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 16329
a3828db0
MK
16330cat >>confdefs.h <<_ACEOF
16331#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 16332_ACEOF
70f9f479 16333
a3828db0
MK
16334# Check argument types.
16335echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16336echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16337if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16339else
a3828db0
MK
16340
16341for gdb_arg1 in 'int' 'long'; do
16342 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16343 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16344 for gdb_arg4 in 'int' 'long'; do
16345 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16346/* confdefs.h. */
16347_ACEOF
16348cat confdefs.h >>conftest.$ac_ext
16349cat >>conftest.$ac_ext <<_ACEOF
16350/* end confdefs.h. */
a3828db0 16351$gdb_ptrace_headers
bec39cab
AC
16352int
16353main ()
16354{
a3828db0
MK
16355
16356extern $gdb_cv_func_ptrace_ret
16357 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16358
bec39cab
AC
16359 ;
16360 return 0;
16361}
16362_ACEOF
16363rm -f conftest.$ac_objext
16364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16365 (eval $ac_compile) 2>conftest.er1
16366 ac_status=$?
16367 grep -v '^ *+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } &&
16372 { ac_try='test -z "$ac_c_werror_flag"
16373 || test ! -s conftest.err'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; } &&
16379 { ac_try='test -s conftest.$ac_objext'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
a3828db0
MK
16385 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16386 break 4;
5c7f2947 16387else
bec39cab
AC
16388 echo "$as_me: failed program was:" >&5
16389sed 's/^/| /' conftest.$ac_ext >&5
16390
5c7f2947 16391fi
bec39cab 16392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16393 for gdb_arg5 in 'int *' 'int' 'long'; do
16394 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16395/* confdefs.h. */
16396_ACEOF
16397cat confdefs.h >>conftest.$ac_ext
16398cat >>conftest.$ac_ext <<_ACEOF
16399/* end confdefs.h. */
a3828db0 16400$gdb_ptrace_headers
bec39cab
AC
16401int
16402main ()
16403{
a3828db0
MK
16404
16405extern $gdb_cv_func_ptrace_ret
16406 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16407
bec39cab
AC
16408 ;
16409 return 0;
16410}
16411_ACEOF
16412rm -f conftest.$ac_objext
16413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16414 (eval $ac_compile) 2>conftest.er1
16415 ac_status=$?
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag"
16422 || test ! -s conftest.err'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
a3828db0
MK
16434
16435gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16436 break 5;
78434e59 16437else
bec39cab
AC
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
78434e59 16441fi
bec39cab 16442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16443 done
16444 done
16445 done
16446 done
16447done
16448# Provide a safe default value.
16449: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16450
78434e59 16451fi
a3828db0
MK
16452echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16453echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16454ac_save_IFS=$IFS; IFS=','
16455set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16456IFS=$ac_save_IFS
16457shift
bec39cab 16458
a3828db0
MK
16459cat >>confdefs.h <<_ACEOF
16460#define PTRACE_TYPE_ARG3 $3
16461_ACEOF
16462
16463if test -n "$5"; then
16464
16465cat >>confdefs.h <<_ACEOF
16466#define PTRACE_TYPE_ARG5 $5
bec39cab 16467_ACEOF
78434e59
MK
16468
16469fi
16470
a3828db0
MK
16471if test "$cross_compiling" = no; then
16472 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16473echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16474if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16475 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16476else
16477 if test "$cross_compiling" = yes; then
16478 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16479echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16480 { (exit 1); exit 1; }; }
bec39cab
AC
16481else
16482 cat >conftest.$ac_ext <<_ACEOF
16483/* confdefs.h. */
16484_ACEOF
16485cat confdefs.h >>conftest.$ac_ext
16486cat >>conftest.$ac_ext <<_ACEOF
16487/* end confdefs.h. */
a3828db0
MK
16488#if HAVE_UNISTD_H
16489# include <unistd.h>
16490#endif
16491
bec39cab
AC
16492int
16493main ()
16494{
a3828db0
MK
16495/* If this system has a BSD-style setpgrp which takes arguments,
16496 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16497 exit successfully. */
16498 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
16499 ;
16500 return 0;
16501}
16502_ACEOF
a3828db0
MK
16503rm -f conftest$ac_exeext
16504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16505 (eval $ac_link) 2>&5
bec39cab
AC
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
a3828db0 16514 ac_cv_func_setpgrp_void=no
c906108c 16515else
a3828db0
MK
16516 echo "$as_me: program exited with status $ac_status" >&5
16517echo "$as_me: failed program was:" >&5
bec39cab
AC
16518sed 's/^/| /' conftest.$ac_ext >&5
16519
a3828db0
MK
16520( exit $ac_status )
16521ac_cv_func_setpgrp_void=yes
c906108c 16522fi
a3828db0 16523rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 16524fi
a3828db0
MK
16525fi
16526echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16527echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16528if test $ac_cv_func_setpgrp_void = yes; then
16529
16530cat >>confdefs.h <<\_ACEOF
16531#define SETPGRP_VOID 1
bec39cab 16532_ACEOF
97bf5e38
MK
16533
16534fi
a3828db0
MK
16535
16536else
16537 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16538echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16539if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16540 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16541else
bec39cab
AC
16542 cat >conftest.$ac_ext <<_ACEOF
16543/* confdefs.h. */
16544_ACEOF
16545cat confdefs.h >>conftest.$ac_ext
16546cat >>conftest.$ac_ext <<_ACEOF
16547/* end confdefs.h. */
a3828db0
MK
16548
16549#include <unistd.h>
16550
bec39cab
AC
16551int
16552main ()
16553{
a3828db0
MK
16554
16555 if (setpgrp(1,1) == -1)
16556 exit (0);
16557 else
16558 exit (1);
16559
bec39cab
AC
16560 ;
16561 return 0;
16562}
16563_ACEOF
16564rm -f conftest.$ac_objext
16565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16566 (eval $ac_compile) 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag"
16574 || test ! -s conftest.err'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest.$ac_objext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
a3828db0 16586 ac_cv_func_setpgrp_void=no
c906108c 16587else
bec39cab
AC
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
a3828db0 16591ac_cv_func_setpgrp_void=yes
c906108c 16592fi
bec39cab 16593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16594fi
a3828db0
MK
16595echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16596echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16597if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 16598 cat >>confdefs.h <<\_ACEOF
a3828db0 16599#define SETPGRP_VOID 1
bec39cab 16600_ACEOF
c3f6f71d 16601
a3828db0 16602fi
c906108c
SS
16603fi
16604
a3828db0
MK
16605# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16606# since sigsetjmp might only be defined as a macro.
16607echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16608echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16609if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611else
16612 cat >conftest.$ac_ext <<_ACEOF
16613/* confdefs.h. */
16614_ACEOF
16615cat confdefs.h >>conftest.$ac_ext
16616cat >>conftest.$ac_ext <<_ACEOF
16617/* end confdefs.h. */
a3828db0
MK
16618
16619#include <setjmp.h>
16620
bec39cab
AC
16621int
16622main ()
16623{
a3828db0 16624sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
16625 ;
16626 return 0;
16627}
16628_ACEOF
16629rm -f conftest.$ac_objext
16630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16631 (eval $ac_compile) 2>conftest.er1
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -z "$ac_c_werror_flag"
16639 || test ! -s conftest.err'
16640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641 (eval $ac_try) 2>&5
16642 ac_status=$?
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; } &&
16645 { ac_try='test -s conftest.$ac_objext'
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
a3828db0 16651 gdb_cv_func_sigsetjmp=yes
c906108c 16652else
bec39cab
AC
16653 echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
a3828db0 16656gdb_cv_func_sigsetjmp=no
c906108c 16657fi
bec39cab 16658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16659fi
a3828db0
MK
16660echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16661echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16662if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 16663
a3828db0
MK
16664cat >>confdefs.h <<\_ACEOF
16665#define HAVE_SIGSETJMP 1
bec39cab 16666_ACEOF
c906108c 16667
97bf5e38 16668fi
c906108c 16669
a3828db0
MK
16670# Assume we'll default to using the included libiberty regex.
16671gdb_use_included_regex=yes
16672
16673# However, if the system regex is GNU regex, then default to *not*
16674# using the included regex.
16675echo "$as_me:$LINENO: checking for GNU regex" >&5
16676echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16677if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16679else
16680 cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
a3828db0 16686#include <gnu-versions.h>
bec39cab
AC
16687int
16688main ()
16689{
a3828db0
MK
16690#define REGEX_INTERFACE_VERSION 1
16691#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16692# error "Version mismatch"
16693#endif
bec39cab
AC
16694 ;
16695 return 0;
16696}
16697_ACEOF
16698rm -f conftest.$ac_objext
16699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>conftest.er1
16701 ac_status=$?
16702 grep -v '^ *+' conftest.er1 >conftest.err
16703 rm -f conftest.er1
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
16707 { ac_try='test -z "$ac_c_werror_flag"
16708 || test ! -s conftest.err'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
a3828db0 16720 gdb_cv_have_gnu_regex=yes
c906108c 16721else
bec39cab
AC
16722 echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
a3828db0 16725gdb_cv_have_gnu_regex=no
c906108c 16726fi
bec39cab 16727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16728fi
a3828db0
MK
16729echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16730echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16731if test $gdb_cv_have_gnu_regex = yes; then
16732 gdb_use_included_regex=no
16733fi
c906108c 16734
a3828db0
MK
16735
16736# Check whether --with-included-regex or --without-included-regex was given.
16737if test "${with_included_regex+set}" = set; then
16738 withval="$with_included_regex"
16739 gdb_with_regex=$withval
16740else
16741 gdb_with_regex=$gdb_use_included_regex
16742fi;
16743if test "$gdb_with_regex" = yes; then
16744
16745cat >>confdefs.h <<\_ACEOF
16746#define USE_INCLUDED_REGEX 1
bec39cab 16747_ACEOF
c906108c 16748
97bf5e38 16749fi
c906108c 16750
5c45e068
MK
16751# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16752echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16753echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16754if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756else
16757 cat >conftest.$ac_ext <<_ACEOF
16758/* confdefs.h. */
16759_ACEOF
16760cat confdefs.h >>conftest.$ac_ext
16761cat >>conftest.$ac_ext <<_ACEOF
16762/* end confdefs.h. */
a3828db0
MK
16763#include <sys/param.h>
16764#include <sys/proc.h>
5c45e068
MK
16765
16766
bec39cab
AC
16767int
16768main ()
16769{
5c45e068
MK
16770static struct thread ac_aggr;
16771if (ac_aggr.td_pcb)
16772return 0;
bec39cab
AC
16773 ;
16774 return 0;
16775}
16776_ACEOF
16777rm -f conftest.$ac_objext
16778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16779 (eval $ac_compile) 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag"
16787 || test ! -s conftest.err'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; } &&
16793 { ac_try='test -s conftest.$ac_objext'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
5c45e068 16799 ac_cv_member_struct_thread_td_pcb=yes
c906108c 16800else
bec39cab
AC
16801 echo "$as_me: failed program was:" >&5
16802sed 's/^/| /' conftest.$ac_ext >&5
16803
5c45e068
MK
16804cat >conftest.$ac_ext <<_ACEOF
16805/* confdefs.h. */
16806_ACEOF
16807cat confdefs.h >>conftest.$ac_ext
16808cat >>conftest.$ac_ext <<_ACEOF
16809/* end confdefs.h. */
16810#include <sys/param.h>
16811#include <sys/proc.h>
16812
16813
16814int
16815main ()
16816{
16817static struct thread ac_aggr;
16818if (sizeof ac_aggr.td_pcb)
16819return 0;
16820 ;
16821 return 0;
16822}
16823_ACEOF
16824rm -f conftest.$ac_objext
16825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16826 (eval $ac_compile) 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag"
16834 || test ! -s conftest.err'
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest.$ac_objext'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; }; then
16846 ac_cv_member_struct_thread_td_pcb=yes
16847else
16848 echo "$as_me: failed program was:" >&5
16849sed 's/^/| /' conftest.$ac_ext >&5
16850
16851ac_cv_member_struct_thread_td_pcb=no
16852fi
16853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16854fi
bec39cab 16855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16856fi
5c45e068
MK
16857echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16858echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16859if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 16860
5c45e068 16861cat >>confdefs.h <<_ACEOF
a3828db0 16862#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 16863_ACEOF
c906108c 16864
5c45e068 16865
97bf5e38 16866fi
c906108c 16867
5c45e068 16868
a3828db0
MK
16869# See if <sys/lwp.h> defines `struct lwp`.
16870echo "$as_me:$LINENO: checking for struct lwp" >&5
16871echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16872if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16874else
16875 cat >conftest.$ac_ext <<_ACEOF
16876/* confdefs.h. */
16877_ACEOF
16878cat confdefs.h >>conftest.$ac_ext
16879cat >>conftest.$ac_ext <<_ACEOF
16880/* end confdefs.h. */
a3828db0
MK
16881#include <sys/param.h>
16882#include <sys/lwp.h>
bec39cab
AC
16883int
16884main ()
16885{
a3828db0 16886struct lwp l;
bec39cab
AC
16887 ;
16888 return 0;
16889}
16890_ACEOF
16891rm -f conftest.$ac_objext
16892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16893 (eval $ac_compile) 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
16900 { ac_try='test -z "$ac_c_werror_flag"
16901 || test ! -s conftest.err'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest.$ac_objext'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
a3828db0 16913 gdb_cv_struct_lwp=yes
c906108c 16914else
bec39cab
AC
16915 echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
a3828db0 16918gdb_cv_struct_lwp=no
c906108c 16919fi
bec39cab 16920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16921fi
a3828db0
MK
16922echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16923echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16924if test $gdb_cv_struct_lwp = yes; then
c906108c 16925
a3828db0
MK
16926cat >>confdefs.h <<\_ACEOF
16927#define HAVE_STRUCT_LWP 1
bec39cab 16928_ACEOF
c906108c 16929
97bf5e38 16930fi
c906108c 16931
a3828db0
MK
16932# See if <machine/reg.h> degines `struct reg'.
16933echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16934echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16935if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
16938 cat >conftest.$ac_ext <<_ACEOF
16939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
a3828db0
MK
16944#include <sys/types.h>
16945#include <machine/reg.h>
bec39cab
AC
16946int
16947main ()
16948{
a3828db0 16949struct reg r;
bec39cab
AC
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954rm -f conftest.$ac_objext
16955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest.$ac_objext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
a3828db0 16976 gdb_cv_struct_reg=yes
27ca5dad 16977else
bec39cab
AC
16978 echo "$as_me: failed program was:" >&5
16979sed 's/^/| /' conftest.$ac_ext >&5
16980
a3828db0 16981gdb_cv_struct_reg=no
27ca5dad 16982fi
bec39cab 16983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 16984fi
a3828db0
MK
16985echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16986echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16987if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
16988
16989cat >>confdefs.h <<\_ACEOF
a3828db0 16990#define HAVE_STRUCT_REG 1
bec39cab 16991_ACEOF
27ca5dad
MC
16992
16993fi
97bf5e38 16994
a3828db0
MK
16995# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16996# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
5c45e068
MK
16997echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16998echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16999if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 17000 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17001else
bec39cab
AC
17002 cat >conftest.$ac_ext <<_ACEOF
17003/* confdefs.h. */
17004_ACEOF
17005cat confdefs.h >>conftest.$ac_ext
17006cat >>conftest.$ac_ext <<_ACEOF
17007/* end confdefs.h. */
a3828db0 17008#include <machine/reg.h>
5c45e068
MK
17009
17010int
17011main ()
17012{
17013static struct reg ac_aggr;
17014if (ac_aggr.r_fs)
17015return 0;
17016 ;
17017 return 0;
17018}
17019_ACEOF
17020rm -f conftest.$ac_objext
17021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17022 (eval $ac_compile) 2>conftest.er1
17023 ac_status=$?
17024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -f conftest.er1
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } &&
17029 { ac_try='test -z "$ac_c_werror_flag"
17030 || test ! -s conftest.err'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest.$ac_objext'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 ac_cv_member_struct_reg_r_fs=yes
17043else
17044 echo "$as_me: failed program was:" >&5
17045sed 's/^/| /' conftest.$ac_ext >&5
17046
17047cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053#include <machine/reg.h>
17054
bec39cab
AC
17055int
17056main ()
17057{
5c45e068
MK
17058static struct reg ac_aggr;
17059if (sizeof ac_aggr.r_fs)
17060return 0;
bec39cab
AC
17061 ;
17062 return 0;
17063}
17064_ACEOF
17065rm -f conftest.$ac_objext
17066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17067 (eval $ac_compile) 2>conftest.er1
17068 ac_status=$?
17069 grep -v '^ *+' conftest.er1 >conftest.err
17070 rm -f conftest.er1
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } &&
17074 { ac_try='test -z "$ac_c_werror_flag"
17075 || test ! -s conftest.err'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; } &&
17081 { ac_try='test -s conftest.$ac_objext'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; }; then
5c45e068 17087 ac_cv_member_struct_reg_r_fs=yes
3862412b 17088else
bec39cab
AC
17089 echo "$as_me: failed program was:" >&5
17090sed 's/^/| /' conftest.$ac_ext >&5
17091
5c45e068 17092ac_cv_member_struct_reg_r_fs=no
3862412b 17093fi
bec39cab 17094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17095fi
5c45e068
MK
17096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17097fi
17098echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17099echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17100if test $ac_cv_member_struct_reg_r_fs = yes; then
17101
17102cat >>confdefs.h <<_ACEOF
a3828db0 17103#define HAVE_STRUCT_REG_R_FS 1
bec39cab 17104_ACEOF
3862412b 17105
5c45e068 17106
97bf5e38 17107fi
5c45e068
MK
17108echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17109echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17110if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 17111 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17112else
bec39cab
AC
17113 cat >conftest.$ac_ext <<_ACEOF
17114/* confdefs.h. */
17115_ACEOF
17116cat confdefs.h >>conftest.$ac_ext
17117cat >>conftest.$ac_ext <<_ACEOF
17118/* end confdefs.h. */
a3828db0 17119#include <machine/reg.h>
5c45e068 17120
bec39cab
AC
17121int
17122main ()
17123{
5c45e068
MK
17124static struct reg ac_aggr;
17125if (ac_aggr.r_gs)
17126return 0;
bec39cab
AC
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131rm -f conftest.$ac_objext
17132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag"
17141 || test ! -s conftest.err'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
5c45e068 17153 ac_cv_member_struct_reg_r_gs=yes
3862412b 17154else
bec39cab
AC
17155 echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
5c45e068
MK
17158cat >conftest.$ac_ext <<_ACEOF
17159/* confdefs.h. */
17160_ACEOF
17161cat confdefs.h >>conftest.$ac_ext
17162cat >>conftest.$ac_ext <<_ACEOF
17163/* end confdefs.h. */
17164#include <machine/reg.h>
17165
17166int
17167main ()
17168{
17169static struct reg ac_aggr;
17170if (sizeof ac_aggr.r_gs)
17171return 0;
17172 ;
17173 return 0;
17174}
17175_ACEOF
17176rm -f conftest.$ac_objext
17177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17178 (eval $ac_compile) 2>conftest.er1
17179 ac_status=$?
17180 grep -v '^ *+' conftest.er1 >conftest.err
17181 rm -f conftest.er1
17182 cat conftest.err >&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } &&
17185 { ac_try='test -z "$ac_c_werror_flag"
17186 || test ! -s conftest.err'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest.$ac_objext'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_member_struct_reg_r_gs=yes
17199else
17200 echo "$as_me: failed program was:" >&5
17201sed 's/^/| /' conftest.$ac_ext >&5
17202
17203ac_cv_member_struct_reg_r_gs=no
3862412b 17204fi
bec39cab 17205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17206fi
5c45e068
MK
17207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17208fi
17209echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17210echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17211if test $ac_cv_member_struct_reg_r_gs = yes; then
17212
17213cat >>confdefs.h <<_ACEOF
a3828db0 17214#define HAVE_STRUCT_REG_R_GS 1
bec39cab 17215_ACEOF
3862412b 17216
5c45e068 17217
97bf5e38 17218fi
3862412b 17219
5c45e068 17220
a3828db0
MK
17221# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17222echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17223echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17224if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 17225 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17226else
bec39cab
AC
17227 cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
17232/* end confdefs.h. */
a3828db0 17233#include <sys/ptrace.h>
bec39cab
AC
17234int
17235main ()
17236{
a3828db0 17237PTRACE_GETREGS;
bec39cab
AC
17238 ;
17239 return 0;
17240}
17241_ACEOF
17242rm -f conftest.$ac_objext
17243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17244 (eval $ac_compile) 2>conftest.er1
17245 ac_status=$?
17246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -z "$ac_c_werror_flag"
17252 || test ! -s conftest.err'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
a3828db0 17264 gdb_cv_have_ptrace_getregs=yes
451928c5 17265else
bec39cab
AC
17266 echo "$as_me: failed program was:" >&5
17267sed 's/^/| /' conftest.$ac_ext >&5
17268
a3828db0 17269gdb_cv_have_ptrace_getregs=no
451928c5 17270fi
bec39cab 17271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17272fi
17273
a3828db0
MK
17274echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17275echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17276if test $gdb_cv_have_ptrace_getregs = yes; then
17277 cat >>confdefs.h <<\_ACEOF
17278#define HAVE_PTRACE_GETREGS 1
bec39cab 17279_ACEOF
451928c5 17280
97bf5e38 17281fi
451928c5 17282
a3828db0
MK
17283# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17284echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17285echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17286if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 17287 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17288else
bec39cab
AC
17289 cat >conftest.$ac_ext <<_ACEOF
17290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
a3828db0 17295#include <sys/ptrace.h>
bec39cab
AC
17296int
17297main ()
17298{
a3828db0 17299PTRACE_GETFPXREGS;
bec39cab
AC
17300 ;
17301 return 0;
17302}
17303_ACEOF
17304rm -f conftest.$ac_objext
17305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17306 (eval $ac_compile) 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag"
17314 || test ! -s conftest.err'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest.$ac_objext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
a3828db0 17326 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 17327else
bec39cab
AC
17328 echo "$as_me: failed program was:" >&5
17329sed 's/^/| /' conftest.$ac_ext >&5
17330
a3828db0 17331gdb_cv_have_ptrace_getfpxregs=no
451928c5 17332fi
bec39cab 17333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17334fi
17335
a3828db0
MK
17336echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17337echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17338if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17339 cat >>confdefs.h <<\_ACEOF
17340#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 17341_ACEOF
451928c5 17342
97bf5e38 17343fi
451928c5 17344
a3828db0
MK
17345# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17346echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17347echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17348if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 17349 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17350else
bec39cab
AC
17351 cat >conftest.$ac_ext <<_ACEOF
17352/* confdefs.h. */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h. */
a3828db0
MK
17357#include <sys/types.h>
17358#include <sys/ptrace.h>
bec39cab
AC
17359int
17360main ()
17361{
a3828db0 17362PT_GETDBREGS;
bec39cab
AC
17363 ;
17364 return 0;
17365}
17366_ACEOF
17367rm -f conftest.$ac_objext
17368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17369 (eval $ac_compile) 2>conftest.er1
17370 ac_status=$?
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag"
17377 || test ! -s conftest.err'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; } &&
17383 { ac_try='test -s conftest.$ac_objext'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; }; then
a3828db0 17389 gdb_cv_have_pt_getdbregs=yes
3862412b 17390else
bec39cab
AC
17391 echo "$as_me: failed program was:" >&5
17392sed 's/^/| /' conftest.$ac_ext >&5
17393
a3828db0 17394gdb_cv_have_pt_getdbregs=no
3862412b 17395fi
bec39cab 17396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17397fi
17398
a3828db0
MK
17399echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17400echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17401if test $gdb_cv_have_pt_getdbregs = yes; then
17402 cat >>confdefs.h <<\_ACEOF
17403#define HAVE_PT_GETDBREGS 1
bec39cab 17404_ACEOF
3862412b 17405
97bf5e38 17406fi
3862412b 17407
a3828db0
MK
17408# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17409echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17410echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17411if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 17412 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17413else
bec39cab
AC
17414 cat >conftest.$ac_ext <<_ACEOF
17415/* confdefs.h. */
17416_ACEOF
17417cat confdefs.h >>conftest.$ac_ext
17418cat >>conftest.$ac_ext <<_ACEOF
17419/* end confdefs.h. */
a3828db0
MK
17420#include <sys/types.h>
17421#include <sys/ptrace.h>
bec39cab
AC
17422int
17423main ()
17424{
a3828db0 17425PT_GETXMMREGS;
bec39cab
AC
17426 ;
17427 return 0;
17428}
17429_ACEOF
17430rm -f conftest.$ac_objext
17431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17432 (eval $ac_compile) 2>conftest.er1
17433 ac_status=$?
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag"
17440 || test ! -s conftest.err'
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); }; } &&
17446 { ac_try='test -s conftest.$ac_objext'
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
a3828db0 17452 gdb_cv_have_pt_getxmmregs=yes
3862412b 17453else
bec39cab
AC
17454 echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
a3828db0 17457gdb_cv_have_pt_getxmmregs=no
3862412b 17458fi
bec39cab 17459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17460fi
17461
a3828db0
MK
17462echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17463echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17464if test $gdb_cv_have_pt_getxmmregs = yes; then
17465 cat >>confdefs.h <<\_ACEOF
17466#define HAVE_PT_GETXMMREGS 1
bec39cab 17467_ACEOF
3862412b 17468
97bf5e38 17469fi
3862412b 17470
a3828db0
MK
17471# See if stdint.h provides the uintptr_t type.
17472# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
17473echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
17474echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
17475if test "${gdb_cv_have_uintptr_t+set}" = set; then
bec39cab 17476 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17477else
bec39cab
AC
17478 cat >conftest.$ac_ext <<_ACEOF
17479/* confdefs.h. */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h. */
a3828db0 17484#include <stdint.h>
bec39cab
AC
17485int
17486main ()
17487{
a3828db0 17488uintptr_t foo = 0;
bec39cab
AC
17489 ;
17490 return 0;
17491}
17492_ACEOF
17493rm -f conftest.$ac_objext
17494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17495 (eval $ac_compile) 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag"
17503 || test ! -s conftest.err'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; } &&
17509 { ac_try='test -s conftest.$ac_objext'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
a3828db0 17515 gdb_cv_have_uintptr_t=yes
596c9d4b 17516else
bec39cab
AC
17517 echo "$as_me: failed program was:" >&5
17518sed 's/^/| /' conftest.$ac_ext >&5
17519
a3828db0 17520gdb_cv_have_uintptr_t=no
596c9d4b 17521fi
bec39cab 17522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b 17523fi
a3828db0
MK
17524echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
17525echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
17526if test $gdb_cv_have_uintptr_t = yes; then
bec39cab
AC
17527
17528cat >>confdefs.h <<\_ACEOF
a3828db0 17529#define HAVE_UINTPTR_T 1
bec39cab 17530_ACEOF
596c9d4b 17531
97bf5e38 17532fi
596c9d4b 17533
97bf5e38
MK
17534# If we are configured native on GNU/Linux, work around problems with
17535# sys/procfs.h
17536# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17537
17538if test "${target}" = "${host}"; then
17539 case "${host}" in
17540 i[3456]86-*-linux*)
bec39cab 17541 cat >>confdefs.h <<\_ACEOF
97bf5e38 17542#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17543_ACEOF
97bf5e38 17544
bec39cab 17545 cat >>confdefs.h <<\_ACEOF
97bf5e38 17546#define sys_quotactl 1
bec39cab 17547_ACEOF
97bf5e38
MK
17548
17549 ;;
97bf5e38 17550 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
bec39cab 17551 cat >>confdefs.h <<\_ACEOF
97bf5e38 17552#define NEW_PROC_API 1
bec39cab 17553_ACEOF
97bf5e38
MK
17554
17555 ;;
0bbc026e 17556 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
bec39cab 17557 cat >>confdefs.h <<\_ACEOF
97bf5e38 17558#define NEW_PROC_API 1
bec39cab 17559_ACEOF
c960c18f
AC
17560
17561 ;;
17562 mips-sgi-irix5*)
17563 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
bec39cab 17564 cat >>confdefs.h <<\_ACEOF
c960c18f 17565#define _KMEMUSER 1
bec39cab 17566_ACEOF
97bf5e38
MK
17567
17568 ;;
17569 esac
17570fi
17571
17572if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17573 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17574echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17575 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577else
17578 cat >conftest.$ac_ext <<_ACEOF
17579/* confdefs.h. */
17580_ACEOF
17581cat confdefs.h >>conftest.$ac_ext
17582cat >>conftest.$ac_ext <<_ACEOF
17583/* end confdefs.h. */
596c9d4b
KB
17584
17585#define _SYSCALL32
17586#include <sys/procfs.h>
bec39cab
AC
17587int
17588main ()
17589{
97bf5e38 17590pstatus_t avar
bec39cab
AC
17591 ;
17592 return 0;
17593}
17594_ACEOF
17595rm -f conftest.$ac_objext
17596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17597 (eval $ac_compile) 2>conftest.er1
17598 ac_status=$?
17599 grep -v '^ *+' conftest.er1 >conftest.err
17600 rm -f conftest.er1
17601 cat conftest.err >&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } &&
17604 { ac_try='test -z "$ac_c_werror_flag"
17605 || test ! -s conftest.err'
17606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; } &&
17611 { ac_try='test -s conftest.$ac_objext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
97bf5e38 17617 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17618else
bec39cab
AC
17619 echo "$as_me: failed program was:" >&5
17620sed 's/^/| /' conftest.$ac_ext >&5
17621
17622bfd_cv_have_sys_procfs_type_pstatus_t=no
17623
596c9d4b 17624fi
bec39cab 17625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17626fi
17627
97bf5e38 17628 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17629
17630cat >>confdefs.h <<\_ACEOF
97bf5e38 17631#define HAVE_PSTATUS_T 1
bec39cab 17632_ACEOF
596c9d4b
KB
17633
17634 fi
bec39cab
AC
17635 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17636echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17637
bec39cab
AC
17638 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17639echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17640 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17642else
bec39cab
AC
17643 cat >conftest.$ac_ext <<_ACEOF
17644/* confdefs.h. */
17645_ACEOF
17646cat confdefs.h >>conftest.$ac_ext
17647cat >>conftest.$ac_ext <<_ACEOF
17648/* end confdefs.h. */
596c9d4b
KB
17649
17650#define _SYSCALL32
17651#include <sys/procfs.h>
bec39cab
AC
17652int
17653main ()
17654{
97bf5e38 17655prrun_t avar
bec39cab
AC
17656 ;
17657 return 0;
17658}
17659_ACEOF
17660rm -f conftest.$ac_objext
17661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662 (eval $ac_compile) 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -z "$ac_c_werror_flag"
17670 || test ! -s conftest.err'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
97bf5e38 17682 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 17683else
bec39cab
AC
17684 echo "$as_me: failed program was:" >&5
17685sed 's/^/| /' conftest.$ac_ext >&5
17686
17687bfd_cv_have_sys_procfs_type_prrun_t=no
17688
596c9d4b 17689fi
bec39cab 17690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17691fi
17692
97bf5e38 17693 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
17694
17695cat >>confdefs.h <<\_ACEOF
97bf5e38 17696#define HAVE_PRRUN_T 1
bec39cab 17697_ACEOF
596c9d4b
KB
17698
17699 fi
bec39cab
AC
17700 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17701echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 17702
bec39cab
AC
17703 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17704echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17705 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17707else
bec39cab
AC
17708 cat >conftest.$ac_ext <<_ACEOF
17709/* confdefs.h. */
17710_ACEOF
17711cat confdefs.h >>conftest.$ac_ext
17712cat >>conftest.$ac_ext <<_ACEOF
17713/* end confdefs.h. */
596c9d4b
KB
17714
17715#define _SYSCALL32
17716#include <sys/procfs.h>
bec39cab
AC
17717int
17718main ()
17719{
97bf5e38 17720gregset_t avar
bec39cab
AC
17721 ;
17722 return 0;
17723}
17724_ACEOF
17725rm -f conftest.$ac_objext
17726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17727 (eval $ac_compile) 2>conftest.er1
17728 ac_status=$?
17729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
17734 { ac_try='test -z "$ac_c_werror_flag"
17735 || test ! -s conftest.err'
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; } &&
17741 { ac_try='test -s conftest.$ac_objext'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
97bf5e38 17747 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 17748else
bec39cab
AC
17749 echo "$as_me: failed program was:" >&5
17750sed 's/^/| /' conftest.$ac_ext >&5
17751
17752bfd_cv_have_sys_procfs_type_gregset_t=no
17753
596c9d4b 17754fi
bec39cab 17755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17756fi
17757
97bf5e38 17758 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
17759
17760cat >>confdefs.h <<\_ACEOF
97bf5e38 17761#define HAVE_GREGSET_T 1
bec39cab 17762_ACEOF
596c9d4b
KB
17763
17764 fi
bec39cab
AC
17765 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17766echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 17767
bec39cab
AC
17768 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17769echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17770 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17771 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 17772else
bec39cab
AC
17773 cat >conftest.$ac_ext <<_ACEOF
17774/* confdefs.h. */
17775_ACEOF
17776cat confdefs.h >>conftest.$ac_ext
17777cat >>conftest.$ac_ext <<_ACEOF
17778/* end confdefs.h. */
97bf5e38
MK
17779
17780#define _SYSCALL32
d84dd0c5 17781#include <sys/procfs.h>
bec39cab
AC
17782int
17783main ()
17784{
97bf5e38 17785fpregset_t avar
bec39cab
AC
17786 ;
17787 return 0;
17788}
17789_ACEOF
17790rm -f conftest.$ac_objext
17791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17792 (eval $ac_compile) 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -z "$ac_c_werror_flag"
17800 || test ! -s conftest.err'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; } &&
17806 { ac_try='test -s conftest.$ac_objext'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; }; then
97bf5e38 17812 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 17813else
bec39cab
AC
17814 echo "$as_me: failed program was:" >&5
17815sed 's/^/| /' conftest.$ac_ext >&5
17816
17817bfd_cv_have_sys_procfs_type_fpregset_t=no
17818
d84dd0c5 17819fi
bec39cab 17820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
17821fi
17822
97bf5e38 17823 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
17824
17825cat >>confdefs.h <<\_ACEOF
97bf5e38 17826#define HAVE_FPREGSET_T 1
bec39cab 17827_ACEOF
d84dd0c5 17828
97bf5e38 17829 fi
bec39cab
AC
17830 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17831echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 17832
bec39cab
AC
17833 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17834echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17835 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 17837else
bec39cab
AC
17838 cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
c906108c 17844
97bf5e38
MK
17845#define _SYSCALL32
17846#include <sys/procfs.h>
bec39cab
AC
17847int
17848main ()
17849{
97bf5e38 17850prgregset_t avar
bec39cab
AC
17851 ;
17852 return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext
17856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
97bf5e38 17877 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 17878else
bec39cab
AC
17879 echo "$as_me: failed program was:" >&5
17880sed 's/^/| /' conftest.$ac_ext >&5
17881
17882bfd_cv_have_sys_procfs_type_prgregset_t=no
17883
c906108c 17884fi
bec39cab 17885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
17886fi
17887
97bf5e38 17888 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
17889
17890cat >>confdefs.h <<\_ACEOF
97bf5e38 17891#define HAVE_PRGREGSET_T 1
bec39cab 17892_ACEOF
c906108c 17893
97bf5e38 17894 fi
bec39cab
AC
17895 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17896echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 17897
bec39cab
AC
17898 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17899echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17900 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 17902else
bec39cab
AC
17903 cat >conftest.$ac_ext <<_ACEOF
17904/* confdefs.h. */
17905_ACEOF
17906cat confdefs.h >>conftest.$ac_ext
17907cat >>conftest.$ac_ext <<_ACEOF
17908/* end confdefs.h. */
97bf5e38
MK
17909
17910#define _SYSCALL32
17911#include <sys/procfs.h>
bec39cab
AC
17912int
17913main ()
17914{
97bf5e38 17915prfpregset_t avar
bec39cab
AC
17916 ;
17917 return 0;
17918}
17919_ACEOF
17920rm -f conftest.$ac_objext
17921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17922 (eval $ac_compile) 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try='test -z "$ac_c_werror_flag"
17930 || test ! -s conftest.err'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try='test -s conftest.$ac_objext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
97bf5e38 17942 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 17943else
bec39cab
AC
17944 echo "$as_me: failed program was:" >&5
17945sed 's/^/| /' conftest.$ac_ext >&5
17946
17947bfd_cv_have_sys_procfs_type_prfpregset_t=no
17948
d45fe813 17949fi
bec39cab 17950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
17951fi
17952
97bf5e38 17953 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
17954
17955cat >>confdefs.h <<\_ACEOF
97bf5e38 17956#define HAVE_PRFPREGSET_T 1
bec39cab 17957_ACEOF
d45fe813 17958
97bf5e38 17959 fi
bec39cab
AC
17960 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17961echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 17962
bec39cab
AC
17963 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17964echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17965 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 17967else
bec39cab
AC
17968 cat >conftest.$ac_ext <<_ACEOF
17969/* confdefs.h. */
17970_ACEOF
17971cat confdefs.h >>conftest.$ac_ext
17972cat >>conftest.$ac_ext <<_ACEOF
17973/* end confdefs.h. */
97bf5e38
MK
17974
17975#define _SYSCALL32
17976#include <sys/procfs.h>
bec39cab
AC
17977int
17978main ()
17979{
97bf5e38 17980prgregset32_t avar
bec39cab
AC
17981 ;
17982 return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext
17986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>conftest.er1
17988 ac_status=$?
17989 grep -v '^ *+' conftest.er1 >conftest.err
17990 rm -f conftest.er1
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
97bf5e38 18007 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 18008else
bec39cab
AC
18009 echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
18012bfd_cv_have_sys_procfs_type_prgregset32_t=no
18013
d45fe813 18014fi
bec39cab 18015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18016fi
18017
97bf5e38 18018 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18019
18020cat >>confdefs.h <<\_ACEOF
97bf5e38 18021#define HAVE_PRGREGSET32_T 1
bec39cab 18022_ACEOF
d45fe813 18023
97bf5e38 18024 fi
bec39cab
AC
18025 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18026echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18027
bec39cab
AC
18028 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18029echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18030 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18032else
bec39cab
AC
18033 cat >conftest.$ac_ext <<_ACEOF
18034/* confdefs.h. */
18035_ACEOF
18036cat confdefs.h >>conftest.$ac_ext
18037cat >>conftest.$ac_ext <<_ACEOF
18038/* end confdefs.h. */
97bf5e38
MK
18039
18040#define _SYSCALL32
18041#include <sys/procfs.h>
bec39cab
AC
18042int
18043main ()
18044{
97bf5e38 18045prfpregset32_t avar
bec39cab
AC
18046 ;
18047 return 0;
18048}
18049_ACEOF
18050rm -f conftest.$ac_objext
18051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18052 (eval $ac_compile) 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag"
18060 || test ! -s conftest.err'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try='test -s conftest.$ac_objext'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
97bf5e38 18072 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18073else
bec39cab
AC
18074 echo "$as_me: failed program was:" >&5
18075sed 's/^/| /' conftest.$ac_ext >&5
18076
18077bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18078
d45fe813 18079fi
bec39cab 18080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18081fi
18082
97bf5e38 18083 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18084
18085cat >>confdefs.h <<\_ACEOF
97bf5e38 18086#define HAVE_PRFPREGSET32_T 1
bec39cab 18087_ACEOF
d45fe813 18088
97bf5e38 18089 fi
bec39cab
AC
18090 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18091echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18092
bec39cab
AC
18093 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18094echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18095 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18097else
bec39cab
AC
18098 cat >conftest.$ac_ext <<_ACEOF
18099/* confdefs.h. */
18100_ACEOF
18101cat confdefs.h >>conftest.$ac_ext
18102cat >>conftest.$ac_ext <<_ACEOF
18103/* end confdefs.h. */
97bf5e38 18104
d45fe813 18105#define _SYSCALL32
97bf5e38 18106#include <sys/procfs.h>
bec39cab
AC
18107int
18108main ()
18109{
97bf5e38 18110lwpid_t avar
bec39cab
AC
18111 ;
18112 return 0;
18113}
18114_ACEOF
18115rm -f conftest.$ac_objext
18116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18117 (eval $ac_compile) 2>conftest.er1
18118 ac_status=$?
18119 grep -v '^ *+' conftest.er1 >conftest.err
18120 rm -f conftest.er1
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } &&
18124 { ac_try='test -z "$ac_c_werror_flag"
18125 || test ! -s conftest.err'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } &&
18131 { ac_try='test -s conftest.$ac_objext'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
97bf5e38 18137 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18138else
bec39cab
AC
18139 echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
18142bfd_cv_have_sys_procfs_type_lwpid_t=no
18143
d45fe813 18144fi
bec39cab 18145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18146fi
18147
97bf5e38 18148 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18149
18150cat >>confdefs.h <<\_ACEOF
97bf5e38 18151#define HAVE_LWPID_T 1
bec39cab 18152_ACEOF
d45fe813 18153
97bf5e38 18154 fi
bec39cab
AC
18155 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18156echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18157
bec39cab
AC
18158 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18159echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18160 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18162else
bec39cab
AC
18163 cat >conftest.$ac_ext <<_ACEOF
18164/* confdefs.h. */
18165_ACEOF
18166cat confdefs.h >>conftest.$ac_ext
18167cat >>conftest.$ac_ext <<_ACEOF
18168/* end confdefs.h. */
c906108c 18169
97bf5e38
MK
18170#define _SYSCALL32
18171#include <sys/procfs.h>
bec39cab
AC
18172int
18173main ()
18174{
97bf5e38 18175psaddr_t avar
bec39cab
AC
18176 ;
18177 return 0;
18178}
18179_ACEOF
18180rm -f conftest.$ac_objext
18181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18182 (eval $ac_compile) 2>conftest.er1
18183 ac_status=$?
18184 grep -v '^ *+' conftest.er1 >conftest.err
18185 rm -f conftest.er1
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } &&
18189 { ac_try='test -z "$ac_c_werror_flag"
18190 || test ! -s conftest.err'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest.$ac_objext'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
97bf5e38 18202 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18203else
bec39cab
AC
18204 echo "$as_me: failed program was:" >&5
18205sed 's/^/| /' conftest.$ac_ext >&5
18206
18207bfd_cv_have_sys_procfs_type_psaddr_t=no
18208
c906108c 18209fi
bec39cab 18210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18211fi
18212
97bf5e38 18213 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18214
18215cat >>confdefs.h <<\_ACEOF
97bf5e38 18216#define HAVE_PSADDR_T 1
bec39cab 18217_ACEOF
c906108c 18218
97bf5e38 18219 fi
bec39cab
AC
18220 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18221echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18222
bec39cab
AC
18223 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18224echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18225 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18227else
bec39cab
AC
18228 cat >conftest.$ac_ext <<_ACEOF
18229/* confdefs.h. */
18230_ACEOF
18231cat confdefs.h >>conftest.$ac_ext
18232cat >>conftest.$ac_ext <<_ACEOF
18233/* end confdefs.h. */
c906108c 18234
97bf5e38
MK
18235#define _SYSCALL32
18236#include <sys/procfs.h>
bec39cab
AC
18237int
18238main ()
18239{
97bf5e38 18240prsysent_t avar
bec39cab
AC
18241 ;
18242 return 0;
18243}
18244_ACEOF
18245rm -f conftest.$ac_objext
18246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
97bf5e38 18267 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18268else
bec39cab
AC
18269 echo "$as_me: failed program was:" >&5
18270sed 's/^/| /' conftest.$ac_ext >&5
18271
18272bfd_cv_have_sys_procfs_type_prsysent_t=no
18273
c906108c 18274fi
bec39cab 18275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18276fi
18277
97bf5e38 18278 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18279
18280cat >>confdefs.h <<\_ACEOF
97bf5e38 18281#define HAVE_PRSYSENT_T 1
bec39cab 18282_ACEOF
c906108c 18283
97bf5e38 18284 fi
bec39cab
AC
18285 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18286echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18287
bec39cab
AC
18288 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18289echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18290 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18292else
bec39cab
AC
18293 cat >conftest.$ac_ext <<_ACEOF
18294/* confdefs.h. */
18295_ACEOF
18296cat confdefs.h >>conftest.$ac_ext
18297cat >>conftest.$ac_ext <<_ACEOF
18298/* end confdefs.h. */
c906108c 18299
97bf5e38
MK
18300#define _SYSCALL32
18301#include <sys/procfs.h>
bec39cab
AC
18302int
18303main ()
18304{
97bf5e38 18305pr_sigset_t avar
bec39cab
AC
18306 ;
18307 return 0;
18308}
18309_ACEOF
18310rm -f conftest.$ac_objext
18311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18312 (eval $ac_compile) 2>conftest.er1
18313 ac_status=$?
18314 grep -v '^ *+' conftest.er1 >conftest.err
18315 rm -f conftest.er1
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
18319 { ac_try='test -z "$ac_c_werror_flag"
18320 || test ! -s conftest.err'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest.$ac_objext'
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; }; then
97bf5e38 18332 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18333else
bec39cab
AC
18334 echo "$as_me: failed program was:" >&5
18335sed 's/^/| /' conftest.$ac_ext >&5
18336
18337bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18338
c906108c 18339fi
bec39cab 18340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18341fi
18342
97bf5e38 18343 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18344
18345cat >>confdefs.h <<\_ACEOF
97bf5e38 18346#define HAVE_PR_SIGSET_T 1
bec39cab 18347_ACEOF
c906108c 18348
97bf5e38 18349 fi
bec39cab
AC
18350 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18351echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18352
bec39cab
AC
18353 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18354echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18355 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18357else
bec39cab
AC
18358 cat >conftest.$ac_ext <<_ACEOF
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
18363/* end confdefs.h. */
c906108c 18364
97bf5e38
MK
18365#define _SYSCALL32
18366#include <sys/procfs.h>
bec39cab
AC
18367int
18368main ()
18369{
97bf5e38 18370pr_sigaction64_t avar
bec39cab
AC
18371 ;
18372 return 0;
18373}
18374_ACEOF
18375rm -f conftest.$ac_objext
18376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18377 (eval $ac_compile) 2>conftest.er1
18378 ac_status=$?
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -z "$ac_c_werror_flag"
18385 || test ! -s conftest.err'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; } &&
18391 { ac_try='test -s conftest.$ac_objext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
97bf5e38 18397 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18398else
bec39cab
AC
18399 echo "$as_me: failed program was:" >&5
18400sed 's/^/| /' conftest.$ac_ext >&5
18401
18402bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18403
c906108c 18404fi
bec39cab 18405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18406fi
18407
97bf5e38 18408 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18409
18410cat >>confdefs.h <<\_ACEOF
97bf5e38 18411#define HAVE_PR_SIGACTION64_T 1
bec39cab 18412_ACEOF
c906108c 18413
97bf5e38 18414 fi
bec39cab
AC
18415 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18416echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18417
bec39cab
AC
18418 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18419echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18420 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18422else
bec39cab
AC
18423 cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
97bf5e38
MK
18429
18430#define _SYSCALL32
18431#include <sys/procfs.h>
bec39cab
AC
18432int
18433main ()
18434{
97bf5e38 18435pr_siginfo64_t avar
bec39cab
AC
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext
18441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18442 (eval $ac_compile) 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag"
18450 || test ! -s conftest.err'
18451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452 (eval $ac_try) 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; } &&
18456 { ac_try='test -s conftest.$ac_objext'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; }; then
97bf5e38
MK
18462 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18463else
bec39cab
AC
18464 echo "$as_me: failed program was:" >&5
18465sed 's/^/| /' conftest.$ac_ext >&5
18466
18467bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18468
97bf5e38 18469fi
bec39cab 18470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18471fi
c906108c 18472
97bf5e38 18473 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18474
18475cat >>confdefs.h <<\_ACEOF
97bf5e38 18476#define HAVE_PR_SIGINFO64_T 1
bec39cab 18477_ACEOF
c906108c 18478
97bf5e38 18479 fi
bec39cab
AC
18480 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18481echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18482
18483
97bf5e38
MK
18484
18485
18486
97bf5e38 18487 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18488 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18489echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18490 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18492else
18493 if test "$cross_compiling" = yes; then
97bf5e38 18494 gdb_cv_prfpregset_t_broken=yes
c906108c 18495else
bec39cab
AC
18496 cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
97bf5e38
MK
18502#include <sys/procfs.h>
18503 int main ()
18504 {
18505 if (sizeof (prfpregset_t) == sizeof (void *))
18506 return 1;
18507 return 0;
18508 }
bec39cab
AC
18509_ACEOF
18510rm -f conftest$ac_exeext
18511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18512 (eval $ac_link) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 (eval $ac_try) 2>&5
18518 ac_status=$?
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; }; then
97bf5e38 18521 gdb_cv_prfpregset_t_broken=no
c906108c 18522else
bec39cab
AC
18523 echo "$as_me: program exited with status $ac_status" >&5
18524echo "$as_me: failed program was:" >&5
18525sed 's/^/| /' conftest.$ac_ext >&5
18526
18527( exit $ac_status )
18528gdb_cv_prfpregset_t_broken=yes
c906108c 18529fi
bec39cab 18530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18531fi
c906108c
SS
18532fi
18533
bec39cab
AC
18534 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18535echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18536 if test $gdb_cv_prfpregset_t_broken = yes; then
bec39cab 18537 cat >>confdefs.h <<\_ACEOF
97bf5e38 18538#define PRFPREGSET_T_BROKEN 1
bec39cab 18539_ACEOF
c906108c 18540
97bf5e38
MK
18541 fi
18542 fi
c906108c 18543
bec39cab
AC
18544
18545 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18546echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18547 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18549else
bec39cab
AC
18550 cat >conftest.$ac_ext <<_ACEOF
18551/* confdefs.h. */
18552_ACEOF
18553cat confdefs.h >>conftest.$ac_ext
18554cat >>conftest.$ac_ext <<_ACEOF
18555/* end confdefs.h. */
97bf5e38
MK
18556#include <unistd.h>
18557#include <sys/types.h>
18558#include <sys/procfs.h>
18559
bec39cab
AC
18560int
18561main ()
18562{
97bf5e38
MK
18563
18564 int dummy;;
18565 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18566
18567 ;
18568 return 0;
18569}
18570_ACEOF
18571rm -f conftest.$ac_objext
18572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18573 (eval $ac_compile) 2>conftest.er1
18574 ac_status=$?
18575 grep -v '^ *+' conftest.er1 >conftest.err
18576 rm -f conftest.er1
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } &&
18580 { ac_try='test -z "$ac_c_werror_flag"
18581 || test ! -s conftest.err'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; } &&
18587 { ac_try='test -s conftest.$ac_objext'
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
97bf5e38 18593 gdb_cv_have_procfs_piocset=yes
c906108c 18594else
bec39cab
AC
18595 echo "$as_me: failed program was:" >&5
18596sed 's/^/| /' conftest.$ac_ext >&5
18597
18598gdb_cv_have_procfs_piocset=no
c906108c 18599fi
bec39cab 18600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18601fi
97bf5e38 18602
bec39cab
AC
18603 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18604echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18605 if test $gdb_cv_have_procfs_piocset = yes; then
bec39cab 18606 cat >>confdefs.h <<\_ACEOF
97bf5e38 18607#define HAVE_PROCFS_PIOCSET 1
bec39cab 18608_ACEOF
97bf5e38
MK
18609
18610 fi
c906108c 18611fi
c906108c 18612
97bf5e38 18613if test ${host} = ${target} ; then
bec39cab
AC
18614
18615 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18616echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18617 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18619else
18620 cat >conftest.$ac_ext <<_ACEOF
18621/* confdefs.h. */
18622_ACEOF
18623cat confdefs.h >>conftest.$ac_ext
18624cat >>conftest.$ac_ext <<_ACEOF
18625/* end confdefs.h. */
97bf5e38 18626#include <link.h>
bec39cab
AC
18627int
18628main ()
18629{
97bf5e38 18630struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18631 ;
18632 return 0;
18633}
18634_ACEOF
18635rm -f conftest.$ac_objext
18636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18637 (eval $ac_compile) 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_c_werror_flag"
18645 || test ! -s conftest.err'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest.$ac_objext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
97bf5e38 18657 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 18658else
bec39cab
AC
18659 echo "$as_me: failed program was:" >&5
18660sed 's/^/| /' conftest.$ac_ext >&5
18661
18662gdb_cv_have_struct_link_map_with_l_members=no
c906108c 18663fi
bec39cab 18664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18665fi
18666
bec39cab
AC
18667 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18668echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 18669 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
bec39cab 18670 cat >>confdefs.h <<\_ACEOF
97bf5e38 18671#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 18672_ACEOF
97bf5e38
MK
18673
18674 fi
18675
bec39cab
AC
18676
18677 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18678echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18679 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18680 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18681else
bec39cab
AC
18682 cat >conftest.$ac_ext <<_ACEOF
18683/* confdefs.h. */
18684_ACEOF
18685cat confdefs.h >>conftest.$ac_ext
18686cat >>conftest.$ac_ext <<_ACEOF
18687/* end confdefs.h. */
97bf5e38
MK
18688#include <sys/types.h>
18689#include <link.h>
bec39cab
AC
18690int
18691main ()
18692{
97bf5e38 18693struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
18694 ;
18695 return 0;
18696}
18697_ACEOF
18698rm -f conftest.$ac_objext
18699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18700 (eval $ac_compile) 2>conftest.er1
18701 ac_status=$?
18702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } &&
18707 { ac_try='test -z "$ac_c_werror_flag"
18708 || test ! -s conftest.err'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest.$ac_objext'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
97bf5e38
MK
18720 gdb_cv_have_struct_link_map_with_lm_members=yes
18721else
bec39cab
AC
18722 echo "$as_me: failed program was:" >&5
18723sed 's/^/| /' conftest.$ac_ext >&5
18724
18725gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 18726fi
bec39cab 18727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18728fi
c906108c 18729
bec39cab
AC
18730 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18731echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 18732 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
bec39cab 18733 cat >>confdefs.h <<\_ACEOF
97bf5e38 18734#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 18735_ACEOF
97bf5e38
MK
18736
18737 fi
18738
bec39cab
AC
18739
18740 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18741echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18742 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18744else
bec39cab
AC
18745 cat >conftest.$ac_ext <<_ACEOF
18746/* confdefs.h. */
18747_ACEOF
18748cat confdefs.h >>conftest.$ac_ext
18749cat >>conftest.$ac_ext <<_ACEOF
18750/* end confdefs.h. */
97bf5e38
MK
18751#include <sys/types.h>
18752#ifdef HAVE_NLIST_H
18753#include <nlist.h>
18754#endif
18755#include <link.h>
bec39cab
AC
18756int
18757main ()
18758{
97bf5e38 18759struct so_map lm; (void) lm.som_addr;
bec39cab
AC
18760 ;
18761 return 0;
18762}
18763_ACEOF
18764rm -f conftest.$ac_objext
18765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18766 (eval $ac_compile) 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -z "$ac_c_werror_flag"
18774 || test ! -s conftest.err'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; } &&
18780 { ac_try='test -s conftest.$ac_objext'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
97bf5e38
MK
18786 gdb_cv_have_struct_so_map_with_som_members=yes
18787else
bec39cab
AC
18788 echo "$as_me: failed program was:" >&5
18789sed 's/^/| /' conftest.$ac_ext >&5
18790
18791gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 18792fi
bec39cab 18793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18794fi
c906108c 18795
bec39cab
AC
18796 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18797echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 18798 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
bec39cab 18799 cat >>confdefs.h <<\_ACEOF
97bf5e38 18800#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 18801_ACEOF
c906108c 18802
97bf5e38 18803 fi
c906108c 18804
bec39cab
AC
18805
18806 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18807echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18808 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18810else
bec39cab
AC
18811 cat >conftest.$ac_ext <<_ACEOF
18812/* confdefs.h. */
18813_ACEOF
18814cat confdefs.h >>conftest.$ac_ext
18815cat >>conftest.$ac_ext <<_ACEOF
18816/* end confdefs.h. */
97bf5e38
MK
18817#define _SYSCALL32
18818#include <sys/link.h>
bec39cab
AC
18819int
18820main ()
18821{
97bf5e38 18822struct link_map32 l;
bec39cab
AC
18823 ;
18824 return 0;
18825}
18826_ACEOF
18827rm -f conftest.$ac_objext
18828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18829 (eval $ac_compile) 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag"
18837 || test ! -s conftest.err'
18838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839 (eval $ac_try) 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; } &&
18843 { ac_try='test -s conftest.$ac_objext'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
97bf5e38
MK
18849 gdb_cv_have_struct_link_map32=yes
18850else
bec39cab
AC
18851 echo "$as_me: failed program was:" >&5
18852sed 's/^/| /' conftest.$ac_ext >&5
18853
18854gdb_cv_have_struct_link_map32=no
97bf5e38 18855fi
bec39cab 18856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18857fi
c906108c 18858
bec39cab
AC
18859 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18860echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 18861 if test $gdb_cv_have_struct_link_map32 = yes; then
bec39cab 18862 cat >>confdefs.h <<\_ACEOF
97bf5e38 18863#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 18864_ACEOF
c906108c 18865
bec39cab 18866 cat >>confdefs.h <<\_ACEOF
97bf5e38 18867#define _SYSCALL32 1
bec39cab 18868_ACEOF
c906108c 18869
97bf5e38
MK
18870 fi
18871fi
c906108c 18872
bc8bcb4b 18873# Check if the compiler supports the `long long' type.
c906108c 18874
bec39cab
AC
18875echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18876echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18877if test "${gdb_cv_c_long_long+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18879else
bec39cab
AC
18880 cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
bc8bcb4b 18886extern long long foo;
bec39cab
AC
18887int
18888main ()
18889{
bc8bcb4b 18890switch (foo & 2) { case 0: return 1; }
bec39cab
AC
18891 ;
18892 return 0;
18893}
18894_ACEOF
18895rm -f conftest.$ac_objext
18896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18897 (eval $ac_compile) 2>conftest.er1
18898 ac_status=$?
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_c_werror_flag"
18905 || test ! -s conftest.err'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest.$ac_objext'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
97bf5e38
MK
18917 gdb_cv_c_long_long=yes
18918else
bec39cab
AC
18919 echo "$as_me: failed program was:" >&5
18920sed 's/^/| /' conftest.$ac_ext >&5
18921
18922gdb_cv_c_long_long=no
97bf5e38 18923fi
bec39cab 18924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18925fi
bec39cab
AC
18926echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18927echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 18928if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
18929
18930cat >>confdefs.h <<\_ACEOF
97bf5e38 18931#define CC_HAS_LONG_LONG 1
bec39cab 18932_ACEOF
97bf5e38
MK
18933
18934fi
18935
bc8bcb4b 18936# Check if the compiler and runtime support printing long longs.
97bf5e38 18937
bec39cab
AC
18938echo "$as_me:$LINENO: checking for long long support in printf" >&5
18939echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18940if test "${gdb_cv_printf_has_long_long+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
18942else
18943 if test "$cross_compiling" = yes; then
18944 gdb_cv_printf_has_long_long=no
18945else
bec39cab
AC
18946 cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
bc8bcb4b
MK
18952$ac_includes_default
18953int
18954main ()
18955{
18956char buf[32];
97bf5e38
MK
18957 long long l = 0;
18958 l = (l << 16) + 0x0123;
18959 l = (l << 16) + 0x4567;
18960 l = (l << 16) + 0x89ab;
18961 l = (l << 16) + 0xcdef;
18962 sprintf (buf, "0x%016llx", l);
18963 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
18964 ;
18965 return 0;
c906108c 18966}
bec39cab
AC
18967_ACEOF
18968rm -f conftest$ac_exeext
18969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970 (eval $ac_link) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
97bf5e38
MK
18979 gdb_cv_printf_has_long_long=yes
18980else
bec39cab
AC
18981 echo "$as_me: program exited with status $ac_status" >&5
18982echo "$as_me: failed program was:" >&5
18983sed 's/^/| /' conftest.$ac_ext >&5
18984
18985( exit $ac_status )
18986gdb_cv_printf_has_long_long=no
97bf5e38 18987fi
bec39cab 18988rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18989fi
97bf5e38 18990fi
bc8bcb4b
MK
18991echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18992echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 18993if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
18994
18995cat >>confdefs.h <<\_ACEOF
97bf5e38 18996#define PRINTF_HAS_LONG_LONG 1
bec39cab 18997_ACEOF
97bf5e38
MK
18998
18999fi
97bf5e38 19000
bc8bcb4b
MK
19001# Check if the compiler supports the `long double' type. We can't use
19002# AC_C_LONG_DOUBLE because that one does additional checks on the
19003# constants defined in <float.h> that fail on some systems,
19004# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 19005
bec39cab
AC
19006echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19007echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 19008if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 19009 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19010else
bec39cab
AC
19011 cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
97bf5e38 19017long double foo;
bec39cab
AC
19018_ACEOF
19019rm -f conftest.$ac_objext
19020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
bc8bcb4b 19041 gdb_cv_c_long_double=yes
97bf5e38 19042else
bec39cab
AC
19043 echo "$as_me: failed program was:" >&5
19044sed 's/^/| /' conftest.$ac_ext >&5
19045
bc8bcb4b 19046gdb_cv_c_long_double=no
97bf5e38 19047fi
bec39cab 19048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19049fi
bc8bcb4b
MK
19050echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19051echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19052if test $gdb_cv_c_long_double = yes; then
c906108c 19053
bc8bcb4b 19054cat >>confdefs.h <<\_ACEOF
97bf5e38 19055#define HAVE_LONG_DOUBLE 1
bec39cab 19056_ACEOF
97bf5e38
MK
19057
19058fi
19059
bc8bcb4b 19060# Check if the compiler and runtime support printing long doubles.
97bf5e38 19061
bec39cab
AC
19062echo "$as_me:$LINENO: checking for long double support in printf" >&5
19063echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19064if test "${gdb_cv_printf_has_long_double+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19066else
19067 if test "$cross_compiling" = yes; then
19068 gdb_cv_printf_has_long_double=no
19069else
bec39cab
AC
19070 cat >conftest.$ac_ext <<_ACEOF
19071/* confdefs.h. */
19072_ACEOF
19073cat confdefs.h >>conftest.$ac_ext
19074cat >>conftest.$ac_ext <<_ACEOF
19075/* end confdefs.h. */
bc8bcb4b
MK
19076$ac_includes_default
19077int
19078main ()
19079{
19080char buf[16];
97bf5e38
MK
19081 long double f = 3.141592653;
19082 sprintf (buf, "%Lg", f);
19083 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
19084 ;
19085 return 0;
97bf5e38 19086}
bec39cab
AC
19087_ACEOF
19088rm -f conftest$ac_exeext
19089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19090 (eval $ac_link) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
97bf5e38 19099 gdb_cv_printf_has_long_double=yes
c906108c 19100else
bec39cab
AC
19101 echo "$as_me: program exited with status $ac_status" >&5
19102echo "$as_me: failed program was:" >&5
19103sed 's/^/| /' conftest.$ac_ext >&5
19104
19105( exit $ac_status )
19106gdb_cv_printf_has_long_double=no
c906108c 19107fi
bec39cab 19108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19109fi
c906108c 19110fi
bc8bcb4b
MK
19111echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19112echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 19113if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
19114
19115cat >>confdefs.h <<\_ACEOF
97bf5e38 19116#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19117_ACEOF
97bf5e38
MK
19118
19119fi
97bf5e38 19120
bc8bcb4b 19121# Check if the compiler and runtime support scanning long doubles.
97bf5e38 19122
bec39cab
AC
19123echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19124echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19125if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19127else
19128 if test "$cross_compiling" = yes; then
19129 gdb_cv_scanf_has_long_double=no
19130else
bec39cab
AC
19131 cat >conftest.$ac_ext <<_ACEOF
19132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
bc8bcb4b
MK
19137#include <stdio.h>
19138int
19139main ()
19140{
19141char *buf = "3.141592653";
97bf5e38
MK
19142 long double f = 0;
19143 sscanf (buf, "%Lg", &f);
19144 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
19145 ;
19146 return 0;
97bf5e38 19147}
bec39cab
AC
19148_ACEOF
19149rm -f conftest$ac_exeext
19150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 (eval $ac_link) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
97bf5e38
MK
19160 gdb_cv_scanf_has_long_double=yes
19161else
bec39cab
AC
19162 echo "$as_me: program exited with status $ac_status" >&5
19163echo "$as_me: failed program was:" >&5
19164sed 's/^/| /' conftest.$ac_ext >&5
19165
19166( exit $ac_status )
19167gdb_cv_scanf_has_long_double=no
97bf5e38 19168fi
bec39cab 19169rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19170fi
c906108c 19171fi
bc8bcb4b
MK
19172echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19173echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 19174if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
19175
19176cat >>confdefs.h <<\_ACEOF
97bf5e38 19177#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19178_ACEOF
97bf5e38
MK
19179
19180fi
c906108c 19181
438013df
AO
19182case ${host_os} in
19183aix*)
bec39cab
AC
19184 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19185echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19186if test "${gdb_cv_bigtoc+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19188else
bec39cab 19189
438013df
AO
19190 SAVE_LDFLAGS=$LDFLAGS
19191
19192 case $GCC in
19193 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19194 *) gdb_cv_bigtoc=-bbigtoc ;;
19195 esac
19196
19197 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19198 cat >conftest.$ac_ext <<_ACEOF
19199/* confdefs.h. */
19200_ACEOF
19201cat confdefs.h >>conftest.$ac_ext
19202cat >>conftest.$ac_ext <<_ACEOF
19203/* end confdefs.h. */
438013df 19204
bec39cab
AC
19205int
19206main ()
19207{
438013df 19208int i;
bec39cab
AC
19209 ;
19210 return 0;
19211}
19212_ACEOF
19213rm -f conftest.$ac_objext conftest$ac_exeext
19214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19215 (eval $ac_link) 2>conftest.er1
19216 ac_status=$?
19217 grep -v '^ *+' conftest.er1 >conftest.err
19218 rm -f conftest.er1
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_c_werror_flag"
19223 || test ! -s conftest.err'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest$ac_exeext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
438013df
AO
19235 :
19236else
bec39cab
AC
19237 echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240gdb_cv_bigtoc=
438013df 19241fi
bec39cab
AC
19242rm -f conftest.err conftest.$ac_objext \
19243 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19244 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19245
bec39cab
AC
19246fi
19247echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19248echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19249 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19250 ;;
19251esac
19252
c906108c
SS
19253
19254
19255if test ${build} = ${host} -a ${host} = ${target} ; then
19256 case ${host_os} in
19257 hpux*)
bec39cab
AC
19258 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19259echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19260 if test -f /usr/include/dce/cma_config.h ; then
19261 if test "$GCC" = "yes" ; then
bec39cab
AC
19262 echo "$as_me:$LINENO: result: yes" >&5
19263echo "${ECHO_T}yes" >&6
19264 cat >>confdefs.h <<\_ACEOF
c906108c 19265#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19266_ACEOF
c906108c 19267
3483b318 19268 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19269 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19270 else
bec39cab
AC
19271 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19272echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19273 fi
19274 else
bec39cab
AC
19275 echo "$as_me:$LINENO: result: no" >&5
19276echo "${ECHO_T}no" >&6
c906108c
SS
19277 fi
19278 ;;
19279 solaris*)
d92419e5
JB
19280 # See if thread_db library is around for Solaris thread debugging.
19281 # Note that we must explicitly test for version 1 of the library
19282 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19283 # the same API.
bec39cab
AC
19284 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19285echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19286 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19287 echo "$as_me:$LINENO: result: yes" >&5
19288echo "${ECHO_T}yes" >&6
19289 cat >>confdefs.h <<\_ACEOF
c906108c 19290#define HAVE_THREAD_DB_LIB 1
bec39cab 19291_ACEOF
c906108c 19292
3483b318 19293 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19294 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19295
19296echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19297echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19298if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19300else
bec39cab 19301 ac_check_lib_save_LIBS=$LIBS
c906108c 19302LIBS="-ldl $LIBS"
bec39cab
AC
19303cat >conftest.$ac_ext <<_ACEOF
19304/* confdefs.h. */
19305_ACEOF
19306cat confdefs.h >>conftest.$ac_ext
19307cat >>conftest.$ac_ext <<_ACEOF
19308/* end confdefs.h. */
19309
c906108c 19310/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19311#ifdef __cplusplus
19312extern "C"
19313#endif
c906108c 19314/* We use char because int might match the return type of a gcc2
bec39cab
AC
19315 builtin and then its argument prototype would still apply. */
19316char dlopen ();
19317int
19318main ()
19319{
19320dlopen ();
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext conftest$ac_exeext
19326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try='test -z "$ac_c_werror_flag"
19335 || test ! -s conftest.err'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; } &&
19341 { ac_try='test -s conftest$ac_exeext'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 ac_cv_lib_dl_dlopen=yes
19348else
19349 echo "$as_me: failed program was:" >&5
19350sed 's/^/| /' conftest.$ac_ext >&5
19351
19352ac_cv_lib_dl_dlopen=no
19353fi
19354rm -f conftest.err conftest.$ac_objext \
19355 conftest$ac_exeext conftest.$ac_ext
19356LIBS=$ac_check_lib_save_LIBS
19357fi
19358echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19359echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19360if test $ac_cv_lib_dl_dlopen = yes; then
19361 cat >>confdefs.h <<_ACEOF
19362#define HAVE_LIBDL 1
19363_ACEOF
c906108c
SS
19364
19365 LIBS="-ldl $LIBS"
19366
c906108c
SS
19367fi
19368
19369 if test "$GCC" = "yes" ; then
19370 # The GNU linker requires the -export-dynamic option to make
19371 # all symbols visible in the dynamic symbol table.
19372 hold_ldflags=$LDFLAGS
bec39cab
AC
19373 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19374echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19375 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
19376 cat >conftest.$ac_ext <<_ACEOF
19377/* confdefs.h. */
19378_ACEOF
19379cat confdefs.h >>conftest.$ac_ext
19380cat >>conftest.$ac_ext <<_ACEOF
19381/* end confdefs.h. */
c906108c 19382
bec39cab
AC
19383int
19384main ()
19385{
c906108c 19386int i;
bec39cab
AC
19387 ;
19388 return 0;
19389}
19390_ACEOF
19391rm -f conftest.$ac_objext conftest$ac_exeext
19392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19393 (eval $ac_link) 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
19400 { ac_try='test -z "$ac_c_werror_flag"
19401 || test ! -s conftest.err'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } &&
19407 { ac_try='test -s conftest$ac_exeext'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
c906108c
SS
19413 found=yes
19414else
bec39cab
AC
19415 echo "$as_me: failed program was:" >&5
19416sed 's/^/| /' conftest.$ac_ext >&5
19417
19418found=no
c906108c 19419fi
bec39cab
AC
19420rm -f conftest.err conftest.$ac_objext \
19421 conftest$ac_exeext conftest.$ac_ext
c906108c 19422 LDFLAGS=$hold_ldflags
bec39cab
AC
19423 echo "$as_me:$LINENO: result: $found" >&5
19424echo "${ECHO_T}$found" >&6
c906108c
SS
19425 if test $found = yes; then
19426 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19427 fi
19428 fi
19429 # Sun randomly tweaked the prototypes in <proc_service.h>
19430 # at one point.
bec39cab
AC
19431 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19432echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19433 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19435else
bec39cab
AC
19436
19437 cat >conftest.$ac_ext <<_ACEOF
19438/* confdefs.h. */
19439_ACEOF
19440cat confdefs.h >>conftest.$ac_ext
19441cat >>conftest.$ac_ext <<_ACEOF
19442/* end confdefs.h. */
c906108c
SS
19443
19444 #include <proc_service.h>
19445 ps_err_e ps_pdwrite
19446 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19447
bec39cab
AC
19448int
19449main ()
19450{
19451
19452 ;
19453 return 0;
19454}
19455_ACEOF
19456rm -f conftest.$ac_objext
19457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458 (eval $ac_compile) 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest.$ac_objext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
c906108c
SS
19478 gdb_cv_proc_service_is_old=no
19479else
bec39cab
AC
19480 echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483gdb_cv_proc_service_is_old=yes
c906108c 19484fi
bec39cab
AC
19485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19486
c906108c
SS
19487fi
19488
bec39cab
AC
19489 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19490echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19491 if test $gdb_cv_proc_service_is_old = yes; then
bec39cab 19492 cat >>confdefs.h <<\_ACEOF
c906108c 19493#define PROC_SERVICE_IS_OLD 1
bec39cab 19494_ACEOF
c906108c
SS
19495
19496 fi
19497 else
bec39cab
AC
19498 echo "$as_me:$LINENO: result: no" >&5
19499echo "${ECHO_T}no" >&6
c906108c
SS
19500 fi
19501 ;;
d92419e5 19502 aix*)
bec39cab
AC
19503 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19504echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19505 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507else
19508 cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
d92419e5 19514#include <sys/pthdebug.h>
bec39cab
AC
19515int
19516main ()
19517{
d92419e5
JB
19518#ifndef PTHDB_VERSION_3
19519 #error
19520 #endif
bec39cab
AC
19521 ;
19522 return 0;
19523}
19524_ACEOF
19525rm -f conftest.$ac_objext
19526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19527 (eval $ac_compile) 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_c_werror_flag"
19535 || test ! -s conftest.err'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest.$ac_objext'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
d92419e5
JB
19547 gdb_cv_have_aix_thread_debug=yes
19548else
bec39cab
AC
19549 echo "$as_me: failed program was:" >&5
19550sed 's/^/| /' conftest.$ac_ext >&5
19551
19552gdb_cv_have_aix_thread_debug=no
d92419e5 19553fi
bec39cab 19554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19555fi
19556
bec39cab
AC
19557 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19558echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19559 if test $gdb_cv_have_aix_thread_debug = yes; then
19560 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19561 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19562 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19563 fi
19564 ;;
c906108c 19565 esac
bec39cab 19566
c906108c
SS
19567fi
19568
3f47be5c 19569if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19570 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19571echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19572if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19574else
19575 cat >conftest.$ac_ext <<_ACEOF
19576/* confdefs.h. */
19577_ACEOF
19578cat confdefs.h >>conftest.$ac_ext
19579cat >>conftest.$ac_ext <<_ACEOF
19580/* end confdefs.h. */
3f47be5c 19581#include <thread_db.h>
bec39cab
AC
19582int
19583main ()
19584{
3f47be5c 19585int i = TD_NOTALLOC;
bec39cab
AC
19586 ;
19587 return 0;
19588}
19589_ACEOF
19590rm -f conftest.$ac_objext
19591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19592 (eval $ac_compile) 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_c_werror_flag"
19600 || test ! -s conftest.err'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
3f47be5c
EZ
19612 gdb_cv_thread_db_h_has_td_notalloc=yes
19613else
bec39cab
AC
19614 echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617gdb_cv_thread_db_h_has_td_notalloc=no
19618
3f47be5c 19619fi
bec39cab 19620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19621
bec39cab
AC
19622fi
19623echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19624echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19625fi
19626if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19627
19628cat >>confdefs.h <<\_ACEOF
3f47be5c 19629#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19630_ACEOF
3f47be5c
EZ
19631
19632fi
19633
b757528f 19634if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19635 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19636echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19637if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639else
19640 cat >conftest.$ac_ext <<_ACEOF
19641/* confdefs.h. */
19642_ACEOF
19643cat confdefs.h >>conftest.$ac_ext
19644cat >>conftest.$ac_ext <<_ACEOF
19645/* end confdefs.h. */
b757528f 19646#include <sys/syscall.h>
bec39cab
AC
19647int
19648main ()
19649{
b757528f 19650int i = __NR_tkill;
bec39cab
AC
19651 ;
19652 return 0;
19653}
19654_ACEOF
19655rm -f conftest.$ac_objext
19656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_c_werror_flag"
19665 || test ! -s conftest.err'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } &&
19671 { ac_try='test -s conftest.$ac_objext'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
b757528f
JJ
19677 gdb_cv_sys_syscall_h_has_tkill=yes
19678else
bec39cab
AC
19679 echo "$as_me: failed program was:" >&5
19680sed 's/^/| /' conftest.$ac_ext >&5
19681
19682gdb_cv_sys_syscall_h_has_tkill=no
19683
b757528f 19684fi
bec39cab 19685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 19686
bec39cab
AC
19687fi
19688echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19689echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
19690fi
19691if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
19692
19693cat >>confdefs.h <<\_ACEOF
b757528f 19694#define HAVE_TKILL_SYSCALL 1
bec39cab 19695_ACEOF
b757528f
JJ
19696
19697fi
19698
fb40c209 19699
bec39cab 19700
030292b7
DJ
19701# Check whether --with-sysroot or --without-sysroot was given.
19702if test "${with_sysroot+set}" = set; then
19703 withval="$with_sysroot"
bec39cab 19704
030292b7 19705 case ${with_sysroot} in
715d1656 19706 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
19707 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19708 esac
19709
19710 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19711
19712 if test "x$exec_prefix" = xNONE; then
19713 if test "x$prefix" = xNONE; then
19714 test_prefix=/usr/local
19715 else
19716 test_prefix=$prefix
19717 fi
19718 else
19719 test_prefix=$exec_prefix
19720 fi
19721 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
19722 "${test_prefix}"|"${test_prefix}/"*|\
19723 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
19724 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19725 TARGET_SYSTEM_ROOT_DEFINE="$t"
19726 ;;
19727 esac
19728
19729else
bec39cab 19730
030292b7
DJ
19731 TARGET_SYSTEM_ROOT=
19732 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19733
bec39cab 19734fi;
030292b7
DJ
19735
19736
19737
3b851bce
AC
19738# NOTE: Don't add -Wall or -Wunused, they both include
19739# -Wunused-parameter which reports bogus warnings.
19740# NOTE: If you add to this list, remember to update
19741# gdb/doc/gdbint.texinfo.
1decb323 19742build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
0f0cffd2 19743-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
4566dfcf 19744-Wunused-label -Wunused-function"
d8038014 19745# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 19746# -Wunused-function -Wunused-variable -Wunused-value
93d56215 19747# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
19748# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19749# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19750# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
19751# Check whether --enable-build-warnings or --disable-build-warnings was given.
19752if test "${enable_build_warnings+set}" = set; then
19753 enableval="$enable_build_warnings"
1decb323 19754 case "${enableval}" in
c906108c
SS
19755 yes) ;;
19756 no) build_warnings="-w";;
19757 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19758 build_warnings="${build_warnings} ${t}";;
19759 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19760 build_warnings="${t} ${build_warnings}";;
19761 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19762esac
d4f3574e 19763if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 19764 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 19765fi
bec39cab 19766fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
19767if test "${enable_gdb_build_warnings+set}" = set; then
19768 enableval="$enable_gdb_build_warnings"
19769 case "${enableval}" in
19770 yes) ;;
19771 no) build_warnings="-w";;
19772 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19773 build_warnings="${build_warnings} ${t}";;
19774 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19775 build_warnings="${t} ${build_warnings}";;
19776 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19777esac
19778if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19779 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19780fi
bec39cab 19781fi; WARN_CFLAGS=""
104c1213 19782WERROR_CFLAGS=""
c906108c
SS
19783if test "x${build_warnings}" != x -a "x$GCC" = xyes
19784then
bec39cab
AC
19785 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19786echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
19787 # Separate out the -Werror flag as some files just cannot be
19788 # compiled with it enabled.
19789 for w in ${build_warnings}; do
19790 case $w in
19791 -Werr*) WERROR_CFLAGS=-Werror ;;
19792 *) # Check that GCC accepts it
4536bbc6
AC
19793 saved_CFLAGS="$CFLAGS"
19794 CFLAGS="$CFLAGS $w"
bec39cab
AC
19795 cat >conftest.$ac_ext <<_ACEOF
19796/* confdefs.h. */
19797_ACEOF
19798cat confdefs.h >>conftest.$ac_ext
19799cat >>conftest.$ac_ext <<_ACEOF
19800/* end confdefs.h. */
4536bbc6 19801
bec39cab
AC
19802int
19803main ()
19804{
4536bbc6 19805
bec39cab
AC
19806 ;
19807 return 0;
19808}
19809_ACEOF
19810rm -f conftest.$ac_objext
19811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19812 (eval $ac_compile) 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -z "$ac_c_werror_flag"
19820 || test ! -s conftest.err'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest.$ac_objext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
4536bbc6
AC
19832 WARN_CFLAGS="${WARN_CFLAGS} $w"
19833else
bec39cab
AC
19834 echo "$as_me: failed program was:" >&5
19835sed 's/^/| /' conftest.$ac_ext >&5
19836
4536bbc6 19837fi
bec39cab 19838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 19839 CFLAGS="$saved_CFLAGS"
746a987d
AC
19840 esac
19841 done
bec39cab
AC
19842 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19843echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
19844fi
19845
19846
104c1213 19847
7a292a7a 19848# In the Cygwin environment, we need some additional flags.
bec39cab
AC
19849echo "$as_me:$LINENO: checking for cygwin" >&5
19850echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19851if test "${gdb_cv_os_cygwin+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854 cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h. */
7a292a7a
SS
19860
19861#if defined (__CYGWIN__) || defined (__CYGWIN32__)
19862lose
19863#endif
bec39cab 19864_ACEOF
7a292a7a 19865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 19866 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
19867 gdb_cv_os_cygwin=yes
19868else
7a292a7a
SS
19869 gdb_cv_os_cygwin=no
19870fi
19871rm -f conftest*
19872
19873fi
bec39cab
AC
19874echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19875echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 19876
aff38e61
AC
19877
19878SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19879case ${host} in
95cbc983
AC
19880 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19881 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
aff38e61
AC
19882esac
19883
19884
cd0fc7c3
SS
19885# libreadline needs libuser32.a in a cygwin environment
19886WIN32LIBS=
19887if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
19888 WIN32LIBS="-luser32"
19889 case "${target}" in
19890 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19891 ;;
19892 esac
cd0fc7c3 19893fi
c906108c 19894
7a292a7a 19895
3fc11d3e
JM
19896LIBGUI="../libgui/src/libgui.a"
19897GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19898
19899
7a292a7a 19900
3fc11d3e
JM
19901WIN32LDAPP=
19902
19903
19904
d91670b9
CV
19905case "${host}" in
19906*-*-cygwin*)
19907 configdir="win"
19908 ;;
19909*)
19910 configdir="unix"
19911 ;;
19912esac
3fc11d3e
JM
19913
19914GDBTKLIBS=
19915if test "${enable_gdbtk}" = "yes"; then
19916
d1c3b63a
KS
19917 # Gdbtk must have an absolute path to srcdir in order to run
19918 # properly when not installed.
19919 here=`pwd`
19920 cd ${srcdir}
19921 GDBTK_SRC_DIR=`pwd`
19922 cd $here
19923
bec39cab 19924
3fc11d3e
JM
19925#
19926# Ok, lets find the tcl configuration
bec39cab 19927# First, look for one uninstalled.
3fc11d3e
JM
19928# the alternative search directory is invoked by --with-tclconfig
19929#
19930
19931if test x"${no_tcl}" = x ; then
19932 # we reset no_tcl in case something fails here
19933 no_tcl=true
bec39cab
AC
19934
19935# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
19936if test "${with_tclconfig+set}" = set; then
19937 withval="$with_tclconfig"
19938 with_tclconfig=${withval}
bec39cab
AC
19939fi;
19940 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19941echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19942 if test "${ac_cv_c_tclconfig+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 19944else
bec39cab 19945
3fc11d3e
JM
19946
19947 # First check to see if --with-tclconfig was specified.
19948 if test x"${with_tclconfig}" != x ; then
19949 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19950 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19951 else
bec39cab
AC
19952 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19953echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19954 { (exit 1); exit 1; }; }
3fc11d3e
JM
19955 fi
19956 fi
19957
19958 # then check for a private Tcl installation
19959 if test x"${ac_cv_c_tclconfig}" = x ; then
19960 for i in \
19961 ../tcl \
19962 `ls -dr ../tcl[7-9]* 2>/dev/null` \
19963 ../../tcl \
19964 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
19965 ../../../tcl \
19966 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
19967 if test -f "$i/${configdir}/tclConfig.sh" ; then
19968 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19969 break
19970 fi
19971 done
19972 fi
19973 # check in a few common install locations
19974 if test x"${ac_cv_c_tclconfig}" = x ; then
19975 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
19976 if test -f "$i/tclConfig.sh" ; then
19977 ac_cv_c_tclconfig=`(cd $i; pwd)`
19978 break
19979 fi
19980 done
19981 fi
19982 # check in a few other private locations
19983 if test x"${ac_cv_c_tclconfig}" = x ; then
19984 for i in \
19985 ${srcdir}/../tcl \
19986 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
19987 if test -f "$i/${configdir}/tclConfig.sh" ; then
19988 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19989 break
19990 fi
19991 done
19992 fi
bec39cab 19993
3fc11d3e
JM
19994fi
19995
19996 if test x"${ac_cv_c_tclconfig}" = x ; then
19997 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
19998 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19999echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
20000 else
20001 no_tcl=
20002 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
20003 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20004echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
20005 fi
20006fi
20007
20008 if test -z "${no_tcl}"; then
bec39cab 20009
3fc11d3e
JM
20010 . $TCLCONFIG
20011
3fc11d3e
JM
20012
20013
20014
20015
3fc11d3e
JM
20016
20017
20018
bec39cab
AC
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
3fc11d3e
JM
20038#
20039# Ok, lets find the tk configuration
bec39cab 20040# First, look for one uninstalled.
3fc11d3e
JM
20041# the alternative search directory is invoked by --with-tkconfig
20042#
20043
20044if test x"${no_tk}" = x ; then
20045 # we reset no_tk in case something fails here
20046 no_tk=true
bec39cab
AC
20047
20048# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20049if test "${with_tkconfig+set}" = set; then
20050 withval="$with_tkconfig"
20051 with_tkconfig=${withval}
bec39cab
AC
20052fi;
20053 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20054echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20055 if test "${ac_cv_c_tkconfig+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20057else
bec39cab 20058
3fc11d3e
JM
20059
20060 # First check to see if --with-tkconfig was specified.
20061 if test x"${with_tkconfig}" != x ; then
20062 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20063 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20064 else
bec39cab
AC
20065 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20066echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20067 { (exit 1); exit 1; }; }
3fc11d3e
JM
20068 fi
20069 fi
20070
20071 # then check for a private Tk library
20072 if test x"${ac_cv_c_tkconfig}" = x ; then
20073 for i in \
20074 ../tk \
20075 `ls -dr ../tk[4-9]* 2>/dev/null` \
20076 ../../tk \
20077 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20078 ../../../tk \
20079 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20080 if test -f "$i/${configdir}/tkConfig.sh" ; then
20081 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20082 break
20083 fi
20084 done
20085 fi
20086 # check in a few common install locations
20087 if test x"${ac_cv_c_tkconfig}" = x ; then
20088 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20089 if test -f "$i/tkConfig.sh" ; then
20090 ac_cv_c_tkconfig=`(cd $i; pwd)`
20091 break
20092 fi
20093 done
20094 fi
20095 # check in a few other private locations
20096 if test x"${ac_cv_c_tkconfig}" = x ; then
20097 for i in \
20098 ${srcdir}/../tk \
20099 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20100 if test -f "$i/${configdir}/tkConfig.sh" ; then
20101 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20102 break
20103 fi
20104 done
20105 fi
bec39cab 20106
3fc11d3e
JM
20107fi
20108
20109 if test x"${ac_cv_c_tkconfig}" = x ; then
20110 TKCONFIG="# no Tk configs found"
bec39cab
AC
20111 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20112echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20113 else
20114 no_tk=
20115 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20116 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20117echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20118 fi
20119fi
20120
20121
20122
dd2504ab
JM
20123 # now look for Tcl library stuff
20124
d91670b9 20125 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20126
20127 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20128
3fc11d3e
JM
20129 # If $no_tk is nonempty, then we can't do Tk, and there is no
20130 # point to doing Tcl.
20131 if test -z "${no_tk}"; then
bec39cab 20132
3fc11d3e
JM
20133 if test -f "$TKCONFIG" ; then
20134 . $TKCONFIG
20135 fi
20136
3fc11d3e 20137
3fc11d3e
JM
20138
20139
3fc11d3e 20140
bec39cab
AC
20141
20142
20143
20144
20145
20146
20147
20148
20149
3fc11d3e
JM
20150#
20151# Ok, lets find the tcl source trees so we can use the headers
20152# Warning: transition of version 9 to 10 will break this algorithm
20153# because 10 sorts before 9. We also look for just tcl. We have to
20154# be careful that we don't match stuff like tclX by accident.
20155# the alternative search directory is involked by --with-tclinclude
20156#
20157
20158no_tcl=true
bec39cab
AC
20159echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20160echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20161
3fc11d3e
JM
20162# Check whether --with-tclinclude or --without-tclinclude was given.
20163if test "${with_tclinclude+set}" = set; then
20164 withval="$with_tclinclude"
20165 with_tclinclude=${withval}
bec39cab
AC
20166fi;
20167if test "${ac_cv_c_tclh+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20169else
bec39cab 20170
3fc11d3e
JM
20171# first check to see if --with-tclinclude was specified
20172if test x"${with_tclinclude}" != x ; then
20173 if test -f ${with_tclinclude}/tclInt.h ; then
20174 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20175 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20176 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20177 else
bec39cab
AC
20178 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20179echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20180 { (exit 1); exit 1; }; }
3fc11d3e
JM
20181 fi
20182fi
20183
20184# next check if it came with Tcl configuration file
20185if test x"${ac_cv_c_tclconfig}" = x ; then
20186 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20187 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20188 fi
20189fi
20190
20191# next check in private source directory
20192#
20193# since ls returns lowest version numbers first, reverse its output
20194if test x"${ac_cv_c_tclh}" = x ; then
20195 for i in \
20196 ${srcdir}/../tcl \
20197 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20198 ${srcdir}/../../tcl \
20199 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20200 ${srcdir}/../../../tcl \
20201 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20202 if test -f $i/generic/tclInt.h ; then
20203 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20204 break
20205 fi
20206 done
20207fi
20208# finally check in a few common install locations
20209#
20210# since ls returns lowest version numbers first, reverse its output
20211if test x"${ac_cv_c_tclh}" = x ; then
20212 for i in \
20213 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20214 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20215 /usr/local/src/tcl \
20216 /usr/local/lib/tcl \
20217 ${prefix}/include ; do
20218 if test -f $i/generic/tclInt.h ; then
20219 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20220 break
20221 fi
20222 done
20223fi
20224# see if one is installed
20225if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20226 if test "${ac_cv_header_tclInt_h+set}" = set; then
20227 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20228echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20229if test "${ac_cv_header_tclInt_h+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231fi
20232echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20233echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20234else
20235 # Is the header compilable?
20236echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20237echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20238cat >conftest.$ac_ext <<_ACEOF
20239/* confdefs.h. */
20240_ACEOF
20241cat confdefs.h >>conftest.$ac_ext
20242cat >>conftest.$ac_ext <<_ACEOF
20243/* end confdefs.h. */
20244$ac_includes_default
20245#include <tclInt.h>
20246_ACEOF
20247rm -f conftest.$ac_objext
20248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20249 (eval $ac_compile) 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } &&
20256 { ac_try='test -z "$ac_c_werror_flag"
20257 || test ! -s conftest.err'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } &&
20263 { ac_try='test -s conftest.$ac_objext'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269 ac_header_compiler=yes
20270else
20271 echo "$as_me: failed program was:" >&5
20272sed 's/^/| /' conftest.$ac_ext >&5
20273
20274ac_header_compiler=no
20275fi
20276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20278echo "${ECHO_T}$ac_header_compiler" >&6
20279
20280# Is the header present?
20281echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20282echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20283cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h. */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h. */
3fc11d3e 20289#include <tclInt.h>
bec39cab
AC
20290_ACEOF
20291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } >/dev/null; then
20299 if test -s conftest.err; then
20300 ac_cpp_err=$ac_c_preproc_warn_flag
20301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20302 else
20303 ac_cpp_err=
20304 fi
20305else
20306 ac_cpp_err=yes
3fc11d3e 20307fi
bec39cab
AC
20308if test -z "$ac_cpp_err"; then
20309 ac_header_preproc=yes
20310else
20311 echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 ac_header_preproc=no
3fc11d3e 20315fi
bec39cab
AC
20316rm -f conftest.err conftest.$ac_ext
20317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20318echo "${ECHO_T}$ac_header_preproc" >&6
20319
20320# So? What about this header?
20321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20322 yes:no: )
20323 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20324echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20325 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20326echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20327 ac_header_preproc=yes
20328 ;;
20329 no:yes:* )
20330 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20331echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20333echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20334 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20335echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20337echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20339echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20341echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20342 (
20343 cat <<\_ASBOX
20344## ------------------------------------------ ##
20345## Report this to the AC_PACKAGE_NAME lists. ##
20346## ------------------------------------------ ##
20347_ASBOX
20348 ) |
20349 sed "s/^/$as_me: WARNING: /" >&2
20350 ;;
20351esac
20352echo "$as_me:$LINENO: checking for tclInt.h" >&5
20353echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20354if test "${ac_cv_header_tclInt_h+set}" = set; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20356else
20357 ac_cv_header_tclInt_h=$ac_header_preproc
20358fi
20359echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20360echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20361
20362fi
20363if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20364 ac_cv_c_tclh=installed
20365else
bec39cab 20366 ac_cv_c_tclh=""
3fc11d3e
JM
20367fi
20368
bec39cab 20369
3fc11d3e
JM
20370fi
20371
20372fi
20373
20374if test x"${ac_cv_c_tclh}" = x ; then
20375 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20376 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20377echo "$as_me: error: Can't find Tcl private headers" >&2;}
20378 { (exit 1); exit 1; }; }
3fc11d3e
JM
20379fi
20380if test x"${ac_cv_c_tclh}" != x ; then
20381 no_tcl=""
20382 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20383 echo "$as_me:$LINENO: result: is installed" >&5
20384echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20385 TCLHDIR=""
20386 else
bec39cab
AC
20387 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20388echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20389 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20390 TCLHDIR="-I${ac_cv_c_tclh}"
20391 fi
20392fi
20393
20394
20395
bec39cab 20396
3fc11d3e
JM
20397#
20398# Ok, lets find the tk source trees so we can use the headers
20399# If the directory (presumably symlink) named "tk" exists, use that one
20400# in preference to any others. Same logic is used when choosing library
20401# and again with Tcl. The search order is the best place to look first, then in
20402# decreasing significance. The loop breaks if the trigger file is found.
20403# Note the gross little conversion here of srcdir by cd'ing to the found
20404# directory. This converts the path from a relative to an absolute, so
20405# recursive cache variables for the path will work right. We check all
20406# the possible paths in one loop rather than many seperate loops to speed
20407# things up.
20408# the alternative search directory is involked by --with-tkinclude
20409#
20410no_tk=true
bec39cab
AC
20411echo "$as_me:$LINENO: checking for Tk private headers" >&5
20412echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20413
3fc11d3e
JM
20414# Check whether --with-tkinclude or --without-tkinclude was given.
20415if test "${with_tkinclude+set}" = set; then
20416 withval="$with_tkinclude"
20417 with_tkinclude=${withval}
bec39cab
AC
20418fi;
20419if test "${ac_cv_c_tkh+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20421else
bec39cab 20422
3fc11d3e
JM
20423# first check to see if --with-tkinclude was specified
20424if test x"${with_tkinclude}" != x ; then
20425 if test -f ${with_tkinclude}/tk.h ; then
20426 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20427 elif test -f ${with_tkinclude}/generic/tk.h ; then
20428 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20429 else
bec39cab
AC
20430 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20431echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20432 { (exit 1); exit 1; }; }
3fc11d3e
JM
20433 fi
20434fi
20435
20436# next check if it came with Tk configuration file
20437if test x"${ac_cv_c_tkconfig}" = x ; then
20438 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20439 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20440 fi
20441fi
20442
20443# next check in private source directory
20444#
20445# since ls returns lowest version numbers first, reverse its output
20446if test x"${ac_cv_c_tkh}" = x ; then
20447 for i in \
20448 ${srcdir}/../tk \
20449 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20450 ${srcdir}/../../tk \
20451 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20452 ${srcdir}/../../../tk \
20453 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20454 if test -f $i/generic/tk.h ; then
20455 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20456 break
20457 fi
20458 done
20459fi
20460# finally check in a few common install locations
20461#
20462# since ls returns lowest version numbers first, reverse its output
20463if test x"${ac_cv_c_tkh}" = x ; then
20464 for i in \
20465 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20466 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20467 /usr/local/src/tk \
20468 /usr/local/lib/tk \
20469 ${prefix}/include ; do
20470 if test -f $i/generic/tk.h ; then
20471 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20472 break
20473 fi
20474 done
20475fi
20476# see if one is installed
20477if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20478 if test "${ac_cv_header_tk_h+set}" = set; then
20479 echo "$as_me:$LINENO: checking for tk.h" >&5
20480echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20481if test "${ac_cv_header_tk_h+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20483fi
20484echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20485echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20486else
20487 # Is the header compilable?
20488echo "$as_me:$LINENO: checking tk.h usability" >&5
20489echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20490cat >conftest.$ac_ext <<_ACEOF
20491/* confdefs.h. */
20492_ACEOF
20493cat confdefs.h >>conftest.$ac_ext
20494cat >>conftest.$ac_ext <<_ACEOF
20495/* end confdefs.h. */
20496$ac_includes_default
3fc11d3e 20497#include <tk.h>
bec39cab
AC
20498_ACEOF
20499rm -f conftest.$ac_objext
20500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_header_compiler=yes
20522else
20523 echo "$as_me: failed program was:" >&5
20524sed 's/^/| /' conftest.$ac_ext >&5
20525
20526ac_header_compiler=no
20527fi
20528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20530echo "${ECHO_T}$ac_header_compiler" >&6
20531
20532# Is the header present?
20533echo "$as_me:$LINENO: checking tk.h presence" >&5
20534echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20535cat >conftest.$ac_ext <<_ACEOF
20536/* confdefs.h. */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>conftest.$ac_ext <<_ACEOF
20540/* end confdefs.h. */
20541#include <tk.h>
20542_ACEOF
20543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } >/dev/null; then
20551 if test -s conftest.err; then
20552 ac_cpp_err=$ac_c_preproc_warn_flag
20553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20554 else
20555 ac_cpp_err=
20556 fi
20557else
20558 ac_cpp_err=yes
3fc11d3e 20559fi
bec39cab
AC
20560if test -z "$ac_cpp_err"; then
20561 ac_header_preproc=yes
20562else
20563 echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 ac_header_preproc=no
20567fi
20568rm -f conftest.err conftest.$ac_ext
20569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20570echo "${ECHO_T}$ac_header_preproc" >&6
20571
20572# So? What about this header?
20573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20574 yes:no: )
20575 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20576echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20578echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20579 ac_header_preproc=yes
20580 ;;
20581 no:yes:* )
20582 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20583echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20584 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20585echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20587echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20589echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20591echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20593echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20594 (
20595 cat <<\_ASBOX
20596## ------------------------------------------ ##
20597## Report this to the AC_PACKAGE_NAME lists. ##
20598## ------------------------------------------ ##
20599_ASBOX
20600 ) |
20601 sed "s/^/$as_me: WARNING: /" >&2
20602 ;;
20603esac
20604echo "$as_me:$LINENO: checking for tk.h" >&5
20605echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20606if test "${ac_cv_header_tk_h+set}" = set; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20608else
20609 ac_cv_header_tk_h=$ac_header_preproc
20610fi
20611echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20612echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20613
3fc11d3e 20614fi
bec39cab 20615if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
20616 ac_cv_c_tkh=installed
20617else
bec39cab 20618 ac_cv_c_tkh=""
3fc11d3e
JM
20619fi
20620
bec39cab 20621
3fc11d3e
JM
20622fi
20623
20624fi
20625
20626if test x"${ac_cv_c_tkh}" != x ; then
20627 no_tk=""
20628 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
20629 echo "$as_me:$LINENO: result: is installed" >&5
20630echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20631 TKHDIR=""
20632 else
bec39cab
AC
20633 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20634echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
20635 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20636 TKHDIR="-I${ac_cv_c_tkh}"
20637 fi
20638else
20639 TKHDIR="# no Tk directory found"
bec39cab
AC
20640 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20641echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
20642 no_tk=true
20643fi
20644
20645
20646
bec39cab
AC
20647
20648echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20649echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20650if test x"${ac_cv_c_itclh}" = x ; then
20651 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20652 if test -f $i/generic/itcl.h ; then
20653 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20654 break
20655 fi
20656 done
20657fi
20658if test x"${ac_cv_c_itclh}" = x ; then
20659 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
20660 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20661echo "$as_me: error: Can't find Itcl private headers" >&2;}
20662 { (exit 1); exit 1; }; }
3fc11d3e
JM
20663fi
20664if test x"${ac_cv_c_itclh}" != x ; then
20665 ITCLHDIR="-I${ac_cv_c_itclh}"
20666fi
20667# should always be here
20668# ITCLLIB="../itcl/itcl/unix/libitcl.a"
20669
20670#AC_SUBST(ITCLLIB)
20671
bec39cab
AC
20672
20673echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20674echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20675if test x"${ac_cv_c_itkh}" = x ; then
20676 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20677 if test -f $i/generic/itk.h ; then
20678 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20679 break
20680 fi
20681 done
20682fi
20683if test x"${ac_cv_c_itkh}" = x ; then
20684 ITKHDIR="# no Itk private headers found"
bec39cab
AC
20685 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20686echo "$as_me: error: Can't find Itk private headers" >&2;}
20687 { (exit 1); exit 1; }; }
3fc11d3e
JM
20688fi
20689if test x"${ac_cv_c_itkh}" != x ; then
20690 ITKHDIR="-I${ac_cv_c_itkh}"
20691fi
20692# should always be here
20693# ITKLIB="../itcl/itk/unix/libitk.a"
20694
20695#AC_SUBST(ITKLIB)
20696
3fc11d3e 20697
dd2504ab
JM
20698
20699 # now look for Tk library stuff
20700
d91670b9 20701 tkdir="../tk/${configdir}/"
dd2504ab
JM
20702
20703 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20704
3fc11d3e
JM
20705 # now look for Itcl library stuff
20706
bec39cab 20707
3fc11d3e
JM
20708#
20709# Ok, lets find the itcl configuration
bec39cab 20710# First, look for one uninstalled.
3fc11d3e
JM
20711# the alternative search directory is invoked by --with-itclconfig
20712#
20713
20714if test x"${no_itcl}" = x ; then
20715 # we reset no_itcl in case something fails here
20716 no_itcl=true
bec39cab
AC
20717
20718# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
20719if test "${with_itclconfig+set}" = set; then
20720 withval="$with_itclconfig"
20721 with_itclconfig=${withval}
bec39cab
AC
20722fi;
20723 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20724echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20725 if test "${ac_cv_c_itclconfig+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20727else
bec39cab 20728
3fc11d3e
JM
20729
20730 # First check to see if --with-itclconfig was specified.
20731 if test x"${with_itclconfig}" != x ; then
20732 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20733 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20734 else
bec39cab
AC
20735 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20736echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20737 { (exit 1); exit 1; }; }
3fc11d3e
JM
20738 fi
20739 fi
20740
20741 # then check for a private Itcl library
20742 if test x"${ac_cv_c_itclconfig}" = x ; then
20743 for i in \
20744 ../itcl/itcl \
20745 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20746 ../../itcl \
20747 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20748 ../../../itcl \
20749 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20750 if test -f "$i/itclConfig.sh" ; then
20751 ac_cv_c_itclconfig=`(cd $i; pwd)`
20752 break
20753 fi
20754 done
20755 fi
20756 # check in a few common install locations
20757 if test x"${ac_cv_c_itclconfig}" = x ; then
20758 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20759 if test -f "$i/itclConfig.sh" ; then
20760 ac_cv_c_itclconfig=`(cd $i; pwd)`
20761 break
20762 fi
20763 done
20764 fi
20765 # check in a few other private locations
20766 if test x"${ac_cv_c_itclconfig}" = x ; then
20767 for i in \
20768 ${srcdir}/../itcl/itcl \
20769 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20770 if test -f "$i/itclConfig.sh" ; then
20771 ac_cv_c_itclconfig=`(cd $i; pwd)`
20772 break
20773 fi
20774 done
20775 fi
bec39cab 20776
3fc11d3e
JM
20777fi
20778
20779 if test x"${ac_cv_c_itclconfig}" = x ; then
20780 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
20781 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20782echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
20783 else
20784 no_itcl=
20785 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
20786 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20787echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
20788 fi
20789fi
20790
20791 if test -z "${no_itcl}"; then
bec39cab 20792
3fc11d3e
JM
20793 if test -f "$ITCLCONFIG" ; then
20794 . $ITCLCONFIG
20795 fi
20796
3fc11d3e 20797
3fc11d3e
JM
20798
20799
bec39cab
AC
20800
20801
20802
20803
20804
20805
20806
3fc11d3e
JM
20807
20808 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 20809 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
20810 fi
20811
bec39cab 20812
3fc11d3e 20813 # now look for Itk library stuff
bec39cab 20814
3fc11d3e
JM
20815#
20816# Ok, lets find the itk configuration
bec39cab 20817# First, look for one uninstalled.
3fc11d3e
JM
20818# the alternative search directory is invoked by --with-itkconfig
20819#
20820
20821if test x"${no_itk}" = x ; then
20822 # we reset no_itk in case something fails here
20823 no_itk=true
bec39cab
AC
20824
20825# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
20826if test "${with_itkconfig+set}" = set; then
20827 withval="$with_itkconfig"
20828 with_itkconfig=${withval}
bec39cab
AC
20829fi;
20830 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20831echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20832 if test "${ac_cv_c_itkconfig+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20834else
bec39cab 20835
3fc11d3e
JM
20836
20837 # First check to see if --with-itkconfig was specified.
20838 if test x"${with_itkconfig}" != x ; then
20839 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20840 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20841 else
bec39cab
AC
20842 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20843echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20844 { (exit 1); exit 1; }; }
3fc11d3e
JM
20845 fi
20846 fi
20847
20848 # then check for a private Itk library
20849 if test x"${ac_cv_c_itkconfig}" = x ; then
20850 for i in \
20851 ../itcl/itk \
20852 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20853 ../../itk \
20854 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20855 ../../../itk \
20856 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20857 if test -f "$i/itkConfig.sh" ; then
20858 ac_cv_c_itkconfig=`(cd $i; pwd)`
20859 break
20860 fi
20861 done
20862 fi
20863 # check in a few common install locations
20864 if test x"${ac_cv_c_itkconfig}" = x ; then
20865 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20866 if test -f "$i/itkConfig.sh" ; then
20867 ac_cv_c_itkconfig=`(cd $i; pwd)`
20868 break
20869 fi
20870 done
20871 fi
20872 # check in a few other private locations
20873 if test x"${ac_cv_c_itkconfig}" = x ; then
20874 for i in \
20875 ${srcdir}/../itcl/itk \
20876 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20877 if test -f "$i/itkConfig.sh" ; then
20878 ac_cv_c_itkconfig=`(cd $i; pwd)`
20879 break
20880 fi
20881 done
20882 fi
bec39cab 20883
3fc11d3e
JM
20884fi
20885
20886 if test x"${ac_cv_c_itkconfig}" = x ; then
20887 ITKCONFIG="# no Itk configs found"
bec39cab
AC
20888 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20889echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
20890 else
20891 no_itk=
20892 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
20893 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20894echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
20895 fi
20896fi
20897
20898
bec39cab
AC
20899 if test -z "${no_itcl}"; then
20900
20901 if test -f "$ITKCONFIG" ; then
20902 . $ITKCONFIG
20903 fi
20904
20905
20906
20907
20908
20909
3fc11d3e 20910
3fc11d3e 20911
3fc11d3e
JM
20912
20913
3fc11d3e
JM
20914
20915
3fc11d3e 20916 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 20917 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
20918 fi
20919
4226a5a5 20920 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
20921 # Tcl/Tk 8.1 require -fwritable strings. I don't
20922 # know whether 8.2 will or not, but I bet it will.
20923 # I don't have to worry about 7.x since we don't support it.
20924 GDBTK_CFLAGS=""
20925 if test "$GCC" = "yes"; then
20926 if test "$TCL_VERSION" != "8.0" ; then
20927 GDBTK_CFLAGS="-fwritable-strings"
20928 fi
20929 fi
20930
20931 # Include some libraries that Tcl and Tk want.
b2a1bd4f 20932 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
20933 # Yes, the ordering seems wrong here. But it isn't.
20934 # TK_LIBS is the list of libraries that need to be linked
20935 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20936 # were in LIBS then any link tests after this point would
20937 # try to include things like `$(LIBGUI)', which wouldn't work.
20938 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
20939
20940 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20941 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20942 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
20943 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20944 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20945 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20946 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
20947
20948 if test x$gdb_cv_os_cygwin = xyes; then
20949 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20950 WIN32LDAPP="-Wl,--subsystem,console"
20951 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20952 fi
20953 fi
20954 fi
ffc6a242 20955
bec39cab
AC
20956
20957
20958subdirs="$subdirs gdbtk"
3ace7edb 20959
3fc11d3e
JM
20960fi
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
dd2504ab 20974
bec39cab
AC
20975echo "$as_me:$LINENO: checking for X" >&5
20976echo $ECHO_N "checking for X... $ECHO_C" >&6
20977
c906108c
SS
20978
20979# Check whether --with-x or --without-x was given.
20980if test "${with_x+set}" = set; then
20981 withval="$with_x"
c906108c 20982
bec39cab 20983fi;
c906108c
SS
20984# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20985if test "x$with_x" = xno; then
20986 # The user explicitly disabled X.
20987 have_x=disabled
20988else
20989 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20990 # Both variables are already set.
20991 have_x=yes
20992 else
bec39cab
AC
20993 if test "${ac_cv_have_x+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20995else
20996 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
20997ac_x_includes=no ac_x_libraries=no
20998rm -fr conftest.dir
20999if mkdir conftest.dir; then
21000 cd conftest.dir
c906108c 21001 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 21002 cat >Imakefile <<'_ACEOF'
c906108c
SS
21003acfindx:
21004 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 21005_ACEOF
c906108c
SS
21006 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21007 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21008 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21009 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21010 for ac_extension in a so sl; do
21011 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
21012 test -f $ac_im_libdir/libX11.$ac_extension; then
21013 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
21014 fi
21015 done
21016 # Screen out bogus values from the imake configuration. They are
21017 # bogus both because they are the default anyway, and because
21018 # using them would break gcc on systems where it needs fixed includes.
bec39cab 21019 case $ac_im_incroot in
c906108c 21020 /usr/include) ;;
bec39cab 21021 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 21022 esac
bec39cab 21023 case $ac_im_usrlibdir in
c906108c 21024 /usr/lib | /lib) ;;
bec39cab 21025 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
21026 esac
21027 fi
21028 cd ..
bec39cab 21029 rm -fr conftest.dir
c906108c
SS
21030fi
21031
bec39cab
AC
21032# Standard set of common directories for X headers.
21033# Check X11 before X11Rn because it is often a symlink to the current release.
21034ac_x_header_dirs='
21035/usr/X11/include
21036/usr/X11R6/include
21037/usr/X11R5/include
21038/usr/X11R4/include
21039
21040/usr/include/X11
21041/usr/include/X11R6
21042/usr/include/X11R5
21043/usr/include/X11R4
21044
21045/usr/local/X11/include
21046/usr/local/X11R6/include
21047/usr/local/X11R5/include
21048/usr/local/X11R4/include
21049
21050/usr/local/include/X11
21051/usr/local/include/X11R6
21052/usr/local/include/X11R5
21053/usr/local/include/X11R4
21054
21055/usr/X386/include
21056/usr/x386/include
21057/usr/XFree86/include/X11
21058
21059/usr/include
21060/usr/local/include
21061/usr/unsupported/include
21062/usr/athena/include
21063/usr/local/x11r5/include
21064/usr/lpp/Xamples/include
21065
21066/usr/openwin/include
21067/usr/openwin/share/include'
21068
21069if test "$ac_x_includes" = no; then
21070 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 21071 # First, try using that file with no special directory specified.
bec39cab
AC
21072 cat >conftest.$ac_ext <<_ACEOF
21073/* confdefs.h. */
21074_ACEOF
21075cat confdefs.h >>conftest.$ac_ext
21076cat >>conftest.$ac_ext <<_ACEOF
21077/* end confdefs.h. */
21078#include <X11/Intrinsic.h>
21079_ACEOF
21080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21082 ac_status=$?
21083 grep -v '^ *+' conftest.er1 >conftest.err
21084 rm -f conftest.er1
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } >/dev/null; then
21088 if test -s conftest.err; then
21089 ac_cpp_err=$ac_c_preproc_warn_flag
21090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21091 else
21092 ac_cpp_err=
21093 fi
21094else
21095 ac_cpp_err=yes
21096fi
21097if test -z "$ac_cpp_err"; then
c906108c
SS
21098 # We can compile using X headers with no special include directory.
21099ac_x_includes=
21100else
bec39cab
AC
21101 echo "$as_me: failed program was:" >&5
21102sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 for ac_dir in $ac_x_header_dirs; do
21105 if test -r "$ac_dir/X11/Intrinsic.h"; then
21106 ac_x_includes=$ac_dir
21107 break
21108 fi
21109done
c906108c 21110fi
bec39cab
AC
21111rm -f conftest.err conftest.$ac_ext
21112fi # $ac_x_includes = no
c906108c 21113
bec39cab 21114if test "$ac_x_libraries" = no; then
c906108c 21115 # Check for the libraries.
c906108c
SS
21116 # See if we find them without any special options.
21117 # Don't add to $LIBS permanently.
bec39cab
AC
21118 ac_save_LIBS=$LIBS
21119 LIBS="-lXt $LIBS"
21120 cat >conftest.$ac_ext <<_ACEOF
21121/* confdefs.h. */
21122_ACEOF
21123cat confdefs.h >>conftest.$ac_ext
21124cat >>conftest.$ac_ext <<_ACEOF
21125/* end confdefs.h. */
21126#include <X11/Intrinsic.h>
21127int
21128main ()
21129{
21130XtMalloc (0)
21131 ;
21132 return 0;
21133}
21134_ACEOF
21135rm -f conftest.$ac_objext conftest$ac_exeext
21136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21137 (eval $ac_link) 2>conftest.er1
21138 ac_status=$?
21139 grep -v '^ *+' conftest.er1 >conftest.err
21140 rm -f conftest.er1
21141 cat conftest.err >&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } &&
21144 { ac_try='test -z "$ac_c_werror_flag"
21145 || test ! -s conftest.err'
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; } &&
21151 { ac_try='test -s conftest$ac_exeext'
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 LIBS=$ac_save_LIBS
c906108c
SS
21158# We can link X programs with no special library path.
21159ac_x_libraries=
21160else
bec39cab
AC
21161 echo "$as_me: failed program was:" >&5
21162sed 's/^/| /' conftest.$ac_ext >&5
21163
21164LIBS=$ac_save_LIBS
21165for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21166do
bec39cab 21167 # Don't even attempt the hair of trying to link an X program!
c906108c 21168 for ac_extension in a so sl; do
bec39cab 21169 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
21170 ac_x_libraries=$ac_dir
21171 break 2
21172 fi
21173 done
21174done
21175fi
bec39cab
AC
21176rm -f conftest.err conftest.$ac_objext \
21177 conftest$ac_exeext conftest.$ac_ext
21178fi # $ac_x_libraries = no
c906108c 21179
bec39cab 21180if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21181 # Didn't find X anywhere. Cache the known absence of X.
21182 ac_cv_have_x="have_x=no"
21183else
21184 # Record where we found X for the cache.
21185 ac_cv_have_x="have_x=yes \
bec39cab 21186 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21187fi
21188fi
bec39cab 21189
c906108c
SS
21190 fi
21191 eval "$ac_cv_have_x"
21192fi # $with_x != no
21193
21194if test "$have_x" != yes; then
bec39cab
AC
21195 echo "$as_me:$LINENO: result: $have_x" >&5
21196echo "${ECHO_T}$have_x" >&6
c906108c
SS
21197 no_x=yes
21198else
21199 # If each of the values was on the command line, it overrides each guess.
21200 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21201 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21202 # Update the cache value to reflect the command line values.
21203 ac_cv_have_x="have_x=yes \
21204 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bec39cab
AC
21205 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21206echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
21207fi
21208
21209
9cc52bde
MK
21210# Check whether we should enable the TUI, but only do so if we really
21211# can.
21212if test x"$enable_tui" = xyes; then
21213 if test -d $srcdir/tui; then
21214 if test "$ac_cv_search_waddstr" != no; then
21215 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21216 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21217 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21218 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21219 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21220 CONFIG_ALL="${CONFIG_ALL} all-tui"
21221 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21222 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21223 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21224 else
bec39cab
AC
21225 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21226echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21227 fi
21228 fi
21229fi
21230
bec39cab
AC
21231# Unlike the sim directory, whether a simulator is linked is controlled by
21232# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21233# This code just checks for a few cases where we'd like to ignore those
21234# definitions, even when they're present in the '.mt' file. These cases
21235# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21236# not part of the source tree.
7a292a7a
SS
21237#
21238# Check whether --enable-sim or --disable-sim was given.
21239if test "${enable_sim+set}" = set; then
21240 enableval="$enable_sim"
21241 echo "enable_sim = $enable_sim";
21242 echo "enableval = ${enableval}";
21243 case "${enableval}" in
21244 yes) ignore_sim=false ;;
21245 no) ignore_sim=true ;;
21246 *) ignore_sim=false ;;
21247 esac
21248else
21249 ignore_sim=false
bec39cab 21250fi;
7a292a7a
SS
21251
21252if test ! -d "${srcdir}/../sim"; then
21253 ignore_sim=true
21254fi
21255
21256if test "${ignore_sim}" = "true"; then
21257 IGNORE_SIM="SIM="
21258 IGNORE_SIM_OBS="SIM_OBS="
21259else
21260 IGNORE_SIM=""
21261 IGNORE_SIM_OBS=""
bec39cab 21262 cat >>confdefs.h <<\_ACEOF
7a292a7a 21263#define WITH_SIM 1
bec39cab 21264_ACEOF
7a292a7a
SS
21265
21266fi
21267
21268
21269
c906108c
SS
21270
21271
21272
21273
21274
21275
dfcd3bfb 21276
e56ac5c3
AC
21277
21278
b3a90332
AC
21279
21280
c35f4ffc 21281# List of host floatformats.
bec39cab
AC
21282
21283cat >>confdefs.h <<_ACEOF
c35f4ffc 21284#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21285_ACEOF
c35f4ffc 21286
bec39cab
AC
21287
21288cat >>confdefs.h <<_ACEOF
c35f4ffc 21289#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21290_ACEOF
21291
c35f4ffc 21292
bec39cab 21293cat >>confdefs.h <<_ACEOF
c35f4ffc 21294#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21295_ACEOF
c35f4ffc
AC
21296
21297
c906108c
SS
21298# target_subdir is used by the testsuite to find the target libraries.
21299target_subdir=
21300if test "${host}" != "${target}"; then
21301 target_subdir="${target_alias}/"
21302fi
21303
21304
21305frags=
0dad8a66
MK
21306if test "${target}" = "${host}"; then
21307 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21308 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21309 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21310echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21311 { (exit 1); exit 1; }; }
0dad8a66
MK
21312 fi
21313 frags="$frags $host_makefile_frag"
21314else
21315 host_makefile_frag=/dev/null
c906108c 21316fi
c906108c
SS
21317
21318target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21319if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21320 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21321echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21322 { (exit 1); exit 1; }; }
c906108c
SS
21323fi
21324frags="$frags $target_makefile_frag"
21325
21326
21327
21328
21329
21330hostfile=`sed -n '
21331s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21332' ${host_makefile_frag}`
21333
21334targetfile=`sed -n '
2c0fc042 21335s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21336' ${target_makefile_frag}`
21337
c906108c 21338if test "${target}" = "${host}"; then
a85f51e7
DJ
21339# We pick this up from the host configuration file (.mh) because we
21340# do not have a native configuration Makefile fragment.
c906108c
SS
21341nativefile=`sed -n '
21342s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21343' ${host_makefile_frag}`
c906108c
SS
21344fi
21345
21346
b00a8037 21347if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21348
21349cat >>confdefs.h <<_ACEOF
b00a8037 21350#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21351_ACEOF
b00a8037
DJ
21352
21353fi
21354
8dcde887
MK
21355# Enable multi-ice-gdb-server.
21356# Check whether --enable-multi-ice or --disable-multi-ice was given.
21357if test "${enable_multi_ice+set}" = set; then
21358 enableval="$enable_multi_ice"
21359 case $enableval in
21360 yes | no)
21361 ;;
bec39cab
AC
21362 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21363echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21364 { (exit 1); exit 1; }; } ;;
8dcde887 21365 esac
bec39cab 21366fi;
8dcde887 21367if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21368
21369
21370subdirs="$subdirs multi-ice"
3ace7edb 21371
a85f51e7
DJ
21372fi
21373
8dcde887
MK
21374# We only build gdbserver automatically if host and target are the same.
21375if test "x$target" = "x$host"; then
bec39cab
AC
21376 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21377echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21378 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21379 echo "$as_me:$LINENO: result: yes" >&5
21380echo "${ECHO_T}yes" >&6
21381
21382
21383subdirs="$subdirs gdbserver"
3ace7edb 21384
8dcde887 21385 else
bec39cab
AC
21386 echo "$as_me:$LINENO: result: no" >&5
21387echo "${ECHO_T}no" >&6
8dcde887
MK
21388 fi
21389fi
21390
065a1afc
JB
21391# We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21392if test "x$build_rdi_share" = xyes; then
21393
21394
21395subdirs="$subdirs rdi-share"
21396
21397fi
21398
21399# We configure the nlm subdirectory on netware targets, as instructed
21400# by configure.tgt.
21401if test "x$build_nlm" = xyes; then
21402
21403
21404subdirs="$subdirs nlm"
21405
21406fi
21407
2c0fc042
AC
21408# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21409# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21410# to an empty version.
c906108c
SS
21411
21412files=
21413links=
5a2402b8 21414
c906108c 21415rm -f xm.h
5a2402b8 21416xm_h=""
c906108c 21417if test "${hostfile}" != ""; then
5a2402b8 21418 xm_h=xm.h
0f475e27
AC
21419 case "${hostfile}" in
21420 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21421 * ) GDB_XM_FILE="${hostfile}"
21422 esac
5a2402b8
AC
21423 files="${files} ${GDB_XM_FILE}"
21424 links="${links} xm.h"
bec39cab 21425 cat >>confdefs.h <<_ACEOF
b78960be 21426#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21427_ACEOF
5a2402b8 21428
c906108c 21429fi
5a2402b8
AC
21430
21431
c906108c 21432rm -f tm.h
5a2402b8 21433tm_h=""
c906108c 21434if test "${targetfile}" != ""; then
5a2402b8 21435 tm_h=tm.h
0f475e27 21436 case "${targetfile}" in
b8c4aece 21437 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21438 * ) GDB_TM_FILE="${targetfile}"
21439 esac
5a2402b8
AC
21440 files="${files} ${GDB_TM_FILE}"
21441 links="${links} tm.h"
bec39cab 21442 cat >>confdefs.h <<_ACEOF
b78960be 21443#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21444_ACEOF
5a2402b8 21445
c906108c 21446fi
5a2402b8
AC
21447
21448
c906108c 21449rm -f nm.h
5a2402b8 21450nm_h=""
c906108c 21451if test "${nativefile}" != ""; then
5a2402b8 21452 nm_h=nm.h
0f475e27
AC
21453 case "${nativefile}" in
21454 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21455 * ) GDB_NM_FILE="${nativefile}"
21456 esac
5a2402b8
AC
21457 files="${files} ${GDB_NM_FILE}"
21458 links="${links} nm.h"
bec39cab 21459 cat >>confdefs.h <<_ACEOF
b78960be 21460#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21461_ACEOF
5a2402b8 21462
c906108c 21463fi
5a2402b8
AC
21464
21465
bec39cab
AC
21466ac_sources="$files"
21467ac_dests="$links"
21468while test -n "$ac_sources"; do
21469 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21470 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21471 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21472done
21473 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21474
21475
c906108c
SS
21476
21477
c906108c 21478
c906108c 21479
bec39cab
AC
21480cat >>confdefs.h <<\_ACEOF
21481#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21482_ACEOF
c906108c 21483
234b45d4 21484
234b45d4
KB
21485
21486
21487
bec39cab 21488# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21489if test "${with_libiconv_prefix+set}" = set; then
21490 withval="$with_libiconv_prefix"
bec39cab 21491
234b45d4
KB
21492 for dir in `echo "$withval" | tr : ' '`; do
21493 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21494 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21495 done
234b45d4 21496
bec39cab 21497fi;
234b45d4 21498
bec39cab
AC
21499 echo "$as_me:$LINENO: checking for iconv" >&5
21500echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21501if test "${am_cv_func_iconv+set}" = set; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21503else
bec39cab 21504
234b45d4
KB
21505 am_cv_func_iconv="no, consider installing GNU libiconv"
21506 am_cv_lib_iconv=no
bec39cab
AC
21507 cat >conftest.$ac_ext <<_ACEOF
21508/* confdefs.h. */
21509_ACEOF
21510cat confdefs.h >>conftest.$ac_ext
21511cat >>conftest.$ac_ext <<_ACEOF
21512/* end confdefs.h. */
234b45d4
KB
21513#include <stdlib.h>
21514#include <iconv.h>
bec39cab
AC
21515int
21516main ()
21517{
234b45d4
KB
21518iconv_t cd = iconv_open("","");
21519 iconv(cd,NULL,NULL,NULL,NULL);
21520 iconv_close(cd);
bec39cab
AC
21521 ;
21522 return 0;
21523}
21524_ACEOF
21525rm -f conftest.$ac_objext conftest$ac_exeext
21526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21527 (eval $ac_link) 2>conftest.er1
21528 ac_status=$?
21529 grep -v '^ *+' conftest.er1 >conftest.err
21530 rm -f conftest.er1
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } &&
21534 { ac_try='test -z "$ac_c_werror_flag"
21535 || test ! -s conftest.err'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; } &&
21541 { ac_try='test -s conftest$ac_exeext'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
234b45d4
KB
21547 am_cv_func_iconv=yes
21548else
bec39cab
AC
21549 echo "$as_me: failed program was:" >&5
21550sed 's/^/| /' conftest.$ac_ext >&5
21551
234b45d4 21552fi
bec39cab
AC
21553rm -f conftest.err conftest.$ac_objext \
21554 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21555 if test "$am_cv_func_iconv" != yes; then
21556 am_save_LIBS="$LIBS"
21557 LIBS="$LIBS -liconv"
bec39cab
AC
21558 cat >conftest.$ac_ext <<_ACEOF
21559/* confdefs.h. */
21560_ACEOF
21561cat confdefs.h >>conftest.$ac_ext
21562cat >>conftest.$ac_ext <<_ACEOF
21563/* end confdefs.h. */
234b45d4
KB
21564#include <stdlib.h>
21565#include <iconv.h>
bec39cab
AC
21566int
21567main ()
21568{
234b45d4
KB
21569iconv_t cd = iconv_open("","");
21570 iconv(cd,NULL,NULL,NULL,NULL);
21571 iconv_close(cd);
bec39cab
AC
21572 ;
21573 return 0;
21574}
21575_ACEOF
21576rm -f conftest.$ac_objext conftest$ac_exeext
21577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21578 (eval $ac_link) 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } &&
21585 { ac_try='test -z "$ac_c_werror_flag"
21586 || test ! -s conftest.err'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; } &&
21592 { ac_try='test -s conftest$ac_exeext'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
234b45d4
KB
21598 am_cv_lib_iconv=yes
21599 am_cv_func_iconv=yes
21600else
bec39cab
AC
21601 echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5
21603
234b45d4 21604fi
bec39cab
AC
21605rm -f conftest.err conftest.$ac_objext \
21606 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21607 LIBS="$am_save_LIBS"
21608 fi
bec39cab
AC
21609
21610fi
21611echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21612echo "${ECHO_T}$am_cv_func_iconv" >&6
21613 if test "$am_cv_func_iconv" = yes; then
21614
21615cat >>confdefs.h <<\_ACEOF
21616#define HAVE_ICONV 1
21617_ACEOF
21618
21619 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21620echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21621 if test "${am_cv_proto_iconv+set}" = set; then
21622 echo $ECHO_N "(cached) $ECHO_C" >&6
21623else
21624
21625 cat >conftest.$ac_ext <<_ACEOF
21626/* confdefs.h. */
21627_ACEOF
21628cat confdefs.h >>conftest.$ac_ext
21629cat >>conftest.$ac_ext <<_ACEOF
21630/* end confdefs.h. */
21631
21632#include <stdlib.h>
21633#include <iconv.h>
21634extern
21635#ifdef __cplusplus
21636"C"
21637#endif
21638#if defined(__STDC__) || defined(__cplusplus)
21639size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21640#else
21641size_t iconv();
21642#endif
21643
21644int
21645main ()
21646{
21647
21648 ;
21649 return 0;
21650}
21651_ACEOF
21652rm -f conftest.$ac_objext
21653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654 (eval $ac_compile) 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -z "$ac_c_werror_flag"
21662 || test ! -s conftest.err'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 am_cv_proto_iconv_arg1=""
21675else
21676 echo "$as_me: failed program was:" >&5
21677sed 's/^/| /' conftest.$ac_ext >&5
21678
21679am_cv_proto_iconv_arg1="const"
21680fi
21681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21682 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);"
21683fi
21684
21685 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21686 echo "$as_me:$LINENO: result: ${ac_t:-
21687 }$am_cv_proto_iconv" >&5
21688echo "${ECHO_T}${ac_t:-
21689 }$am_cv_proto_iconv" >&6
21690
21691cat >>confdefs.h <<_ACEOF
21692#define ICONV_CONST $am_cv_proto_iconv_arg1
21693_ACEOF
21694
21695 fi
21696 LIBICONV=
21697 if test "$am_cv_lib_iconv" = yes; then
21698 LIBICONV="-liconv"
21699 fi
21700
21701
21702
21703 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21704 ac_config_commands="$ac_config_commands default"
21705cat >confcache <<\_ACEOF
21706# This file is a shell script that caches the results of configure
21707# tests run on this system so they can be shared between configure
21708# scripts and configure runs, see configure's option --config-cache.
21709# It is not useful on other systems. If it contains results you don't
21710# want to keep, you may remove or edit it.
21711#
21712# config.status only pays attention to the cache file if you give it
21713# the --recheck option to rerun configure.
21714#
21715# `ac_cv_env_foo' variables (set or unset) will be overridden when
21716# loading this file, other *unset* `ac_cv_foo' will be assigned the
21717# following values.
21718
21719_ACEOF
21720
21721# The following way of writing the cache mishandles newlines in values,
21722# but we know of no workaround that is simple, portable, and efficient.
21723# So, don't put newlines in cache variables' values.
21724# Ultrix sh set writes to stderr and can't be redirected directly,
21725# and sets the high bit in the cache file unless we assign to the vars.
21726{
21727 (set) 2>&1 |
21728 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21729 *ac_space=\ *)
21730 # `set' does not quote correctly, so add quotes (double-quote
21731 # substitution turns \\\\ into \\, and sed turns \\ into \).
21732 sed -n \
21733 "s/'/'\\\\''/g;
21734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21735 ;;
21736 *)
21737 # `set' quotes correctly as required by POSIX, so do not add quotes.
21738 sed -n \
21739 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21740 ;;
21741 esac;
21742} |
21743 sed '
21744 t clear
21745 : clear
21746 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21747 t end
21748 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21749 : end' >>confcache
21750if diff $cache_file confcache >/dev/null 2>&1; then :; else
21751 if test -w $cache_file; then
21752 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21753 cat confcache >$cache_file
21754 else
21755 echo "not updating unwritable cache $cache_file"
21756 fi
21757fi
21758rm -f confcache
21759
21760test "x$prefix" = xNONE && prefix=$ac_default_prefix
21761# Let make expand exec_prefix.
21762test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21763
21764# VPATH may cause trouble with some makes, so we remove $(srcdir),
21765# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21766# trailing colons and then remove the whole line if VPATH becomes empty
21767# (actually we leave an empty line to preserve line numbers).
21768if test "x$srcdir" = x.; then
21769 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21770s/:*\$(srcdir):*/:/;
21771s/:*\${srcdir}:*/:/;
21772s/:*@srcdir@:*/:/;
21773s/^\([^=]*=[ ]*\):*/\1/;
21774s/:*$//;
21775s/^[^=]*=[ ]*$//;
21776}'
21777fi
21778
21779DEFS=-DHAVE_CONFIG_H
21780
21781ac_libobjs=
21782ac_ltlibobjs=
21783for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21784 # 1. Remove the extension, and $U if already installed.
21785 ac_i=`echo "$ac_i" |
21786 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21787 # 2. Add them.
21788 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21789 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21790done
21791LIBOBJS=$ac_libobjs
21792
21793LTLIBOBJS=$ac_ltlibobjs
21794
21795
85981d60
AC
21796if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21797 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21798Usually this means the macro was only invoked conditionally." >&5
21799echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21800Usually this means the macro was only invoked conditionally." >&2;}
21801 { (exit 1); exit 1; }; }
21802fi
bec39cab
AC
21803
21804: ${CONFIG_STATUS=./config.status}
21805ac_clean_files_save=$ac_clean_files
21806ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21807{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21808echo "$as_me: creating $CONFIG_STATUS" >&6;}
21809cat >$CONFIG_STATUS <<_ACEOF
21810#! $SHELL
21811# Generated by $as_me.
21812# Run this file to recreate the current configuration.
21813# Compiler output produced by configure, useful for debugging
21814# configure, is in config.log if it exists.
21815
21816debug=false
21817ac_cs_recheck=false
21818ac_cs_silent=false
21819SHELL=\${CONFIG_SHELL-$SHELL}
21820_ACEOF
21821
21822cat >>$CONFIG_STATUS <<\_ACEOF
21823## --------------------- ##
21824## M4sh Initialization. ##
21825## --------------------- ##
21826
21827# Be Bourne compatible
21828if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21829 emulate sh
21830 NULLCMD=:
21831 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21832 # is contrary to our usage. Disable this feature.
21833 alias -g '${1+"$@"}'='"$@"'
21834elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21835 set -o posix
21836fi
21837DUALCASE=1; export DUALCASE # for MKS sh
21838
21839# Support unset when possible.
21840if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21841 as_unset=unset
21842else
21843 as_unset=false
21844fi
21845
21846
21847# Work around bugs in pre-3.0 UWIN ksh.
21848$as_unset ENV MAIL MAILPATH
21849PS1='$ '
21850PS2='> '
21851PS4='+ '
21852
21853# NLS nuisances.
21854for as_var in \
21855 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21856 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21857 LC_TELEPHONE LC_TIME
21858do
21859 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21860 eval $as_var=C; export $as_var
21861 else
21862 $as_unset $as_var
21863 fi
21864done
21865
21866# Required to use basename.
21867if expr a : '\(a\)' >/dev/null 2>&1; then
21868 as_expr=expr
21869else
21870 as_expr=false
21871fi
21872
21873if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21874 as_basename=basename
21875else
21876 as_basename=false
21877fi
21878
21879
21880# Name of the executable.
21881as_me=`$as_basename "$0" ||
21882$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21883 X"$0" : 'X\(//\)$' \| \
21884 X"$0" : 'X\(/\)$' \| \
21885 . : '\(.\)' 2>/dev/null ||
21886echo X/"$0" |
21887 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21888 /^X\/\(\/\/\)$/{ s//\1/; q; }
21889 /^X\/\(\/\).*/{ s//\1/; q; }
21890 s/.*/./; q'`
21891
21892
21893# PATH needs CR, and LINENO needs CR and PATH.
21894# Avoid depending upon Character Ranges.
21895as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21896as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21897as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21898as_cr_digits='0123456789'
21899as_cr_alnum=$as_cr_Letters$as_cr_digits
21900
21901# The user is always right.
21902if test "${PATH_SEPARATOR+set}" != set; then
21903 echo "#! /bin/sh" >conf$$.sh
21904 echo "exit 0" >>conf$$.sh
21905 chmod +x conf$$.sh
21906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21907 PATH_SEPARATOR=';'
21908 else
21909 PATH_SEPARATOR=:
21910 fi
21911 rm -f conf$$.sh
21912fi
21913
21914
21915 as_lineno_1=$LINENO
21916 as_lineno_2=$LINENO
21917 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21918 test "x$as_lineno_1" != "x$as_lineno_2" &&
21919 test "x$as_lineno_3" = "x$as_lineno_2" || {
21920 # Find who we are. Look in the path if we contain no path at all
21921 # relative or not.
21922 case $0 in
21923 *[\\/]* ) as_myself=$0 ;;
21924 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21925for as_dir in $PATH
21926do
21927 IFS=$as_save_IFS
21928 test -z "$as_dir" && as_dir=.
21929 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21930done
21931
21932 ;;
21933 esac
21934 # We did not find ourselves, most probably we were run as `sh COMMAND'
21935 # in which case we are not to be found in the path.
21936 if test "x$as_myself" = x; then
21937 as_myself=$0
21938 fi
21939 if test ! -f "$as_myself"; then
21940 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21941echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21942 { (exit 1); exit 1; }; }
21943 fi
21944 case $CONFIG_SHELL in
21945 '')
21946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21947for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21948do
21949 IFS=$as_save_IFS
21950 test -z "$as_dir" && as_dir=.
21951 for as_base in sh bash ksh sh5; do
21952 case $as_dir in
21953 /*)
21954 if ("$as_dir/$as_base" -c '
21955 as_lineno_1=$LINENO
21956 as_lineno_2=$LINENO
21957 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21958 test "x$as_lineno_1" != "x$as_lineno_2" &&
21959 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21960 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21961 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21962 CONFIG_SHELL=$as_dir/$as_base
21963 export CONFIG_SHELL
21964 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21965 fi;;
21966 esac
21967 done
21968done
21969;;
21970 esac
21971
21972 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21973 # uniformly replaced by the line number. The first 'sed' inserts a
21974 # line-number line before each line; the second 'sed' does the real
21975 # work. The second script uses 'N' to pair each line-number line
21976 # with the numbered line, and appends trailing '-' during
21977 # substitution so that $LINENO is not a special case at line end.
21978 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21979 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21980 sed '=' <$as_myself |
21981 sed '
21982 N
21983 s,$,-,
21984 : loop
21985 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21986 t loop
21987 s,-$,,
21988 s,^['$as_cr_digits']*\n,,
21989 ' >$as_me.lineno &&
21990 chmod +x $as_me.lineno ||
21991 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21992echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21993 { (exit 1); exit 1; }; }
21994
21995 # Don't try to exec as it changes $[0], causing all sort of problems
21996 # (the dirname of $[0] is not the place where we might find the
21997 # original and so on. Autoconf is especially sensible to this).
21998 . ./$as_me.lineno
21999 # Exit status is that of the last command.
22000 exit
22001}
22002
22003
22004case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22005 *c*,-n*) ECHO_N= ECHO_C='
22006' ECHO_T=' ' ;;
22007 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22008 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22009esac
22010
22011if expr a : '\(a\)' >/dev/null 2>&1; then
22012 as_expr=expr
22013else
22014 as_expr=false
22015fi
22016
22017rm -f conf$$ conf$$.exe conf$$.file
22018echo >conf$$.file
22019if ln -s conf$$.file conf$$ 2>/dev/null; then
22020 # We could just check for DJGPP; but this test a) works b) is more generic
22021 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22022 if test -f conf$$.exe; then
22023 # Don't use ln at all; we don't have any links
22024 as_ln_s='cp -p'
22025 else
22026 as_ln_s='ln -s'
22027 fi
22028elif ln conf$$.file conf$$ 2>/dev/null; then
22029 as_ln_s=ln
22030else
22031 as_ln_s='cp -p'
22032fi
22033rm -f conf$$ conf$$.exe conf$$.file
22034
22035if mkdir -p . 2>/dev/null; then
22036 as_mkdir_p=:
22037else
22038 test -d ./-p && rmdir ./-p
22039 as_mkdir_p=false
22040fi
22041
22042as_executable_p="test -f"
22043
22044# Sed expression to map a string onto a valid CPP name.
22045as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22046
22047# Sed expression to map a string onto a valid variable name.
22048as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22049
22050
22051# IFS
22052# We need space, tab and new line, in precisely that order.
22053as_nl='
22054'
22055IFS=" $as_nl"
22056
22057# CDPATH.
22058$as_unset CDPATH
22059
22060exec 6>&1
22061
22062# Open the log real soon, to keep \$[0] and so on meaningful, and to
22063# report actual input values of CONFIG_FILES etc. instead of their
22064# values after options handling. Logging --version etc. is OK.
22065exec 5>>config.log
22066{
22067 echo
22068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22069## Running $as_me. ##
22070_ASBOX
22071} >&5
22072cat >&5 <<_CSEOF
22073
22074This file was extended by $as_me, which was
22075generated by GNU Autoconf 2.59. Invocation command line was
22076
22077 CONFIG_FILES = $CONFIG_FILES
22078 CONFIG_HEADERS = $CONFIG_HEADERS
22079 CONFIG_LINKS = $CONFIG_LINKS
22080 CONFIG_COMMANDS = $CONFIG_COMMANDS
22081 $ $0 $@
22082
22083_CSEOF
22084echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22085echo >&5
22086_ACEOF
22087
22088# Files that config.status was made for.
22089if test -n "$ac_config_files"; then
22090 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22091fi
22092
22093if test -n "$ac_config_headers"; then
22094 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22095fi
22096
22097if test -n "$ac_config_links"; then
22098 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22099fi
22100
bec39cab
AC
22101if test -n "$ac_config_commands"; then
22102 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22103fi
234b45d4 22104
bec39cab 22105cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22106
bec39cab
AC
22107ac_cs_usage="\
22108\`$as_me' instantiates files from templates according to the
22109current configuration.
234b45d4 22110
bec39cab 22111Usage: $0 [OPTIONS] [FILE]...
234b45d4 22112
bec39cab
AC
22113 -h, --help print this help, then exit
22114 -V, --version print version number, then exit
22115 -q, --quiet do not print progress messages
22116 -d, --debug don't remove temporary files
22117 --recheck update $as_me by reconfiguring in the same conditions
22118 --file=FILE[:TEMPLATE]
22119 instantiate the configuration file FILE
22120 --header=FILE[:TEMPLATE]
22121 instantiate the configuration header FILE
234b45d4 22122
bec39cab
AC
22123Configuration files:
22124$config_files
234b45d4 22125
bec39cab
AC
22126Configuration headers:
22127$config_headers
234b45d4 22128
bec39cab
AC
22129Configuration links:
22130$config_links
234b45d4 22131
bec39cab
AC
22132Configuration commands:
22133$config_commands
22134
22135Report bugs to <bug-autoconf@gnu.org>."
22136_ACEOF
22137
22138cat >>$CONFIG_STATUS <<_ACEOF
22139ac_cs_version="\\
22140config.status
22141configured by $0, generated by GNU Autoconf 2.59,
22142 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22143
22144Copyright (C) 2003 Free Software Foundation, Inc.
22145This config.status script is free software; the Free Software Foundation
22146gives unlimited permission to copy, distribute and modify it."
22147srcdir=$srcdir
22148INSTALL="$INSTALL"
22149_ACEOF
22150
22151cat >>$CONFIG_STATUS <<\_ACEOF
22152# If no file are specified by the user, then we need to provide default
22153# value. By we need to know if files were specified by the user.
22154ac_need_defaults=:
22155while test $# != 0
22156do
22157 case $1 in
22158 --*=*)
22159 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22160 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22161 ac_shift=:
c906108c 22162 ;;
bec39cab
AC
22163 -*)
22164 ac_option=$1
22165 ac_optarg=$2
22166 ac_shift=shift
c906108c 22167 ;;
bec39cab
AC
22168 *) # This is not an option, so the user has probably given explicit
22169 # arguments.
22170 ac_option=$1
22171 ac_need_defaults=false;;
22172 esac
c906108c 22173
bec39cab
AC
22174 case $ac_option in
22175 # Handling of the options.
22176_ACEOF
22177cat >>$CONFIG_STATUS <<\_ACEOF
22178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22179 ac_cs_recheck=: ;;
22180 --version | --vers* | -V )
22181 echo "$ac_cs_version"; exit 0 ;;
22182 --he | --h)
22183 # Conflict between --help and --header
22184 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22185Try \`$0 --help' for more information." >&5
22186echo "$as_me: error: ambiguous option: $1
22187Try \`$0 --help' for more information." >&2;}
22188 { (exit 1); exit 1; }; };;
22189 --help | --hel | -h )
22190 echo "$ac_cs_usage"; exit 0 ;;
22191 --debug | --d* | -d )
22192 debug=: ;;
22193 --file | --fil | --fi | --f )
22194 $ac_shift
22195 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22196 ac_need_defaults=false;;
22197 --header | --heade | --head | --hea )
22198 $ac_shift
22199 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22200 ac_need_defaults=false;;
22201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22202 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22203 ac_cs_silent=: ;;
c906108c 22204
bec39cab
AC
22205 # This is an error.
22206 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22207Try \`$0 --help' for more information." >&5
22208echo "$as_me: error: unrecognized option: $1
22209Try \`$0 --help' for more information." >&2;}
22210 { (exit 1); exit 1; }; } ;;
c906108c 22211
bec39cab 22212 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22213
bec39cab
AC
22214 esac
22215 shift
22216done
c906108c 22217
bec39cab 22218ac_configure_extra_args=
c906108c 22219
bec39cab
AC
22220if $ac_cs_silent; then
22221 exec 6>/dev/null
22222 ac_configure_extra_args="$ac_configure_extra_args --silent"
22223fi
c906108c 22224
bec39cab
AC
22225_ACEOF
22226cat >>$CONFIG_STATUS <<_ACEOF
22227if \$ac_cs_recheck; then
22228 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22229 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22230fi
22231
22232_ACEOF
22233
22234cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22235#
bec39cab 22236# INIT-COMMANDS section.
c906108c 22237#
c906108c 22238
bec39cab
AC
22239
22240gdb_host_cpu=$gdb_host_cpu
22241gdb_target_cpu=$gdb_target_cpu
22242nativefile=$nativefile
22243
22244
22245_ACEOF
22246
22247
22248
22249cat >>$CONFIG_STATUS <<\_ACEOF
22250for ac_config_target in $ac_config_targets
c906108c 22251do
bec39cab
AC
22252 case "$ac_config_target" in
22253 # Handling of arguments.
22254 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22255 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22256 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22257 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22258 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22259 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22260echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22261 { (exit 1); exit 1; }; };;
c906108c
SS
22262 esac
22263done
22264
bec39cab
AC
22265# If the user did not use the arguments to specify the items to instantiate,
22266# then the envvar interface is used. Set only those that are not.
22267# We use the long form for the default assignment because of an extremely
22268# bizarre bug on SunOS 4.1.3.
22269if $ac_need_defaults; then
22270 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22271 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22272 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22274fi
22275
22276# Have a temporary directory for convenience. Make it in the build tree
22277# simply because there is no reason to put it here, and in addition,
22278# creating and moving files from /tmp can sometimes cause problems.
22279# Create a temporary directory, and hook for its removal unless debugging.
22280$debug ||
22281{
22282 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22283 trap '{ (exit 1); exit 1; }' 1 2 13 15
22284}
c906108c 22285
bec39cab 22286# Create a (secure) tmp directory for tmp files.
c906108c 22287
bec39cab
AC
22288{
22289 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22290 test -n "$tmp" && test -d "$tmp"
22291} ||
22292{
22293 tmp=./confstat$$-$RANDOM
22294 (umask 077 && mkdir $tmp)
22295} ||
22296{
22297 echo "$me: cannot create a temporary directory in ." >&2
22298 { (exit 1); exit 1; }
22299}
22300
22301_ACEOF
22302
22303cat >>$CONFIG_STATUS <<_ACEOF
22304
22305#
22306# CONFIG_FILES section.
22307#
22308
22309# No need to generate the scripts if there are no CONFIG_FILES.
22310# This happens for instance when ./config.status config.h
22311if test -n "\$CONFIG_FILES"; then
22312 # Protect against being on the right side of a sed subst in config.status.
22313 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22314 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22315s,@SHELL@,$SHELL,;t t
22316s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22317s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22318s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22319s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22320s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22321s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22322s,@exec_prefix@,$exec_prefix,;t t
22323s,@prefix@,$prefix,;t t
22324s,@program_transform_name@,$program_transform_name,;t t
22325s,@bindir@,$bindir,;t t
22326s,@sbindir@,$sbindir,;t t
22327s,@libexecdir@,$libexecdir,;t t
22328s,@datadir@,$datadir,;t t
22329s,@sysconfdir@,$sysconfdir,;t t
22330s,@sharedstatedir@,$sharedstatedir,;t t
22331s,@localstatedir@,$localstatedir,;t t
22332s,@libdir@,$libdir,;t t
22333s,@includedir@,$includedir,;t t
22334s,@oldincludedir@,$oldincludedir,;t t
22335s,@infodir@,$infodir,;t t
22336s,@mandir@,$mandir,;t t
22337s,@build_alias@,$build_alias,;t t
22338s,@host_alias@,$host_alias,;t t
22339s,@target_alias@,$target_alias,;t t
22340s,@DEFS@,$DEFS,;t t
22341s,@ECHO_C@,$ECHO_C,;t t
22342s,@ECHO_N@,$ECHO_N,;t t
22343s,@ECHO_T@,$ECHO_T,;t t
22344s,@LIBS@,$LIBS,;t t
22345s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22346s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22347s,@MAINT@,$MAINT,;t t
22348s,@CC@,$CC,;t t
22349s,@CFLAGS@,$CFLAGS,;t t
22350s,@LDFLAGS@,$LDFLAGS,;t t
22351s,@CPPFLAGS@,$CPPFLAGS,;t t
22352s,@ac_ct_CC@,$ac_ct_CC,;t t
22353s,@EXEEXT@,$EXEEXT,;t t
22354s,@OBJEXT@,$OBJEXT,;t t
22355s,@CPP@,$CPP,;t t
22356s,@EGREP@,$EGREP,;t t
22357s,@build@,$build,;t t
22358s,@build_cpu@,$build_cpu,;t t
22359s,@build_vendor@,$build_vendor,;t t
22360s,@build_os@,$build_os,;t t
22361s,@host@,$host,;t t
22362s,@host_cpu@,$host_cpu,;t t
22363s,@host_vendor@,$host_vendor,;t t
22364s,@host_os@,$host_os,;t t
22365s,@target@,$target,;t t
22366s,@target_cpu@,$target_cpu,;t t
22367s,@target_vendor@,$target_vendor,;t t
22368s,@target_os@,$target_os,;t t
22369s,@RANLIB@,$RANLIB,;t t
22370s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22371s,@SET_MAKE@,$SET_MAKE,;t t
22372s,@ALLOCA@,$ALLOCA,;t t
22373s,@USE_NLS@,$USE_NLS,;t t
22374s,@MSGFMT@,$MSGFMT,;t t
22375s,@GMSGFMT@,$GMSGFMT,;t t
22376s,@XGETTEXT@,$XGETTEXT,;t t
22377s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22378s,@CATALOGS@,$CATALOGS,;t t
22379s,@CATOBJEXT@,$CATOBJEXT,;t t
22380s,@DATADIRNAME@,$DATADIRNAME,;t t
22381s,@GMOFILES@,$GMOFILES,;t t
22382s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22383s,@INTLDEPS@,$INTLDEPS,;t t
22384s,@INTLLIBS@,$INTLLIBS,;t t
22385s,@INTLOBJS@,$INTLOBJS,;t t
22386s,@POFILES@,$POFILES,;t t
22387s,@POSUB@,$POSUB,;t t
22388s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22389s,@GT_NO@,$GT_NO,;t t
22390s,@GT_YES@,$GT_YES,;t t
22391s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22392s,@l@,$l,;t t
22393s,@localedir@,$localedir,;t t
22394s,@PACKAGE@,$PACKAGE,;t t
22395s,@subdirs@,$subdirs,;t t
22396s,@AWK@,$AWK,;t t
22397s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22398s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22399s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22400s,@LN_S@,$LN_S,;t t
22401s,@YACC@,$YACC,;t t
22402s,@AR@,$AR,;t t
22403s,@ac_ct_AR@,$ac_ct_AR,;t t
22404s,@DLLTOOL@,$DLLTOOL,;t t
22405s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22406s,@WINDRES@,$WINDRES,;t t
22407s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22408s,@MIG@,$MIG,;t t
22409s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22410s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22411s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22412s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22413s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22414s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22415s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22416s,@WIN32LIBS@,$WIN32LIBS,;t t
22417s,@LIBGUI@,$LIBGUI,;t t
22418s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22419s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22420s,@TCL_VERSION@,$TCL_VERSION,;t t
22421s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22422s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22423s,@TCL_CC@,$TCL_CC,;t t
22424s,@TCL_DEFS@,$TCL_DEFS,;t t
22425s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22426s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22427s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22428s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22429s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22430s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22431s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22432s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22433s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22434s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22435s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22436s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22437s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22438s,@TK_VERSION@,$TK_VERSION,;t t
22439s,@TK_DEFS@,$TK_DEFS,;t t
22440s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22441s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22442s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22443s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22444s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22445s,@TCLHDIR@,$TCLHDIR,;t t
22446s,@TKHDIR@,$TKHDIR,;t t
22447s,@ITCLHDIR@,$ITCLHDIR,;t t
22448s,@ITKHDIR@,$ITKHDIR,;t t
22449s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22450s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22451s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22452s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22453s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22454s,@ITK_VERSION@,$ITK_VERSION,;t t
22455s,@ITK_DEFS@,$ITK_DEFS,;t t
22456s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22457s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22458s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22459s,@X_CFLAGS@,$X_CFLAGS,;t t
22460s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22461s,@X_LIBS@,$X_LIBS,;t t
22462s,@TCL_DEPS@,$TCL_DEPS,;t t
22463s,@TK_DEPS@,$TK_DEPS,;t t
22464s,@ITCLLIB@,$ITCLLIB,;t t
22465s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22466s,@ITKLIB@,$ITKLIB,;t t
22467s,@ITK_DEPS@,$ITK_DEPS,;t t
22468s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22469s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22470s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22471s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22472s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22473s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22474s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22475s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22476s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22477s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22478s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22479s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22480s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22481s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22482s,@target_subdir@,$target_subdir,;t t
22483s,@frags@,$frags,;t t
22484s,@xm_h@,$xm_h,;t t
22485s,@tm_h@,$tm_h,;t t
22486s,@nm_h@,$nm_h,;t t
22487s,@LIBICONV@,$LIBICONV,;t t
22488s,@LIBOBJS@,$LIBOBJS,;t t
22489s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22490/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22491s,@host_makefile_frag@,,;t t
c906108c 22492/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22493s,@target_makefile_frag@,,;t t
c906108c 22494CEOF
bec39cab
AC
22495
22496_ACEOF
22497
22498 cat >>$CONFIG_STATUS <<\_ACEOF
22499 # Split the substitutions into bite-sized pieces for seds with
22500 # small command number limits, like on Digital OSF/1 and HP-UX.
22501 ac_max_sed_lines=48
22502 ac_sed_frag=1 # Number of current file.
22503 ac_beg=1 # First line for current file.
22504 ac_end=$ac_max_sed_lines # Line after last line for current file.
22505 ac_more_lines=:
22506 ac_sed_cmds=
22507 while $ac_more_lines; do
22508 if test $ac_beg -gt 1; then
22509 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22510 else
22511 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22512 fi
22513 if test ! -s $tmp/subs.frag; then
22514 ac_more_lines=false
c906108c 22515 else
bec39cab
AC
22516 # The purpose of the label and of the branching condition is to
22517 # speed up the sed processing (if there are no `@' at all, there
22518 # is no need to browse any of the substitutions).
22519 # These are the two extra sed commands mentioned above.
22520 (echo ':t
22521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22522 if test -z "$ac_sed_cmds"; then
22523 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22524 else
22525 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22526 fi
22527 ac_sed_frag=`expr $ac_sed_frag + 1`
22528 ac_beg=$ac_end
22529 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22530 fi
bec39cab
AC
22531 done
22532 if test -z "$ac_sed_cmds"; then
22533 ac_sed_cmds=cat
c906108c 22534 fi
bec39cab 22535fi # test -n "$CONFIG_FILES"
c906108c 22536
bec39cab
AC
22537_ACEOF
22538cat >>$CONFIG_STATUS <<\_ACEOF
22539for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22540 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22541 case $ac_file in
22542 - | *:- | *:-:* ) # input from stdin
22543 cat >$tmp/stdin
22544 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22546 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22548 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22549 esac
22550
bec39cab
AC
22551 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22552 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22553$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22554 X"$ac_file" : 'X\(//\)[^/]' \| \
22555 X"$ac_file" : 'X\(//\)$' \| \
22556 X"$ac_file" : 'X\(/\)' \| \
22557 . : '\(.\)' 2>/dev/null ||
22558echo X"$ac_file" |
22559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22561 /^X\(\/\/\)$/{ s//\1/; q; }
22562 /^X\(\/\).*/{ s//\1/; q; }
22563 s/.*/./; q'`
22564 { if $as_mkdir_p; then
22565 mkdir -p "$ac_dir"
c906108c 22566 else
bec39cab
AC
22567 as_dir="$ac_dir"
22568 as_dirs=
22569 while test ! -d "$as_dir"; do
22570 as_dirs="$as_dir $as_dirs"
22571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22572$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22573 X"$as_dir" : 'X\(//\)[^/]' \| \
22574 X"$as_dir" : 'X\(//\)$' \| \
22575 X"$as_dir" : 'X\(/\)' \| \
22576 . : '\(.\)' 2>/dev/null ||
22577echo X"$as_dir" |
22578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22580 /^X\(\/\/\)$/{ s//\1/; q; }
22581 /^X\(\/\).*/{ s//\1/; q; }
22582 s/.*/./; q'`
22583 done
22584 test ! -n "$as_dirs" || mkdir $as_dirs
22585 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22586echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22587 { (exit 1); exit 1; }; }; }
c906108c 22588
bec39cab
AC
22589 ac_builddir=.
22590
22591if test "$ac_dir" != .; then
22592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22593 # A "../" for each directory in $ac_dir_suffix.
22594 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22595else
22596 ac_dir_suffix= ac_top_builddir=
22597fi
22598
22599case $srcdir in
22600 .) # No --srcdir option. We are building in place.
22601 ac_srcdir=.
22602 if test -z "$ac_top_builddir"; then
22603 ac_top_srcdir=.
22604 else
22605 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22606 fi ;;
22607 [\\/]* | ?:[\\/]* ) # Absolute path.
22608 ac_srcdir=$srcdir$ac_dir_suffix;
22609 ac_top_srcdir=$srcdir ;;
c906108c 22610 *) # Relative path.
bec39cab
AC
22611 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22612 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22613esac
22614
22615# Do not use `cd foo && pwd` to compute absolute paths, because
22616# the directories may not exist.
22617case `pwd` in
22618.) ac_abs_builddir="$ac_dir";;
22619*)
22620 case "$ac_dir" in
22621 .) ac_abs_builddir=`pwd`;;
22622 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22623 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22624 esac;;
22625esac
22626case $ac_abs_builddir in
22627.) ac_abs_top_builddir=${ac_top_builddir}.;;
22628*)
22629 case ${ac_top_builddir}. in
22630 .) ac_abs_top_builddir=$ac_abs_builddir;;
22631 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22632 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22633 esac;;
22634esac
22635case $ac_abs_builddir in
22636.) ac_abs_srcdir=$ac_srcdir;;
22637*)
22638 case $ac_srcdir in
22639 .) ac_abs_srcdir=$ac_abs_builddir;;
22640 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22641 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22642 esac;;
22643esac
22644case $ac_abs_builddir in
22645.) ac_abs_top_srcdir=$ac_top_srcdir;;
22646*)
22647 case $ac_top_srcdir in
22648 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22649 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22650 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22651 esac;;
22652esac
c906108c 22653
c906108c 22654
bec39cab
AC
22655 case $INSTALL in
22656 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22657 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
22658 esac
22659
bec39cab
AC
22660 if test x"$ac_file" != x-; then
22661 { echo "$as_me:$LINENO: creating $ac_file" >&5
22662echo "$as_me: creating $ac_file" >&6;}
22663 rm -f "$ac_file"
22664 fi
22665 # Let's still pretend it is `configure' which instantiates (i.e., don't
22666 # use $as_me), people would be surprised to read:
22667 # /* config.h. Generated by config.status. */
22668 if test x"$ac_file" = x-; then
22669 configure_input=
22670 else
22671 configure_input="$ac_file. "
22672 fi
22673 configure_input=$configure_input"Generated from `echo $ac_file_in |
22674 sed 's,.*/,,'` by configure."
22675
22676 # First look for the input files in the build tree, otherwise in the
22677 # src tree.
22678 ac_file_inputs=`IFS=:
22679 for f in $ac_file_in; do
22680 case $f in
22681 -) echo $tmp/stdin ;;
22682 [\\/$]*)
22683 # Absolute (can't be DOS-style, as IFS=:)
22684 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22685echo "$as_me: error: cannot find input file: $f" >&2;}
22686 { (exit 1); exit 1; }; }
22687 echo "$f";;
22688 *) # Relative
22689 if test -f "$f"; then
22690 # Build tree
22691 echo "$f"
22692 elif test -f "$srcdir/$f"; then
22693 # Source tree
22694 echo "$srcdir/$f"
22695 else
22696 # /dev/null tree
22697 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22698echo "$as_me: error: cannot find input file: $f" >&2;}
22699 { (exit 1); exit 1; }; }
22700 fi;;
22701 esac
22702 done` || { (exit 1); exit 1; }
22703_ACEOF
22704cat >>$CONFIG_STATUS <<_ACEOF
22705 sed "$ac_vpsub
22706$extrasub
22707_ACEOF
22708cat >>$CONFIG_STATUS <<\_ACEOF
22709:t
22710/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22711s,@configure_input@,$configure_input,;t t
22712s,@srcdir@,$ac_srcdir,;t t
22713s,@abs_srcdir@,$ac_abs_srcdir,;t t
22714s,@top_srcdir@,$ac_top_srcdir,;t t
22715s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22716s,@builddir@,$ac_builddir,;t t
22717s,@abs_builddir@,$ac_abs_builddir,;t t
22718s,@top_builddir@,$ac_top_builddir,;t t
22719s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22720s,@INSTALL@,$ac_INSTALL,;t t
22721" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22722 rm -f $tmp/stdin
22723 if test x"$ac_file" != x-; then
22724 mv $tmp/out $ac_file
22725 else
22726 cat $tmp/out
22727 rm -f $tmp/out
22728 fi
22729
22730done
22731_ACEOF
22732cat >>$CONFIG_STATUS <<\_ACEOF
22733
22734#
22735# CONFIG_HEADER section.
22736#
c906108c
SS
22737
22738# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22739# NAME is the cpp macro being defined and VALUE is the value it is being given.
22740#
22741# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
22742ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22743ac_dB='[ ].*$,\1#\2'
22744ac_dC=' '
22745ac_dD=',;t'
22746# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22747ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22748ac_uB='$,\1#\2define\3'
c906108c 22749ac_uC=' '
bec39cab
AC
22750ac_uD=',;t'
22751
22752for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 22753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22754 case $ac_file in
22755 - | *:- | *:-:* ) # input from stdin
22756 cat >$tmp/stdin
22757 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22759 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22761 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22762 esac
22763
bec39cab
AC
22764 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22765echo "$as_me: creating $ac_file" >&6;}
22766
22767 # First look for the input files in the build tree, otherwise in the
22768 # src tree.
22769 ac_file_inputs=`IFS=:
22770 for f in $ac_file_in; do
22771 case $f in
22772 -) echo $tmp/stdin ;;
22773 [\\/$]*)
22774 # Absolute (can't be DOS-style, as IFS=:)
22775 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22776echo "$as_me: error: cannot find input file: $f" >&2;}
22777 { (exit 1); exit 1; }; }
22778 # Do quote $f, to prevent DOS paths from being IFS'd.
22779 echo "$f";;
22780 *) # Relative
22781 if test -f "$f"; then
22782 # Build tree
22783 echo "$f"
22784 elif test -f "$srcdir/$f"; then
22785 # Source tree
22786 echo "$srcdir/$f"
22787 else
22788 # /dev/null tree
22789 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22790echo "$as_me: error: cannot find input file: $f" >&2;}
22791 { (exit 1); exit 1; }; }
22792 fi;;
22793 esac
22794 done` || { (exit 1); exit 1; }
22795 # Remove the trailing spaces.
22796 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22797
22798_ACEOF
22799
22800# Transform confdefs.h into two sed scripts, `conftest.defines' and
22801# `conftest.undefs', that substitutes the proper values into
22802# config.h.in to produce config.h. The first handles `#define'
22803# templates, and the second `#undef' templates.
22804# And first: Protect against being on the right side of a sed subst in
22805# config.status. Protect against being in an unquoted here document
22806# in config.status.
22807rm -f conftest.defines conftest.undefs
22808# Using a here document instead of a string reduces the quoting nightmare.
22809# Putting comments in sed scripts is not portable.
22810#
22811# `end' is used to avoid that the second main sed command (meant for
22812# 0-ary CPP macros) applies to n-ary macro definitions.
22813# See the Autoconf documentation for `clear'.
22814cat >confdef2sed.sed <<\_ACEOF
22815s/[\\&,]/\\&/g
22816s,[\\$`],\\&,g
22817t clear
22818: clear
22819s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22820t end
22821s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22822: end
22823_ACEOF
22824# If some macros were called several times there might be several times
22825# the same #defines, which is useless. Nevertheless, we may not want to
22826# sort them, since we want the *last* AC-DEFINE to be honored.
22827uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22828sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22829rm -f confdef2sed.sed
c906108c
SS
22830
22831# This sed command replaces #undef with comments. This is necessary, for
22832# example, in the case of _POSIX_SOURCE, which is predefined and required
22833# on some systems where configure will not decide to define it.
bec39cab
AC
22834cat >>conftest.undefs <<\_ACEOF
22835s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22836_ACEOF
22837
22838# Break up conftest.defines because some shells have a limit on the size
22839# of here documents, and old seds have small limits too (100 cmds).
22840echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22841echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22842echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22843echo ' :' >>$CONFIG_STATUS
22844rm -f conftest.tail
22845while grep . conftest.defines >/dev/null
22846do
22847 # Write a limited-size here document to $tmp/defines.sed.
22848 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22849 # Speed up: don't consider the non `#define' lines.
22850 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22851 # Work around the forget-to-reset-the-flag bug.
22852 echo 't clr' >>$CONFIG_STATUS
22853 echo ': clr' >>$CONFIG_STATUS
22854 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22855 echo 'CEOF
22856 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22857 rm -f $tmp/in
22858 mv $tmp/out $tmp/in
22859' >>$CONFIG_STATUS
22860 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22861 rm -f conftest.defines
22862 mv conftest.tail conftest.defines
22863done
22864rm -f conftest.defines
22865echo ' fi # grep' >>$CONFIG_STATUS
22866echo >>$CONFIG_STATUS
c906108c 22867
bec39cab
AC
22868# Break up conftest.undefs because some shells have a limit on the size
22869# of here documents, and old seds have small limits too (100 cmds).
22870echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 22871rm -f conftest.tail
bec39cab 22872while grep . conftest.undefs >/dev/null
c906108c 22873do
bec39cab
AC
22874 # Write a limited-size here document to $tmp/undefs.sed.
22875 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22876 # Speed up: don't consider the non `#undef'
22877 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22878 # Work around the forget-to-reset-the-flag bug.
22879 echo 't clr' >>$CONFIG_STATUS
22880 echo ': clr' >>$CONFIG_STATUS
22881 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 22882 echo 'CEOF
bec39cab
AC
22883 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22884 rm -f $tmp/in
22885 mv $tmp/out $tmp/in
22886' >>$CONFIG_STATUS
22887 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22888 rm -f conftest.undefs
22889 mv conftest.tail conftest.undefs
22890done
22891rm -f conftest.undefs
22892
22893cat >>$CONFIG_STATUS <<\_ACEOF
22894 # Let's still pretend it is `configure' which instantiates (i.e., don't
22895 # use $as_me), people would be surprised to read:
22896 # /* config.h. Generated by config.status. */
22897 if test x"$ac_file" = x-; then
22898 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 22899 else
bec39cab 22900 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 22901 fi
bec39cab
AC
22902 cat $tmp/in >>$tmp/config.h
22903 rm -f $tmp/in
22904 if test x"$ac_file" != x-; then
22905 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22906 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22907echo "$as_me: $ac_file is unchanged" >&6;}
22908 else
22909 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22910$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22911 X"$ac_file" : 'X\(//\)[^/]' \| \
22912 X"$ac_file" : 'X\(//\)$' \| \
22913 X"$ac_file" : 'X\(/\)' \| \
22914 . : '\(.\)' 2>/dev/null ||
22915echo X"$ac_file" |
22916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22918 /^X\(\/\/\)$/{ s//\1/; q; }
22919 /^X\(\/\).*/{ s//\1/; q; }
22920 s/.*/./; q'`
22921 { if $as_mkdir_p; then
22922 mkdir -p "$ac_dir"
22923 else
22924 as_dir="$ac_dir"
22925 as_dirs=
22926 while test ! -d "$as_dir"; do
22927 as_dirs="$as_dir $as_dirs"
22928 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22929$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22930 X"$as_dir" : 'X\(//\)[^/]' \| \
22931 X"$as_dir" : 'X\(//\)$' \| \
22932 X"$as_dir" : 'X\(/\)' \| \
22933 . : '\(.\)' 2>/dev/null ||
22934echo X"$as_dir" |
22935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22937 /^X\(\/\/\)$/{ s//\1/; q; }
22938 /^X\(\/\).*/{ s//\1/; q; }
22939 s/.*/./; q'`
22940 done
22941 test ! -n "$as_dirs" || mkdir $as_dirs
22942 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22943echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22944 { (exit 1); exit 1; }; }; }
c906108c 22945
bec39cab
AC
22946 rm -f $ac_file
22947 mv $tmp/config.h $ac_file
22948 fi
22949 else
22950 cat $tmp/config.h
22951 rm -f $tmp/config.h
22952 fi
22953done
22954_ACEOF
22955cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 22956
bec39cab
AC
22957#
22958# CONFIG_LINKS section.
22959#
c906108c 22960
bec39cab
AC
22961for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22962 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22963 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 22964
bec39cab
AC
22965 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22966echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
22967
22968 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
22969 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22970echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22971 { (exit 1); exit 1; }; }
c906108c
SS
22972 fi
22973 rm -f $ac_dest
22974
22975 # Make relative symlinks.
bec39cab
AC
22976 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22977$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22978 X"$ac_dest" : 'X\(//\)[^/]' \| \
22979 X"$ac_dest" : 'X\(//\)$' \| \
22980 X"$ac_dest" : 'X\(/\)' \| \
22981 . : '\(.\)' 2>/dev/null ||
22982echo X"$ac_dest" |
22983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22985 /^X\(\/\/\)$/{ s//\1/; q; }
22986 /^X\(\/\).*/{ s//\1/; q; }
22987 s/.*/./; q'`
22988 { if $as_mkdir_p; then
22989 mkdir -p "$ac_dest_dir"
c906108c 22990 else
bec39cab
AC
22991 as_dir="$ac_dest_dir"
22992 as_dirs=
22993 while test ! -d "$as_dir"; do
22994 as_dirs="$as_dir $as_dirs"
22995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22997 X"$as_dir" : 'X\(//\)[^/]' \| \
22998 X"$as_dir" : 'X\(//\)$' \| \
22999 X"$as_dir" : 'X\(/\)' \| \
23000 . : '\(.\)' 2>/dev/null ||
23001echo X"$as_dir" |
23002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23004 /^X\(\/\/\)$/{ s//\1/; q; }
23005 /^X\(\/\).*/{ s//\1/; q; }
23006 s/.*/./; q'`
23007 done
23008 test ! -n "$as_dirs" || mkdir $as_dirs
23009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23010echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23011 { (exit 1); exit 1; }; }; }
23012
23013 ac_builddir=.
23014
23015if test "$ac_dest_dir" != .; then
23016 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23017 # A "../" for each directory in $ac_dir_suffix.
23018 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23019else
23020 ac_dir_suffix= ac_top_builddir=
23021fi
23022
23023case $srcdir in
23024 .) # No --srcdir option. We are building in place.
23025 ac_srcdir=.
23026 if test -z "$ac_top_builddir"; then
23027 ac_top_srcdir=.
23028 else
23029 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23030 fi ;;
23031 [\\/]* | ?:[\\/]* ) # Absolute path.
23032 ac_srcdir=$srcdir$ac_dir_suffix;
23033 ac_top_srcdir=$srcdir ;;
23034 *) # Relative path.
23035 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23036 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23037esac
23038
23039# Do not use `cd foo && pwd` to compute absolute paths, because
23040# the directories may not exist.
23041case `pwd` in
23042.) ac_abs_builddir="$ac_dest_dir";;
23043*)
23044 case "$ac_dest_dir" in
23045 .) ac_abs_builddir=`pwd`;;
23046 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23047 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23048 esac;;
23049esac
23050case $ac_abs_builddir in
23051.) ac_abs_top_builddir=${ac_top_builddir}.;;
23052*)
23053 case ${ac_top_builddir}. in
23054 .) ac_abs_top_builddir=$ac_abs_builddir;;
23055 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23056 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23057 esac;;
23058esac
23059case $ac_abs_builddir in
23060.) ac_abs_srcdir=$ac_srcdir;;
23061*)
23062 case $ac_srcdir in
23063 .) ac_abs_srcdir=$ac_abs_builddir;;
23064 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23065 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23066 esac;;
23067esac
23068case $ac_abs_builddir in
23069.) ac_abs_top_srcdir=$ac_top_srcdir;;
23070*)
23071 case $ac_top_srcdir in
23072 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23073 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23074 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23075 esac;;
23076esac
c906108c 23077
bec39cab
AC
23078
23079 case $srcdir in
23080 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23081 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23082 esac
23083
bec39cab
AC
23084 # Try a symlink, then a hard link, then a copy.
23085 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23086 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23087 cp -p $srcdir/$ac_source $ac_dest ||
23088 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23089echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23090 { (exit 1); exit 1; }; }
c906108c 23091done
bec39cab
AC
23092_ACEOF
23093cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23094
bec39cab
AC
23095#
23096# CONFIG_COMMANDS section.
23097#
23098for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23099 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23100 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23101 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23102$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23103 X"$ac_dest" : 'X\(//\)[^/]' \| \
23104 X"$ac_dest" : 'X\(//\)$' \| \
23105 X"$ac_dest" : 'X\(/\)' \| \
23106 . : '\(.\)' 2>/dev/null ||
23107echo X"$ac_dest" |
23108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23110 /^X\(\/\/\)$/{ s//\1/; q; }
23111 /^X\(\/\).*/{ s//\1/; q; }
23112 s/.*/./; q'`
23113 { if $as_mkdir_p; then
23114 mkdir -p "$ac_dir"
23115 else
23116 as_dir="$ac_dir"
23117 as_dirs=
23118 while test ! -d "$as_dir"; do
23119 as_dirs="$as_dir $as_dirs"
23120 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23122 X"$as_dir" : 'X\(//\)[^/]' \| \
23123 X"$as_dir" : 'X\(//\)$' \| \
23124 X"$as_dir" : 'X\(/\)' \| \
23125 . : '\(.\)' 2>/dev/null ||
23126echo X"$as_dir" |
23127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23129 /^X\(\/\/\)$/{ s//\1/; q; }
23130 /^X\(\/\).*/{ s//\1/; q; }
23131 s/.*/./; q'`
23132 done
23133 test ! -n "$as_dirs" || mkdir $as_dirs
23134 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23135echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23136 { (exit 1); exit 1; }; }; }
23137
23138 ac_builddir=.
23139
23140if test "$ac_dir" != .; then
23141 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23142 # A "../" for each directory in $ac_dir_suffix.
23143 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23144else
23145 ac_dir_suffix= ac_top_builddir=
23146fi
23147
23148case $srcdir in
23149 .) # No --srcdir option. We are building in place.
23150 ac_srcdir=.
23151 if test -z "$ac_top_builddir"; then
23152 ac_top_srcdir=.
23153 else
23154 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23155 fi ;;
23156 [\\/]* | ?:[\\/]* ) # Absolute path.
23157 ac_srcdir=$srcdir$ac_dir_suffix;
23158 ac_top_srcdir=$srcdir ;;
23159 *) # Relative path.
23160 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23161 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23162esac
23163
23164# Do not use `cd foo && pwd` to compute absolute paths, because
23165# the directories may not exist.
23166case `pwd` in
23167.) ac_abs_builddir="$ac_dir";;
23168*)
23169 case "$ac_dir" in
23170 .) ac_abs_builddir=`pwd`;;
23171 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23172 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23173 esac;;
23174esac
23175case $ac_abs_builddir in
23176.) ac_abs_top_builddir=${ac_top_builddir}.;;
23177*)
23178 case ${ac_top_builddir}. in
23179 .) ac_abs_top_builddir=$ac_abs_builddir;;
23180 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23181 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23182 esac;;
23183esac
23184case $ac_abs_builddir in
23185.) ac_abs_srcdir=$ac_srcdir;;
23186*)
23187 case $ac_srcdir in
23188 .) ac_abs_srcdir=$ac_abs_builddir;;
23189 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23190 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23191 esac;;
23192esac
23193case $ac_abs_builddir in
23194.) ac_abs_top_srcdir=$ac_top_srcdir;;
23195*)
23196 case $ac_top_srcdir in
23197 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23198 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23199 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23200 esac;;
23201esac
c906108c 23202
c906108c 23203
bec39cab
AC
23204 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23205echo "$as_me: executing $ac_dest commands" >&6;}
23206 case $ac_dest in
23207 default )
c906108c 23208
2c0fc042 23209sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23210/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23211/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23212mv -f Makefile.tmp Makefile
23213
2acceee2 23214
c906108c
SS
23215case x$CONFIG_HEADERS in
23216xconfig.h:config.in)
23217echo > stamp-h ;;
23218esac
bec39cab
AC
23219 ;;
23220 esac
23221done
23222_ACEOF
c906108c 23223
bec39cab
AC
23224cat >>$CONFIG_STATUS <<\_ACEOF
23225
23226{ (exit 0); exit 0; }
23227_ACEOF
c906108c 23228chmod +x $CONFIG_STATUS
bec39cab
AC
23229ac_clean_files=$ac_clean_files_save
23230
23231
23232# configure is writing to config.log, and then calls config.status.
23233# config.status does its own redirection, appending to config.log.
23234# Unfortunately, on DOS this fails, as config.log is still kept open
23235# by configure, so config.status won't be able to write to it; its
23236# output is simply discarded. So we exec the FD to /dev/null,
23237# effectively closing config.log, so it can be properly (re)opened and
23238# appended to by config.status. When coming back to configure, we
23239# need to make the FD available again.
23240if test "$no_create" != yes; then
23241 ac_cs_success=:
23242 ac_config_status_args=
23243 test "$silent" = yes &&
23244 ac_config_status_args="$ac_config_status_args --quiet"
23245 exec 5>/dev/null
23246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23247 exec 5>>config.log
23248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23249 # would make configure fail if this is the last instruction.
23250 $ac_cs_success || { (exit 1); exit 1; }
23251fi
c906108c 23252
bec39cab
AC
23253#
23254# CONFIG_SUBDIRS section.
23255#
c906108c
SS
23256if test "$no_recursion" != yes; then
23257
23258 # Remove --cache-file and --srcdir arguments so they do not pile up.
23259 ac_sub_configure_args=
23260 ac_prev=
23261 for ac_arg in $ac_configure_args; do
23262 if test -n "$ac_prev"; then
23263 ac_prev=
23264 continue
23265 fi
bec39cab 23266 case $ac_arg in
c906108c
SS
23267 -cache-file | --cache-file | --cache-fil | --cache-fi \
23268 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23269 ac_prev=cache_file ;;
23270 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23271 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23272 | --c=*)
23273 ;;
23274 --config-cache | -C)
c906108c
SS
23275 ;;
23276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23277 ac_prev=srcdir ;;
23278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23279 ;;
bec39cab
AC
23280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23281 ac_prev=prefix ;;
23282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23283 ;;
c906108c
SS
23284 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23285 esac
23286 done
23287
bec39cab
AC
23288 # Always prepend --prefix to ensure using the same prefix
23289 # in subdir configurations.
23290 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23291
23292 ac_popdir=`pwd`
23293 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23294
23295 # Do not complain, so a configure script can configure whichever
23296 # parts of a large source tree are present.
bec39cab 23297 test -d $srcdir/$ac_dir || continue
c906108c 23298
bec39cab
AC
23299 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23300echo "$as_me: configuring in $ac_dir" >&6;}
23301 { if $as_mkdir_p; then
23302 mkdir -p "$ac_dir"
23303 else
23304 as_dir="$ac_dir"
23305 as_dirs=
23306 while test ! -d "$as_dir"; do
23307 as_dirs="$as_dir $as_dirs"
23308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23309$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23310 X"$as_dir" : 'X\(//\)[^/]' \| \
23311 X"$as_dir" : 'X\(//\)$' \| \
23312 X"$as_dir" : 'X\(/\)' \| \
23313 . : '\(.\)' 2>/dev/null ||
23314echo X"$as_dir" |
23315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23317 /^X\(\/\/\)$/{ s//\1/; q; }
23318 /^X\(\/\).*/{ s//\1/; q; }
23319 s/.*/./; q'`
23320 done
23321 test ! -n "$as_dirs" || mkdir $as_dirs
23322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23323echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23324 { (exit 1); exit 1; }; }; }
c906108c 23325
bec39cab
AC
23326 ac_builddir=.
23327
23328if test "$ac_dir" != .; then
23329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23330 # A "../" for each directory in $ac_dir_suffix.
23331 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23332else
23333 ac_dir_suffix= ac_top_builddir=
23334fi
23335
23336case $srcdir in
23337 .) # No --srcdir option. We are building in place.
23338 ac_srcdir=.
23339 if test -z "$ac_top_builddir"; then
23340 ac_top_srcdir=.
23341 else
23342 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23343 fi ;;
23344 [\\/]* | ?:[\\/]* ) # Absolute path.
23345 ac_srcdir=$srcdir$ac_dir_suffix;
23346 ac_top_srcdir=$srcdir ;;
23347 *) # Relative path.
23348 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23349 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23350esac
c906108c 23351
bec39cab
AC
23352# Do not use `cd foo && pwd` to compute absolute paths, because
23353# the directories may not exist.
23354case `pwd` in
23355.) ac_abs_builddir="$ac_dir";;
23356*)
23357 case "$ac_dir" in
23358 .) ac_abs_builddir=`pwd`;;
23359 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23360 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23361 esac;;
23362esac
23363case $ac_abs_builddir in
23364.) ac_abs_top_builddir=${ac_top_builddir}.;;
23365*)
23366 case ${ac_top_builddir}. in
23367 .) ac_abs_top_builddir=$ac_abs_builddir;;
23368 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23369 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23370 esac;;
23371esac
23372case $ac_abs_builddir in
23373.) ac_abs_srcdir=$ac_srcdir;;
23374*)
23375 case $ac_srcdir in
23376 .) ac_abs_srcdir=$ac_abs_builddir;;
23377 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23378 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23379 esac;;
23380esac
23381case $ac_abs_builddir in
23382.) ac_abs_top_srcdir=$ac_top_srcdir;;
23383*)
23384 case $ac_top_srcdir in
23385 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23386 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23387 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23388 esac;;
23389esac
c906108c 23390
c906108c 23391
bec39cab 23392 cd $ac_dir
c906108c
SS
23393
23394 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23395 if test -f $ac_srcdir/configure.gnu; then
23396 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23397 elif test -f $ac_srcdir/configure; then
23398 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23399 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23400 ac_sub_configure=$ac_configure
23401 else
bec39cab
AC
23402 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23403echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23404 ac_sub_configure=
23405 fi
23406
23407 # The recursion is here.
23408 if test -n "$ac_sub_configure"; then
c906108c 23409 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23410 case $cache_file in
23411 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23412 *) # Relative path.
bec39cab 23413 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23414 esac
c906108c 23415
bec39cab
AC
23416 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23417echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23418 # The eval makes quoting arguments work.
bec39cab
AC
23419 eval $ac_sub_configure $ac_sub_configure_args \
23420 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23421 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23422echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23423 { (exit 1); exit 1; }; }
c906108c
SS
23424 fi
23425
23426 cd $ac_popdir
23427 done
23428fi
23429
23430
23431exit 0
This page took 1.62754 seconds and 4 git commands to generate.