* config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
[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 316ac_subdirs_all="$ac_subdirs_all nlm"
c21a4eee 317ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
bec39cab 318ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
319
320# Initialize some variables set by options.
bec39cab
AC
321ac_init_help=
322ac_init_version=false
c906108c
SS
323# The variables have the same names as the options, with
324# dashes changed to underlines.
bec39cab 325cache_file=/dev/null
c906108c 326exec_prefix=NONE
c906108c 327no_create=
c906108c
SS
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
c906108c
SS
336verbose=
337x_includes=NONE
338x_libraries=NONE
bec39cab
AC
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
348datadir='${prefix}/share'
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
352libdir='${exec_prefix}/lib'
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
355infodir='${prefix}/info'
356mandir='${prefix}/man'
357
c906108c
SS
358ac_prev=
359for ac_option
360do
c906108c
SS
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
366 fi
367
bec39cab 368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
bec39cab 372 case $ac_option in
c906108c
SS
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 377 bindir=$ac_optarg ;;
c906108c
SS
378
379 -build | --build | --buil | --bui | --bu)
bec39cab 380 ac_prev=build_alias ;;
c906108c 381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 382 build_alias=$ac_optarg ;;
c906108c
SS
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
c906108c
SS
393
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
bec39cab 398 datadir=$ac_optarg ;;
c906108c
SS
399
400 -disable-* | --disable-*)
bec39cab 401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 402 # Reject names that are not valid shell variable names.
bec39cab
AC
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
c906108c
SS
408
409 -enable-* | --enable-*)
bec39cab 410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 411 # Reject names that are not valid shell variable names.
bec39cab
AC
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
418 *) ac_optarg=yes ;;
419 esac
bec39cab 420 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
bec39cab 429 exec_prefix=$ac_optarg ;;
c906108c
SS
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
bec39cab
AC
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
c906108c
SS
441
442 -host | --host | --hos | --ho)
bec39cab 443 ac_prev=host_alias ;;
c906108c 444 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 445 host_alias=$ac_optarg ;;
c906108c
SS
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 452 includedir=$ac_optarg ;;
c906108c
SS
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 457 infodir=$ac_optarg ;;
c906108c
SS
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 462 libdir=$ac_optarg ;;
c906108c
SS
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
bec39cab 469 libexecdir=$ac_optarg ;;
c906108c
SS
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 478 localstatedir=$ac_optarg ;;
c906108c
SS
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 483 mandir=$ac_optarg ;;
c906108c
SS
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 490 | --no-cr | --no-c | -n)
c906108c
SS
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 504 oldincludedir=$ac_optarg ;;
c906108c
SS
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 509 prefix=$ac_optarg ;;
c906108c
SS
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 516 program_prefix=$ac_optarg ;;
c906108c
SS
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 523 program_suffix=$ac_optarg ;;
c906108c
SS
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 540 program_transform_name=$ac_optarg ;;
c906108c
SS
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
bec39cab 550 sbindir=$ac_optarg ;;
c906108c
SS
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
bec39cab 561 sharedstatedir=$ac_optarg ;;
c906108c
SS
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
bec39cab 566 site=$ac_optarg ;;
3ace7edb 567
c906108c
SS
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 571 srcdir=$ac_optarg ;;
c906108c
SS
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 578 sysconfdir=$ac_optarg ;;
c906108c
SS
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 581 ac_prev=target_alias ;;
c906108c 582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 583 target_alias=$ac_optarg ;;
c906108c
SS
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
bec39cab
AC
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
c906108c
SS
590
591 -with-* | --with-*)
bec39cab 592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 593 # Reject names that are not valid shell variable names.
bec39cab
AC
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
c906108c 597 ac_package=`echo $ac_package| sed 's/-/_/g'`
bec39cab
AC
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
600 *) ac_optarg=yes ;;
601 esac
bec39cab 602 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
603
604 -without-* | --without-*)
bec39cab 605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 606 # Reject names that are not valid shell variable names.
bec39cab
AC
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
c906108c
SS
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 622 x_includes=$ac_optarg ;;
c906108c
SS
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 629 x_libraries=$ac_optarg ;;
c906108c 630
bec39cab
AC
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
c906108c
SS
634 ;;
635
bec39cab
AC
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
645
c906108c 646 *)
bec39cab
AC
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
652 ;;
653
654 esac
655done
656
657if test -n "$ac_prev"; then
bec39cab
AC
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
c906108c 661fi
c906108c 662
bec39cab
AC
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
665do
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672done
c906108c 673
bec39cab
AC
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 677do
bec39cab
AC
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
c906108c
SS
683 esac
684done
685
bec39cab
AC
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
688# FIXME: To remove some day.
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
693# FIXME: To remove some day.
694if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702fi
c906108c 703
bec39cab
AC
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
c906108c 708
c906108c
SS
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
bec39cab
AC
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
c906108c
SS
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
c906108c 737 else
bec39cab
AC
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
c906108c
SS
740 fi
741fi
bec39cab
AC
742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746ac_env_build_alias_set=${build_alias+set}
747ac_env_build_alias_value=$build_alias
748ac_cv_env_build_alias_set=${build_alias+set}
749ac_cv_env_build_alias_value=$build_alias
750ac_env_host_alias_set=${host_alias+set}
751ac_env_host_alias_value=$host_alias
752ac_cv_env_host_alias_set=${host_alias+set}
753ac_cv_env_host_alias_value=$host_alias
754ac_env_target_alias_set=${target_alias+set}
755ac_env_target_alias_value=$target_alias
756ac_cv_env_target_alias_set=${target_alias+set}
757ac_cv_env_target_alias_value=$target_alias
758ac_env_CC_set=${CC+set}
759ac_env_CC_value=$CC
760ac_cv_env_CC_set=${CC+set}
761ac_cv_env_CC_value=$CC
762ac_env_CFLAGS_set=${CFLAGS+set}
763ac_env_CFLAGS_value=$CFLAGS
764ac_cv_env_CFLAGS_set=${CFLAGS+set}
765ac_cv_env_CFLAGS_value=$CFLAGS
766ac_env_LDFLAGS_set=${LDFLAGS+set}
767ac_env_LDFLAGS_value=$LDFLAGS
768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769ac_cv_env_LDFLAGS_value=$LDFLAGS
770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_env_CPPFLAGS_value=$CPPFLAGS
772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774ac_env_CPP_set=${CPP+set}
775ac_env_CPP_value=$CPP
776ac_cv_env_CPP_set=${CPP+set}
777ac_cv_env_CPP_value=$CPP
c906108c 778
bec39cab
AC
779#
780# Report the --help message.
781#
782if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
785 cat <<_ACEOF
786\`configure' configures this package to adapt to many kinds of systems.
787
788Usage: $0 [OPTION]... [VAR=VALUE]...
789
790To assign environment variables (e.g., CC, CFLAGS...), specify them as
791VAR=VALUE. See below for descriptions of some of the useful variables.
792
793Defaults for the options are specified in brackets.
794
795Configuration:
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805
806_ACEOF
807
808 cat <<_ACEOF
809Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
811 [$ac_default_prefix]
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 [PREFIX]
814
815By default, \`make install' will install all the files in
816\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818for instance \`--prefix=\$HOME'.
819
820For better control, use the options below.
821
822Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
835_ACEOF
836
837 cat <<\_ACEOF
838
839Program names:
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
844X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
852_ACEOF
853fi
854
855if test -n "$ac_init_help"; then
856
857 cat <<\_ACEOF
858
859Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
bec39cab
AC
864 --disable-nls do not use Native Language Support
865 --disable-gdbcli disable command-line interface (CLI)
866 --disable-gdbmi disable machine-interface (MI)
867 --enable-tui enable full-screen terminal user interface (TUI)
868 --enable-gdbtk enable gdbtk graphical user interface (GUI)
869 --enable-profiling enable profiling of GDB
094a342e 870 --enable-werror treat compile warnings as errors
bec39cab
AC
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
121ce6e5 995 cd "$ac_popdir"
bec39cab
AC
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); } &&
121ce6e5 1937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 ac_compiler_gnu=yes
1950else
1951 echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954ac_compiler_gnu=no
1955fi
1956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957ac_cv_c_compiler_gnu=$ac_compiler_gnu
1958
1959fi
1960echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1961echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1962GCC=`test $ac_compiler_gnu = yes && echo yes`
1963ac_test_CFLAGS=${CFLAGS+set}
1964ac_save_CFLAGS=$CFLAGS
1965CFLAGS="-g"
1966echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1967echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1968if test "${ac_cv_prog_cc_g+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 cat >conftest.$ac_ext <<_ACEOF
1972/* confdefs.h. */
1973_ACEOF
1974cat confdefs.h >>conftest.$ac_ext
1975cat >>conftest.$ac_ext <<_ACEOF
1976/* end confdefs.h. */
1977
1978int
1979main ()
1980{
1981
1982 ;
1983 return 0;
1984}
1985_ACEOF
1986rm -f conftest.$ac_objext
1987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>conftest.er1
1989 ac_status=$?
1990 grep -v '^ *+' conftest.er1 >conftest.err
1991 rm -f conftest.er1
1992 cat conftest.err >&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
121ce6e5 1995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997 (eval $ac_try) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; } &&
2001 { ac_try='test -s conftest.$ac_objext'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
c906108c
SS
2007 ac_cv_prog_cc_g=yes
2008else
bec39cab
AC
2009 echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2011
bec39cab 2012ac_cv_prog_cc_g=no
c906108c 2013fi
bec39cab
AC
2014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2015fi
2016echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2017echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2018if test "$ac_test_CFLAGS" = set; then
bec39cab 2019 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2020elif test $ac_cv_prog_cc_g = yes; then
2021 if test "$GCC" = yes; then
2022 CFLAGS="-g -O2"
2023 else
2024 CFLAGS="-g"
2025 fi
2026else
2027 if test "$GCC" = yes; then
2028 CFLAGS="-O2"
2029 else
2030 CFLAGS=
2031 fi
2032fi
bec39cab
AC
2033echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2034echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2035if test "${ac_cv_prog_cc_stdc+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038 ac_cv_prog_cc_stdc=no
2039ac_save_CC=$CC
2040cat >conftest.$ac_ext <<_ACEOF
2041/* confdefs.h. */
2042_ACEOF
2043cat confdefs.h >>conftest.$ac_ext
2044cat >>conftest.$ac_ext <<_ACEOF
2045/* end confdefs.h. */
c906108c
SS
2046#include <stdarg.h>
2047#include <stdio.h>
2048#include <sys/types.h>
2049#include <sys/stat.h>
2050/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2051struct buf { int x; };
2052FILE * (*rcsopen) (struct buf *, struct stat *, int);
2053static char *e (p, i)
2054 char **p;
2055 int i;
2056{
2057 return p[i];
2058}
2059static char *f (char * (*g) (char **, int), char **p, ...)
2060{
2061 char *s;
2062 va_list v;
2063 va_start (v,p);
2064 s = g (p, va_arg (v,int));
2065 va_end (v);
2066 return s;
2067}
bec39cab
AC
2068
2069/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2070 function prototypes and stuff, but not '\xHH' hex character constants.
2071 These don't provoke an error unfortunately, instead are silently treated
2072 as 'x'. The following induces an error, until -std1 is added to get
2073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2074 array size at least. It's necessary to write '\x00'==0 to get something
2075 that's true only with -std1. */
2076int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2077
c906108c
SS
2078int test (int i, double x);
2079struct s1 {int (*f) (int a);};
2080struct s2 {int (*f) (double a);};
2081int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2082int argc;
2083char **argv;
bec39cab
AC
2084int
2085main ()
2086{
c906108c 2087return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2088 ;
2089 return 0;
2090}
2091_ACEOF
2092# Don't try gcc -ansi; that turns off useful extensions and
2093# breaks some systems' header files.
2094# AIX -qlanglvl=ansi
2095# Ultrix and OSF/1 -std1
2096# HP-UX 10.20 and later -Ae
2097# HP-UX older versions -Aa -D_HPUX_SOURCE
2098# SVR4 -Xc -D__EXTENSIONS__
2099for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2100do
2101 CC="$ac_save_CC $ac_arg"
2102 rm -f conftest.$ac_objext
2103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>conftest.er1
2105 ac_status=$?
2106 grep -v '^ *+' conftest.er1 >conftest.err
2107 rm -f conftest.er1
2108 cat conftest.err >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); } &&
121ce6e5 2111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 ac_cv_prog_cc_stdc=$ac_arg
2124break
c906108c 2125else
bec39cab
AC
2126 echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
c906108c 2129fi
bec39cab 2130rm -f conftest.err conftest.$ac_objext
c906108c 2131done
bec39cab
AC
2132rm -f conftest.$ac_ext conftest.$ac_objext
2133CC=$ac_save_CC
c906108c
SS
2134
2135fi
2136
bec39cab
AC
2137case "x$ac_cv_prog_cc_stdc" in
2138 x|xno)
2139 echo "$as_me:$LINENO: result: none needed" >&5
2140echo "${ECHO_T}none needed" >&6 ;;
2141 *)
2142 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2143echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2144 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2145esac
2146
bec39cab
AC
2147# Some people use a C++ compiler to compile C. Since we use `exit',
2148# in C++ we need to declare it. In case someone uses the same compiler
2149# for both compiling C and C++ we need to have the C++ compiler decide
2150# the declaration of exit, since it's the most demanding environment.
2151cat >conftest.$ac_ext <<_ACEOF
2152#ifndef __cplusplus
2153 choke me
2154#endif
2155_ACEOF
2156rm -f conftest.$ac_objext
2157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2159 ac_status=$?
2160 grep -v '^ *+' conftest.er1 >conftest.err
2161 rm -f conftest.er1
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
121ce6e5 2165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 (eval $ac_try) 2>&5
2168 ac_status=$?
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; } &&
2171 { ac_try='test -s conftest.$ac_objext'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; }; then
2177 for ac_declaration in \
2178 '' \
2179 'extern "C" void std::exit (int) throw (); using std::exit;' \
2180 'extern "C" void std::exit (int); using std::exit;' \
2181 'extern "C" void exit (int) throw ();' \
2182 'extern "C" void exit (int);' \
2183 'void exit (int);'
2184do
2185 cat >conftest.$ac_ext <<_ACEOF
2186/* confdefs.h. */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h. */
2191$ac_declaration
2192#include <stdlib.h>
2193int
2194main ()
2195{
2196exit (42);
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201rm -f conftest.$ac_objext
2202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>conftest.er1
2204 ac_status=$?
2205 grep -v '^ *+' conftest.er1 >conftest.err
2206 rm -f conftest.er1
2207 cat conftest.err >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
121ce6e5 2210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 :
2223else
2224 echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2226
bec39cab 2227continue
c906108c 2228fi
bec39cab
AC
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230 cat >conftest.$ac_ext <<_ACEOF
2231/* confdefs.h. */
2232_ACEOF
2233cat confdefs.h >>conftest.$ac_ext
2234cat >>conftest.$ac_ext <<_ACEOF
2235/* end confdefs.h. */
2236$ac_declaration
2237int
2238main ()
2239{
2240exit (42);
2241 ;
2242 return 0;
2243}
2244_ACEOF
2245rm -f conftest.$ac_objext
2246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2248 ac_status=$?
2249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
121ce6e5 2254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; } &&
2260 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2266 break
2267else
2268 echo "$as_me: failed program was:" >&5
2269sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2270
bec39cab
AC
2271fi
2272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273done
2274rm -f conftest*
2275if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
c906108c
SS
2279fi
2280
bec39cab
AC
2281else
2282 echo "$as_me: failed program was:" >&5
2283sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2284
bec39cab
AC
2285fi
2286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287ac_ext=c
2288ac_cpp='$CPP $CPPFLAGS'
2289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2292
60ca704f 2293
bec39cab
AC
2294cat >>confdefs.h <<\_ACEOF
2295#define _GNU_SOURCE 1
2296_ACEOF
c906108c
SS
2297
2298
8bb2c122 2299
bec39cab
AC
2300ac_ext=c
2301ac_cpp='$CPP $CPPFLAGS'
2302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2306echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2307# On Suns, sometimes $CPP names a directory.
2308if test -n "$CPP" && test -d "$CPP"; then
2309 CPP=
8bb2c122 2310fi
bec39cab
AC
2311if test -z "$CPP"; then
2312 if test "${ac_cv_prog_CPP+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315 # Double quotes because CPP needs to be expanded
2316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2317 do
2318 ac_preproc_ok=false
2319for ac_c_preproc_warn_flag in '' yes
2320do
2321 # Use a header file that comes with gcc, so configuring glibc
2322 # with a fresh cross-compiler works.
2323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2324 # <limits.h> exists even on freestanding compilers.
2325 # On the NeXT, cc -E runs the code through the compiler's parser,
2326 # not just through cpp. "Syntax error" is here to catch this case.
2327 cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h. */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h. */
2333#ifdef __STDC__
2334# include <limits.h>
2335#else
2336# include <assert.h>
2337#endif
2338 Syntax error
2339_ACEOF
2340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } >/dev/null; then
2348 if test -s conftest.err; then
2349 ac_cpp_err=$ac_c_preproc_warn_flag
2350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2351 else
2352 ac_cpp_err=
2353 fi
8bb2c122 2354else
bec39cab 2355 ac_cpp_err=yes
8bb2c122 2356fi
bec39cab
AC
2357if test -z "$ac_cpp_err"; then
2358 :
8bb2c122 2359else
bec39cab
AC
2360 echo "$as_me: failed program was:" >&5
2361sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 # Broken: fails on valid input.
2364continue
2365fi
2366rm -f conftest.err conftest.$ac_ext
2367
2368 # OK, works on sane cases. Now check whether non-existent headers
2369 # can be detected and how.
2370 cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h. */
2376#include <ac_nonexistent.h>
2377_ACEOF
2378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2380 ac_status=$?
2381 grep -v '^ *+' conftest.er1 >conftest.err
2382 rm -f conftest.er1
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } >/dev/null; then
2386 if test -s conftest.err; then
2387 ac_cpp_err=$ac_c_preproc_warn_flag
2388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2389 else
2390 ac_cpp_err=
2391 fi
8bb2c122 2392else
bec39cab 2393 ac_cpp_err=yes
8bb2c122 2394fi
bec39cab
AC
2395if test -z "$ac_cpp_err"; then
2396 # Broken: success on invalid input.
2397continue
8bb2c122 2398else
bec39cab
AC
2399 echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2401
bec39cab
AC
2402 # Passes both tests.
2403ac_preproc_ok=:
2404break
8bb2c122 2405fi
bec39cab 2406rm -f conftest.err conftest.$ac_ext
8bb2c122 2407
bec39cab
AC
2408done
2409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2410rm -f conftest.err conftest.$ac_ext
2411if $ac_preproc_ok; then
2412 break
2413fi
8bb2c122 2414
bec39cab
AC
2415 done
2416 ac_cv_prog_CPP=$CPP
ddc9cd0f 2417
c906108c 2418fi
bec39cab
AC
2419 CPP=$ac_cv_prog_CPP
2420else
2421 ac_cv_prog_CPP=$CPP
c906108c 2422fi
bec39cab
AC
2423echo "$as_me:$LINENO: result: $CPP" >&5
2424echo "${ECHO_T}$CPP" >&6
2425ac_preproc_ok=false
2426for ac_c_preproc_warn_flag in '' yes
2427do
2428 # Use a header file that comes with gcc, so configuring glibc
2429 # with a fresh cross-compiler works.
2430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2431 # <limits.h> exists even on freestanding compilers.
2432 # On the NeXT, cc -E runs the code through the compiler's parser,
2433 # not just through cpp. "Syntax error" is here to catch this case.
2434 cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h. */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h. */
2440#ifdef __STDC__
2441# include <limits.h>
2442#else
2443# include <assert.h>
2444#endif
2445 Syntax error
2446_ACEOF
2447if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } >/dev/null; then
2455 if test -s conftest.err; then
2456 ac_cpp_err=$ac_c_preproc_warn_flag
2457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2458 else
2459 ac_cpp_err=
2460 fi
c906108c 2461else
bec39cab 2462 ac_cpp_err=yes
c906108c 2463fi
bec39cab
AC
2464if test -z "$ac_cpp_err"; then
2465 :
c906108c 2466else
bec39cab
AC
2467 echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 # Broken: fails on valid input.
2471continue
2472fi
2473rm -f conftest.err conftest.$ac_ext
2474
2475 # OK, works on sane cases. Now check whether non-existent headers
2476 # can be detected and how.
2477 cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h. */
2483#include <ac_nonexistent.h>
2484_ACEOF
2485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } >/dev/null; then
2493 if test -s conftest.err; then
2494 ac_cpp_err=$ac_c_preproc_warn_flag
2495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2496 else
2497 ac_cpp_err=
2498 fi
c906108c 2499else
bec39cab 2500 ac_cpp_err=yes
c906108c 2501fi
bec39cab
AC
2502if test -z "$ac_cpp_err"; then
2503 # Broken: success on invalid input.
2504continue
c906108c 2505else
bec39cab
AC
2506 echo "$as_me: failed program was:" >&5
2507sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2508
bec39cab
AC
2509 # Passes both tests.
2510ac_preproc_ok=:
2511break
c906108c 2512fi
bec39cab 2513rm -f conftest.err conftest.$ac_ext
c906108c 2514
bec39cab
AC
2515done
2516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2517rm -f conftest.err conftest.$ac_ext
2518if $ac_preproc_ok; then
c906108c
SS
2519 :
2520else
bec39cab
AC
2521 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2522See \`config.log' for more details." >&5
2523echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2524See \`config.log' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
c906108c 2526fi
c906108c 2527
bec39cab
AC
2528ac_ext=c
2529ac_cpp='$CPP $CPPFLAGS'
2530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533
2534
2535echo "$as_me:$LINENO: checking for egrep" >&5
2536echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2537if test "${ac_cv_prog_egrep+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2541 then ac_cv_prog_egrep='grep -E'
2542 else ac_cv_prog_egrep='egrep'
2543 fi
c906108c 2544fi
bec39cab
AC
2545echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2546echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2547 EGREP=$ac_cv_prog_egrep
c906108c 2548
bec39cab
AC
2549
2550
2551echo "$as_me:$LINENO: checking for AIX" >&5
2552echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2553cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h. */
2559#ifdef _AIX
2560 yes
2561#endif
2562
2563_ACEOF
c906108c 2564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2565 $EGREP "yes" >/dev/null 2>&1; then
2566 echo "$as_me:$LINENO: result: yes" >&5
2567echo "${ECHO_T}yes" >&6
2568cat >>confdefs.h <<\_ACEOF
2569#define _ALL_SOURCE 1
2570_ACEOF
2571
c906108c 2572else
bec39cab
AC
2573 echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6
c906108c
SS
2575fi
2576rm -f conftest*
2577
c906108c 2578
bec39cab
AC
2579echo "$as_me:$LINENO: checking for library containing strerror" >&5
2580echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2581if test "${ac_cv_search_strerror+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2583else
bec39cab
AC
2584 ac_func_search_save_LIBS=$LIBS
2585ac_cv_search_strerror=no
2586cat >conftest.$ac_ext <<_ACEOF
2587/* confdefs.h. */
2588_ACEOF
2589cat confdefs.h >>conftest.$ac_ext
2590cat >>conftest.$ac_ext <<_ACEOF
2591/* end confdefs.h. */
c906108c 2592
bec39cab
AC
2593/* Override any gcc2 internal prototype to avoid an error. */
2594#ifdef __cplusplus
2595extern "C"
2596#endif
2597/* We use char because int might match the return type of a gcc2
2598 builtin and then its argument prototype would still apply. */
2599char strerror ();
2600int
2601main ()
2602{
2603strerror ();
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608rm -f conftest.$ac_objext conftest$ac_exeext
2609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2610 (eval $ac_link) 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
121ce6e5 2617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2629 ac_cv_search_strerror="none required"
2630else
2631 echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634fi
2635rm -f conftest.err conftest.$ac_objext \
2636 conftest$ac_exeext conftest.$ac_ext
2637if test "$ac_cv_search_strerror" = no; then
2638 for ac_lib in cposix; do
2639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2640 cat >conftest.$ac_ext <<_ACEOF
2641/* confdefs.h. */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h. */
2646
2647/* Override any gcc2 internal prototype to avoid an error. */
2648#ifdef __cplusplus
2649extern "C"
2650#endif
2651/* We use char because int might match the return type of a gcc2
2652 builtin and then its argument prototype would still apply. */
2653char strerror ();
2654int
2655main ()
2656{
2657strerror ();
2658 ;
2659 return 0;
2660}
2661_ACEOF
2662rm -f conftest.$ac_objext conftest$ac_exeext
2663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2664 (eval $ac_link) 2>conftest.er1
2665 ac_status=$?
2666 grep -v '^ *+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
121ce6e5 2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest$ac_exeext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2683 ac_cv_search_strerror="-l$ac_lib"
2684break
c906108c 2685else
bec39cab
AC
2686 echo "$as_me: failed program was:" >&5
2687sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2688
2689fi
bec39cab
AC
2690rm -f conftest.err conftest.$ac_objext \
2691 conftest$ac_exeext conftest.$ac_ext
2692 done
c906108c 2693fi
bec39cab 2694LIBS=$ac_func_search_save_LIBS
c906108c 2695fi
bec39cab
AC
2696echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2697echo "${ECHO_T}$ac_cv_search_strerror" >&6
2698if test "$ac_cv_search_strerror" != no; then
2699 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2700
c906108c
SS
2701fi
2702
c906108c 2703
c906108c 2704
bec39cab
AC
2705
2706echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2707echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2708if test "${am_cv_prog_cc_stdc+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2710else
bec39cab
AC
2711 am_cv_prog_cc_stdc=no
2712ac_save_CC="$CC"
2713# Don't try gcc -ansi; that turns off useful extensions and
2714# breaks some systems' header files.
2715# AIX -qlanglvl=ansi
2716# Ultrix and OSF/1 -std1
2717# HP-UX 10.20 and later -Ae
2718# HP-UX older versions -Aa -D_HPUX_SOURCE
2719# SVR4 -Xc -D__EXTENSIONS__
2720for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2721do
2722 CC="$ac_save_CC $ac_arg"
2723 cat >conftest.$ac_ext <<_ACEOF
2724/* confdefs.h. */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h. */
2729#include <stdarg.h>
2730#include <stdio.h>
2731#include <sys/types.h>
2732#include <sys/stat.h>
2733/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2734struct buf { int x; };
2735FILE * (*rcsopen) (struct buf *, struct stat *, int);
2736static char *e (p, i)
2737 char **p;
2738 int i;
2739{
2740 return p[i];
2741}
2742static char *f (char * (*g) (char **, int), char **p, ...)
2743{
2744 char *s;
2745 va_list v;
2746 va_start (v,p);
2747 s = g (p, va_arg (v,int));
2748 va_end (v);
2749 return s;
2750}
2751int test (int i, double x);
2752struct s1 {int (*f) (int a);};
2753struct s2 {int (*f) (double a);};
2754int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2755int argc;
2756char **argv;
c906108c 2757
bec39cab
AC
2758int
2759main ()
2760{
c906108c 2761
bec39cab 2762return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2763
bec39cab
AC
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768rm -f conftest.$ac_objext
2769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
121ce6e5 2777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 (eval $ac_try) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2790else
bec39cab
AC
2791 echo "$as_me: failed program was:" >&5
2792sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2793
2794fi
bec39cab
AC
2795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796done
2797CC="$ac_save_CC"
c906108c
SS
2798
2799fi
2800
bec39cab
AC
2801if test -z "$am_cv_prog_cc_stdc"; then
2802 echo "$as_me:$LINENO: result: none needed" >&5
2803echo "${ECHO_T}none needed" >&6
c906108c 2804else
bec39cab
AC
2805 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2806echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2807fi
bec39cab
AC
2808case "x$am_cv_prog_cc_stdc" in
2809 x|xno) ;;
2810 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2811esac
c906108c 2812
c906108c 2813
bec39cab
AC
2814ac_aux_dir=
2815for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2816 if test -f $ac_dir/install-sh; then
2817 ac_aux_dir=$ac_dir
2818 ac_install_sh="$ac_aux_dir/install-sh -c"
2819 break
2820 elif test -f $ac_dir/install.sh; then
2821 ac_aux_dir=$ac_dir
2822 ac_install_sh="$ac_aux_dir/install.sh -c"
2823 break
2824 elif test -f $ac_dir/shtool; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/shtool install -c"
2827 break
2828 fi
2829done
2830if test -z "$ac_aux_dir"; then
2831 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2832echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2833 { (exit 1); exit 1; }; }
c906108c 2834fi
bec39cab
AC
2835ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2836ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2837ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2838
bec39cab
AC
2839# Make sure we can run config.sub.
2840$ac_config_sub sun4 >/dev/null 2>&1 ||
2841 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2842echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2843 { (exit 1); exit 1; }; }
2844
2845echo "$as_me:$LINENO: checking build system type" >&5
2846echo $ECHO_N "checking build system type... $ECHO_C" >&6
2847if test "${ac_cv_build+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849else
2850 ac_cv_build_alias=$build_alias
2851test -z "$ac_cv_build_alias" &&
2852 ac_cv_build_alias=`$ac_config_guess`
2853test -z "$ac_cv_build_alias" &&
2854 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2855echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2856 { (exit 1); exit 1; }; }
2857ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2858 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2859echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2860 { (exit 1); exit 1; }; }
2861
2862fi
2863echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2864echo "${ECHO_T}$ac_cv_build" >&6
2865build=$ac_cv_build
2866build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2867build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2868build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2869
2870
2871echo "$as_me:$LINENO: checking host system type" >&5
2872echo $ECHO_N "checking host system type... $ECHO_C" >&6
2873if test "${ac_cv_host+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876 ac_cv_host_alias=$host_alias
2877test -z "$ac_cv_host_alias" &&
2878 ac_cv_host_alias=$ac_cv_build_alias
2879ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2880 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2881echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2882 { (exit 1); exit 1; }; }
2883
2884fi
2885echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2886echo "${ECHO_T}$ac_cv_host" >&6
2887host=$ac_cv_host
2888host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2889host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2890host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2891
2892
2893echo "$as_me:$LINENO: checking target system type" >&5
2894echo $ECHO_N "checking target system type... $ECHO_C" >&6
2895if test "${ac_cv_target+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897else
2898 ac_cv_target_alias=$target_alias
2899test "x$ac_cv_target_alias" = "x" &&
2900 ac_cv_target_alias=$ac_cv_host_alias
2901ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2902 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2903echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2904 { (exit 1); exit 1; }; }
2905
2906fi
2907echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2908echo "${ECHO_T}$ac_cv_target" >&6
2909target=$ac_cv_target
2910target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2911target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2912target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2913
c906108c 2914
bec39cab
AC
2915# The aliases save the names the user supplied, while $host etc.
2916# will get canonicalized.
2917test -n "$target_alias" &&
2918 test "$program_prefix$program_suffix$program_transform_name" = \
2919 NONENONEs,x,x, &&
2920 program_prefix=${target_alias}-
c906108c 2921
c906108c 2922
bec39cab
AC
2923CONFIG_OBS=
2924CONFIG_DEPS=
2925CONFIG_SRCS=
2926ENABLE_CFLAGS=
c906108c 2927
bec39cab
AC
2928CONFIG_ALL=
2929CONFIG_CLEAN=
2930CONFIG_INSTALL=
2931CONFIG_UNINSTALL=
2932
2933
2934echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2935echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2936set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2937if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940 cat >conftest.make <<\_ACEOF
2941all:
2942 @echo 'ac_maketemp="$(MAKE)"'
2943_ACEOF
2944# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2945eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2946if test -n "$ac_maketemp"; then
2947 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 2948else
bec39cab 2949 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 2950fi
bec39cab
AC
2951rm -f conftest.make
2952fi
2953if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2954 echo "$as_me:$LINENO: result: yes" >&5
2955echo "${ECHO_T}yes" >&6
2956 SET_MAKE=
2957else
2958 echo "$as_me:$LINENO: result: no" >&5
2959echo "${ECHO_T}no" >&6
2960 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
2961fi
2962
bec39cab
AC
2963if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2965set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2966echo "$as_me:$LINENO: checking for $ac_word" >&5
2967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968if test "${ac_cv_prog_RANLIB+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971 if test -n "$RANLIB"; then
2972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2973else
2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985done
2986done
c906108c 2987
bec39cab
AC
2988fi
2989fi
2990RANLIB=$ac_cv_prog_RANLIB
2991if test -n "$RANLIB"; then
2992 echo "$as_me:$LINENO: result: $RANLIB" >&5
2993echo "${ECHO_T}$RANLIB" >&6
c906108c 2994else
bec39cab
AC
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
c906108c
SS
2997fi
2998
bec39cab
AC
2999fi
3000if test -z "$ac_cv_prog_RANLIB"; then
3001 ac_ct_RANLIB=$RANLIB
3002 # Extract the first word of "ranlib", so it can be a program name with args.
3003set dummy ranlib; ac_word=$2
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 if test -n "$ac_ct_RANLIB"; then
3010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_RANLIB="ranlib"
3020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023done
c906108c 3024done
bec39cab
AC
3025
3026 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3027fi
3028fi
3029ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3030if test -n "$ac_ct_RANLIB"; then
3031 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3032echo "${ECHO_T}$ac_ct_RANLIB" >&6
3033else
3034 echo "$as_me:$LINENO: result: no" >&5
3035echo "${ECHO_T}no" >&6
c906108c
SS
3036fi
3037
bec39cab 3038 RANLIB=$ac_ct_RANLIB
c906108c 3039else
bec39cab
AC
3040 RANLIB="$ac_cv_prog_RANLIB"
3041fi
3042
3043echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3044echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3045if test "${ac_cv_header_stdc+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3047else
bec39cab
AC
3048 cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h. */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h. */
3054#include <stdlib.h>
3055#include <stdarg.h>
3056#include <string.h>
3057#include <float.h>
3058
3059int
c906108c
SS
3060main ()
3061{
bec39cab
AC
3062
3063 ;
3064 return 0;
c906108c 3065}
bec39cab
AC
3066_ACEOF
3067rm -f conftest.$ac_objext
3068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069 (eval $ac_compile) 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
121ce6e5 3076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_header_stdc=yes
c906108c 3089else
bec39cab
AC
3090 echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3092
bec39cab 3093ac_cv_header_stdc=no
c906108c 3094fi
bec39cab 3095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3096
bec39cab
AC
3097if test $ac_cv_header_stdc = yes; then
3098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3099 cat >conftest.$ac_ext <<_ACEOF
3100/* confdefs.h. */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h. */
3105#include <string.h>
c906108c 3106
bec39cab
AC
3107_ACEOF
3108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109 $EGREP "memchr" >/dev/null 2>&1; then
3110 :
c906108c 3111else
bec39cab 3112 ac_cv_header_stdc=no
c906108c 3113fi
bec39cab 3114rm -f conftest*
c906108c 3115
bec39cab 3116fi
c906108c 3117
bec39cab
AC
3118if test $ac_cv_header_stdc = yes; then
3119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126#include <stdlib.h>
c906108c 3127
bec39cab
AC
3128_ACEOF
3129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "free" >/dev/null 2>&1; then
3131 :
c906108c 3132else
bec39cab 3133 ac_cv_header_stdc=no
c906108c
SS
3134fi
3135rm -f conftest*
c906108c 3136
c906108c 3137fi
c906108c 3138
bec39cab
AC
3139if test $ac_cv_header_stdc = yes; then
3140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3141 if test "$cross_compiling" = yes; then
bec39cab 3142 :
c906108c 3143else
bec39cab
AC
3144 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150#include <ctype.h>
3151#if ((' ' & 0x0FF) == 0x020)
3152# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3153# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3154#else
3155# define ISLOWER(c) \
3156 (('a' <= (c) && (c) <= 'i') \
3157 || ('j' <= (c) && (c) <= 'r') \
3158 || ('s' <= (c) && (c) <= 'z'))
3159# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3160#endif
c906108c 3161
bec39cab
AC
3162#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3163int
3164main ()
3165{
3166 int i;
3167 for (i = 0; i < 256; i++)
3168 if (XOR (islower (i), ISLOWER (i))
3169 || toupper (i) != TOUPPER (i))
3170 exit(2);
3171 exit (0);
3172}
3173_ACEOF
3174rm -f conftest$ac_exeext
3175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 :
3186else
3187 echo "$as_me: program exited with status $ac_status" >&5
3188echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3190
bec39cab
AC
3191( exit $ac_status )
3192ac_cv_header_stdc=no
3193fi
3194rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3195fi
3196fi
3197fi
3198echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3199echo "${ECHO_T}$ac_cv_header_stdc" >&6
3200if test $ac_cv_header_stdc = yes; then
c906108c 3201
bec39cab
AC
3202cat >>confdefs.h <<\_ACEOF
3203#define STDC_HEADERS 1
3204_ACEOF
c906108c 3205
bec39cab 3206fi
c906108c 3207
bec39cab
AC
3208echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3209echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3210if test "${ac_cv_c_const+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
c906108c 3219
bec39cab
AC
3220int
3221main ()
3222{
3223/* FIXME: Include the comments suggested by Paul. */
3224#ifndef __cplusplus
3225 /* Ultrix mips cc rejects this. */
3226 typedef int charset[2];
3227 const charset x;
3228 /* SunOS 4.1.1 cc rejects this. */
3229 char const *const *ccp;
3230 char **p;
3231 /* NEC SVR4.0.2 mips cc rejects this. */
3232 struct point {int x, y;};
3233 static struct point const zero = {0,0};
3234 /* AIX XL C 1.02.0.0 rejects this.
3235 It does not let you subtract one const X* pointer from another in
3236 an arm of an if-expression whose if-part is not a constant
3237 expression */
3238 const char *g = "string";
3239 ccp = &g + (g ? g-g : 0);
3240 /* HPUX 7.0 cc rejects these. */
3241 ++ccp;
3242 p = (char**) ccp;
3243 ccp = (char const *const *) p;
3244 { /* SCO 3.2v4 cc rejects this. */
3245 char *t;
3246 char const *s = 0 ? (char *) 0 : (char const *) 0;
3247
3248 *t++ = 0;
3249 }
3250 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3251 int x[] = {25, 17};
3252 const int *foo = &x[0];
3253 ++foo;
3254 }
3255 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3256 typedef const int *iptr;
3257 iptr p = 0;
3258 ++p;
3259 }
3260 { /* AIX XL C 1.02.0.0 rejects this saying
3261 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3262 struct s { int j; const int *ap[3]; };
3263 struct s *b; b->j = 5;
3264 }
3265 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3266 const int foo = 10;
3267 }
3268#endif
c906108c 3269
bec39cab
AC
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274rm -f conftest.$ac_objext
3275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276 (eval $ac_compile) 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
121ce6e5 3283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_cv_c_const=yes
c906108c 3296else
bec39cab
AC
3297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3299
bec39cab
AC
3300ac_cv_c_const=no
3301fi
3302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3303fi
bec39cab
AC
3304echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3305echo "${ECHO_T}$ac_cv_c_const" >&6
3306if test $ac_cv_c_const = no; then
c906108c 3307
bec39cab
AC
3308cat >>confdefs.h <<\_ACEOF
3309#define const
3310_ACEOF
c906108c
SS
3311
3312fi
3313
bec39cab
AC
3314echo "$as_me:$LINENO: checking for inline" >&5
3315echo $ECHO_N "checking for inline... $ECHO_C" >&6
3316if test "${ac_cv_c_inline+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3318else
bec39cab
AC
3319 ac_cv_c_inline=no
3320for ac_kw in inline __inline__ __inline; do
3321 cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h. */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h. */
3327#ifndef __cplusplus
3328typedef int foo_t;
3329static $ac_kw foo_t static_foo () {return 0; }
3330$ac_kw foo_t foo () {return 0; }
c906108c
SS
3331#endif
3332
bec39cab
AC
3333_ACEOF
3334rm -f conftest.$ac_objext
3335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
121ce6e5 3343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_c_inline=$ac_kw; break
c906108c 3356else
bec39cab
AC
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3359
c906108c 3360fi
bec39cab 3361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3362done
3363
bec39cab
AC
3364fi
3365echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3366echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3367
c906108c 3368
bec39cab
AC
3369case $ac_cv_c_inline in
3370 inline | yes) ;;
3371 *)
3372 case $ac_cv_c_inline in
3373 no) ac_val=;;
3374 *) ac_val=$ac_cv_c_inline;;
3375 esac
3376 cat >>confdefs.h <<_ACEOF
3377#ifndef __cplusplus
3378#define inline $ac_val
c906108c 3379#endif
bec39cab
AC
3380_ACEOF
3381 ;;
3382esac
c906108c 3383
bec39cab 3384# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3385
c906108c 3386
c906108c 3387
c906108c 3388
c906108c 3389
c906108c 3390
c906108c 3391
c906108c 3392
c906108c 3393
bec39cab
AC
3394for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3395 inttypes.h stdint.h unistd.h
3396do
3397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3398echo "$as_me:$LINENO: checking for $ac_header" >&5
3399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3400if eval "test \"\${$as_ac_Header+set}\" = set"; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
3409$ac_includes_default
3410
3411#include <$ac_header>
3412_ACEOF
3413rm -f conftest.$ac_objext
3414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } &&
121ce6e5 3422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 eval "$as_ac_Header=yes"
3435else
3436 echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439eval "$as_ac_Header=no"
3440fi
3441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442fi
3443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446 cat >>confdefs.h <<_ACEOF
3447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3448_ACEOF
c906108c 3449
c906108c
SS
3450fi
3451
bec39cab 3452done
c906108c 3453
c906108c 3454
bec39cab
AC
3455echo "$as_me:$LINENO: checking for off_t" >&5
3456echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3457if test "${ac_cv_type_off_t+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3459else
bec39cab
AC
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466$ac_includes_default
3467int
3468main ()
3469{
3470if ((off_t *) 0)
3471 return 0;
3472if (sizeof (off_t))
3473 return 0;
3474 ;
3475 return 0;
3476}
3477_ACEOF
3478rm -f conftest.$ac_objext
3479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
121ce6e5 3487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 (eval $ac_try) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; } &&
3493 { ac_try='test -s conftest.$ac_objext'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3499 ac_cv_type_off_t=yes
3500else
3501 echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504ac_cv_type_off_t=no
c906108c 3505fi
bec39cab 3506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3507fi
bec39cab
AC
3508echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3509echo "${ECHO_T}$ac_cv_type_off_t" >&6
3510if test $ac_cv_type_off_t = yes; then
3511 :
c906108c 3512else
bec39cab
AC
3513
3514cat >>confdefs.h <<_ACEOF
3515#define off_t long
3516_ACEOF
3517
3518fi
3519
3520echo "$as_me:$LINENO: checking for size_t" >&5
3521echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3522if test "${ac_cv_type_size_t+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525 cat >conftest.$ac_ext <<_ACEOF
3526/* confdefs.h. */
3527_ACEOF
3528cat confdefs.h >>conftest.$ac_ext
3529cat >>conftest.$ac_ext <<_ACEOF
3530/* end confdefs.h. */
3531$ac_includes_default
3532int
3533main ()
3534{
3535if ((size_t *) 0)
3536 return 0;
3537if (sizeof (size_t))
3538 return 0;
3539 ;
3540 return 0;
3541}
3542_ACEOF
3543rm -f conftest.$ac_objext
3544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>conftest.er1
3546 ac_status=$?
3547 grep -v '^ *+' conftest.er1 >conftest.err
3548 rm -f conftest.er1
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
121ce6e5 3552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; } &&
3558 { ac_try='test -s conftest.$ac_objext'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 ac_cv_type_size_t=yes
c906108c 3565else
bec39cab
AC
3566 echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569ac_cv_type_size_t=no
c906108c 3570fi
bec39cab 3571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3572fi
bec39cab
AC
3573echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3574echo "${ECHO_T}$ac_cv_type_size_t" >&6
3575if test $ac_cv_type_size_t = yes; then
3576 :
3577else
c906108c 3578
bec39cab
AC
3579cat >>confdefs.h <<_ACEOF
3580#define size_t unsigned
3581_ACEOF
c906108c 3582
c906108c 3583fi
bec39cab
AC
3584
3585# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3586# for constant arguments. Useless!
3587echo "$as_me:$LINENO: checking for working alloca.h" >&5
3588echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3589if test "${ac_cv_working_alloca_h+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591else
3592 cat >conftest.$ac_ext <<_ACEOF
3593/* confdefs.h. */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h. */
3598#include <alloca.h>
3599int
3600main ()
3601{
3602char *p = (char *) alloca (2 * sizeof (int));
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext conftest$ac_exeext
3608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3609 (eval $ac_link) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
121ce6e5 3616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; } &&
3622 { ac_try='test -s conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_working_alloca_h=yes
3629else
3630 echo "$as_me: failed program was:" >&5
3631sed 's/^/| /' conftest.$ac_ext >&5
3632
3633ac_cv_working_alloca_h=no
3634fi
3635rm -f conftest.err conftest.$ac_objext \
3636 conftest$ac_exeext conftest.$ac_ext
3637fi
3638echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3639echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3640if test $ac_cv_working_alloca_h = yes; then
3641
3642cat >>confdefs.h <<\_ACEOF
3643#define HAVE_ALLOCA_H 1
3644_ACEOF
c906108c
SS
3645
3646fi
bec39cab
AC
3647
3648echo "$as_me:$LINENO: checking for alloca" >&5
3649echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3650if test "${ac_cv_func_alloca_works+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3652else
bec39cab
AC
3653 cat >conftest.$ac_ext <<_ACEOF
3654/* confdefs.h. */
3655_ACEOF
3656cat confdefs.h >>conftest.$ac_ext
3657cat >>conftest.$ac_ext <<_ACEOF
3658/* end confdefs.h. */
3659#ifdef __GNUC__
3660# define alloca __builtin_alloca
3661#else
3662# ifdef _MSC_VER
3663# include <malloc.h>
3664# define alloca _alloca
3665# else
3666# if HAVE_ALLOCA_H
3667# include <alloca.h>
3668# else
3669# ifdef _AIX
3670 #pragma alloca
3671# else
3672# ifndef alloca /* predefined by HP cc +Olibcalls */
3673char *alloca ();
3674# endif
3675# endif
3676# endif
3677# endif
3678#endif
c906108c 3679
bec39cab
AC
3680int
3681main ()
3682{
3683char *p = (char *) alloca (1);
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688rm -f conftest.$ac_objext conftest$ac_exeext
3689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690 (eval $ac_link) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
121ce6e5 3697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_cv_func_alloca_works=yes
c906108c 3710else
bec39cab
AC
3711 echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714ac_cv_func_alloca_works=no
c906108c 3715fi
bec39cab
AC
3716rm -f conftest.err conftest.$ac_objext \
3717 conftest$ac_exeext conftest.$ac_ext
c906108c 3718fi
bec39cab
AC
3719echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3720echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3721
3722if test $ac_cv_func_alloca_works = yes; then
3723
3724cat >>confdefs.h <<\_ACEOF
3725#define HAVE_ALLOCA 1
3726_ACEOF
c906108c 3727
c906108c 3728else
bec39cab
AC
3729 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3730# that cause trouble. Some versions do not even contain alloca or
3731# contain a buggy version. If you still want to use their alloca,
3732# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3733
bec39cab 3734ALLOCA=alloca.$ac_objext
c906108c 3735
bec39cab
AC
3736cat >>confdefs.h <<\_ACEOF
3737#define C_ALLOCA 1
3738_ACEOF
c906108c 3739
bec39cab
AC
3740
3741echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3742echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3743if test "${ac_cv_os_cray+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3745else
bec39cab
AC
3746 cat >conftest.$ac_ext <<_ACEOF
3747/* confdefs.h. */
3748_ACEOF
3749cat confdefs.h >>conftest.$ac_ext
3750cat >>conftest.$ac_ext <<_ACEOF
3751/* end confdefs.h. */
3752#if defined(CRAY) && ! defined(CRAY2)
3753webecray
3754#else
3755wenotbecray
3756#endif
3757
3758_ACEOF
3759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3760 $EGREP "webecray" >/dev/null 2>&1; then
3761 ac_cv_os_cray=yes
c906108c 3762else
bec39cab 3763 ac_cv_os_cray=no
c906108c 3764fi
bec39cab
AC
3765rm -f conftest*
3766
3767fi
3768echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3769echo "${ECHO_T}$ac_cv_os_cray" >&6
3770if test $ac_cv_os_cray = yes; then
3771 for ac_func in _getb67 GETB67 getb67; do
3772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3773echo "$as_me:$LINENO: checking for $ac_func" >&5
3774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3775if eval "test \"\${$as_ac_var+set}\" = set"; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
3778 cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h. */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h. */
3784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3786#define $ac_func innocuous_$ac_func
3787
c906108c 3788/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3789 which can conflict with char $ac_func (); below.
3790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791 <limits.h> exists even on freestanding compilers. */
3792
3793#ifdef __STDC__
3794# include <limits.h>
3795#else
3796# include <assert.h>
3797#endif
c906108c 3798
bec39cab 3799#undef $ac_func
c906108c 3800
bec39cab
AC
3801/* Override any gcc2 internal prototype to avoid an error. */
3802#ifdef __cplusplus
3803extern "C"
3804{
3805#endif
3806/* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3808char $ac_func ();
c906108c
SS
3809/* The GNU C library defines this for functions which it implements
3810 to always fail with ENOSYS. Some functions are actually named
3811 something starting with __ and the normal name is an alias. */
3812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3813choke me
3814#else
bec39cab
AC
3815char (*f) () = $ac_func;
3816#endif
3817#ifdef __cplusplus
3818}
c906108c
SS
3819#endif
3820
bec39cab
AC
3821int
3822main ()
3823{
3824return f != $ac_func;
3825 ;
3826 return 0;
3827}
3828_ACEOF
3829rm -f conftest.$ac_objext conftest$ac_exeext
3830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
121ce6e5 3838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest$ac_exeext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 eval "$as_ac_var=yes"
3851else
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855eval "$as_ac_var=no"
3856fi
3857rm -f conftest.err conftest.$ac_objext \
3858 conftest$ac_exeext conftest.$ac_ext
3859fi
3860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3862if test `eval echo '${'$as_ac_var'}'` = yes; then
3863
3864cat >>confdefs.h <<_ACEOF
3865#define CRAY_STACKSEG_END $ac_func
3866_ACEOF
c906108c 3867
bec39cab 3868 break
c906108c 3869fi
c906108c 3870
c906108c 3871 done
c906108c 3872fi
bec39cab
AC
3873
3874echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3875echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3876if test "${ac_cv_c_stack_direction+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3878else
bec39cab
AC
3879 if test "$cross_compiling" = yes; then
3880 ac_cv_c_stack_direction=0
3881else
3882 cat >conftest.$ac_ext <<_ACEOF
3883/* confdefs.h. */
3884_ACEOF
3885cat confdefs.h >>conftest.$ac_ext
3886cat >>conftest.$ac_ext <<_ACEOF
3887/* end confdefs.h. */
3888int
3889find_stack_direction ()
3890{
3891 static char *addr = 0;
3892 auto char dummy;
3893 if (addr == 0)
3894 {
3895 addr = &dummy;
3896 return find_stack_direction ();
3897 }
3898 else
3899 return (&dummy > addr) ? 1 : -1;
3900}
c906108c 3901
bec39cab
AC
3902int
3903main ()
3904{
3905 exit (find_stack_direction () < 0);
3906}
3907_ACEOF
3908rm -f conftest$ac_exeext
3909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_c_stack_direction=1
c906108c 3920else
bec39cab
AC
3921 echo "$as_me: program exited with status $ac_status" >&5
3922echo "$as_me: failed program was:" >&5
3923sed 's/^/| /' conftest.$ac_ext >&5
3924
3925( exit $ac_status )
3926ac_cv_c_stack_direction=-1
3927fi
3928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3929fi
c906108c 3930fi
bec39cab
AC
3931echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3932echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3933
3934cat >>confdefs.h <<_ACEOF
3935#define STACK_DIRECTION $ac_cv_c_stack_direction
3936_ACEOF
c906108c 3937
c906108c 3938
c906108c
SS
3939fi
3940
3941
c906108c 3942
bec39cab
AC
3943for ac_header in stdlib.h unistd.h
3944do
3945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3946if eval "test \"\${$as_ac_Header+set}\" = set"; then
3947 echo "$as_me:$LINENO: checking for $ac_header" >&5
3948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3949if eval "test \"\${$as_ac_Header+set}\" = set"; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951fi
3952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3954else
3955 # Is the header compilable?
3956echo "$as_me:$LINENO: checking $ac_header usability" >&5
3957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3958cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
3964$ac_includes_default
3965#include <$ac_header>
3966_ACEOF
3967rm -f conftest.$ac_objext
3968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3969 (eval $ac_compile) 2>conftest.er1
3970 ac_status=$?
3971 grep -v '^ *+' conftest.er1 >conftest.err
3972 rm -f conftest.er1
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
121ce6e5 3976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 (eval $ac_try) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 ac_header_compiler=yes
3989else
3990 echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993ac_header_compiler=no
3994fi
3995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3997echo "${ECHO_T}$ac_header_compiler" >&6
3998
3999# Is the header present?
4000echo "$as_me:$LINENO: checking $ac_header presence" >&5
4001echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4002cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
4008#include <$ac_header>
4009_ACEOF
4010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4012 ac_status=$?
4013 grep -v '^ *+' conftest.er1 >conftest.err
4014 rm -f conftest.er1
4015 cat conftest.err >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } >/dev/null; then
4018 if test -s conftest.err; then
4019 ac_cpp_err=$ac_c_preproc_warn_flag
4020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4021 else
4022 ac_cpp_err=
4023 fi
c906108c 4024else
bec39cab 4025 ac_cpp_err=yes
c906108c 4026fi
bec39cab
AC
4027if test -z "$ac_cpp_err"; then
4028 ac_header_preproc=yes
c906108c 4029else
bec39cab
AC
4030 echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 ac_header_preproc=no
c906108c 4034fi
bec39cab
AC
4035rm -f conftest.err conftest.$ac_ext
4036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4037echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4038
bec39cab
AC
4039# So? What about this header?
4040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4041 yes:no: )
4042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4046 ac_header_preproc=yes
4047 ;;
4048 no:yes:* )
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4061 (
4062 cat <<\_ASBOX
4063## ------------------------------------------ ##
4064## Report this to the AC_PACKAGE_NAME lists. ##
4065## ------------------------------------------ ##
4066_ASBOX
4067 ) |
4068 sed "s/^/$as_me: WARNING: /" >&2
4069 ;;
4070esac
4071echo "$as_me:$LINENO: checking for $ac_header" >&5
4072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4073if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076 eval "$as_ac_Header=\$ac_header_preproc"
4077fi
4078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4080
4081fi
4082if test `eval echo '${'$as_ac_Header'}'` = yes; then
4083 cat >>confdefs.h <<_ACEOF
4084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085_ACEOF
4086
4087fi
4088
4089done
4090
4091
4092for ac_func in getpagesize
4093do
4094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4095echo "$as_me:$LINENO: checking for $ac_func" >&5
4096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4097if eval "test \"\${$as_ac_var+set}\" = set"; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
4100 cat >conftest.$ac_ext <<_ACEOF
4101/* confdefs.h. */
4102_ACEOF
4103cat confdefs.h >>conftest.$ac_ext
4104cat >>conftest.$ac_ext <<_ACEOF
4105/* end confdefs.h. */
4106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4108#define $ac_func innocuous_$ac_func
4109
4110/* System header to define __stub macros and hopefully few prototypes,
4111 which can conflict with char $ac_func (); below.
4112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 <limits.h> exists even on freestanding compilers. */
4114
4115#ifdef __STDC__
4116# include <limits.h>
4117#else
4118# include <assert.h>
4119#endif
4120
4121#undef $ac_func
4122
4123/* Override any gcc2 internal prototype to avoid an error. */
4124#ifdef __cplusplus
4125extern "C"
4126{
4127#endif
4128/* We use char because int might match the return type of a gcc2
4129 builtin and then its argument prototype would still apply. */
4130char $ac_func ();
4131/* The GNU C library defines this for functions which it implements
4132 to always fail with ENOSYS. Some functions are actually named
4133 something starting with __ and the normal name is an alias. */
4134#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4135choke me
4136#else
4137char (*f) () = $ac_func;
4138#endif
4139#ifdef __cplusplus
4140}
4141#endif
4142
4143int
4144main ()
4145{
4146return f != $ac_func;
4147 ;
4148 return 0;
4149}
4150_ACEOF
4151rm -f conftest.$ac_objext conftest$ac_exeext
4152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153 (eval $ac_link) 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } &&
121ce6e5 4160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest$ac_exeext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 eval "$as_ac_var=yes"
4173else
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177eval "$as_ac_var=no"
4178fi
4179rm -f conftest.err conftest.$ac_objext \
4180 conftest$ac_exeext conftest.$ac_ext
4181fi
4182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4183echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4184if test `eval echo '${'$as_ac_var'}'` = yes; then
4185 cat >>confdefs.h <<_ACEOF
4186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4187_ACEOF
4188
4189fi
4190done
4191
4192echo "$as_me:$LINENO: checking for working mmap" >&5
4193echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4194if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197 if test "$cross_compiling" = yes; then
4198 ac_cv_func_mmap_fixed_mapped=no
4199else
4200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206$ac_includes_default
4207/* malloc might have been renamed as rpl_malloc. */
4208#undef malloc
4209
4210/* Thanks to Mike Haertel and Jim Avera for this test.
4211 Here is a matrix of mmap possibilities:
4212 mmap private not fixed
4213 mmap private fixed at somewhere currently unmapped
4214 mmap private fixed at somewhere already mapped
4215 mmap shared not fixed
4216 mmap shared fixed at somewhere currently unmapped
4217 mmap shared fixed at somewhere already mapped
4218 For private mappings, we should verify that changes cannot be read()
4219 back from the file, nor mmap's back from the file at a different
4220 address. (There have been systems where private was not correctly
4221 implemented like the infamous i386 svr4.0, and systems where the
4222 VM page cache was not coherent with the file system buffer cache
4223 like early versions of FreeBSD and possibly contemporary NetBSD.)
4224 For shared mappings, we should conversely verify that changes get
4225 propagated back to all the places they're supposed to be.
4226
4227 Grep wants private fixed already mapped.
4228 The main things grep needs to know about mmap are:
4229 * does it exist and is it safe to write into the mmap'd area
4230 * how to use it (BSD variants) */
4231
4232#include <fcntl.h>
4233#include <sys/mman.h>
4234
4235#if !STDC_HEADERS && !HAVE_STDLIB_H
4236char *malloc ();
4237#endif
4238
4239/* This mess was copied from the GNU getpagesize.h. */
4240#if !HAVE_GETPAGESIZE
4241/* Assume that all systems that can run configure have sys/param.h. */
4242# if !HAVE_SYS_PARAM_H
4243# define HAVE_SYS_PARAM_H 1
4244# endif
4245
4246# ifdef _SC_PAGESIZE
4247# define getpagesize() sysconf(_SC_PAGESIZE)
4248# else /* no _SC_PAGESIZE */
4249# if HAVE_SYS_PARAM_H
4250# include <sys/param.h>
4251# ifdef EXEC_PAGESIZE
4252# define getpagesize() EXEC_PAGESIZE
4253# else /* no EXEC_PAGESIZE */
4254# ifdef NBPG
4255# define getpagesize() NBPG * CLSIZE
4256# ifndef CLSIZE
4257# define CLSIZE 1
4258# endif /* no CLSIZE */
4259# else /* no NBPG */
4260# ifdef NBPC
4261# define getpagesize() NBPC
4262# else /* no NBPC */
4263# ifdef PAGESIZE
4264# define getpagesize() PAGESIZE
4265# endif /* PAGESIZE */
4266# endif /* no NBPC */
4267# endif /* no NBPG */
4268# endif /* no EXEC_PAGESIZE */
4269# else /* no HAVE_SYS_PARAM_H */
4270# define getpagesize() 8192 /* punt totally */
4271# endif /* no HAVE_SYS_PARAM_H */
4272# endif /* no _SC_PAGESIZE */
4273
4274#endif /* no HAVE_GETPAGESIZE */
4275
4276int
4277main ()
4278{
4279 char *data, *data2, *data3;
4280 int i, pagesize;
4281 int fd;
4282
4283 pagesize = getpagesize ();
4284
4285 /* First, make a file with some known garbage in it. */
4286 data = (char *) malloc (pagesize);
4287 if (!data)
4288 exit (1);
4289 for (i = 0; i < pagesize; ++i)
4290 *(data + i) = rand ();
4291 umask (0);
4292 fd = creat ("conftest.mmap", 0600);
4293 if (fd < 0)
4294 exit (1);
4295 if (write (fd, data, pagesize) != pagesize)
4296 exit (1);
4297 close (fd);
4298
4299 /* Next, try to mmap the file at a fixed address which already has
4300 something else allocated at it. If we can, also make sure that
4301 we see the same garbage. */
4302 fd = open ("conftest.mmap", O_RDWR);
4303 if (fd < 0)
4304 exit (1);
4305 data2 = (char *) malloc (2 * pagesize);
4306 if (!data2)
4307 exit (1);
4308 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4309 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4310 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4311 exit (1);
4312 for (i = 0; i < pagesize; ++i)
4313 if (*(data + i) != *(data2 + i))
4314 exit (1);
4315
4316 /* Finally, make sure that changes to the mapped area do not
4317 percolate back to the file as seen by read(). (This is a bug on
4318 some variants of i386 svr4.0.) */
4319 for (i = 0; i < pagesize; ++i)
4320 *(data2 + i) = *(data2 + i) + 1;
4321 data3 = (char *) malloc (pagesize);
4322 if (!data3)
4323 exit (1);
4324 if (read (fd, data3, pagesize) != pagesize)
4325 exit (1);
4326 for (i = 0; i < pagesize; ++i)
4327 if (*(data + i) != *(data3 + i))
4328 exit (1);
4329 close (fd);
4330 exit (0);
4331}
4332_ACEOF
4333rm -f conftest$ac_exeext
4334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335 (eval $ac_link) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_func_mmap_fixed_mapped=yes
4345else
4346 echo "$as_me: program exited with status $ac_status" >&5
4347echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350( exit $ac_status )
4351ac_cv_func_mmap_fixed_mapped=no
4352fi
4353rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4354fi
4355fi
4356echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4357echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4358if test $ac_cv_func_mmap_fixed_mapped = yes; then
4359
4360cat >>confdefs.h <<\_ACEOF
4361#define HAVE_MMAP 1
4362_ACEOF
4363
4364fi
4365rm -f conftest.mmap
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4378unistd.h values.h sys/param.h
4379do
4380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4381if eval "test \"\${$as_ac_Header+set}\" = set"; then
4382 echo "$as_me:$LINENO: checking for $ac_header" >&5
4383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4384if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386fi
4387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4389else
4390 # Is the header compilable?
4391echo "$as_me:$LINENO: checking $ac_header usability" >&5
4392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4393cat >conftest.$ac_ext <<_ACEOF
4394/* confdefs.h. */
4395_ACEOF
4396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
4398/* end confdefs.h. */
4399$ac_includes_default
4400#include <$ac_header>
4401_ACEOF
4402rm -f conftest.$ac_objext
4403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
121ce6e5 4411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 ac_header_compiler=yes
4424else
4425 echo "$as_me: failed program was:" >&5
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428ac_header_compiler=no
4429fi
4430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4432echo "${ECHO_T}$ac_header_compiler" >&6
4433
4434# Is the header present?
4435echo "$as_me:$LINENO: checking $ac_header presence" >&5
4436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4437cat >conftest.$ac_ext <<_ACEOF
4438/* confdefs.h. */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h. */
4443#include <$ac_header>
4444_ACEOF
4445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } >/dev/null; then
4453 if test -s conftest.err; then
4454 ac_cpp_err=$ac_c_preproc_warn_flag
4455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4456 else
4457 ac_cpp_err=
4458 fi
4459else
4460 ac_cpp_err=yes
4461fi
4462if test -z "$ac_cpp_err"; then
4463 ac_header_preproc=yes
4464else
4465 echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468 ac_header_preproc=no
4469fi
4470rm -f conftest.err conftest.$ac_ext
4471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4472echo "${ECHO_T}$ac_header_preproc" >&6
4473
4474# So? What about this header?
4475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4476 yes:no: )
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4481 ac_header_preproc=yes
4482 ;;
4483 no:yes:* )
4484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4496 (
4497 cat <<\_ASBOX
4498## ------------------------------------------ ##
4499## Report this to the AC_PACKAGE_NAME lists. ##
4500## ------------------------------------------ ##
4501_ASBOX
4502 ) |
4503 sed "s/^/$as_me: WARNING: /" >&2
4504 ;;
4505esac
4506echo "$as_me:$LINENO: checking for $ac_header" >&5
4507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4508if eval "test \"\${$as_ac_Header+set}\" = set"; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510else
4511 eval "$as_ac_Header=\$ac_header_preproc"
4512fi
4513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4515
4516fi
4517if test `eval echo '${'$as_ac_Header'}'` = yes; then
4518 cat >>confdefs.h <<_ACEOF
4519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4520_ACEOF
4521
4522fi
4523
4524done
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4537__argz_count __argz_stringify __argz_next
4538do
4539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4540echo "$as_me:$LINENO: checking for $ac_func" >&5
4541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4542if eval "test \"\${$as_ac_var+set}\" = set"; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545 cat >conftest.$ac_ext <<_ACEOF
4546/* confdefs.h. */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h. */
4551/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4553#define $ac_func innocuous_$ac_func
4554
4555/* System header to define __stub macros and hopefully few prototypes,
4556 which can conflict with char $ac_func (); below.
4557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4558 <limits.h> exists even on freestanding compilers. */
4559
4560#ifdef __STDC__
4561# include <limits.h>
4562#else
4563# include <assert.h>
4564#endif
4565
4566#undef $ac_func
4567
4568/* Override any gcc2 internal prototype to avoid an error. */
4569#ifdef __cplusplus
4570extern "C"
4571{
4572#endif
4573/* We use char because int might match the return type of a gcc2
4574 builtin and then its argument prototype would still apply. */
4575char $ac_func ();
4576/* The GNU C library defines this for functions which it implements
4577 to always fail with ENOSYS. Some functions are actually named
4578 something starting with __ and the normal name is an alias. */
4579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4580choke me
4581#else
4582char (*f) () = $ac_func;
4583#endif
4584#ifdef __cplusplus
4585}
4586#endif
4587
4588int
4589main ()
4590{
4591return f != $ac_func;
4592 ;
4593 return 0;
4594}
4595_ACEOF
4596rm -f conftest.$ac_objext conftest$ac_exeext
4597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
121ce6e5 4605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 eval "$as_ac_var=yes"
4618else
4619 echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622eval "$as_ac_var=no"
4623fi
4624rm -f conftest.err conftest.$ac_objext \
4625 conftest$ac_exeext conftest.$ac_ext
4626fi
4627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4628echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4629if test `eval echo '${'$as_ac_var'}'` = yes; then
4630 cat >>confdefs.h <<_ACEOF
4631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4632_ACEOF
4633
4634fi
4635done
4636
4637
4638 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4639
4640for ac_func in stpcpy
4641do
4642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4643echo "$as_me:$LINENO: checking for $ac_func" >&5
4644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4645if eval "test \"\${$as_ac_var+set}\" = set"; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
4654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4656#define $ac_func innocuous_$ac_func
4657
4658/* System header to define __stub macros and hopefully few prototypes,
4659 which can conflict with char $ac_func (); below.
4660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 <limits.h> exists even on freestanding compilers. */
4662
4663#ifdef __STDC__
4664# include <limits.h>
4665#else
4666# include <assert.h>
4667#endif
4668
4669#undef $ac_func
4670
4671/* Override any gcc2 internal prototype to avoid an error. */
4672#ifdef __cplusplus
4673extern "C"
4674{
4675#endif
4676/* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678char $ac_func ();
4679/* The GNU C library defines this for functions which it implements
4680 to always fail with ENOSYS. Some functions are actually named
4681 something starting with __ and the normal name is an alias. */
4682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4683choke me
4684#else
4685char (*f) () = $ac_func;
4686#endif
4687#ifdef __cplusplus
4688}
4689#endif
4690
4691int
4692main ()
4693{
4694return f != $ac_func;
4695 ;
4696 return 0;
4697}
4698_ACEOF
4699rm -f conftest.$ac_objext conftest$ac_exeext
4700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
121ce6e5 4708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 eval "$as_ac_var=yes"
4721else
4722 echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
4725eval "$as_ac_var=no"
4726fi
4727rm -f conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4729fi
4730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4731echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4732if test `eval echo '${'$as_ac_var'}'` = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4735_ACEOF
4736
4737fi
4738done
4739
4740 fi
4741 if test "${ac_cv_func_stpcpy}" = "yes"; then
4742
4743cat >>confdefs.h <<\_ACEOF
4744#define HAVE_STPCPY 1
4745_ACEOF
4746
4747 fi
4748
4749 if test $ac_cv_header_locale_h = yes; then
4750 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4751echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4752if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
4755 cat >conftest.$ac_ext <<_ACEOF
4756/* confdefs.h. */
4757_ACEOF
4758cat confdefs.h >>conftest.$ac_ext
4759cat >>conftest.$ac_ext <<_ACEOF
4760/* end confdefs.h. */
4761#include <locale.h>
4762int
4763main ()
4764{
4765return LC_MESSAGES
4766 ;
4767 return 0;
4768}
4769_ACEOF
4770rm -f conftest.$ac_objext conftest$ac_exeext
4771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772 (eval $ac_link) 2>conftest.er1
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
121ce6e5 4779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest$ac_exeext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 am_cv_val_LC_MESSAGES=yes
4792else
4793 echo "$as_me: failed program was:" >&5
4794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796am_cv_val_LC_MESSAGES=no
4797fi
4798rm -f conftest.err conftest.$ac_objext \
4799 conftest$ac_exeext conftest.$ac_ext
4800fi
4801echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4802echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4803 if test $am_cv_val_LC_MESSAGES = yes; then
4804
4805cat >>confdefs.h <<\_ACEOF
4806#define HAVE_LC_MESSAGES 1
4807_ACEOF
4808
4809 fi
4810 fi
4811 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4812echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4813 # Check whether --enable-nls or --disable-nls was given.
4814if test "${enable_nls+set}" = set; then
4815 enableval="$enable_nls"
4816 USE_NLS=$enableval
4817else
4818 USE_NLS=yes
4819fi;
4820 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4821echo "${ECHO_T}$USE_NLS" >&6
4822
4823
4824 USE_INCLUDED_LIBINTL=no
4825
4826 if test "$USE_NLS" = "yes"; then
bec39cab
AC
4827 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4828echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4829
4830# Check whether --with-included-gettext or --without-included-gettext was given.
4831if test "${with_included_gettext+set}" = set; then
4832 withval="$with_included_gettext"
4833 nls_cv_force_use_gnu_gettext=$withval
4834else
4835 nls_cv_force_use_gnu_gettext=no
4836fi;
4837 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4838echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4839
4840 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4841 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4842 nls_cv_header_intl=
4843 nls_cv_header_libgt=
a53bf506 4844 CATOBJEXT=
bec39cab
AC
4845
4846 if test "${ac_cv_header_libintl_h+set}" = set; then
4847 echo "$as_me:$LINENO: checking for libintl.h" >&5
4848echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4849if test "${ac_cv_header_libintl_h+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851fi
4852echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4853echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4854else
4855 # Is the header compilable?
4856echo "$as_me:$LINENO: checking libintl.h usability" >&5
4857echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4858cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h. */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h. */
4864$ac_includes_default
4865#include <libintl.h>
4866_ACEOF
4867rm -f conftest.$ac_objext
4868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
121ce6e5 4876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try='test -s conftest.$ac_objext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_header_compiler=yes
4889else
4890 echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893ac_header_compiler=no
4894fi
4895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4897echo "${ECHO_T}$ac_header_compiler" >&6
4898
4899# Is the header present?
4900echo "$as_me:$LINENO: checking libintl.h presence" >&5
4901echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4902cat >conftest.$ac_ext <<_ACEOF
4903/* confdefs.h. */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h. */
4908#include <libintl.h>
4909_ACEOF
4910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null; then
4918 if test -s conftest.err; then
4919 ac_cpp_err=$ac_c_preproc_warn_flag
4920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4921 else
4922 ac_cpp_err=
4923 fi
4924else
4925 ac_cpp_err=yes
4926fi
4927if test -z "$ac_cpp_err"; then
4928 ac_header_preproc=yes
4929else
4930 echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 ac_header_preproc=no
4934fi
4935rm -f conftest.err conftest.$ac_ext
4936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4937echo "${ECHO_T}$ac_header_preproc" >&6
4938
4939# So? What about this header?
4940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4941 yes:no: )
4942 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4943echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4945echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4946 ac_header_preproc=yes
4947 ;;
4948 no:yes:* )
4949 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4950echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4952echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4954echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4956echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4957 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4958echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4959 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4960echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4961 (
4962 cat <<\_ASBOX
4963## ------------------------------------------ ##
4964## Report this to the AC_PACKAGE_NAME lists. ##
4965## ------------------------------------------ ##
4966_ASBOX
4967 ) |
4968 sed "s/^/$as_me: WARNING: /" >&2
4969 ;;
4970esac
4971echo "$as_me:$LINENO: checking for libintl.h" >&5
4972echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4973if test "${ac_cv_header_libintl_h+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976 ac_cv_header_libintl_h=$ac_header_preproc
4977fi
4978echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4979echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4980
4981fi
4982if test $ac_cv_header_libintl_h = yes; then
4983 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4984echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4985if test "${gt_cv_func_gettext_libc+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988 cat >conftest.$ac_ext <<_ACEOF
4989/* confdefs.h. */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h. */
4994#include <libintl.h>
4995int
4996main ()
4997{
4998return (int) gettext ("")
4999 ;
5000 return 0;
5001}
5002_ACEOF
5003rm -f conftest.$ac_objext conftest$ac_exeext
5004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
121ce6e5 5012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 gt_cv_func_gettext_libc=yes
5025else
5026 echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029gt_cv_func_gettext_libc=no
5030fi
5031rm -f conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5033fi
5034echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5035echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5036
5037 if test "$gt_cv_func_gettext_libc" != "yes"; then
5038 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5039echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5040if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042else
5043 ac_check_lib_save_LIBS=$LIBS
5044LIBS="-lintl $LIBS"
5045cat >conftest.$ac_ext <<_ACEOF
5046/* confdefs.h. */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h. */
5051
5052/* Override any gcc2 internal prototype to avoid an error. */
5053#ifdef __cplusplus
5054extern "C"
5055#endif
5056/* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5058char bindtextdomain ();
5059int
5060main ()
5061{
5062bindtextdomain ();
5063 ;
5064 return 0;
5065}
5066_ACEOF
5067rm -f conftest.$ac_objext conftest$ac_exeext
5068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5069 (eval $ac_link) 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
121ce6e5 5076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest$ac_exeext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 ac_cv_lib_intl_bindtextdomain=yes
5089else
5090 echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
5093ac_cv_lib_intl_bindtextdomain=no
5094fi
5095rm -f conftest.err conftest.$ac_objext \
5096 conftest$ac_exeext conftest.$ac_ext
5097LIBS=$ac_check_lib_save_LIBS
5098fi
5099echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5100echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5101if test $ac_cv_lib_intl_bindtextdomain = yes; then
5102 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5103echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5104if test "${gt_cv_func_gettext_libintl+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
5107 cat >conftest.$ac_ext <<_ACEOF
5108/* confdefs.h. */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h. */
5113
5114int
5115main ()
5116{
5117return (int) gettext ("")
5118 ;
5119 return 0;
5120}
5121_ACEOF
5122rm -f conftest.$ac_objext conftest$ac_exeext
5123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
121ce6e5 5131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; } &&
5137 { ac_try='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 gt_cv_func_gettext_libintl=yes
5144else
5145 echo "$as_me: failed program was:" >&5
5146sed 's/^/| /' conftest.$ac_ext >&5
5147
5148gt_cv_func_gettext_libintl=no
5149fi
5150rm -f conftest.err conftest.$ac_objext \
5151 conftest$ac_exeext conftest.$ac_ext
5152fi
5153echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5154echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5155fi
5156
5157 fi
5158
5159 if test "$gt_cv_func_gettext_libc" = "yes" \
5160 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5161
5162cat >>confdefs.h <<\_ACEOF
5163#define HAVE_GETTEXT 1
5164_ACEOF
5165
5166 # Extract the first word of "msgfmt", so it can be a program name with args.
5167set dummy msgfmt; ac_word=$2
5168echo "$as_me:$LINENO: checking for $ac_word" >&5
5169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170if test "${ac_cv_path_MSGFMT+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173 case "$MSGFMT" in
5174 /*)
5175 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5176 ;;
5177 *)
5178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5179 for ac_dir in $PATH; do
5180 test -z "$ac_dir" && ac_dir=.
5181 if test -f $ac_dir/$ac_word; then
5182 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5183 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5184 break
5185 fi
5186 fi
5187 done
5188 IFS="$ac_save_ifs"
5189 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5190 ;;
5191esac
5192fi
5193MSGFMT="$ac_cv_path_MSGFMT"
5194if test -n "$MSGFMT"; then
5195 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5196echo "${ECHO_T}$MSGFMT" >&6
5197else
5198 echo "$as_me:$LINENO: result: no" >&5
5199echo "${ECHO_T}no" >&6
5200fi
5201 if test "$MSGFMT" != "no"; then
5202
5203for ac_func in dcgettext
5204do
5205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5206echo "$as_me:$LINENO: checking for $ac_func" >&5
5207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5208if eval "test \"\${$as_ac_var+set}\" = set"; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211 cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */
5217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5219#define $ac_func innocuous_$ac_func
5220
5221/* System header to define __stub macros and hopefully few prototypes,
5222 which can conflict with char $ac_func (); below.
5223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5224 <limits.h> exists even on freestanding compilers. */
5225
5226#ifdef __STDC__
5227# include <limits.h>
5228#else
5229# include <assert.h>
5230#endif
5231
5232#undef $ac_func
5233
5234/* Override any gcc2 internal prototype to avoid an error. */
5235#ifdef __cplusplus
5236extern "C"
5237{
5238#endif
5239/* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5241char $ac_func ();
5242/* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5246choke me
5247#else
5248char (*f) () = $ac_func;
5249#endif
5250#ifdef __cplusplus
5251}
5252#endif
5253
5254int
5255main ()
5256{
5257return f != $ac_func;
5258 ;
5259 return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext conftest$ac_exeext
5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264 (eval $ac_link) 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
121ce6e5 5271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 eval "$as_ac_var=yes"
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288eval "$as_ac_var=no"
5289fi
5290rm -f conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292fi
5293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5294echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5295if test `eval echo '${'$as_ac_var'}'` = yes; then
5296 cat >>confdefs.h <<_ACEOF
5297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5298_ACEOF
5299
5300fi
5301done
5302
5303 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5304set dummy gmsgfmt; ac_word=$2
5305echo "$as_me:$LINENO: checking for $ac_word" >&5
5306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5307if test "${ac_cv_path_GMSGFMT+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310 case $GMSGFMT in
5311 [\\/]* | ?:[\\/]*)
5312 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5313 ;;
5314 *)
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326done
5327done
5328
5329 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5330 ;;
5331esac
5332fi
5333GMSGFMT=$ac_cv_path_GMSGFMT
5334
5335if test -n "$GMSGFMT"; then
5336 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5337echo "${ECHO_T}$GMSGFMT" >&6
5338else
5339 echo "$as_me:$LINENO: result: no" >&5
5340echo "${ECHO_T}no" >&6
5341fi
5342
5343 # Extract the first word of "xgettext", so it can be a program name with args.
5344set dummy xgettext; ac_word=$2
5345echo "$as_me:$LINENO: checking for $ac_word" >&5
5346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347if test "${ac_cv_path_XGETTEXT+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350 case "$XGETTEXT" in
5351 /*)
5352 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5353 ;;
5354 *)
5355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5356 for ac_dir in $PATH; do
5357 test -z "$ac_dir" && ac_dir=.
5358 if test -f $ac_dir/$ac_word; then
5359 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5360 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5361 break
5362 fi
5363 fi
5364 done
5365 IFS="$ac_save_ifs"
5366 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5367 ;;
5368esac
5369fi
5370XGETTEXT="$ac_cv_path_XGETTEXT"
5371if test -n "$XGETTEXT"; then
5372 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5373echo "${ECHO_T}$XGETTEXT" >&6
5374else
5375 echo "$as_me:$LINENO: result: no" >&5
5376echo "${ECHO_T}no" >&6
5377fi
5378
5379 cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h. */
5385
5386int
5387main ()
5388{
5389extern int _nl_msg_cat_cntr;
5390 return _nl_msg_cat_cntr
5391 ;
5392 return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
121ce6e5 5404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest$ac_exeext'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 CATOBJEXT=.gmo
5417 DATADIRNAME=share
5418else
5419 echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422CATOBJEXT=.mo
5423 DATADIRNAME=lib
5424fi
5425rm -f conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
5427 INSTOBJEXT=.mo
5428 fi
5429 fi
5430
5431fi
5432
5433
5434
5435
a53bf506 5436 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
5437 # Neither gettext nor catgets in included in the C library.
5438 # Fall back on GNU gettext library (assuming it is present).
5439 nls_cv_use_gnu_gettext=yes
bec39cab
AC
5440 fi
5441 fi
5442
5443 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5444 INTLOBJS="\$(GETTOBJS)"
5445 # Extract the first word of "msgfmt", so it can be a program name with args.
5446set dummy msgfmt; ac_word=$2
5447echo "$as_me:$LINENO: checking for $ac_word" >&5
5448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449if test "${ac_cv_path_MSGFMT+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452 case "$MSGFMT" in
5453 /*)
5454 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5455 ;;
5456 *)
5457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5458 for ac_dir in $PATH; do
5459 test -z "$ac_dir" && ac_dir=.
5460 if test -f $ac_dir/$ac_word; then
5461 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5462 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5463 break
5464 fi
5465 fi
5466 done
5467 IFS="$ac_save_ifs"
5468 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5469 ;;
5470esac
5471fi
5472MSGFMT="$ac_cv_path_MSGFMT"
5473if test -n "$MSGFMT"; then
5474 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5475echo "${ECHO_T}$MSGFMT" >&6
5476else
5477 echo "$as_me:$LINENO: result: no" >&5
5478echo "${ECHO_T}no" >&6
5479fi
5480
5481 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5482set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5483echo "$as_me:$LINENO: checking for $ac_word" >&5
5484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5485if test "${ac_cv_path_GMSGFMT+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487else
5488 case $GMSGFMT in
5489 [\\/]* | ?:[\\/]*)
5490 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5491 ;;
5492 *)
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505done
5506
5507 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5508 ;;
5509esac
5510fi
5511GMSGFMT=$ac_cv_path_GMSGFMT
5512
5513if test -n "$GMSGFMT"; then
5514 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5515echo "${ECHO_T}$GMSGFMT" >&6
5516else
5517 echo "$as_me:$LINENO: result: no" >&5
5518echo "${ECHO_T}no" >&6
5519fi
5520
5521 # Extract the first word of "xgettext", so it can be a program name with args.
5522set dummy xgettext; ac_word=$2
5523echo "$as_me:$LINENO: checking for $ac_word" >&5
5524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5525if test "${ac_cv_path_XGETTEXT+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528 case "$XGETTEXT" in
5529 /*)
5530 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5531 ;;
5532 *)
5533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5534 for ac_dir in $PATH; do
5535 test -z "$ac_dir" && ac_dir=.
5536 if test -f $ac_dir/$ac_word; then
5537 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5538 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5539 break
5540 fi
5541 fi
5542 done
5543 IFS="$ac_save_ifs"
5544 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5545 ;;
5546esac
5547fi
5548XGETTEXT="$ac_cv_path_XGETTEXT"
5549if test -n "$XGETTEXT"; then
5550 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5551echo "${ECHO_T}$XGETTEXT" >&6
5552else
5553 echo "$as_me:$LINENO: result: no" >&5
5554echo "${ECHO_T}no" >&6
5555fi
5556
5557
5558 USE_INCLUDED_LIBINTL=yes
5559 CATOBJEXT=.gmo
5560 INSTOBJEXT=.mo
5561 DATADIRNAME=share
5562 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5563 INTLLIBS=$INTLDEPS
5564 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5565 nls_cv_header_intl=libintl.h
5566 nls_cv_header_libgt=libgettext.h
5567 fi
5568
5569 if test "$XGETTEXT" != ":"; then
5570 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5571 : ;
5572 else
5573 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5574echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5575 XGETTEXT=":"
5576 fi
5577 fi
5578
5579 # We need to process the po/ directory.
5580 POSUB=po
5581 else
5582 DATADIRNAME=share
5583 nls_cv_header_intl=libintl.h
5584 nls_cv_header_libgt=libgettext.h
5585 fi
5586
5587 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5588 # because some of the sources are only built for this goal.
5589 if test "$PACKAGE" = gettext; then
5590 USE_NLS=yes
5591 USE_INCLUDED_LIBINTL=yes
5592 fi
5593
5594 for lang in $ALL_LINGUAS; do
5595 GMOFILES="$GMOFILES $lang.gmo"
5596 POFILES="$POFILES $lang.po"
5597 done
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
c46f8c51
AC
5610 if test "x$CATOBJEXT" != "x"; then
5611
5612cat >>confdefs.h <<\_ACEOF
5613#define ENABLE_NLS 1
5614_ACEOF
5615
5616 fi
bec39cab
AC
5617
5618
5619 if test "x$CATOBJEXT" != "x"; then
5620 if test "x$ALL_LINGUAS" = "x"; then
5621 LINGUAS=
5622 else
5623 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5624echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5625 NEW_LINGUAS=
5626 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5627 case "$ALL_LINGUAS" in
5628 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5629 esac
5630 done
5631 LINGUAS=$NEW_LINGUAS
5632 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5633echo "${ECHO_T}$LINGUAS" >&6
5634 fi
5635
5636 if test -n "$LINGUAS"; then
5637 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5638 fi
5639 fi
5640
5641 if test $ac_cv_header_locale_h = yes; then
5642 INCLUDE_LOCALE_H="#include <locale.h>"
5643 else
5644 INCLUDE_LOCALE_H="\
5645/* The system does not provide the header <locale.h>. Take care yourself. */"
5646 fi
5647
5648
5649 if test -f $srcdir/po2tbl.sed.in; then
5650 if test "$CATOBJEXT" = ".cat"; then
5651 if test "${ac_cv_header_linux_version_h+set}" = set; then
5652 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5653echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5654if test "${ac_cv_header_linux_version_h+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656fi
5657echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5658echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5659else
5660 # Is the header compilable?
5661echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5662echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5663cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h. */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h. */
5669$ac_includes_default
5670#include <linux/version.h>
5671_ACEOF
5672rm -f conftest.$ac_objext
5673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
121ce6e5 5681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; } &&
5687 { ac_try='test -s conftest.$ac_objext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 ac_header_compiler=yes
5694else
5695 echo "$as_me: failed program was:" >&5
5696sed 's/^/| /' conftest.$ac_ext >&5
5697
5698ac_header_compiler=no
5699fi
5700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5702echo "${ECHO_T}$ac_header_compiler" >&6
5703
5704# Is the header present?
5705echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5706echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5707cat >conftest.$ac_ext <<_ACEOF
5708/* confdefs.h. */
5709_ACEOF
5710cat confdefs.h >>conftest.$ac_ext
5711cat >>conftest.$ac_ext <<_ACEOF
5712/* end confdefs.h. */
5713#include <linux/version.h>
5714_ACEOF
5715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } >/dev/null; then
5723 if test -s conftest.err; then
5724 ac_cpp_err=$ac_c_preproc_warn_flag
5725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5726 else
5727 ac_cpp_err=
5728 fi
5729else
5730 ac_cpp_err=yes
5731fi
5732if test -z "$ac_cpp_err"; then
5733 ac_header_preproc=yes
5734else
5735 echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_header_preproc=no
5739fi
5740rm -f conftest.err conftest.$ac_ext
5741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5742echo "${ECHO_T}$ac_header_preproc" >&6
5743
5744# So? What about this header?
5745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5746 yes:no: )
5747 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5748echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5750echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5751 ac_header_preproc=yes
5752 ;;
5753 no:yes:* )
5754 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5755echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5757echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5759echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5761echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5763echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5765echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5766 (
5767 cat <<\_ASBOX
5768## ------------------------------------------ ##
5769## Report this to the AC_PACKAGE_NAME lists. ##
5770## ------------------------------------------ ##
5771_ASBOX
5772 ) |
5773 sed "s/^/$as_me: WARNING: /" >&2
5774 ;;
5775esac
5776echo "$as_me:$LINENO: checking for linux/version.h" >&5
5777echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5778if test "${ac_cv_header_linux_version_h+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781 ac_cv_header_linux_version_h=$ac_header_preproc
5782fi
5783echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5784echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5785
5786fi
5787if test $ac_cv_header_linux_version_h = yes; then
5788 msgformat=linux
5789else
5790 msgformat=xopen
5791fi
5792
5793
5794
5795 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5796 fi
5797 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5798 $srcdir/po2tbl.sed.in > po2tbl.sed
5799 fi
5800
5801 if test "$PACKAGE" = "gettext"; then
5802 GT_NO="#NO#"
5803 GT_YES=
5804 else
5805 GT_NO=
5806 GT_YES="#YES#"
5807 fi
5808
5809
5810
5811 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5812
5813
5814 l=
5815
5816
5817 if test -f $srcdir/po/POTFILES.in; then
5818 test -d po || mkdir po
5819 if test "x$srcdir" != "x."; then
5820 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5821 posrcprefix="$srcdir/"
5822 else
5823 posrcprefix="../$srcdir/"
5824 fi
5825 else
5826 posrcprefix="../"
5827 fi
5828 rm -f po/POTFILES
5829 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5830 < $srcdir/po/POTFILES.in > po/POTFILES
5831 fi
5832
5833
5834localedir='${datadir}/locale'
5835
5836
5837if test "x$POSUB" != x; then
5838
5839 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5840echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5841 # Look for .po and .gmo files in the source directory.
5842 CATALOGS=
5843 XLINGUAS=
5844 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5845 # If there aren't any .gmo files the shell will give us the
5846 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5847 # weeded out.
5848 case "$cat" in *\**)
5849 continue;;
5850 esac
5851 # The quadruple backslash is collapsed to a double backslash
5852 # by the backticks, then collapsed again by the double quotes,
5853 # leaving us with one backslash in the sed expression (right
5854 # before the dot that mustn't act as a wildcard).
5855 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5856 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5857 # The user is allowed to set LINGUAS to a list of languages to
5858 # install catalogs for. If it's empty that means "all of them."
5859 if test "x$LINGUAS" = x; then
5860 CATALOGS="$CATALOGS $cat"
5861 XLINGUAS="$XLINGUAS $lang"
5862 else
5863 case "$LINGUAS" in *$lang*)
5864 CATALOGS="$CATALOGS $cat"
5865 XLINGUAS="$XLINGUAS $lang"
5866 ;;
5867 esac
5868 fi
5869 done
5870 LINGUAS="$XLINGUAS"
5871 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5872echo "${ECHO_T}$LINGUAS" >&6
5873
5874 CONFIG_ALL="$CONFIG_ALL all-po"
5875 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5876 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5877 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5878fi
5879
5880PACKAGE=gdb
5881
5882cat >>confdefs.h <<_ACEOF
5883#define PACKAGE "$PACKAGE"
5884_ACEOF
5885
5886
5887
5888debugdir=${libdir}/debug
5889
5890
5891# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5892if test "${with_separate_debug_dir+set}" = set; then
5893 withval="$with_separate_debug_dir"
5894 debugdir="${withval}"
5895fi;
5896
5897
5898 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5900 ac_define_dir=`eval echo $debugdir`
5901 ac_define_dir=`eval echo $ac_define_dir`
5902
5903cat >>confdefs.h <<_ACEOF
5904#define DEBUGDIR "$ac_define_dir"
5905_ACEOF
5906
5907
5908#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5909
5910
5911
5912subdirs="$subdirs doc testsuite"
5913
5914
121ce6e5
DJ
5915# Provide defaults for some variables set by the per-host and per-target
5916# configuration.
5917gdb_host_obs=posix-hdep.o
5918
bec39cab
AC
5919. $srcdir/configure.host
5920
5921. $srcdir/configure.tgt
5922
5923# Fetch the default architecture and default target vector from BFD.
5924targ=$target; . $srcdir/../bfd/config.bfd
5925
5926# We only want the first architecture, so strip off the others if
5927# there is more than one.
5928targ_archs=`echo $targ_archs | sed 's/ .*//'`
5929
5930if test "x$targ_archs" != x; then
5931
5932cat >>confdefs.h <<_ACEOF
5933#define DEFAULT_BFD_ARCH $targ_archs
5934_ACEOF
5935
5936fi
5937if test "x$targ_defvec" != x; then
5938
5939cat >>confdefs.h <<_ACEOF
5940#define DEFAULT_BFD_VEC $targ_defvec
5941_ACEOF
5942
5943fi
5944
5945test "$program_prefix" != NONE &&
5946 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5947# Use a double $ so make ignores it.
5948test "$program_suffix" != NONE &&
5949 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5950# Double any \ or $. echo might interpret backslashes.
5951# By default was `s,x,x', remove it if useless.
5952cat <<\_ACEOF >conftest.sed
5953s/[\\$]/&&/g;s/;s,x,x,$//
5954_ACEOF
5955program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5956rm conftest.sed
5957
5958
5959# The CLI cannot be disabled yet, but may be in the future.
5960
5961# Enable CLI.
5962# Check whether --enable-gdbcli or --disable-gdbcli was given.
5963if test "${enable_gdbcli+set}" = set; then
5964 enableval="$enable_gdbcli"
5965 case $enableval in
5966 yes)
5967 ;;
5968 no)
5969 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5970echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5971 { (exit 1); exit 1; }; } ;;
5972 *)
5973 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
5974echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
5975 { (exit 1); exit 1; }; } ;;
5976 esac
5977else
5978 enable_gdbcli=yes
5979fi;
5980if test x"$enable_gdbcli" = xyes; then
5981 if test -d $srcdir/cli; then
5982 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5983 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5984 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5985 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5986 fi
5987fi
5988
5989# Enable MI.
5990# Check whether --enable-gdbmi or --disable-gdbmi was given.
5991if test "${enable_gdbmi+set}" = set; then
5992 enableval="$enable_gdbmi"
5993 case $enableval in
5994 yes | no)
5995 ;;
5996 *)
5997 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
5998echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
5999 { (exit 1); exit 1; }; } ;;
6000 esac
6001else
6002 enable_gdbmi=yes
6003fi;
6004if test x"$enable_gdbmi" = xyes; then
6005 if test -d $srcdir/mi; then
6006 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6007 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6008 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6009 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6010 fi
6011fi
6012
6013# Enable TUI.
6014# Check whether --enable-tui or --disable-tui was given.
6015if test "${enable_tui+set}" = set; then
6016 enableval="$enable_tui"
6017 case $enableval in
6018 yes | no)
6019 ;;
6020 *)
6021 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6022echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6023 { (exit 1); exit 1; }; } ;;
6024 esac
6025else
6026 enable_tui=yes
6027fi;
6028
6029# Enable gdbtk.
6030# Check whether --enable-gdbtk or --disable-gdbtk was given.
6031if test "${enable_gdbtk+set}" = set; then
6032 enableval="$enable_gdbtk"
6033 case $enableval in
6034 yes | no)
6035 ;;
6036 *)
6037 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6038echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6039 { (exit 1); exit 1; }; } ;;
6040 esac
6041else
04ac69aa 6042 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
6043 enable_gdbtk=yes
6044 else
6045 enable_gdbtk=no
6046 fi
6047fi;
6048# We unconditionally disable gdbtk tests on selected platforms.
6049case $host_os in
6050 go32* | windows*)
6051 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6052echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6053 enable_gdbtk=no ;;
6054esac
6055
6056# Libunwind support.
6057
6058# Check whether --with-libunwind or --without-libunwind was given.
6059if test "${with_libunwind+set}" = set; then
6060 withval="$with_libunwind"
6061 case "${withval}" in
6062 yes) enable_libunwind=yes ;;
6063 no) enable_libunwind=no ;;
6064 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6065echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6066 { (exit 1); exit 1; }; } ;;
6067esac
6068else
6069
6070
6071for ac_header in libunwind.h
6072do
6073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6074if eval "test \"\${$as_ac_Header+set}\" = set"; then
6075 echo "$as_me:$LINENO: checking for $ac_header" >&5
6076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6077if eval "test \"\${$as_ac_Header+set}\" = set"; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079fi
6080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6082else
6083 # Is the header compilable?
6084echo "$as_me:$LINENO: checking $ac_header usability" >&5
6085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6086cat >conftest.$ac_ext <<_ACEOF
6087/* confdefs.h. */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h. */
6092$ac_includes_default
6093#include <$ac_header>
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
121ce6e5 6104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest.$ac_objext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_header_compiler=yes
6117else
6118 echo "$as_me: failed program was:" >&5
6119sed 's/^/| /' conftest.$ac_ext >&5
6120
6121ac_header_compiler=no
6122fi
6123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6124echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6125echo "${ECHO_T}$ac_header_compiler" >&6
6126
6127# Is the header present?
6128echo "$as_me:$LINENO: checking $ac_header presence" >&5
6129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6130cat >conftest.$ac_ext <<_ACEOF
6131/* confdefs.h. */
6132_ACEOF
6133cat confdefs.h >>conftest.$ac_ext
6134cat >>conftest.$ac_ext <<_ACEOF
6135/* end confdefs.h. */
6136#include <$ac_header>
6137_ACEOF
6138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } >/dev/null; then
6146 if test -s conftest.err; then
6147 ac_cpp_err=$ac_c_preproc_warn_flag
6148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6149 else
6150 ac_cpp_err=
6151 fi
6152else
6153 ac_cpp_err=yes
6154fi
6155if test -z "$ac_cpp_err"; then
6156 ac_header_preproc=yes
6157else
6158 echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_header_preproc=no
6162fi
6163rm -f conftest.err conftest.$ac_ext
6164echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6165echo "${ECHO_T}$ac_header_preproc" >&6
6166
6167# So? What about this header?
6168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6169 yes:no: )
6170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6174 ac_header_preproc=yes
6175 ;;
6176 no:yes:* )
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6189 (
6190 cat <<\_ASBOX
6191## ------------------------------------------ ##
6192## Report this to the AC_PACKAGE_NAME lists. ##
6193## ------------------------------------------ ##
6194_ASBOX
6195 ) |
6196 sed "s/^/$as_me: WARNING: /" >&2
6197 ;;
6198esac
6199echo "$as_me:$LINENO: checking for $ac_header" >&5
6200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6201if eval "test \"\${$as_ac_Header+set}\" = set"; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
6204 eval "$as_ac_Header=\$ac_header_preproc"
6205fi
6206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6208
6209fi
6210if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211 cat >>confdefs.h <<_ACEOF
6212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213_ACEOF
6214
6215fi
6216
6217done
6218
6219
6220for ac_header in libunwind-ia64.h
6221do
6222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6223if eval "test \"\${$as_ac_Header+set}\" = set"; then
6224 echo "$as_me:$LINENO: checking for $ac_header" >&5
6225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6226if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228fi
6229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6231else
6232 # Is the header compilable?
6233echo "$as_me:$LINENO: checking $ac_header usability" >&5
6234echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6235cat >conftest.$ac_ext <<_ACEOF
6236/* confdefs.h. */
6237_ACEOF
6238cat confdefs.h >>conftest.$ac_ext
6239cat >>conftest.$ac_ext <<_ACEOF
6240/* end confdefs.h. */
6241$ac_includes_default
6242#include <$ac_header>
6243_ACEOF
6244rm -f conftest.$ac_objext
6245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
121ce6e5 6253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; } &&
6259 { ac_try='test -s conftest.$ac_objext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_header_compiler=yes
6266else
6267 echo "$as_me: failed program was:" >&5
6268sed 's/^/| /' conftest.$ac_ext >&5
6269
6270ac_header_compiler=no
6271fi
6272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6274echo "${ECHO_T}$ac_header_compiler" >&6
6275
6276# Is the header present?
6277echo "$as_me:$LINENO: checking $ac_header presence" >&5
6278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6279cat >conftest.$ac_ext <<_ACEOF
6280/* confdefs.h. */
6281_ACEOF
6282cat confdefs.h >>conftest.$ac_ext
6283cat >>conftest.$ac_ext <<_ACEOF
6284/* end confdefs.h. */
6285#include <$ac_header>
6286_ACEOF
6287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } >/dev/null; then
6295 if test -s conftest.err; then
6296 ac_cpp_err=$ac_c_preproc_warn_flag
6297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6298 else
6299 ac_cpp_err=
6300 fi
6301else
6302 ac_cpp_err=yes
6303fi
6304if test -z "$ac_cpp_err"; then
6305 ac_header_preproc=yes
6306else
6307 echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310 ac_header_preproc=no
6311fi
6312rm -f conftest.err conftest.$ac_ext
6313echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6314echo "${ECHO_T}$ac_header_preproc" >&6
6315
6316# So? What about this header?
6317case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6318 yes:no: )
6319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6322echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6323 ac_header_preproc=yes
6324 ;;
6325 no:yes:* )
6326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6327echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6329echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6331echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6333echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6335echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6337echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6338 (
6339 cat <<\_ASBOX
6340## ------------------------------------------ ##
6341## Report this to the AC_PACKAGE_NAME lists. ##
6342## ------------------------------------------ ##
6343_ASBOX
6344 ) |
6345 sed "s/^/$as_me: WARNING: /" >&2
6346 ;;
6347esac
6348echo "$as_me:$LINENO: checking for $ac_header" >&5
6349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6350if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353 eval "$as_ac_Header=\$ac_header_preproc"
6354fi
6355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6357
6358fi
6359if test `eval echo '${'$as_ac_Header'}'` = yes; then
6360 cat >>confdefs.h <<_ACEOF
6361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6362_ACEOF
6363
6364fi
6365
6366done
6367
6368 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6369 enable_libunwind=yes;
6370 fi
6371
6372fi;
6373
6374if test x"$enable_libunwind" = xyes; then
6375
6376for ac_header in libunwind.h
6377do
6378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6379if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo "$as_me:$LINENO: checking for $ac_header" >&5
6381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6382if eval "test \"\${$as_ac_Header+set}\" = set"; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384fi
6385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387else
6388 # Is the header compilable?
6389echo "$as_me:$LINENO: checking $ac_header usability" >&5
6390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6391cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h. */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h. */
6397$ac_includes_default
6398#include <$ac_header>
6399_ACEOF
6400rm -f conftest.$ac_objext
6401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
121ce6e5 6409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_header_compiler=yes
6422else
6423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426ac_header_compiler=no
6427fi
6428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430echo "${ECHO_T}$ac_header_compiler" >&6
6431
6432# Is the header present?
6433echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435cat >conftest.$ac_ext <<_ACEOF
6436/* confdefs.h. */
6437_ACEOF
6438cat confdefs.h >>conftest.$ac_ext
6439cat >>conftest.$ac_ext <<_ACEOF
6440/* end confdefs.h. */
6441#include <$ac_header>
6442_ACEOF
6443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null; then
6451 if test -s conftest.err; then
6452 ac_cpp_err=$ac_c_preproc_warn_flag
6453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6454 else
6455 ac_cpp_err=
6456 fi
6457else
6458 ac_cpp_err=yes
6459fi
6460if test -z "$ac_cpp_err"; then
6461 ac_header_preproc=yes
6462else
6463 echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 ac_header_preproc=no
6467fi
6468rm -f conftest.err conftest.$ac_ext
6469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470echo "${ECHO_T}$ac_header_preproc" >&6
6471
6472# So? What about this header?
6473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474 yes:no: )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6479 ac_header_preproc=yes
6480 ;;
6481 no:yes:* )
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6489echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6494 (
6495 cat <<\_ASBOX
6496## ------------------------------------------ ##
6497## Report this to the AC_PACKAGE_NAME lists. ##
6498## ------------------------------------------ ##
6499_ASBOX
6500 ) |
6501 sed "s/^/$as_me: WARNING: /" >&2
6502 ;;
6503esac
6504echo "$as_me:$LINENO: checking for $ac_header" >&5
6505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 eval "$as_ac_Header=\$ac_header_preproc"
6510fi
6511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6513
6514fi
6515if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516 cat >>confdefs.h <<_ACEOF
6517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6518_ACEOF
6519
6520fi
6521
6522done
6523
6524
6525for ac_header in libunwind-ia64.h
6526do
6527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6528if eval "test \"\${$as_ac_Header+set}\" = set"; then
6529 echo "$as_me:$LINENO: checking for $ac_header" >&5
6530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533fi
6534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536else
6537 # Is the header compilable?
6538echo "$as_me:$LINENO: checking $ac_header usability" >&5
6539echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6540cat >conftest.$ac_ext <<_ACEOF
6541/* confdefs.h. */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h. */
6546$ac_includes_default
6547#include <$ac_header>
6548_ACEOF
6549rm -f conftest.$ac_objext
6550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
121ce6e5 6558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 ac_header_compiler=yes
6571else
6572 echo "$as_me: failed program was:" >&5
6573sed 's/^/| /' conftest.$ac_ext >&5
6574
6575ac_header_compiler=no
6576fi
6577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6579echo "${ECHO_T}$ac_header_compiler" >&6
6580
6581# Is the header present?
6582echo "$as_me:$LINENO: checking $ac_header presence" >&5
6583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6584cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h. */
6590#include <$ac_header>
6591_ACEOF
6592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev/null; then
6600 if test -s conftest.err; then
6601 ac_cpp_err=$ac_c_preproc_warn_flag
6602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6603 else
6604 ac_cpp_err=
6605 fi
6606else
6607 ac_cpp_err=yes
6608fi
6609if test -z "$ac_cpp_err"; then
6610 ac_header_preproc=yes
6611else
6612 echo "$as_me: failed program was:" >&5
6613sed 's/^/| /' conftest.$ac_ext >&5
6614
6615 ac_header_preproc=no
6616fi
6617rm -f conftest.err conftest.$ac_ext
6618echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6619echo "${ECHO_T}$ac_header_preproc" >&6
6620
6621# So? What about this header?
6622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6623 yes:no: )
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6628 ac_header_preproc=yes
6629 ;;
6630 no:yes:* )
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6638echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6643 (
6644 cat <<\_ASBOX
6645## ------------------------------------------ ##
6646## Report this to the AC_PACKAGE_NAME lists. ##
6647## ------------------------------------------ ##
6648_ASBOX
6649 ) |
6650 sed "s/^/$as_me: WARNING: /" >&2
6651 ;;
6652esac
6653echo "$as_me:$LINENO: checking for $ac_header" >&5
6654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6655if eval "test \"\${$as_ac_Header+set}\" = set"; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657else
6658 eval "$as_ac_Header=\$ac_header_preproc"
6659fi
6660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662
6663fi
6664if test `eval echo '${'$as_ac_Header'}'` = yes; then
6665 cat >>confdefs.h <<_ACEOF
6666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667_ACEOF
6668
6669fi
6670
6671done
6672
60ca704f
SE
6673
6674cat >>confdefs.h <<\_ACEOF
bec39cab
AC
6675#define HAVE_LIBUNWIND 1
6676_ACEOF
6677
6678 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6679 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6680 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6681fi
6682
6683# Profiling support.
6684# Check whether --enable-profiling or --disable-profiling was given.
6685if test "${enable_profiling+set}" = set; then
6686 enableval="$enable_profiling"
6687 case $enableval in
6688 yes | no)
6689 ;;
6690 *)
6691 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6692echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6693 { (exit 1); exit 1; }; } ;;
6694 esac
6695else
6696 enable_profiling=no
6697fi;
6698
6699
6700
6701for ac_func in monstartup _mcleanup
6702do
6703as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704echo "$as_me:$LINENO: checking for $ac_func" >&5
6705echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706if eval "test \"\${$as_ac_var+set}\" = set"; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709 cat >conftest.$ac_ext <<_ACEOF
6710/* confdefs.h. */
6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h. */
6715/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6717#define $ac_func innocuous_$ac_func
6718
6719/* System header to define __stub macros and hopefully few prototypes,
6720 which can conflict with char $ac_func (); below.
6721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6722 <limits.h> exists even on freestanding compilers. */
6723
6724#ifdef __STDC__
6725# include <limits.h>
6726#else
6727# include <assert.h>
6728#endif
6729
6730#undef $ac_func
6731
6732/* Override any gcc2 internal prototype to avoid an error. */
6733#ifdef __cplusplus
6734extern "C"
6735{
6736#endif
6737/* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6739char $ac_func ();
6740/* The GNU C library defines this for functions which it implements
6741 to always fail with ENOSYS. Some functions are actually named
6742 something starting with __ and the normal name is an alias. */
6743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6744choke me
6745#else
6746char (*f) () = $ac_func;
6747#endif
6748#ifdef __cplusplus
6749}
6750#endif
6751
6752int
6753main ()
6754{
6755return f != $ac_func;
6756 ;
6757 return 0;
6758}
6759_ACEOF
6760rm -f conftest.$ac_objext conftest$ac_exeext
6761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
121ce6e5 6769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try='test -s conftest$ac_exeext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 eval "$as_ac_var=yes"
6782else
6783 echo "$as_me: failed program was:" >&5
6784sed 's/^/| /' conftest.$ac_ext >&5
6785
6786eval "$as_ac_var=no"
6787fi
6788rm -f conftest.err conftest.$ac_objext \
6789 conftest$ac_exeext conftest.$ac_ext
6790fi
6791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6792echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6793if test `eval echo '${'$as_ac_var'}'` = yes; then
6794 cat >>confdefs.h <<_ACEOF
6795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6796_ACEOF
6797
6798fi
6799done
6800
6801echo "$as_me:$LINENO: checking for _etext" >&5
6802echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6803if test "${ac_cv_var__etext+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805else
6806 cat >conftest.$ac_ext <<_ACEOF
6807/* confdefs.h. */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h. */
6812#include <stdlib.h>
6813extern char _etext;
6814
6815int
6816main ()
6817{
6818free (&_etext);
6819 ;
6820 return 0;
6821}
6822_ACEOF
6823rm -f conftest.$ac_objext conftest$ac_exeext
6824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
121ce6e5 6832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try='test -s conftest$ac_exeext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 ac_cv_var__etext=yes
6845else
6846 echo "$as_me: failed program was:" >&5
6847sed 's/^/| /' conftest.$ac_ext >&5
6848
6849ac_cv_var__etext=no
6850fi
6851rm -f conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6853fi
6854echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6855echo "${ECHO_T}$ac_cv_var__etext" >&6
6856if test $ac_cv_var__etext = yes; then
6857
6858cat >>confdefs.h <<\_ACEOF
6859#define HAVE__ETEXT 1
6860_ACEOF
6861
6862fi
6863if test "$enable_profiling" = yes ; then
6864 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6865 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6866echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6867 { (exit 1); exit 1; }; }
6868 fi
6869 PROFILE_CFLAGS=-pg
6870 OLD_CFLAGS="$CFLAGS"
6871 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6872
6873 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6874echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6875if test "${ac_cv_cc_supports_pg+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6877else
bec39cab
AC
6878 cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h. */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h. */
6884
6885int
6886main ()
6887{
6888int x;
6889 ;
6890 return 0;
6891}
6892_ACEOF
6893rm -f conftest.$ac_objext
6894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
121ce6e5 6902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest.$ac_objext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_cc_supports_pg=yes
6915else
6916 echo "$as_me: failed program was:" >&5
6917sed 's/^/| /' conftest.$ac_ext >&5
6918
6919ac_cv_cc_supports_pg=no
6920fi
6921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922fi
6923echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6924echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6925
6926 if test $ac_cv_cc_supports_pg = no; then
6927 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6928echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6929 { (exit 1); exit 1; }; }
6930 fi
6931
6932 CFLAGS="$OLD_CFLAGS"
6933fi
6934
6935# --------------------- #
6936# Checks for programs. #
6937# --------------------- #
6938
6939for ac_prog in gawk mawk nawk awk
6940do
6941 # Extract the first word of "$ac_prog", so it can be a program name with args.
6942set dummy $ac_prog; ac_word=$2
6943echo "$as_me:$LINENO: checking for $ac_word" >&5
6944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6945if test "${ac_cv_prog_AWK+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947else
6948 if test -n "$AWK"; then
6949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_AWK="$ac_prog"
6959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962done
6963done
6964
6965fi
6966fi
6967AWK=$ac_cv_prog_AWK
6968if test -n "$AWK"; then
6969 echo "$as_me:$LINENO: result: $AWK" >&5
6970echo "${ECHO_T}$AWK" >&6
6971else
6972 echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6
6974fi
6975
6976 test -n "$AWK" && break
6977done
6978
6979# Find a good install program. We prefer a C program (faster),
6980# so one script is as good as another. But avoid the broken or
6981# incompatible versions:
6982# SysV /etc/install, /usr/sbin/install
6983# SunOS /usr/etc/install
6984# IRIX /sbin/install
6985# AIX /bin/install
6986# AmigaOS /C/install, which installs bootblocks on floppy discs
6987# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6988# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6989# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6990# OS/2's system install, which has a completely different semantic
6991# ./install, which can be erroneously created by make from ./install.sh.
6992echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6993echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6994if test -z "$INSTALL"; then
6995if test "${ac_cv_path_install+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 # Account for people who put trailing slashes in PATH elements.
7004case $as_dir/ in
7005 ./ | .// | /cC/* | \
7006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7008 /usr/ucb/* ) ;;
c906108c 7009 *)
bec39cab
AC
7010 # OSF1 and SCO ODT 3.0 have their own names for install.
7011 # Don't use installbsd from OSF since it installs stuff as root
7012 # by default.
7013 for ac_prog in ginstall scoinst install; do
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7016 if test $ac_prog = install &&
7017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7018 # AIX install. It has an incompatible calling convention.
7019 :
7020 elif test $ac_prog = install &&
7021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7022 # program-specific install script used by HP pwplus--don't use.
7023 :
7024 else
7025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7026 break 3
7027 fi
7028 fi
7029 done
7030 done
7031 ;;
c906108c 7032esac
bec39cab
AC
7033done
7034
7035
7036fi
7037 if test "${ac_cv_path_install+set}" = set; then
7038 INSTALL=$ac_cv_path_install
7039 else
7040 # As a last resort, use the slow shell script. We don't cache a
7041 # path for INSTALL within a source directory, because that will
7042 # break other packages using the cache if that directory is
7043 # removed, or if the path is relative.
7044 INSTALL=$ac_install_sh
7045 fi
7046fi
7047echo "$as_me:$LINENO: result: $INSTALL" >&5
7048echo "${ECHO_T}$INSTALL" >&6
7049
7050# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7051# It thinks the first close brace ends the variable substitution.
7052test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7053
7054test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7055
7056test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7057
7058echo "$as_me:$LINENO: checking whether ln -s works" >&5
7059echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7060LN_S=$as_ln_s
7061if test "$LN_S" = "ln -s"; then
7062 echo "$as_me:$LINENO: result: yes" >&5
7063echo "${ECHO_T}yes" >&6
7064else
7065 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7066echo "${ECHO_T}no, using $LN_S" >&6
7067fi
7068
7069if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7071set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7072echo "$as_me:$LINENO: checking for $ac_word" >&5
7073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7074if test "${ac_cv_prog_RANLIB+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076else
7077 if test -n "$RANLIB"; then
7078 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091done
7092done
7093
7094fi
7095fi
7096RANLIB=$ac_cv_prog_RANLIB
7097if test -n "$RANLIB"; then
7098 echo "$as_me:$LINENO: result: $RANLIB" >&5
7099echo "${ECHO_T}$RANLIB" >&6
7100else
7101 echo "$as_me:$LINENO: result: no" >&5
7102echo "${ECHO_T}no" >&6
7103fi
7104
7105fi
7106if test -z "$ac_cv_prog_RANLIB"; then
7107 ac_ct_RANLIB=$RANLIB
7108 # Extract the first word of "ranlib", so it can be a program name with args.
7109set dummy ranlib; ac_word=$2
7110echo "$as_me:$LINENO: checking for $ac_word" >&5
7111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7112if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
7115 if test -n "$ac_ct_RANLIB"; then
7116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_ac_ct_RANLIB="ranlib"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129done
7130done
7131
7132 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7133fi
7134fi
7135ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7136if test -n "$ac_ct_RANLIB"; then
7137 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7138echo "${ECHO_T}$ac_ct_RANLIB" >&6
7139else
7140 echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6
7142fi
7143
7144 RANLIB=$ac_ct_RANLIB
7145else
7146 RANLIB="$ac_cv_prog_RANLIB"
7147fi
7148
7149for ac_prog in 'bison -y' byacc
7150do
7151 # Extract the first word of "$ac_prog", so it can be a program name with args.
7152set dummy $ac_prog; ac_word=$2
7153echo "$as_me:$LINENO: checking for $ac_word" >&5
7154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7155if test "${ac_cv_prog_YACC+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158 if test -n "$YACC"; then
7159 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7160else
7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_YACC="$ac_prog"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172done
7173done
7174
7175fi
7176fi
7177YACC=$ac_cv_prog_YACC
7178if test -n "$YACC"; then
7179 echo "$as_me:$LINENO: result: $YACC" >&5
7180echo "${ECHO_T}$YACC" >&6
7181else
7182 echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6
7184fi
7185
7186 test -n "$YACC" && break
7187done
7188test -n "$YACC" || YACC="yacc"
7189
7190
7191if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7193set dummy ${ac_tool_prefix}ar; ac_word=$2
7194echo "$as_me:$LINENO: checking for $ac_word" >&5
7195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7196if test "${ac_cv_prog_AR+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199 if test -n "$AR"; then
7200 ac_cv_prog_AR="$AR" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_AR="${ac_tool_prefix}ar"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213done
7214done
7215
7216fi
7217fi
7218AR=$ac_cv_prog_AR
7219if test -n "$AR"; then
7220 echo "$as_me:$LINENO: result: $AR" >&5
7221echo "${ECHO_T}$AR" >&6
7222else
7223 echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6
7225fi
7226
7227fi
7228if test -z "$ac_cv_prog_AR"; then
7229 ac_ct_AR=$AR
7230 # Extract the first word of "ar", so it can be a program name with args.
7231set dummy ar; ac_word=$2
7232echo "$as_me:$LINENO: checking for $ac_word" >&5
7233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7234if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236else
7237 if test -n "$ac_ct_AR"; then
7238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7239else
7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247 ac_cv_prog_ac_ct_AR="ar"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251done
7252done
7253
7254fi
7255fi
7256ac_ct_AR=$ac_cv_prog_ac_ct_AR
7257if test -n "$ac_ct_AR"; then
7258 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7259echo "${ECHO_T}$ac_ct_AR" >&6
7260else
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263fi
7264
7265 AR=$ac_ct_AR
7266else
7267 AR="$ac_cv_prog_AR"
7268fi
7269
7270if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7272set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7273echo "$as_me:$LINENO: checking for $ac_word" >&5
7274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7275if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278 if test -n "$DLLTOOL"; then
7279 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7280else
7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292done
7293done
7294
7295fi
7296fi
7297DLLTOOL=$ac_cv_prog_DLLTOOL
7298if test -n "$DLLTOOL"; then
7299 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7300echo "${ECHO_T}$DLLTOOL" >&6
7301else
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304fi
7305
7306fi
7307if test -z "$ac_cv_prog_DLLTOOL"; then
7308 ac_ct_DLLTOOL=$DLLTOOL
7309 # Extract the first word of "dlltool", so it can be a program name with args.
7310set dummy dlltool; 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_ac_ct_DLLTOOL+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315else
7316 if test -n "$ac_ct_DLLTOOL"; then
7317 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_ac_ct_DLLTOOL="dlltool"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330done
7331done
7332
7333fi
7334fi
7335ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7336if test -n "$ac_ct_DLLTOOL"; then
7337 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7338echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7339else
7340 echo "$as_me:$LINENO: result: no" >&5
7341echo "${ECHO_T}no" >&6
7342fi
7343
7344 DLLTOOL=$ac_ct_DLLTOOL
7345else
7346 DLLTOOL="$ac_cv_prog_DLLTOOL"
7347fi
7348
7349if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7351set dummy ${ac_tool_prefix}windres; ac_word=$2
7352echo "$as_me:$LINENO: checking for $ac_word" >&5
7353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7354if test "${ac_cv_prog_WINDRES+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356else
7357 if test -n "$WINDRES"; then
7358 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7359else
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371done
7372done
7373
7374fi
7375fi
7376WINDRES=$ac_cv_prog_WINDRES
7377if test -n "$WINDRES"; then
7378 echo "$as_me:$LINENO: result: $WINDRES" >&5
7379echo "${ECHO_T}$WINDRES" >&6
7380else
7381 echo "$as_me:$LINENO: result: no" >&5
7382echo "${ECHO_T}no" >&6
7383fi
7384
7385fi
7386if test -z "$ac_cv_prog_WINDRES"; then
7387 ac_ct_WINDRES=$WINDRES
7388 # Extract the first word of "windres", so it can be a program name with args.
7389set dummy windres; 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_ac_ct_WINDRES+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395 if test -n "$ac_ct_WINDRES"; then
7396 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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_ac_ct_WINDRES="windres"
7406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7408 fi
7409done
7410done
7411
7412fi
7413fi
7414ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7415if test -n "$ac_ct_WINDRES"; then
7416 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7417echo "${ECHO_T}$ac_ct_WINDRES" >&6
7418else
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
c906108c 7421fi
bec39cab
AC
7422
7423 WINDRES=$ac_ct_WINDRES
c906108c 7424else
bec39cab 7425 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7426fi
7427
bec39cab
AC
7428
7429# Needed for GNU/Hurd.
7430if test -n "$ac_tool_prefix"; then
7431 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7432set dummy ${ac_tool_prefix}mig; ac_word=$2
7433echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7435if test "${ac_cv_prog_MIG+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7437else
bec39cab
AC
7438 if test -n "$MIG"; then
7439 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452done
7453done
7454
c906108c 7455fi
bec39cab
AC
7456fi
7457MIG=$ac_cv_prog_MIG
7458if test -n "$MIG"; then
7459 echo "$as_me:$LINENO: result: $MIG" >&5
7460echo "${ECHO_T}$MIG" >&6
c906108c 7461else
bec39cab
AC
7462 echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
c906108c
SS
7464fi
7465
bec39cab
AC
7466fi
7467if test -z "$ac_cv_prog_MIG"; then
7468 ac_ct_MIG=$MIG
7469 # Extract the first word of "mig", so it can be a program name with args.
7470set dummy mig; ac_word=$2
7471echo "$as_me:$LINENO: checking for $ac_word" >&5
7472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7473if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475else
7476 if test -n "$ac_ct_MIG"; then
7477 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_ac_ct_MIG="mig"
7487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490done
7491done
c906108c 7492
bec39cab
AC
7493fi
7494fi
7495ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7496if test -n "$ac_ct_MIG"; then
7497 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7498echo "${ECHO_T}$ac_ct_MIG" >&6
7499else
7500 echo "$as_me:$LINENO: result: no" >&5
7501echo "${ECHO_T}no" >&6
7502fi
c906108c 7503
bec39cab
AC
7504 MIG=$ac_ct_MIG
7505else
7506 MIG="$ac_cv_prog_MIG"
7507fi
c906108c 7508
c906108c 7509
bec39cab
AC
7510# ---------------------- #
7511# Checks for libraries. #
7512# ---------------------- #
c906108c 7513
bec39cab 7514# We might need to link with -lm; most simulators need it.
c906108c 7515
bec39cab
AC
7516echo "$as_me:$LINENO: checking for main in -lm" >&5
7517echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7518if test "${ac_cv_lib_m_main+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521 ac_check_lib_save_LIBS=$LIBS
7522LIBS="-lm $LIBS"
7523cat >conftest.$ac_ext <<_ACEOF
7524/* confdefs.h. */
7525_ACEOF
7526cat confdefs.h >>conftest.$ac_ext
7527cat >>conftest.$ac_ext <<_ACEOF
7528/* end confdefs.h. */
c906108c 7529
c906108c 7530
bec39cab
AC
7531int
7532main ()
7533{
7534main ();
7535 ;
7536 return 0;
7537}
7538_ACEOF
7539rm -f conftest.$ac_objext conftest$ac_exeext
7540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541 (eval $ac_link) 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } &&
121ce6e5 7548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest$ac_exeext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_cv_lib_m_main=yes
7561else
7562 echo "$as_me: failed program was:" >&5
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
7565ac_cv_lib_m_main=no
7566fi
7567rm -f conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7569LIBS=$ac_check_lib_save_LIBS
7570fi
7571echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7572echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7573if test $ac_cv_lib_m_main = yes; then
7574 cat >>confdefs.h <<_ACEOF
7575#define HAVE_LIBM 1
7576_ACEOF
7577
7578 LIBS="-lm $LIBS"
c906108c 7579
c906108c 7580fi
bec39cab
AC
7581
7582
7583# We need to link with -lw to get `wctype' on Solaris before Solaris
7584# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7585# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7586# is known to have this problem). Therefore we avoid libw if we can.
7587echo "$as_me:$LINENO: checking for wctype" >&5
7588echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7589if test "${ac_cv_func_wctype+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592 cat >conftest.$ac_ext <<_ACEOF
7593/* confdefs.h. */
7594_ACEOF
7595cat confdefs.h >>conftest.$ac_ext
7596cat >>conftest.$ac_ext <<_ACEOF
7597/* end confdefs.h. */
7598/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7600#define wctype innocuous_wctype
7601
7602/* System header to define __stub macros and hopefully few prototypes,
7603 which can conflict with char wctype (); below.
7604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7605 <limits.h> exists even on freestanding compilers. */
7606
7607#ifdef __STDC__
7608# include <limits.h>
7609#else
7610# include <assert.h>
7611#endif
7612
7613#undef wctype
7614
7615/* Override any gcc2 internal prototype to avoid an error. */
7616#ifdef __cplusplus
7617extern "C"
7618{
7619#endif
7620/* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622char wctype ();
7623/* The GNU C library defines this for functions which it implements
7624 to always fail with ENOSYS. Some functions are actually named
7625 something starting with __ and the normal name is an alias. */
7626#if defined (__stub_wctype) || defined (__stub___wctype)
7627choke me
7628#else
7629char (*f) () = wctype;
7630#endif
7631#ifdef __cplusplus
7632}
7633#endif
7634
7635int
7636main ()
7637{
7638return f != wctype;
7639 ;
7640 return 0;
7641}
7642_ACEOF
7643rm -f conftest.$ac_objext conftest$ac_exeext
7644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7645 (eval $ac_link) 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
121ce6e5 7652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest$ac_exeext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_cv_func_wctype=yes
7665else
7666 echo "$as_me: failed program was:" >&5
7667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669ac_cv_func_wctype=no
7670fi
7671rm -f conftest.err conftest.$ac_objext \
7672 conftest$ac_exeext conftest.$ac_ext
7673fi
7674echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7675echo "${ECHO_T}$ac_cv_func_wctype" >&6
7676if test $ac_cv_func_wctype = yes; then
7677 :
c906108c 7678else
c906108c 7679
bec39cab
AC
7680echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7681echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7682if test "${ac_cv_lib_w_wctype+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684else
7685 ac_check_lib_save_LIBS=$LIBS
7686LIBS="-lw $LIBS"
7687cat >conftest.$ac_ext <<_ACEOF
7688/* confdefs.h. */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
7692/* end confdefs.h. */
c906108c 7693
bec39cab
AC
7694/* Override any gcc2 internal prototype to avoid an error. */
7695#ifdef __cplusplus
7696extern "C"
7697#endif
7698/* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7700char wctype ();
7701int
7702main ()
7703{
7704wctype ();
7705 ;
7706 return 0;
7707}
7708_ACEOF
7709rm -f conftest.$ac_objext conftest$ac_exeext
7710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>conftest.er1
7712 ac_status=$?
7713 grep -v '^ *+' conftest.er1 >conftest.err
7714 rm -f conftest.er1
7715 cat conftest.err >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
121ce6e5 7718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; } &&
7724 { ac_try='test -s conftest$ac_exeext'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 ac_cv_lib_w_wctype=yes
7731else
7732 echo "$as_me: failed program was:" >&5
7733sed 's/^/| /' conftest.$ac_ext >&5
7734
7735ac_cv_lib_w_wctype=no
7736fi
7737rm -f conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7739LIBS=$ac_check_lib_save_LIBS
7740fi
7741echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7742echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7743if test $ac_cv_lib_w_wctype = yes; then
7744 cat >>confdefs.h <<_ACEOF
7745#define HAVE_LIBW 1
7746_ACEOF
c906108c 7747
bec39cab 7748 LIBS="-lw $LIBS"
c906108c 7749
bec39cab 7750fi
c906108c 7751
bec39cab 7752fi
c906108c 7753
ddc9cd0f 7754
bec39cab
AC
7755# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7756echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7757echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7758if test "${ac_cv_search_gethostbyname+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
7761 ac_func_search_save_LIBS=$LIBS
7762ac_cv_search_gethostbyname=no
7763cat >conftest.$ac_ext <<_ACEOF
7764/* confdefs.h. */
7765_ACEOF
7766cat confdefs.h >>conftest.$ac_ext
7767cat >>conftest.$ac_ext <<_ACEOF
7768/* end confdefs.h. */
ddc9cd0f 7769
bec39cab
AC
7770/* Override any gcc2 internal prototype to avoid an error. */
7771#ifdef __cplusplus
7772extern "C"
7773#endif
7774/* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7776char gethostbyname ();
7777int
7778main ()
7779{
7780gethostbyname ();
7781 ;
7782 return 0;
7783}
7784_ACEOF
7785rm -f conftest.$ac_objext conftest$ac_exeext
7786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>conftest.er1
7788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
121ce6e5 7794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; } &&
7800 { ac_try='test -s conftest$ac_exeext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 (eval $ac_try) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 ac_cv_search_gethostbyname="none required"
7807else
7808 echo "$as_me: failed program was:" >&5
7809sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7810
bec39cab
AC
7811fi
7812rm -f conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814if test "$ac_cv_search_gethostbyname" = no; then
7815 for ac_lib in nsl; do
7816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7817 cat >conftest.$ac_ext <<_ACEOF
7818/* confdefs.h. */
7819_ACEOF
7820cat confdefs.h >>conftest.$ac_ext
7821cat >>conftest.$ac_ext <<_ACEOF
7822/* end confdefs.h. */
ddc9cd0f 7823
bec39cab
AC
7824/* Override any gcc2 internal prototype to avoid an error. */
7825#ifdef __cplusplus
7826extern "C"
7827#endif
7828/* We use char because int might match the return type of a gcc2
7829 builtin and then its argument prototype would still apply. */
7830char gethostbyname ();
7831int
7832main ()
7833{
7834gethostbyname ();
7835 ;
7836 return 0;
7837}
7838_ACEOF
7839rm -f conftest.$ac_objext conftest$ac_exeext
7840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7841 (eval $ac_link) 2>conftest.er1
7842 ac_status=$?
7843 grep -v '^ *+' conftest.er1 >conftest.err
7844 rm -f conftest.er1
7845 cat conftest.err >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } &&
121ce6e5 7848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 (eval $ac_try) 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_search_gethostbyname="-l$ac_lib"
7861break
7862else
7863 echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866fi
7867rm -f conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7869 done
bec39cab
AC
7870fi
7871LIBS=$ac_func_search_save_LIBS
7872fi
7873echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7874echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7875if test "$ac_cv_search_gethostbyname" != no; then
7876 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7877
ddc9cd0f
AC
7878fi
7879
0fbb3da7 7880
bec39cab
AC
7881# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7882echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7883echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7884if test "${ac_cv_search_socketpair+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887 ac_func_search_save_LIBS=$LIBS
7888ac_cv_search_socketpair=no
7889cat >conftest.$ac_ext <<_ACEOF
7890/* confdefs.h. */
7891_ACEOF
7892cat confdefs.h >>conftest.$ac_ext
7893cat >>conftest.$ac_ext <<_ACEOF
7894/* end confdefs.h. */
0fbb3da7 7895
bec39cab
AC
7896/* Override any gcc2 internal prototype to avoid an error. */
7897#ifdef __cplusplus
7898extern "C"
7899#endif
7900/* We use char because int might match the return type of a gcc2
7901 builtin and then its argument prototype would still apply. */
7902char socketpair ();
7903int
7904main ()
7905{
7906socketpair ();
7907 ;
7908 return 0;
7909}
7910_ACEOF
7911rm -f conftest.$ac_objext conftest$ac_exeext
7912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7913 (eval $ac_link) 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
121ce6e5 7920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 (eval $ac_try) 2>&5
7923 ac_status=$?
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; } &&
7926 { ac_try='test -s conftest$ac_exeext'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
7932 ac_cv_search_socketpair="none required"
7933else
7934 echo "$as_me: failed program was:" >&5
7935sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7936
5b5d99cf 7937fi
bec39cab
AC
7938rm -f conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7940if test "$ac_cv_search_socketpair" = no; then
7941 for ac_lib in socket; do
7942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7943 cat >conftest.$ac_ext <<_ACEOF
7944/* confdefs.h. */
7945_ACEOF
7946cat confdefs.h >>conftest.$ac_ext
7947cat >>conftest.$ac_ext <<_ACEOF
7948/* end confdefs.h. */
5b5d99cf 7949
bec39cab
AC
7950/* Override any gcc2 internal prototype to avoid an error. */
7951#ifdef __cplusplus
7952extern "C"
7953#endif
7954/* We use char because int might match the return type of a gcc2
7955 builtin and then its argument prototype would still apply. */
7956char socketpair ();
7957int
7958main ()
7959{
7960socketpair ();
7961 ;
7962 return 0;
7963}
7964_ACEOF
7965rm -f conftest.$ac_objext conftest$ac_exeext
7966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
121ce6e5 7974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; } &&
7980 { ac_try='test -s conftest$ac_exeext'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7986 ac_cv_search_socketpair="-l$ac_lib"
7987break
7988else
7989 echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7991
bec39cab
AC
7992fi
7993rm -f conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7995 done
7996fi
7997LIBS=$ac_func_search_save_LIBS
7998fi
7999echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8000echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8001if test "$ac_cv_search_socketpair" != no; then
8002 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8003
bec39cab 8004fi
96baa820 8005
c906108c 8006
bec39cab
AC
8007# For the TUI, we need enhanced curses functionality.
8008#
8009# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8010# curses library because the latter might not provide all the
8011# functionality we need. However, this leads to problems on systems
8012# where the linker searches /usr/local/lib, but the compiler doesn't
8013# search /usr/local/include, if ncurses is installed in /usr/local. A
8014# default installation of ncurses on alpha*-dec-osf* will lead to such
8015# a situation.
8016echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8017echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8018if test "${ac_cv_search_waddstr+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020else
8021 ac_func_search_save_LIBS=$LIBS
8022ac_cv_search_waddstr=no
8023cat >conftest.$ac_ext <<_ACEOF
8024/* confdefs.h. */
8025_ACEOF
8026cat confdefs.h >>conftest.$ac_ext
8027cat >>conftest.$ac_ext <<_ACEOF
8028/* end confdefs.h. */
c906108c 8029
bec39cab
AC
8030/* Override any gcc2 internal prototype to avoid an error. */
8031#ifdef __cplusplus
8032extern "C"
8033#endif
8034/* We use char because int might match the return type of a gcc2
8035 builtin and then its argument prototype would still apply. */
8036char waddstr ();
8037int
8038main ()
8039{
8040waddstr ();
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045rm -f conftest.$ac_objext conftest$ac_exeext
8046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
121ce6e5 8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_search_waddstr="none required"
8067else
8068 echo "$as_me: failed program was:" >&5
8069sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8070
bec39cab
AC
8071fi
8072rm -f conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074if test "$ac_cv_search_waddstr" = no; then
8075 for ac_lib in ncurses cursesX curses; do
8076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8077 cat >conftest.$ac_ext <<_ACEOF
8078/* confdefs.h. */
8079_ACEOF
8080cat confdefs.h >>conftest.$ac_ext
8081cat >>conftest.$ac_ext <<_ACEOF
8082/* end confdefs.h. */
1ba607ad 8083
bec39cab
AC
8084/* Override any gcc2 internal prototype to avoid an error. */
8085#ifdef __cplusplus
8086extern "C"
8087#endif
8088/* We use char because int might match the return type of a gcc2
8089 builtin and then its argument prototype would still apply. */
8090char waddstr ();
8091int
8092main ()
8093{
8094waddstr ();
8095 ;
8096 return 0;
8097}
8098_ACEOF
8099rm -f conftest.$ac_objext conftest$ac_exeext
8100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8101 (eval $ac_link) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
121ce6e5 8108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 ac_cv_search_waddstr="-l$ac_lib"
8121break
8122else
8123 echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8125
8126fi
bec39cab
AC
8127rm -f conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 done
1ba607ad 8130fi
bec39cab
AC
8131LIBS=$ac_func_search_save_LIBS
8132fi
8133echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8134echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8135if test "$ac_cv_search_waddstr" != no; then
8136 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8137
8bb2c122 8138fi
8bb2c122 8139
8bb2c122 8140
bec39cab
AC
8141# Since GDB uses Readline, we need termcap functionality. In many
8142# cases this will be provided by the curses library, but some systems
8143# have a seperate termcap library, or no curses library at all.
8bb2c122 8144
bec39cab
AC
8145case $host_os in
8146 cygwin*)
8147 if test -d $srcdir/libtermcap; then
8148 LIBS="../libtermcap/libtermcap.a $LIBS"
8149 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8150 fi ;;
8151 go32* | *djgpp*)
8152 ac_cv_search_tgetent="none required"
8153 ;;
7ef34f2c
MM
8154 *mingw32*)
8155 ac_cv_search_tgetent="none required"
8156 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8157 ;;
bec39cab 8158esac
627af7ea 8159
bec39cab
AC
8160# These are the libraries checked by Readline.
8161echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8162echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8163if test "${ac_cv_search_tgetent+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166 ac_func_search_save_LIBS=$LIBS
8167ac_cv_search_tgetent=no
8168cat >conftest.$ac_ext <<_ACEOF
8169/* confdefs.h. */
8170_ACEOF
8171cat confdefs.h >>conftest.$ac_ext
8172cat >>conftest.$ac_ext <<_ACEOF
8173/* end confdefs.h. */
8174
8175/* Override any gcc2 internal prototype to avoid an error. */
8176#ifdef __cplusplus
8177extern "C"
8178#endif
8179/* We use char because int might match the return type of a gcc2
8180 builtin and then its argument prototype would still apply. */
8181char tgetent ();
8182int
8183main ()
8184{
8185tgetent ();
8186 ;
8187 return 0;
8188}
8189_ACEOF
8190rm -f conftest.$ac_objext conftest$ac_exeext
8191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192 (eval $ac_link) 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
121ce6e5 8199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_search_tgetent="none required"
627af7ea 8212else
bec39cab
AC
8213 echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8215
627af7ea 8216fi
bec39cab
AC
8217rm -f conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8219if test "$ac_cv_search_tgetent" = no; then
8220 for ac_lib in termcap tinfo curses ncurses; do
8221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8222 cat >conftest.$ac_ext <<_ACEOF
8223/* confdefs.h. */
8224_ACEOF
8225cat confdefs.h >>conftest.$ac_ext
8226cat >>conftest.$ac_ext <<_ACEOF
8227/* end confdefs.h. */
627af7ea 8228
bec39cab
AC
8229/* Override any gcc2 internal prototype to avoid an error. */
8230#ifdef __cplusplus
8231extern "C"
8232#endif
8233/* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8235char tgetent ();
8236int
8237main ()
8238{
8239tgetent ();
8240 ;
8241 return 0;
8242}
8243_ACEOF
8244rm -f conftest.$ac_objext conftest$ac_exeext
8245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
121ce6e5 8253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; } &&
8259 { ac_try='test -s conftest$ac_exeext'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_search_tgetent="-l$ac_lib"
8266break
627af7ea 8267else
bec39cab
AC
8268 echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8270
627af7ea 8271fi
bec39cab
AC
8272rm -f conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274 done
8275fi
8276LIBS=$ac_func_search_save_LIBS
8277fi
8278echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8279echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8280if test "$ac_cv_search_tgetent" != no; then
8281 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8282
06825bd1
MK
8283fi
8284
06825bd1 8285
bec39cab
AC
8286if test "$ac_cv_search_tgetent" = no; then
8287 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8288echo "$as_me: error: no termcap library found" >&2;}
8289 { (exit 1); exit 1; }; }
8ee53726
MK
8290fi
8291
bec39cab
AC
8292# ------------------------- #
8293# Checks for header files. #
8294# ------------------------- #
8ee53726 8295
0e5d83e3 8296
bec39cab
AC
8297
8298
8299
8300
8301ac_header_dirent=no
8302for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8303 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8304echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8305echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8306if eval "test \"\${$as_ac_Header+set}\" = set"; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308else
8309 cat >conftest.$ac_ext <<_ACEOF
8310/* confdefs.h. */
8311_ACEOF
8312cat confdefs.h >>conftest.$ac_ext
8313cat >>conftest.$ac_ext <<_ACEOF
8314/* end confdefs.h. */
8315#include <sys/types.h>
0e5d83e3 8316#include <$ac_hdr>
bec39cab
AC
8317
8318int
8319main ()
8320{
8321if ((DIR *) 0)
8322return 0;
8323 ;
8324 return 0;
8325}
8326_ACEOF
8327rm -f conftest.$ac_objext
8328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8329 (eval $ac_compile) 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
121ce6e5 8336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; } &&
8342 { ac_try='test -s conftest.$ac_objext'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 eval "$as_ac_Header=yes"
8349else
8350 echo "$as_me: failed program was:" >&5
8351sed 's/^/| /' conftest.$ac_ext >&5
8352
8353eval "$as_ac_Header=no"
8354fi
8355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8356fi
8357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8359if test `eval echo '${'$as_ac_Header'}'` = yes; then
8360 cat >>confdefs.h <<_ACEOF
8361#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8362_ACEOF
8363
8364ac_header_dirent=$ac_hdr; break
0e5d83e3 8365fi
0e5d83e3 8366
bec39cab
AC
8367done
8368# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8369if test $ac_header_dirent = dirent.h; then
8370 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8371echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8372if test "${ac_cv_search_opendir+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375 ac_func_search_save_LIBS=$LIBS
8376ac_cv_search_opendir=no
8377cat >conftest.$ac_ext <<_ACEOF
8378/* confdefs.h. */
8379_ACEOF
8380cat confdefs.h >>conftest.$ac_ext
8381cat >>conftest.$ac_ext <<_ACEOF
8382/* end confdefs.h. */
0e5d83e3 8383
bec39cab
AC
8384/* Override any gcc2 internal prototype to avoid an error. */
8385#ifdef __cplusplus
8386extern "C"
8387#endif
8388/* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8390char opendir ();
8391int
8392main ()
8393{
8394opendir ();
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext conftest$ac_exeext
8400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401 (eval $ac_link) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
121ce6e5 8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest$ac_exeext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_search_opendir="none required"
8421else
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425fi
8426rm -f conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428if test "$ac_cv_search_opendir" = no; then
8429 for ac_lib in dir; do
8430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8431 cat >conftest.$ac_ext <<_ACEOF
8432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
0e5d83e3 8437
bec39cab
AC
8438/* Override any gcc2 internal prototype to avoid an error. */
8439#ifdef __cplusplus
8440extern "C"
8441#endif
8442/* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444char opendir ();
8445int
8446main ()
8447{
8448opendir ();
8449 ;
8450 return 0;
8451}
8452_ACEOF
8453rm -f conftest.$ac_objext conftest$ac_exeext
8454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
121ce6e5 8462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_search_opendir="-l$ac_lib"
8475break
0e5d83e3 8476else
bec39cab
AC
8477 echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8479
0e5d83e3 8480fi
bec39cab
AC
8481rm -f conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8483 done
0e5d83e3 8484fi
bec39cab 8485LIBS=$ac_func_search_save_LIBS
0e5d83e3 8486fi
bec39cab
AC
8487echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8488echo "${ECHO_T}$ac_cv_search_opendir" >&6
8489if test "$ac_cv_search_opendir" != no; then
8490 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8491
0e5d83e3
JJ
8492fi
8493
d28f9cdf 8494else
bec39cab
AC
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. */
d28f9cdf 8508
d28f9cdf 8509/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8510#ifdef __cplusplus
8511extern "C"
8512#endif
d28f9cdf 8513/* We use char because int might match the return type of a gcc2
bec39cab
AC
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); } &&
121ce6e5 8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_cv_search_opendir="none required"
8546else
8547 echo "$as_me: failed program was:" >&5
8548sed 's/^/| /' conftest.$ac_ext >&5
8549
8550fi
8551rm -f conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8553if test "$ac_cv_search_opendir" = no; then
8554 for ac_lib in x; do
8555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8556 cat >conftest.$ac_ext <<_ACEOF
8557/* confdefs.h. */
8558_ACEOF
8559cat confdefs.h >>conftest.$ac_ext
8560cat >>conftest.$ac_ext <<_ACEOF
8561/* end confdefs.h. */
d28f9cdf 8562
bec39cab
AC
8563/* Override any gcc2 internal prototype to avoid an error. */
8564#ifdef __cplusplus
8565extern "C"
d28f9cdf 8566#endif
bec39cab
AC
8567/* We use char because int might match the return type of a gcc2
8568 builtin and then its argument prototype would still apply. */
8569char opendir ();
8570int
8571main ()
8572{
8573opendir ();
8574 ;
8575 return 0;
8576}
8577_ACEOF
8578rm -f conftest.$ac_objext conftest$ac_exeext
8579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
121ce6e5 8587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest$ac_exeext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_cv_search_opendir="-l$ac_lib"
8600break
d28f9cdf 8601else
bec39cab
AC
8602 echo "$as_me: failed program was:" >&5
8603sed 's/^/| /' conftest.$ac_ext >&5
8604
d28f9cdf 8605fi
bec39cab
AC
8606rm -f conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608 done
8609fi
8610LIBS=$ac_func_search_save_LIBS
d28f9cdf 8611fi
bec39cab
AC
8612echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8613echo "${ECHO_T}$ac_cv_search_opendir" >&6
8614if test "$ac_cv_search_opendir" != no; then
8615 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8616
d28f9cdf
DJ
8617fi
8618
bec39cab 8619fi
b0b1c2c0 8620
bec39cab
AC
8621echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8622echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8623if test "${ac_cv_header_stat_broken+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8625else
bec39cab
AC
8626 cat >conftest.$ac_ext <<_ACEOF
8627/* confdefs.h. */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
8631/* end confdefs.h. */
8632#include <sys/types.h>
8633#include <sys/stat.h>
b0b1c2c0 8634
bec39cab
AC
8635#if defined(S_ISBLK) && defined(S_IFDIR)
8636# if S_ISBLK (S_IFDIR)
8637You lose.
8638# endif
8639#endif
b0b1c2c0 8640
bec39cab
AC
8641#if defined(S_ISBLK) && defined(S_IFCHR)
8642# if S_ISBLK (S_IFCHR)
8643You lose.
8644# endif
8645#endif
d28f9cdf 8646
bec39cab
AC
8647#if defined(S_ISLNK) && defined(S_IFREG)
8648# if S_ISLNK (S_IFREG)
8649You lose.
8650# endif
8651#endif
d28f9cdf 8652
bec39cab
AC
8653#if defined(S_ISSOCK) && defined(S_IFREG)
8654# if S_ISSOCK (S_IFREG)
8655You lose.
8656# endif
8657#endif
8658
8659_ACEOF
8660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8661 $EGREP "You lose" >/dev/null 2>&1; then
8662 ac_cv_header_stat_broken=yes
d28f9cdf 8663else
bec39cab 8664 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8665fi
8666rm -f conftest*
d28f9cdf 8667
d28f9cdf 8668fi
bec39cab
AC
8669echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8670echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8671if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8672
bec39cab
AC
8673cat >>confdefs.h <<\_ACEOF
8674#define STAT_MACROS_BROKEN 1
8675_ACEOF
8bb2c122 8676
7a292a7a 8677fi
bec39cab
AC
8678
8679echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8680echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8681if test "${ac_cv_header_stdc+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8683else
bec39cab
AC
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. */
8690#include <stdlib.h>
8691#include <stdarg.h>
8692#include <string.h>
8693#include <float.h>
7a292a7a 8694
bec39cab
AC
8695int
8696main ()
8697{
7a292a7a 8698
bec39cab
AC
8699 ;
8700 return 0;
8701}
8702_ACEOF
8703rm -f conftest.$ac_objext
8704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705 (eval $ac_compile) 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
121ce6e5 8712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try='test -s conftest.$ac_objext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_cv_header_stdc=yes
c906108c 8725else
bec39cab
AC
8726 echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8728
bec39cab 8729ac_cv_header_stdc=no
c906108c 8730fi
bec39cab 8731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8732
bec39cab
AC
8733if test $ac_cv_header_stdc = yes; then
8734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8735 cat >conftest.$ac_ext <<_ACEOF
8736/* confdefs.h. */
8737_ACEOF
8738cat confdefs.h >>conftest.$ac_ext
8739cat >>conftest.$ac_ext <<_ACEOF
8740/* end confdefs.h. */
8741#include <string.h>
c906108c 8742
bec39cab
AC
8743_ACEOF
8744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "memchr" >/dev/null 2>&1; then
8746 :
8bb2c122 8747else
bec39cab 8748 ac_cv_header_stdc=no
8bb2c122 8749fi
bec39cab
AC
8750rm -f conftest*
8751
c906108c
SS
8752fi
8753
bec39cab
AC
8754if test $ac_cv_header_stdc = yes; then
8755 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8756 cat >conftest.$ac_ext <<_ACEOF
8757/* confdefs.h. */
8758_ACEOF
8759cat confdefs.h >>conftest.$ac_ext
8760cat >>conftest.$ac_ext <<_ACEOF
8761/* end confdefs.h. */
8762#include <stdlib.h>
8763
8764_ACEOF
8765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8766 $EGREP "free" >/dev/null 2>&1; then
8767 :
c906108c 8768else
bec39cab 8769 ac_cv_header_stdc=no
c906108c 8770fi
bec39cab
AC
8771rm -f conftest*
8772
c906108c
SS
8773fi
8774
bec39cab
AC
8775if test $ac_cv_header_stdc = yes; then
8776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8777 if test "$cross_compiling" = yes; then
8778 :
c906108c 8779else
bec39cab
AC
8780 cat >conftest.$ac_ext <<_ACEOF
8781/* confdefs.h. */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h. */
8786#include <ctype.h>
8787#if ((' ' & 0x0FF) == 0x020)
8788# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8789# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8790#else
8791# define ISLOWER(c) \
8792 (('a' <= (c) && (c) <= 'i') \
8793 || ('j' <= (c) && (c) <= 'r') \
8794 || ('s' <= (c) && (c) <= 'z'))
8795# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8796#endif
8797
8798#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8799int
8800main ()
8801{
8802 int i;
8803 for (i = 0; i < 256; i++)
8804 if (XOR (islower (i), ISLOWER (i))
8805 || toupper (i) != TOUPPER (i))
8806 exit(2);
8807 exit (0);
8808}
8809_ACEOF
8810rm -f conftest$ac_exeext
8811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 (eval $ac_try) 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 :
8822else
8823 echo "$as_me: program exited with status $ac_status" >&5
8824echo "$as_me: failed program was:" >&5
8825sed 's/^/| /' conftest.$ac_ext >&5
8826
8827( exit $ac_status )
8828ac_cv_header_stdc=no
c906108c 8829fi
bec39cab 8830rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8831fi
c906108c 8832fi
bec39cab
AC
8833fi
8834echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8835echo "${ECHO_T}$ac_cv_header_stdc" >&6
8836if test $ac_cv_header_stdc = yes; then
c906108c 8837
bec39cab
AC
8838cat >>confdefs.h <<\_ACEOF
8839#define STDC_HEADERS 1
8840_ACEOF
c906108c 8841
bec39cab 8842fi
8bb2c122 8843
bec39cab 8844
7cb9022a 8845for ac_header in nlist.h
bec39cab
AC
8846do
8847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8848if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849 echo "$as_me:$LINENO: checking for $ac_header" >&5
8850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8851if eval "test \"\${$as_ac_Header+set}\" = set"; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853fi
8854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8856else
8857 # Is the header compilable?
8858echo "$as_me:$LINENO: checking $ac_header usability" >&5
8859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8860cat >conftest.$ac_ext <<_ACEOF
8861/* confdefs.h. */
8862_ACEOF
8863cat confdefs.h >>conftest.$ac_ext
8864cat >>conftest.$ac_ext <<_ACEOF
8865/* end confdefs.h. */
8866$ac_includes_default
8867#include <$ac_header>
8868_ACEOF
8869rm -f conftest.$ac_objext
8870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871 (eval $ac_compile) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
121ce6e5 8878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try='test -s conftest.$ac_objext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 (eval $ac_try) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_header_compiler=yes
8891else
8892 echo "$as_me: failed program was:" >&5
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
8895ac_header_compiler=no
8896fi
8897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8899echo "${ECHO_T}$ac_header_compiler" >&6
8900
8901# Is the header present?
8902echo "$as_me:$LINENO: checking $ac_header presence" >&5
8903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8904cat >conftest.$ac_ext <<_ACEOF
8905/* confdefs.h. */
8906_ACEOF
8907cat confdefs.h >>conftest.$ac_ext
8908cat >>conftest.$ac_ext <<_ACEOF
8909/* end confdefs.h. */
8910#include <$ac_header>
8911_ACEOF
8912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } >/dev/null; then
8920 if test -s conftest.err; then
8921 ac_cpp_err=$ac_c_preproc_warn_flag
8922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8923 else
8924 ac_cpp_err=
8925 fi
c906108c 8926else
bec39cab 8927 ac_cpp_err=yes
c906108c 8928fi
bec39cab
AC
8929if test -z "$ac_cpp_err"; then
8930 ac_header_preproc=yes
c906108c 8931else
bec39cab
AC
8932 echo "$as_me: failed program was:" >&5
8933sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 8934
bec39cab
AC
8935 ac_header_preproc=no
8936fi
8937rm -f conftest.err conftest.$ac_ext
8938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8939echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8940
bec39cab
AC
8941# So? What about this header?
8942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8943 yes:no: )
8944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8948 ac_header_preproc=yes
8949 ;;
8950 no:yes:* )
8951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8954echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8958echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8963 (
8964 cat <<\_ASBOX
8965## ------------------------------------------ ##
8966## Report this to the AC_PACKAGE_NAME lists. ##
8967## ------------------------------------------ ##
8968_ASBOX
8969 ) |
8970 sed "s/^/$as_me: WARNING: /" >&2
8971 ;;
8972esac
8973echo "$as_me:$LINENO: checking for $ac_header" >&5
8974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8975if eval "test \"\${$as_ac_Header+set}\" = set"; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 8977else
bec39cab 8978 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 8979fi
bec39cab
AC
8980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8982
95ca63c4 8983fi
bec39cab
AC
8984if test `eval echo '${'$as_ac_Header'}'` = yes; then
8985 cat >>confdefs.h <<_ACEOF
8986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8987_ACEOF
8988
95ca63c4
CF
8989fi
8990
bec39cab 8991done
95ca63c4
CF
8992
8993
7cb9022a 8994for ac_header in link.h
bec39cab
AC
8995do
8996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 8997echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
8998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8999if eval "test \"\${$as_ac_Header+set}\" = set"; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9001else
7cb9022a 9002 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9003/* confdefs.h. */
9004_ACEOF
9005cat confdefs.h >>conftest.$ac_ext
9006cat >>conftest.$ac_ext <<_ACEOF
9007/* end confdefs.h. */
7cb9022a
MK
9008#if HAVE_SYS_TYPES_H
9009# include <sys/types.h>
9010#endif
9011#if HAVE_NLIST_H
9012# include <nlist.h>
9013#endif
9014
9015
bec39cab
AC
9016#include <$ac_header>
9017_ACEOF
9018rm -f conftest.$ac_objext
9019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>conftest.er1
9021 ac_status=$?
9022 grep -v '^ *+' conftest.er1 >conftest.err
9023 rm -f conftest.er1
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } &&
121ce6e5 9027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
7cb9022a 9039 eval "$as_ac_Header=yes"
bec39cab
AC
9040else
9041 echo "$as_me: failed program was:" >&5
9042sed 's/^/| /' conftest.$ac_ext >&5
9043
7cb9022a 9044eval "$as_ac_Header=no"
bec39cab
AC
9045fi
9046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9047fi
9048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9050if test `eval echo '${'$as_ac_Header'}'` = yes; then
9051 cat >>confdefs.h <<_ACEOF
9052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9053_ACEOF
95ca63c4 9054
bec39cab 9055fi
95ca63c4 9056
bec39cab 9057done
95ca63c4 9058
c906108c 9059
7cb9022a 9060for ac_header in machine/reg.h
bec39cab
AC
9061do
9062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9063if eval "test \"\${$as_ac_Header+set}\" = set"; then
9064 echo "$as_me:$LINENO: checking for $ac_header" >&5
9065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066if eval "test \"\${$as_ac_Header+set}\" = set"; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068fi
9069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9071else
9072 # Is the header compilable?
9073echo "$as_me:$LINENO: checking $ac_header usability" >&5
9074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9075cat >conftest.$ac_ext <<_ACEOF
9076/* confdefs.h. */
9077_ACEOF
9078cat confdefs.h >>conftest.$ac_ext
9079cat >>conftest.$ac_ext <<_ACEOF
9080/* end confdefs.h. */
9081$ac_includes_default
9082#include <$ac_header>
9083_ACEOF
9084rm -f conftest.$ac_objext
9085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9086 (eval $ac_compile) 2>conftest.er1
9087 ac_status=$?
9088 grep -v '^ *+' conftest.er1 >conftest.err
9089 rm -f conftest.er1
9090 cat conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
121ce6e5 9093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest.$ac_objext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 ac_header_compiler=yes
9106else
9107 echo "$as_me: failed program was:" >&5
9108sed 's/^/| /' conftest.$ac_ext >&5
9109
9110ac_header_compiler=no
9111fi
9112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9114echo "${ECHO_T}$ac_header_compiler" >&6
9115
9116# Is the header present?
9117echo "$as_me:$LINENO: checking $ac_header presence" >&5
9118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9119cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h. */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h. */
9125#include <$ac_header>
9126_ACEOF
9127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } >/dev/null; then
9135 if test -s conftest.err; then
9136 ac_cpp_err=$ac_c_preproc_warn_flag
9137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9138 else
9139 ac_cpp_err=
9140 fi
75c6e08a 9141else
bec39cab 9142 ac_cpp_err=yes
75c6e08a 9143fi
bec39cab
AC
9144if test -z "$ac_cpp_err"; then
9145 ac_header_preproc=yes
9146else
9147 echo "$as_me: failed program was:" >&5
9148sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 ac_header_preproc=no
75c6e08a 9151fi
bec39cab
AC
9152rm -f conftest.err conftest.$ac_ext
9153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9154echo "${ECHO_T}$ac_header_preproc" >&6
9155
9156# So? What about this header?
9157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9158 yes:no: )
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9163 ac_header_preproc=yes
9164 ;;
9165 no:yes:* )
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9178 (
9179 cat <<\_ASBOX
9180## ------------------------------------------ ##
9181## Report this to the AC_PACKAGE_NAME lists. ##
9182## ------------------------------------------ ##
9183_ASBOX
9184 ) |
9185 sed "s/^/$as_me: WARNING: /" >&2
9186 ;;
9187esac
9188echo "$as_me:$LINENO: checking for $ac_header" >&5
9189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9190if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9192else
bec39cab
AC
9193 eval "$as_ac_Header=\$ac_header_preproc"
9194fi
9195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9197
75c6e08a 9198fi
bec39cab
AC
9199if test `eval echo '${'$as_ac_Header'}'` = yes; then
9200 cat >>confdefs.h <<_ACEOF
9201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9202_ACEOF
75c6e08a 9203
bec39cab 9204fi
75c6e08a 9205
bec39cab 9206done
75c6e08a
MK
9207
9208
9a156167 9209
bec39cab
AC
9210for ac_header in poll.h sys/poll.h
9211do
9212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9213if eval "test \"\${$as_ac_Header+set}\" = set"; then
9214 echo "$as_me:$LINENO: checking for $ac_header" >&5
9215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9216if eval "test \"\${$as_ac_Header+set}\" = set"; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218fi
9219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9221else
9222 # Is the header compilable?
9223echo "$as_me:$LINENO: checking $ac_header usability" >&5
9224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9225cat >conftest.$ac_ext <<_ACEOF
9226/* confdefs.h. */
9227_ACEOF
9228cat confdefs.h >>conftest.$ac_ext
9229cat >>conftest.$ac_ext <<_ACEOF
9230/* end confdefs.h. */
9231$ac_includes_default
9232#include <$ac_header>
9233_ACEOF
9234rm -f conftest.$ac_objext
9235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236 (eval $ac_compile) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
121ce6e5 9243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest.$ac_objext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_header_compiler=yes
9256else
9257 echo "$as_me: failed program was:" >&5
9258sed 's/^/| /' conftest.$ac_ext >&5
9259
9260ac_header_compiler=no
9261fi
9262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9263echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9264echo "${ECHO_T}$ac_header_compiler" >&6
9265
9266# Is the header present?
9267echo "$as_me:$LINENO: checking $ac_header presence" >&5
9268echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9269cat >conftest.$ac_ext <<_ACEOF
9270/* confdefs.h. */
9271_ACEOF
9272cat confdefs.h >>conftest.$ac_ext
9273cat >>conftest.$ac_ext <<_ACEOF
9274/* end confdefs.h. */
9275#include <$ac_header>
9276_ACEOF
9277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9279 ac_status=$?
9280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } >/dev/null; then
9285 if test -s conftest.err; then
9286 ac_cpp_err=$ac_c_preproc_warn_flag
9287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9288 else
9289 ac_cpp_err=
9290 fi
9a156167 9291else
bec39cab 9292 ac_cpp_err=yes
9a156167 9293fi
bec39cab
AC
9294if test -z "$ac_cpp_err"; then
9295 ac_header_preproc=yes
9296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9299
bec39cab 9300 ac_header_preproc=no
9a156167 9301fi
bec39cab
AC
9302rm -f conftest.err conftest.$ac_ext
9303echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9304echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9305
bec39cab
AC
9306# So? What about this header?
9307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9308 yes:no: )
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9310echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9312echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9313 ac_header_preproc=yes
9314 ;;
9315 no:yes:* )
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9317echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9319echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9321echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9323echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9325echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9327echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9328 (
9329 cat <<\_ASBOX
9330## ------------------------------------------ ##
9331## Report this to the AC_PACKAGE_NAME lists. ##
9332## ------------------------------------------ ##
9333_ASBOX
9334 ) |
9335 sed "s/^/$as_me: WARNING: /" >&2
9336 ;;
9337esac
9338echo "$as_me:$LINENO: checking for $ac_header" >&5
9339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9340if eval "test \"\${$as_ac_Header+set}\" = set"; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9342else
bec39cab 9343 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9344fi
bec39cab
AC
9345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9347
bec39cab
AC
9348fi
9349if test `eval echo '${'$as_ac_Header'}'` = yes; then
9350 cat >>confdefs.h <<_ACEOF
9351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9352_ACEOF
9a156167 9353
bec39cab 9354fi
9a156167 9355
bec39cab 9356done
9a156167 9357
9a156167 9358
9a156167 9359
bec39cab
AC
9360
9361for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9362do
9363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364if eval "test \"\${$as_ac_Header+set}\" = set"; then
9365 echo "$as_me:$LINENO: checking for $ac_header" >&5
9366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9367if eval "test \"\${$as_ac_Header+set}\" = set"; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369fi
9370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9372else
9373 # Is the header compilable?
9374echo "$as_me:$LINENO: checking $ac_header usability" >&5
9375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9376cat >conftest.$ac_ext <<_ACEOF
9377/* confdefs.h. */
9378_ACEOF
9379cat confdefs.h >>conftest.$ac_ext
9380cat >>conftest.$ac_ext <<_ACEOF
9381/* end confdefs.h. */
9382$ac_includes_default
9383#include <$ac_header>
9384_ACEOF
9385rm -f conftest.$ac_objext
9386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387 (eval $ac_compile) 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
121ce6e5 9394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_header_compiler=yes
9407else
9408 echo "$as_me: failed program was:" >&5
9409sed 's/^/| /' conftest.$ac_ext >&5
9410
9411ac_header_compiler=no
9412fi
9413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9415echo "${ECHO_T}$ac_header_compiler" >&6
9416
9417# Is the header present?
9418echo "$as_me:$LINENO: checking $ac_header presence" >&5
9419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9420cat >conftest.$ac_ext <<_ACEOF
9421/* confdefs.h. */
9422_ACEOF
9423cat confdefs.h >>conftest.$ac_ext
9424cat >>conftest.$ac_ext <<_ACEOF
9425/* end confdefs.h. */
9426#include <$ac_header>
9427_ACEOF
9428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } >/dev/null; then
9436 if test -s conftest.err; then
9437 ac_cpp_err=$ac_c_preproc_warn_flag
9438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9439 else
9440 ac_cpp_err=
9441 fi
9a156167 9442else
bec39cab 9443 ac_cpp_err=yes
9a156167 9444fi
bec39cab
AC
9445if test -z "$ac_cpp_err"; then
9446 ac_header_preproc=yes
9447else
9448 echo "$as_me: failed program was:" >&5
9449sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9450
bec39cab 9451 ac_header_preproc=no
9a156167 9452fi
bec39cab
AC
9453rm -f conftest.err conftest.$ac_ext
9454echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9455echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9456
bec39cab
AC
9457# So? What about this header?
9458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9459 yes:no: )
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9464 ac_header_preproc=yes
9465 ;;
9466 no:yes:* )
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9470echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9474echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9479 (
9480 cat <<\_ASBOX
9481## ------------------------------------------ ##
9482## Report this to the AC_PACKAGE_NAME lists. ##
9483## ------------------------------------------ ##
9484_ASBOX
9485 ) |
9486 sed "s/^/$as_me: WARNING: /" >&2
9487 ;;
9488esac
9489echo "$as_me:$LINENO: checking for $ac_header" >&5
9490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9491if eval "test \"\${$as_ac_Header+set}\" = set"; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9493else
bec39cab 9494 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9495fi
bec39cab
AC
9496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9498
9499fi
bec39cab
AC
9500if test `eval echo '${'$as_ac_Header'}'` = yes; then
9501 cat >>confdefs.h <<_ACEOF
9502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9503_ACEOF
9a156167 9504
bec39cab
AC
9505fi
9506
9507done
9a156167 9508
c890192f 9509
bec39cab
AC
9510for ac_header in stddef.h
9511do
9512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513if eval "test \"\${$as_ac_Header+set}\" = set"; then
9514 echo "$as_me:$LINENO: checking for $ac_header" >&5
9515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9516if eval "test \"\${$as_ac_Header+set}\" = set"; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518fi
9519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9521else
9522 # Is the header compilable?
9523echo "$as_me:$LINENO: checking $ac_header usability" >&5
9524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9525cat >conftest.$ac_ext <<_ACEOF
9526/* confdefs.h. */
9527_ACEOF
9528cat confdefs.h >>conftest.$ac_ext
9529cat >>conftest.$ac_ext <<_ACEOF
9530/* end confdefs.h. */
9531$ac_includes_default
9532#include <$ac_header>
9533_ACEOF
9534rm -f conftest.$ac_objext
9535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536 (eval $ac_compile) 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
121ce6e5 9543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest.$ac_objext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_header_compiler=yes
9556else
9557 echo "$as_me: failed program was:" >&5
9558sed 's/^/| /' conftest.$ac_ext >&5
9559
9560ac_header_compiler=no
9561fi
9562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9563echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564echo "${ECHO_T}$ac_header_compiler" >&6
9565
9566# Is the header present?
9567echo "$as_me:$LINENO: checking $ac_header presence" >&5
9568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9569cat >conftest.$ac_ext <<_ACEOF
9570/* confdefs.h. */
9571_ACEOF
9572cat confdefs.h >>conftest.$ac_ext
9573cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h. */
9575#include <$ac_header>
9576_ACEOF
9577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } >/dev/null; then
9585 if test -s conftest.err; then
9586 ac_cpp_err=$ac_c_preproc_warn_flag
9587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9588 else
9589 ac_cpp_err=
9590 fi
c890192f 9591else
bec39cab
AC
9592 ac_cpp_err=yes
9593fi
9594if test -z "$ac_cpp_err"; then
9595 ac_header_preproc=yes
c890192f 9596else
bec39cab
AC
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_header_preproc=no
c890192f 9601fi
bec39cab
AC
9602rm -f conftest.err conftest.$ac_ext
9603echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604echo "${ECHO_T}$ac_header_preproc" >&6
9605
9606# So? What about this header?
9607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9608 yes:no: )
9609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9613 ac_header_preproc=yes
9614 ;;
9615 no:yes:* )
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9628 (
9629 cat <<\_ASBOX
9630## ------------------------------------------ ##
9631## Report this to the AC_PACKAGE_NAME lists. ##
9632## ------------------------------------------ ##
9633_ASBOX
9634 ) |
9635 sed "s/^/$as_me: WARNING: /" >&2
9636 ;;
9637esac
9638echo "$as_me:$LINENO: checking for $ac_header" >&5
9639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9640if eval "test \"\${$as_ac_Header+set}\" = set"; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9642else
bec39cab 9643 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9644fi
bec39cab
AC
9645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9647
c890192f 9648fi
bec39cab
AC
9649if test `eval echo '${'$as_ac_Header'}'` = yes; then
9650 cat >>confdefs.h <<_ACEOF
9651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9652_ACEOF
c890192f 9653
c890192f
MK
9654fi
9655
bec39cab 9656done
9a156167 9657
bec39cab
AC
9658
9659for ac_header in stdlib.h
9660do
9661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9662if eval "test \"\${$as_ac_Header+set}\" = set"; then
9663 echo "$as_me:$LINENO: checking for $ac_header" >&5
9664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9665if eval "test \"\${$as_ac_Header+set}\" = set"; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667fi
9668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9670else
9671 # Is the header compilable?
9672echo "$as_me:$LINENO: checking $ac_header usability" >&5
9673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9674cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h. */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */
9680$ac_includes_default
9681#include <$ac_header>
9682_ACEOF
9683rm -f conftest.$ac_objext
9684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
121ce6e5 9692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest.$ac_objext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_header_compiler=yes
9705else
9706 echo "$as_me: failed program was:" >&5
9707sed 's/^/| /' conftest.$ac_ext >&5
9708
9709ac_header_compiler=no
9710fi
9711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9713echo "${ECHO_T}$ac_header_compiler" >&6
9714
9715# Is the header present?
9716echo "$as_me:$LINENO: checking $ac_header presence" >&5
9717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9718cat >conftest.$ac_ext <<_ACEOF
9719/* confdefs.h. */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h. */
9724#include <$ac_header>
9725_ACEOF
9726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } >/dev/null; then
9734 if test -s conftest.err; then
9735 ac_cpp_err=$ac_c_preproc_warn_flag
9736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9737 else
9738 ac_cpp_err=
9739 fi
9a156167 9740else
bec39cab
AC
9741 ac_cpp_err=yes
9742fi
9743if test -z "$ac_cpp_err"; then
9744 ac_header_preproc=yes
9a156167 9745else
bec39cab
AC
9746 echo "$as_me: failed program was:" >&5
9747sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 ac_header_preproc=no
9a156167 9750fi
bec39cab
AC
9751rm -f conftest.err conftest.$ac_ext
9752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9753echo "${ECHO_T}$ac_header_preproc" >&6
9754
9755# So? What about this header?
9756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9757 yes:no: )
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9762 ac_header_preproc=yes
9763 ;;
9764 no:yes:* )
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9777 (
9778 cat <<\_ASBOX
9779## ------------------------------------------ ##
9780## Report this to the AC_PACKAGE_NAME lists. ##
9781## ------------------------------------------ ##
9782_ASBOX
9783 ) |
9784 sed "s/^/$as_me: WARNING: /" >&2
9785 ;;
9786esac
9787echo "$as_me:$LINENO: checking for $ac_header" >&5
9788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9789if eval "test \"\${$as_ac_Header+set}\" = set"; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9791else
bec39cab 9792 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9793fi
bec39cab
AC
9794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9796
9a156167 9797fi
bec39cab
AC
9798if test `eval echo '${'$as_ac_Header'}'` = yes; then
9799 cat >>confdefs.h <<_ACEOF
9800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9801_ACEOF
9a156167 9802
9a156167
MK
9803fi
9804
bec39cab
AC
9805done
9806
06825bd1 9807
bec39cab
AC
9808for ac_header in stdint.h
9809do
9810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9811if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812 echo "$as_me:$LINENO: checking for $ac_header" >&5
9813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9814if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816fi
9817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9819else
9820 # Is the header compilable?
9821echo "$as_me:$LINENO: checking $ac_header usability" >&5
9822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9823cat >conftest.$ac_ext <<_ACEOF
9824/* confdefs.h. */
9825_ACEOF
9826cat confdefs.h >>conftest.$ac_ext
9827cat >>conftest.$ac_ext <<_ACEOF
9828/* end confdefs.h. */
9829$ac_includes_default
9830#include <$ac_header>
9831_ACEOF
9832rm -f conftest.$ac_objext
9833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834 (eval $ac_compile) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
121ce6e5 9841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_header_compiler=yes
9854else
9855 echo "$as_me: failed program was:" >&5
9856sed 's/^/| /' conftest.$ac_ext >&5
9857
9858ac_header_compiler=no
9859fi
9860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862echo "${ECHO_T}$ac_header_compiler" >&6
9863
9864# Is the header present?
9865echo "$as_me:$LINENO: checking $ac_header presence" >&5
9866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9867cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h. */
9873#include <$ac_header>
9874_ACEOF
9875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev/null; then
9883 if test -s conftest.err; then
9884 ac_cpp_err=$ac_c_preproc_warn_flag
9885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9886 else
9887 ac_cpp_err=
9888 fi
06825bd1 9889else
bec39cab
AC
9890 ac_cpp_err=yes
9891fi
9892if test -z "$ac_cpp_err"; then
9893 ac_header_preproc=yes
06825bd1 9894else
bec39cab
AC
9895 echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_header_preproc=no
06825bd1 9899fi
bec39cab
AC
9900rm -f conftest.err conftest.$ac_ext
9901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9902echo "${ECHO_T}$ac_header_preproc" >&6
9903
9904# So? What about this header?
9905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906 yes:no: )
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9911 ac_header_preproc=yes
9912 ;;
9913 no:yes:* )
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9926 (
9927 cat <<\_ASBOX
9928## ------------------------------------------ ##
9929## Report this to the AC_PACKAGE_NAME lists. ##
9930## ------------------------------------------ ##
9931_ASBOX
9932 ) |
9933 sed "s/^/$as_me: WARNING: /" >&2
9934 ;;
9935esac
9936echo "$as_me:$LINENO: checking for $ac_header" >&5
9937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9938if eval "test \"\${$as_ac_Header+set}\" = set"; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 9940else
bec39cab 9941 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 9942fi
bec39cab
AC
9943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9945
06825bd1 9946fi
bec39cab
AC
9947if test `eval echo '${'$as_ac_Header'}'` = yes; then
9948 cat >>confdefs.h <<_ACEOF
9949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9950_ACEOF
06825bd1 9951
06825bd1 9952fi
4f0be353 9953
bec39cab 9954done
4f0be353 9955
06825bd1 9956
06825bd1 9957
bec39cab
AC
9958
9959for ac_header in string.h memory.h strings.h
9960do
9961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9962if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963 echo "$as_me:$LINENO: checking for $ac_header" >&5
9964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9965if eval "test \"\${$as_ac_Header+set}\" = set"; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967fi
9968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9970else
9971 # Is the header compilable?
9972echo "$as_me:$LINENO: checking $ac_header usability" >&5
9973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9974cat >conftest.$ac_ext <<_ACEOF
9975/* confdefs.h. */
9976_ACEOF
9977cat confdefs.h >>conftest.$ac_ext
9978cat >>conftest.$ac_ext <<_ACEOF
9979/* end confdefs.h. */
9980$ac_includes_default
9981#include <$ac_header>
9982_ACEOF
9983rm -f conftest.$ac_objext
9984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9985 (eval $ac_compile) 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
121ce6e5 9992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 (eval $ac_try) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest.$ac_objext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_header_compiler=yes
10005else
10006 echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
10009ac_header_compiler=no
10010fi
10011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10013echo "${ECHO_T}$ac_header_compiler" >&6
10014
10015# Is the header present?
10016echo "$as_me:$LINENO: checking $ac_header presence" >&5
10017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10018cat >conftest.$ac_ext <<_ACEOF
10019/* confdefs.h. */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
10023/* end confdefs.h. */
10024#include <$ac_header>
10025_ACEOF
10026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } >/dev/null; then
10034 if test -s conftest.err; then
10035 ac_cpp_err=$ac_c_preproc_warn_flag
10036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10037 else
10038 ac_cpp_err=
10039 fi
06825bd1 10040else
bec39cab
AC
10041 ac_cpp_err=yes
10042fi
10043if test -z "$ac_cpp_err"; then
10044 ac_header_preproc=yes
06825bd1 10045else
bec39cab
AC
10046 echo "$as_me: failed program was:" >&5
10047sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 ac_header_preproc=no
06825bd1 10050fi
bec39cab
AC
10051rm -f conftest.err conftest.$ac_ext
10052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10053echo "${ECHO_T}$ac_header_preproc" >&6
10054
10055# So? What about this header?
10056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10057 yes:no: )
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10059echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10061echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10062 ac_header_preproc=yes
10063 ;;
10064 no:yes:* )
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10066echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10068echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10070echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10072echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10076echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10077 (
10078 cat <<\_ASBOX
10079## ------------------------------------------ ##
10080## Report this to the AC_PACKAGE_NAME lists. ##
10081## ------------------------------------------ ##
10082_ASBOX
10083 ) |
10084 sed "s/^/$as_me: WARNING: /" >&2
10085 ;;
10086esac
10087echo "$as_me:$LINENO: checking for $ac_header" >&5
10088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10089if eval "test \"\${$as_ac_Header+set}\" = set"; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091else
10092 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10093fi
bec39cab
AC
10094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10096
06825bd1 10097fi
bec39cab
AC
10098if test `eval echo '${'$as_ac_Header'}'` = yes; then
10099 cat >>confdefs.h <<_ACEOF
10100#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10101_ACEOF
06825bd1 10102
06825bd1
MK
10103fi
10104
bec39cab 10105done
5ee754fc 10106
bec39cab
AC
10107
10108for ac_header in sys/fault.h
5ee754fc 10109do
bec39cab
AC
10110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10111if eval "test \"\${$as_ac_Header+set}\" = set"; then
10112 echo "$as_me:$LINENO: checking for $ac_header" >&5
10113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10114if eval "test \"\${$as_ac_Header+set}\" = set"; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10116fi
10117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10119else
10120 # Is the header compilable?
10121echo "$as_me:$LINENO: checking $ac_header usability" >&5
10122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10123cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */
10129$ac_includes_default
10130#include <$ac_header>
10131_ACEOF
10132rm -f conftest.$ac_objext
10133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10134 (eval $ac_compile) 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
121ce6e5 10141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest.$ac_objext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_header_compiler=yes
10154else
10155 echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
10157
10158ac_header_compiler=no
10159fi
10160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10161echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10162echo "${ECHO_T}$ac_header_compiler" >&6
10163
10164# Is the header present?
10165echo "$as_me:$LINENO: checking $ac_header presence" >&5
10166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10167cat >conftest.$ac_ext <<_ACEOF
10168/* confdefs.h. */
10169_ACEOF
10170cat confdefs.h >>conftest.$ac_ext
10171cat >>conftest.$ac_ext <<_ACEOF
10172/* end confdefs.h. */
10173#include <$ac_header>
10174_ACEOF
10175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } >/dev/null; then
10183 if test -s conftest.err; then
10184 ac_cpp_err=$ac_c_preproc_warn_flag
10185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10186 else
10187 ac_cpp_err=
10188 fi
5ee754fc 10189else
bec39cab 10190 ac_cpp_err=yes
5ee754fc 10191fi
bec39cab
AC
10192if test -z "$ac_cpp_err"; then
10193 ac_header_preproc=yes
10194else
10195 echo "$as_me: failed program was:" >&5
10196sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10197
bec39cab 10198 ac_header_preproc=no
5ee754fc 10199fi
bec39cab
AC
10200rm -f conftest.err conftest.$ac_ext
10201echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10202echo "${ECHO_T}$ac_header_preproc" >&6
10203
10204# So? What about this header?
10205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10206 yes:no: )
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10208echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10210echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10211 ac_header_preproc=yes
10212 ;;
10213 no:yes:* )
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10217echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10219echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10221echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10225echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10226 (
10227 cat <<\_ASBOX
10228## ------------------------------------------ ##
10229## Report this to the AC_PACKAGE_NAME lists. ##
10230## ------------------------------------------ ##
10231_ASBOX
10232 ) |
10233 sed "s/^/$as_me: WARNING: /" >&2
10234 ;;
10235esac
10236echo "$as_me:$LINENO: checking for $ac_header" >&5
10237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10238if eval "test \"\${$as_ac_Header+set}\" = set"; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10240else
bec39cab 10241 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10242fi
bec39cab
AC
10243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10245
5ee754fc 10246fi
bec39cab
AC
10247if test `eval echo '${'$as_ac_Header'}'` = yes; then
10248 cat >>confdefs.h <<_ACEOF
10249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10250_ACEOF
c906108c 10251
5ee754fc 10252fi
bec39cab
AC
10253
10254done
10255
10256
10257for ac_header in sys/file.h
10258do
10259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10260if eval "test \"\${$as_ac_Header+set}\" = set"; then
10261 echo "$as_me:$LINENO: checking for $ac_header" >&5
10262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10263if eval "test \"\${$as_ac_Header+set}\" = set"; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265fi
10266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10268else
10269 # Is the header compilable?
10270echo "$as_me:$LINENO: checking $ac_header usability" >&5
10271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10272cat >conftest.$ac_ext <<_ACEOF
10273/* confdefs.h. */
10274_ACEOF
10275cat confdefs.h >>conftest.$ac_ext
10276cat >>conftest.$ac_ext <<_ACEOF
10277/* end confdefs.h. */
10278$ac_includes_default
10279#include <$ac_header>
10280_ACEOF
10281rm -f conftest.$ac_objext
10282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283 (eval $ac_compile) 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
121ce6e5 10290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest.$ac_objext'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_header_compiler=yes
10303else
10304 echo "$as_me: failed program was:" >&5
10305sed 's/^/| /' conftest.$ac_ext >&5
10306
10307ac_header_compiler=no
10308fi
10309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10311echo "${ECHO_T}$ac_header_compiler" >&6
10312
10313# Is the header present?
10314echo "$as_me:$LINENO: checking $ac_header presence" >&5
10315echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10316cat >conftest.$ac_ext <<_ACEOF
10317/* confdefs.h. */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h. */
10322#include <$ac_header>
10323_ACEOF
10324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } >/dev/null; then
10332 if test -s conftest.err; then
10333 ac_cpp_err=$ac_c_preproc_warn_flag
10334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10335 else
10336 ac_cpp_err=
10337 fi
5ee754fc 10338else
bec39cab 10339 ac_cpp_err=yes
5ee754fc 10340fi
bec39cab
AC
10341if test -z "$ac_cpp_err"; then
10342 ac_header_preproc=yes
10343else
10344 echo "$as_me: failed program was:" >&5
10345sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10346
bec39cab 10347 ac_header_preproc=no
5ee754fc 10348fi
bec39cab
AC
10349rm -f conftest.err conftest.$ac_ext
10350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10351echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10352
bec39cab
AC
10353# So? What about this header?
10354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10355 yes:no: )
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10360 ac_header_preproc=yes
10361 ;;
10362 no:yes:* )
10363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10375 (
10376 cat <<\_ASBOX
10377## ------------------------------------------ ##
10378## Report this to the AC_PACKAGE_NAME lists. ##
10379## ------------------------------------------ ##
10380_ASBOX
10381 ) |
10382 sed "s/^/$as_me: WARNING: /" >&2
10383 ;;
10384esac
10385echo "$as_me:$LINENO: checking for $ac_header" >&5
10386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10387if eval "test \"\${$as_ac_Header+set}\" = set"; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10389else
bec39cab
AC
10390 eval "$as_ac_Header=\$ac_header_preproc"
10391fi
10392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10394
bec39cab
AC
10395fi
10396if test `eval echo '${'$as_ac_Header'}'` = yes; then
10397 cat >>confdefs.h <<_ACEOF
10398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10399_ACEOF
5ee754fc 10400
bec39cab 10401fi
5ee754fc 10402
bec39cab 10403done
5ee754fc 10404
5ee754fc 10405
bec39cab
AC
10406for ac_header in sys/filio.h
10407do
10408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10409if eval "test \"\${$as_ac_Header+set}\" = set"; then
10410 echo "$as_me:$LINENO: checking for $ac_header" >&5
10411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10412if eval "test \"\${$as_ac_Header+set}\" = set"; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414fi
10415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10417else
10418 # Is the header compilable?
10419echo "$as_me:$LINENO: checking $ac_header usability" >&5
10420echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10421cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h. */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h. */
10427$ac_includes_default
10428#include <$ac_header>
10429_ACEOF
10430rm -f conftest.$ac_objext
10431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432 (eval $ac_compile) 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
121ce6e5 10439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; } &&
10445 { ac_try='test -s conftest.$ac_objext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_header_compiler=yes
10452else
10453 echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
10455
10456ac_header_compiler=no
10457fi
10458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10459echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10460echo "${ECHO_T}$ac_header_compiler" >&6
10461
10462# Is the header present?
10463echo "$as_me:$LINENO: checking $ac_header presence" >&5
10464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10465cat >conftest.$ac_ext <<_ACEOF
10466/* confdefs.h. */
10467_ACEOF
10468cat confdefs.h >>conftest.$ac_ext
10469cat >>conftest.$ac_ext <<_ACEOF
10470/* end confdefs.h. */
10471#include <$ac_header>
10472_ACEOF
10473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } >/dev/null; then
10481 if test -s conftest.err; then
10482 ac_cpp_err=$ac_c_preproc_warn_flag
10483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10484 else
10485 ac_cpp_err=
10486 fi
5ee754fc 10487else
bec39cab 10488 ac_cpp_err=yes
5ee754fc 10489fi
bec39cab
AC
10490if test -z "$ac_cpp_err"; then
10491 ac_header_preproc=yes
10492else
10493 echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10495
bec39cab 10496 ac_header_preproc=no
5ee754fc 10497fi
bec39cab
AC
10498rm -f conftest.err conftest.$ac_ext
10499echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10500echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10501
bec39cab
AC
10502# So? What about this header?
10503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10504 yes:no: )
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10509 ac_header_preproc=yes
10510 ;;
10511 no:yes:* )
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10515echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10519echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10524 (
10525 cat <<\_ASBOX
10526## ------------------------------------------ ##
10527## Report this to the AC_PACKAGE_NAME lists. ##
10528## ------------------------------------------ ##
10529_ASBOX
10530 ) |
10531 sed "s/^/$as_me: WARNING: /" >&2
10532 ;;
10533esac
10534echo "$as_me:$LINENO: checking for $ac_header" >&5
10535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10536if eval "test \"\${$as_ac_Header+set}\" = set"; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10538else
bec39cab 10539 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10540fi
bec39cab
AC
10541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10543
5ee754fc 10544fi
bec39cab
AC
10545if test `eval echo '${'$as_ac_Header'}'` = yes; then
10546 cat >>confdefs.h <<_ACEOF
10547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10548_ACEOF
5ee754fc
MK
10549
10550fi
10551
bec39cab
AC
10552done
10553
10554
10555for ac_header in sys/ioctl.h
10556do
10557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10558if eval "test \"\${$as_ac_Header+set}\" = set"; then
10559 echo "$as_me:$LINENO: checking for $ac_header" >&5
10560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10561if eval "test \"\${$as_ac_Header+set}\" = set"; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563fi
10564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10566else
10567 # Is the header compilable?
10568echo "$as_me:$LINENO: checking $ac_header usability" >&5
10569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10570cat >conftest.$ac_ext <<_ACEOF
10571/* confdefs.h. */
10572_ACEOF
10573cat confdefs.h >>conftest.$ac_ext
10574cat >>conftest.$ac_ext <<_ACEOF
10575/* end confdefs.h. */
10576$ac_includes_default
10577#include <$ac_header>
10578_ACEOF
10579rm -f conftest.$ac_objext
10580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581 (eval $ac_compile) 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
121ce6e5 10588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; } &&
10594 { ac_try='test -s conftest.$ac_objext'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 ac_header_compiler=yes
10601else
10602 echo "$as_me: failed program was:" >&5
10603sed 's/^/| /' conftest.$ac_ext >&5
10604
10605ac_header_compiler=no
10606fi
10607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10609echo "${ECHO_T}$ac_header_compiler" >&6
10610
10611# Is the header present?
10612echo "$as_me:$LINENO: checking $ac_header presence" >&5
10613echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10614cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h. */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h. */
10620#include <$ac_header>
10621_ACEOF
10622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } >/dev/null; then
10630 if test -s conftest.err; then
10631 ac_cpp_err=$ac_c_preproc_warn_flag
10632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10633 else
10634 ac_cpp_err=
10635 fi
5ee754fc 10636else
bec39cab 10637 ac_cpp_err=yes
5ee754fc 10638fi
bec39cab
AC
10639if test -z "$ac_cpp_err"; then
10640 ac_header_preproc=yes
10641else
10642 echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10644
bec39cab 10645 ac_header_preproc=no
5ee754fc 10646fi
bec39cab
AC
10647rm -f conftest.err conftest.$ac_ext
10648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10649echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10650
bec39cab
AC
10651# So? What about this header?
10652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 yes:no: )
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10658 ac_header_preproc=yes
10659 ;;
10660 no:yes:* )
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673 (
10674 cat <<\_ASBOX
10675## ------------------------------------------ ##
10676## Report this to the AC_PACKAGE_NAME lists. ##
10677## ------------------------------------------ ##
10678_ASBOX
10679 ) |
10680 sed "s/^/$as_me: WARNING: /" >&2
10681 ;;
10682esac
10683echo "$as_me:$LINENO: checking for $ac_header" >&5
10684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10685if eval "test \"\${$as_ac_Header+set}\" = set"; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10687else
bec39cab 10688 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10689fi
bec39cab
AC
10690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10692
10693fi
bec39cab
AC
10694if test `eval echo '${'$as_ac_Header'}'` = yes; then
10695 cat >>confdefs.h <<_ACEOF
10696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10697_ACEOF
10698
5ee754fc
MK
10699fi
10700
bec39cab 10701done
5ee754fc 10702
5ee754fc 10703
bec39cab 10704for ac_header in sys/param.h
5ee754fc 10705do
bec39cab
AC
10706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10707if eval "test \"\${$as_ac_Header+set}\" = set"; then
10708 echo "$as_me:$LINENO: checking for $ac_header" >&5
10709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10710if eval "test \"\${$as_ac_Header+set}\" = set"; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712fi
10713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10715else
10716 # Is the header compilable?
10717echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10719cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
10725$ac_includes_default
10726#include <$ac_header>
10727_ACEOF
10728rm -f conftest.$ac_objext
10729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10730 (eval $ac_compile) 2>conftest.er1
10731 ac_status=$?
10732 grep -v '^ *+' conftest.er1 >conftest.err
10733 rm -f conftest.er1
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } &&
121ce6e5 10737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 ac_header_compiler=yes
10750else
10751 echo "$as_me: failed program was:" >&5
10752sed 's/^/| /' conftest.$ac_ext >&5
10753
10754ac_header_compiler=no
10755fi
10756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10758echo "${ECHO_T}$ac_header_compiler" >&6
10759
10760# Is the header present?
10761echo "$as_me:$LINENO: checking $ac_header presence" >&5
10762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10763cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h. */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
10768/* end confdefs.h. */
10769#include <$ac_header>
10770_ACEOF
10771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } >/dev/null; then
10779 if test -s conftest.err; then
10780 ac_cpp_err=$ac_c_preproc_warn_flag
10781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10782 else
10783 ac_cpp_err=
10784 fi
5ee754fc 10785else
bec39cab 10786 ac_cpp_err=yes
5ee754fc 10787fi
bec39cab
AC
10788if test -z "$ac_cpp_err"; then
10789 ac_header_preproc=yes
10790else
10791 echo "$as_me: failed program was:" >&5
10792sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10793
bec39cab 10794 ac_header_preproc=no
5ee754fc 10795fi
bec39cab
AC
10796rm -f conftest.err conftest.$ac_ext
10797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798echo "${ECHO_T}$ac_header_preproc" >&6
10799
10800# So? What about this header?
10801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10802 yes:no: )
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10807 ac_header_preproc=yes
10808 ;;
10809 no:yes:* )
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10822 (
10823 cat <<\_ASBOX
10824## ------------------------------------------ ##
10825## Report this to the AC_PACKAGE_NAME lists. ##
10826## ------------------------------------------ ##
10827_ASBOX
10828 ) |
10829 sed "s/^/$as_me: WARNING: /" >&2
10830 ;;
10831esac
10832echo "$as_me:$LINENO: checking for $ac_header" >&5
10833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10834if eval "test \"\${$as_ac_Header+set}\" = set"; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10836else
bec39cab 10837 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10838fi
bec39cab
AC
10839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10841
5ee754fc 10842fi
bec39cab
AC
10843if test `eval echo '${'$as_ac_Header'}'` = yes; then
10844 cat >>confdefs.h <<_ACEOF
10845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10846_ACEOF
10847
5ee754fc 10848fi
bec39cab 10849
5ee754fc
MK
10850done
10851
bec39cab
AC
10852
10853for ac_header in sys/proc.h
5ee754fc 10854do
bec39cab 10855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 10856echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
10857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10858if eval "test \"\${$as_ac_Header+set}\" = set"; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10860else
7cb9022a 10861 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10862/* confdefs.h. */
10863_ACEOF
10864cat confdefs.h >>conftest.$ac_ext
10865cat >>conftest.$ac_ext <<_ACEOF
10866/* end confdefs.h. */
7cb9022a
MK
10867#if HAVE_SYS_PARAM_H
10868# include <sys/param.h>
10869#endif
10870
10871
bec39cab
AC
10872#include <$ac_header>
10873_ACEOF
10874rm -f conftest.$ac_objext
10875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
121ce6e5 10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
7cb9022a 10895 eval "$as_ac_Header=yes"
bec39cab
AC
10896else
10897 echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
10899
7cb9022a 10900eval "$as_ac_Header=no"
bec39cab
AC
10901fi
10902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10903fi
bec39cab
AC
10904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10906if test `eval echo '${'$as_ac_Header'}'` = yes; then
10907 cat >>confdefs.h <<_ACEOF
10908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10909_ACEOF
10910
5ee754fc 10911fi
bec39cab 10912
5ee754fc
MK
10913done
10914
bec39cab
AC
10915
10916for ac_header in sys/procfs.h
5ee754fc 10917do
bec39cab
AC
10918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10919if eval "test \"\${$as_ac_Header+set}\" = set"; then
10920 echo "$as_me:$LINENO: checking for $ac_header" >&5
10921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10922if eval "test \"\${$as_ac_Header+set}\" = set"; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924fi
10925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10927else
10928 # Is the header compilable?
10929echo "$as_me:$LINENO: checking $ac_header usability" >&5
10930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10931cat >conftest.$ac_ext <<_ACEOF
10932/* confdefs.h. */
10933_ACEOF
10934cat confdefs.h >>conftest.$ac_ext
10935cat >>conftest.$ac_ext <<_ACEOF
10936/* end confdefs.h. */
10937$ac_includes_default
10938#include <$ac_header>
10939_ACEOF
10940rm -f conftest.$ac_objext
10941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
121ce6e5 10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_header_compiler=yes
10962else
10963 echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
10966ac_header_compiler=no
10967fi
10968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10970echo "${ECHO_T}$ac_header_compiler" >&6
10971
10972# Is the header present?
10973echo "$as_me:$LINENO: checking $ac_header presence" >&5
10974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10975cat >conftest.$ac_ext <<_ACEOF
10976/* confdefs.h. */
10977_ACEOF
10978cat confdefs.h >>conftest.$ac_ext
10979cat >>conftest.$ac_ext <<_ACEOF
10980/* end confdefs.h. */
10981#include <$ac_header>
10982_ACEOF
10983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } >/dev/null; then
10991 if test -s conftest.err; then
10992 ac_cpp_err=$ac_c_preproc_warn_flag
10993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10994 else
10995 ac_cpp_err=
10996 fi
10997else
10998 ac_cpp_err=yes
5ee754fc 10999fi
bec39cab
AC
11000if test -z "$ac_cpp_err"; then
11001 ac_header_preproc=yes
5ee754fc 11002else
bec39cab
AC
11003 echo "$as_me: failed program was:" >&5
11004sed 's/^/| /' conftest.$ac_ext >&5
11005
11006 ac_header_preproc=no
5ee754fc 11007fi
bec39cab
AC
11008rm -f conftest.err conftest.$ac_ext
11009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11010echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11011
bec39cab
AC
11012# So? What about this header?
11013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11014 yes:no: )
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11019 ac_header_preproc=yes
11020 ;;
11021 no:yes:* )
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11034 (
11035 cat <<\_ASBOX
11036## ------------------------------------------ ##
11037## Report this to the AC_PACKAGE_NAME lists. ##
11038## ------------------------------------------ ##
11039_ASBOX
11040 ) |
11041 sed "s/^/$as_me: WARNING: /" >&2
11042 ;;
11043esac
11044echo "$as_me:$LINENO: checking for $ac_header" >&5
11045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11046if eval "test \"\${$as_ac_Header+set}\" = set"; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11050fi
bec39cab
AC
11051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11053
5ee754fc 11054fi
bec39cab
AC
11055if test `eval echo '${'$as_ac_Header'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11058_ACEOF
11059
5ee754fc 11060fi
bec39cab 11061
5ee754fc
MK
11062done
11063
bec39cab
AC
11064
11065
11066for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11067do
bec39cab
AC
11068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11069if eval "test \"\${$as_ac_Header+set}\" = set"; then
11070 echo "$as_me:$LINENO: checking for $ac_header" >&5
11071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11072if eval "test \"\${$as_ac_Header+set}\" = set"; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074fi
11075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11077else
11078 # Is the header compilable?
11079echo "$as_me:$LINENO: checking $ac_header usability" >&5
11080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11081cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h. */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h. */
11087$ac_includes_default
11088#include <$ac_header>
11089_ACEOF
11090rm -f conftest.$ac_objext
11091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11092 (eval $ac_compile) 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
121ce6e5 11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_header_compiler=yes
11112else
11113 echo "$as_me: failed program was:" >&5
11114sed 's/^/| /' conftest.$ac_ext >&5
11115
11116ac_header_compiler=no
11117fi
11118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11120echo "${ECHO_T}$ac_header_compiler" >&6
11121
11122# Is the header present?
11123echo "$as_me:$LINENO: checking $ac_header presence" >&5
11124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11125cat >conftest.$ac_ext <<_ACEOF
11126/* confdefs.h. */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h. */
11131#include <$ac_header>
11132_ACEOF
11133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } >/dev/null; then
11141 if test -s conftest.err; then
11142 ac_cpp_err=$ac_c_preproc_warn_flag
11143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11144 else
11145 ac_cpp_err=
11146 fi
11147else
11148 ac_cpp_err=yes
5ee754fc 11149fi
bec39cab
AC
11150if test -z "$ac_cpp_err"; then
11151 ac_header_preproc=yes
5ee754fc 11152else
bec39cab
AC
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_header_preproc=no
5ee754fc 11157fi
bec39cab
AC
11158rm -f conftest.err conftest.$ac_ext
11159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11160echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11161
bec39cab
AC
11162# So? What about this header?
11163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11164 yes:no: )
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11169 ac_header_preproc=yes
11170 ;;
11171 no:yes:* )
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11184 (
11185 cat <<\_ASBOX
11186## ------------------------------------------ ##
11187## Report this to the AC_PACKAGE_NAME lists. ##
11188## ------------------------------------------ ##
11189_ASBOX
11190 ) |
11191 sed "s/^/$as_me: WARNING: /" >&2
11192 ;;
11193esac
11194echo "$as_me:$LINENO: checking for $ac_header" >&5
11195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11196if eval "test \"\${$as_ac_Header+set}\" = set"; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11200fi
bec39cab
AC
11201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11203
5ee754fc 11204fi
bec39cab
AC
11205if test `eval echo '${'$as_ac_Header'}'` = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11208_ACEOF
11209
5ee754fc 11210fi
bec39cab 11211
5ee754fc
MK
11212done
11213
bec39cab
AC
11214
11215
11216for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11217do
bec39cab
AC
11218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11219if eval "test \"\${$as_ac_Header+set}\" = set"; then
11220 echo "$as_me:$LINENO: checking for $ac_header" >&5
11221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11222if eval "test \"\${$as_ac_Header+set}\" = set"; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224fi
11225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11227else
11228 # Is the header compilable?
11229echo "$as_me:$LINENO: checking $ac_header usability" >&5
11230echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11231cat >conftest.$ac_ext <<_ACEOF
11232/* confdefs.h. */
11233_ACEOF
11234cat confdefs.h >>conftest.$ac_ext
11235cat >>conftest.$ac_ext <<_ACEOF
11236/* end confdefs.h. */
11237$ac_includes_default
11238#include <$ac_header>
11239_ACEOF
11240rm -f conftest.$ac_objext
11241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
121ce6e5 11249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_header_compiler=yes
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
11266ac_header_compiler=no
11267fi
11268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11270echo "${ECHO_T}$ac_header_compiler" >&6
11271
11272# Is the header present?
11273echo "$as_me:$LINENO: checking $ac_header presence" >&5
11274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11275cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h. */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h. */
11281#include <$ac_header>
11282_ACEOF
11283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } >/dev/null; then
11291 if test -s conftest.err; then
11292 ac_cpp_err=$ac_c_preproc_warn_flag
11293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11294 else
11295 ac_cpp_err=
11296 fi
11297else
11298 ac_cpp_err=yes
5ee754fc 11299fi
bec39cab
AC
11300if test -z "$ac_cpp_err"; then
11301 ac_header_preproc=yes
5ee754fc 11302else
bec39cab
AC
11303 echo "$as_me: failed program was:" >&5
11304sed 's/^/| /' conftest.$ac_ext >&5
11305
11306 ac_header_preproc=no
5ee754fc 11307fi
bec39cab
AC
11308rm -f conftest.err conftest.$ac_ext
11309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11310echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11311
bec39cab
AC
11312# So? What about this header?
11313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11314 yes:no: )
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11319 ac_header_preproc=yes
11320 ;;
11321 no:yes:* )
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11325echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11329echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11334 (
11335 cat <<\_ASBOX
11336## ------------------------------------------ ##
11337## Report this to the AC_PACKAGE_NAME lists. ##
11338## ------------------------------------------ ##
11339_ASBOX
11340 ) |
11341 sed "s/^/$as_me: WARNING: /" >&2
11342 ;;
11343esac
11344echo "$as_me:$LINENO: checking for $ac_header" >&5
11345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11346if eval "test \"\${$as_ac_Header+set}\" = set"; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348else
11349 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11350fi
bec39cab
AC
11351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11353
5ee754fc 11354fi
bec39cab
AC
11355if test `eval echo '${'$as_ac_Header'}'` = yes; then
11356 cat >>confdefs.h <<_ACEOF
11357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11358_ACEOF
11359
5ee754fc 11360fi
bec39cab 11361
5ee754fc
MK
11362done
11363
bec39cab
AC
11364
11365for ac_header in sys/select.h
5ee754fc 11366do
bec39cab
AC
11367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11368if eval "test \"\${$as_ac_Header+set}\" = set"; then
11369 echo "$as_me:$LINENO: checking for $ac_header" >&5
11370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11371if eval "test \"\${$as_ac_Header+set}\" = set"; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373fi
11374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11376else
11377 # Is the header compilable?
11378echo "$as_me:$LINENO: checking $ac_header usability" >&5
11379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11380cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386$ac_includes_default
11387#include <$ac_header>
11388_ACEOF
11389rm -f conftest.$ac_objext
11390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11391 (eval $ac_compile) 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
121ce6e5 11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_header_compiler=yes
11411else
11412 echo "$as_me: failed program was:" >&5
11413sed 's/^/| /' conftest.$ac_ext >&5
11414
11415ac_header_compiler=no
11416fi
11417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11418echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419echo "${ECHO_T}$ac_header_compiler" >&6
11420
11421# Is the header present?
11422echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11424cat >conftest.$ac_ext <<_ACEOF
11425/* confdefs.h. */
11426_ACEOF
11427cat confdefs.h >>conftest.$ac_ext
11428cat >>conftest.$ac_ext <<_ACEOF
11429/* end confdefs.h. */
11430#include <$ac_header>
11431_ACEOF
11432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } >/dev/null; then
11440 if test -s conftest.err; then
11441 ac_cpp_err=$ac_c_preproc_warn_flag
11442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11443 else
11444 ac_cpp_err=
11445 fi
11446else
11447 ac_cpp_err=yes
5ee754fc 11448fi
bec39cab
AC
11449if test -z "$ac_cpp_err"; then
11450 ac_header_preproc=yes
5ee754fc 11451else
bec39cab
AC
11452 echo "$as_me: failed program was:" >&5
11453sed 's/^/| /' conftest.$ac_ext >&5
11454
11455 ac_header_preproc=no
5ee754fc 11456fi
bec39cab
AC
11457rm -f conftest.err conftest.$ac_ext
11458echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11459echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11460
bec39cab
AC
11461# So? What about this header?
11462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463 yes:no: )
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11467echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11468 ac_header_preproc=yes
11469 ;;
11470 no:yes:* )
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11474echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11476echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11478echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11482echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11483 (
11484 cat <<\_ASBOX
11485## ------------------------------------------ ##
11486## Report this to the AC_PACKAGE_NAME lists. ##
11487## ------------------------------------------ ##
11488_ASBOX
11489 ) |
11490 sed "s/^/$as_me: WARNING: /" >&2
11491 ;;
11492esac
11493echo "$as_me:$LINENO: checking for $ac_header" >&5
11494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11495if eval "test \"\${$as_ac_Header+set}\" = set"; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11499fi
bec39cab
AC
11500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11502
5ee754fc 11503fi
bec39cab
AC
11504if test `eval echo '${'$as_ac_Header'}'` = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11507_ACEOF
11508
5ee754fc 11509fi
bec39cab 11510
5ee754fc
MK
11511done
11512
bec39cab
AC
11513
11514for ac_header in sys/syscall.h
5ee754fc 11515do
bec39cab
AC
11516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11517if eval "test \"\${$as_ac_Header+set}\" = set"; then
11518 echo "$as_me:$LINENO: checking for $ac_header" >&5
11519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11520if eval "test \"\${$as_ac_Header+set}\" = set"; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522fi
11523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11525else
11526 # Is the header compilable?
11527echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11529cat >conftest.$ac_ext <<_ACEOF
11530/* confdefs.h. */
11531_ACEOF
11532cat confdefs.h >>conftest.$ac_ext
11533cat >>conftest.$ac_ext <<_ACEOF
11534/* end confdefs.h. */
11535$ac_includes_default
11536#include <$ac_header>
11537_ACEOF
11538rm -f conftest.$ac_objext
11539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11540 (eval $ac_compile) 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
121ce6e5 11547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
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/types.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); } &&
121ce6e5 11696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; } &&
11702 { ac_try='test -s conftest.$ac_objext'
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11708 ac_header_compiler=yes
11709else
11710 echo "$as_me: failed program was:" >&5
11711sed 's/^/| /' conftest.$ac_ext >&5
11712
11713ac_header_compiler=no
11714fi
11715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11717echo "${ECHO_T}$ac_header_compiler" >&6
11718
11719# Is the header present?
11720echo "$as_me:$LINENO: checking $ac_header presence" >&5
11721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11722cat >conftest.$ac_ext <<_ACEOF
11723/* confdefs.h. */
11724_ACEOF
11725cat confdefs.h >>conftest.$ac_ext
11726cat >>conftest.$ac_ext <<_ACEOF
11727/* end confdefs.h. */
11728#include <$ac_header>
11729_ACEOF
11730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } >/dev/null; then
11738 if test -s conftest.err; then
11739 ac_cpp_err=$ac_c_preproc_warn_flag
11740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11741 else
11742 ac_cpp_err=
11743 fi
11744else
11745 ac_cpp_err=yes
5ee754fc 11746fi
bec39cab
AC
11747if test -z "$ac_cpp_err"; then
11748 ac_header_preproc=yes
5ee754fc 11749else
bec39cab
AC
11750 echo "$as_me: failed program was:" >&5
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
11753 ac_header_preproc=no
5ee754fc 11754fi
bec39cab
AC
11755rm -f conftest.err conftest.$ac_ext
11756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11757echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11758
bec39cab
AC
11759# So? What about this header?
11760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11761 yes:no: )
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11766 ac_header_preproc=yes
11767 ;;
11768 no:yes:* )
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11781 (
11782 cat <<\_ASBOX
11783## ------------------------------------------ ##
11784## Report this to the AC_PACKAGE_NAME lists. ##
11785## ------------------------------------------ ##
11786_ASBOX
11787 ) |
11788 sed "s/^/$as_me: WARNING: /" >&2
11789 ;;
11790esac
11791echo "$as_me:$LINENO: checking for $ac_header" >&5
11792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11793if eval "test \"\${$as_ac_Header+set}\" = set"; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11797fi
bec39cab
AC
11798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11800
5ee754fc 11801fi
bec39cab
AC
11802if test `eval echo '${'$as_ac_Header'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11805_ACEOF
11806
5ee754fc 11807fi
bec39cab 11808
5ee754fc
MK
11809done
11810
bec39cab
AC
11811
11812for ac_header in sys/user.h
5ee754fc 11813do
bec39cab 11814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11815echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11817if eval "test \"\${$as_ac_Header+set}\" = set"; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11819else
7cb9022a 11820 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h. */
7cb9022a
MK
11826#if HAVE_SYS_PARAM_H
11827# include <sys/param.h>
11828#endif
11829
11830
bec39cab
AC
11831#include <$ac_header>
11832_ACEOF
11833rm -f conftest.$ac_objext
11834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835 (eval $ac_compile) 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
121ce6e5 11842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
7cb9022a 11854 eval "$as_ac_Header=yes"
bec39cab
AC
11855else
11856 echo "$as_me: failed program was:" >&5
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
7cb9022a 11859eval "$as_ac_Header=no"
bec39cab
AC
11860fi
11861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11862fi
bec39cab
AC
11863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11865if test `eval echo '${'$as_ac_Header'}'` = yes; then
11866 cat >>confdefs.h <<_ACEOF
11867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11868_ACEOF
11869
5ee754fc 11870fi
bec39cab 11871
5ee754fc
MK
11872done
11873
bec39cab
AC
11874
11875
11876for ac_header in sys/wait.h wait.h
5ee754fc 11877do
bec39cab
AC
11878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11879if eval "test \"\${$as_ac_Header+set}\" = set"; then
11880 echo "$as_me:$LINENO: checking for $ac_header" >&5
11881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11882if eval "test \"\${$as_ac_Header+set}\" = set"; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884fi
11885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11887else
11888 # Is the header compilable?
11889echo "$as_me:$LINENO: checking $ac_header usability" >&5
11890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11891cat >conftest.$ac_ext <<_ACEOF
11892/* confdefs.h. */
11893_ACEOF
11894cat confdefs.h >>conftest.$ac_ext
11895cat >>conftest.$ac_ext <<_ACEOF
11896/* end confdefs.h. */
11897$ac_includes_default
11898#include <$ac_header>
11899_ACEOF
11900rm -f conftest.$ac_objext
11901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
121ce6e5 11909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 ac_header_compiler=yes
11922else
11923 echo "$as_me: failed program was:" >&5
11924sed 's/^/| /' conftest.$ac_ext >&5
11925
11926ac_header_compiler=no
11927fi
11928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11929echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11930echo "${ECHO_T}$ac_header_compiler" >&6
11931
11932# Is the header present?
11933echo "$as_me:$LINENO: checking $ac_header presence" >&5
11934echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11935cat >conftest.$ac_ext <<_ACEOF
11936/* confdefs.h. */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h. */
11941#include <$ac_header>
11942_ACEOF
11943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } >/dev/null; then
11951 if test -s conftest.err; then
11952 ac_cpp_err=$ac_c_preproc_warn_flag
11953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11954 else
11955 ac_cpp_err=
11956 fi
11957else
11958 ac_cpp_err=yes
5ee754fc 11959fi
bec39cab
AC
11960if test -z "$ac_cpp_err"; then
11961 ac_header_preproc=yes
5ee754fc 11962else
bec39cab
AC
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 ac_header_preproc=no
5ee754fc 11967fi
bec39cab
AC
11968rm -f conftest.err conftest.$ac_ext
11969echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11970echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11971
bec39cab
AC
11972# So? What about this header?
11973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11974 yes:no: )
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11979 ac_header_preproc=yes
11980 ;;
11981 no:yes:* )
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11985echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11989echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11994 (
11995 cat <<\_ASBOX
11996## ------------------------------------------ ##
11997## Report this to the AC_PACKAGE_NAME lists. ##
11998## ------------------------------------------ ##
11999_ASBOX
12000 ) |
12001 sed "s/^/$as_me: WARNING: /" >&2
12002 ;;
12003esac
12004echo "$as_me:$LINENO: checking for $ac_header" >&5
12005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12006if eval "test \"\${$as_ac_Header+set}\" = set"; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008else
12009 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12010fi
bec39cab
AC
12011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12013
9608ab8b 12014fi
bec39cab
AC
12015if test `eval echo '${'$as_ac_Header'}'` = yes; then
12016 cat >>confdefs.h <<_ACEOF
12017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12018_ACEOF
12019
9608ab8b 12020fi
bec39cab 12021
9608ab8b 12022done
5ee754fc 12023
bec39cab
AC
12024
12025
12026
12027for ac_header in termios.h termio.h sgtty.h
5ee754fc 12028do
bec39cab
AC
12029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12030if eval "test \"\${$as_ac_Header+set}\" = set"; then
12031 echo "$as_me:$LINENO: checking for $ac_header" >&5
12032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12033if eval "test \"\${$as_ac_Header+set}\" = set"; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035fi
12036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12038else
12039 # Is the header compilable?
12040echo "$as_me:$LINENO: checking $ac_header usability" >&5
12041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12042cat >conftest.$ac_ext <<_ACEOF
12043/* confdefs.h. */
12044_ACEOF
12045cat confdefs.h >>conftest.$ac_ext
12046cat >>conftest.$ac_ext <<_ACEOF
12047/* end confdefs.h. */
12048$ac_includes_default
12049#include <$ac_header>
12050_ACEOF
12051rm -f conftest.$ac_objext
12052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
121ce6e5 12060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_header_compiler=yes
12073else
12074 echo "$as_me: failed program was:" >&5
12075sed 's/^/| /' conftest.$ac_ext >&5
12076
12077ac_header_compiler=no
12078fi
12079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12080echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12081echo "${ECHO_T}$ac_header_compiler" >&6
12082
12083# Is the header present?
12084echo "$as_me:$LINENO: checking $ac_header presence" >&5
12085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12086cat >conftest.$ac_ext <<_ACEOF
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092#include <$ac_header>
12093_ACEOF
12094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } >/dev/null; then
12102 if test -s conftest.err; then
12103 ac_cpp_err=$ac_c_preproc_warn_flag
12104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12105 else
12106 ac_cpp_err=
12107 fi
12108else
12109 ac_cpp_err=yes
9608ab8b 12110fi
bec39cab
AC
12111if test -z "$ac_cpp_err"; then
12112 ac_header_preproc=yes
9608ab8b 12113else
bec39cab
AC
12114 echo "$as_me: failed program was:" >&5
12115sed 's/^/| /' conftest.$ac_ext >&5
12116
12117 ac_header_preproc=no
9608ab8b 12118fi
bec39cab
AC
12119rm -f conftest.err conftest.$ac_ext
12120echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12121echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12122
bec39cab
AC
12123# So? What about this header?
12124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12125 yes:no: )
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12130 ac_header_preproc=yes
12131 ;;
12132 no:yes:* )
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12145 (
12146 cat <<\_ASBOX
12147## ------------------------------------------ ##
12148## Report this to the AC_PACKAGE_NAME lists. ##
12149## ------------------------------------------ ##
12150_ASBOX
12151 ) |
12152 sed "s/^/$as_me: WARNING: /" >&2
12153 ;;
12154esac
12155echo "$as_me:$LINENO: checking for $ac_header" >&5
12156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12157if eval "test \"\${$as_ac_Header+set}\" = set"; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159else
12160 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12161fi
bec39cab
AC
12162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12164
9608ab8b 12165fi
bec39cab
AC
12166if test `eval echo '${'$as_ac_Header'}'` = yes; then
12167 cat >>confdefs.h <<_ACEOF
12168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12169_ACEOF
12170
9608ab8b 12171fi
bec39cab 12172
5ee754fc 12173done
9608ab8b 12174
bec39cab
AC
12175
12176for ac_header in unistd.h
78434e59 12177do
bec39cab
AC
12178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12179if eval "test \"\${$as_ac_Header+set}\" = set"; then
12180 echo "$as_me:$LINENO: checking for $ac_header" >&5
12181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12182if eval "test \"\${$as_ac_Header+set}\" = set"; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12184fi
12185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12187else
12188 # Is the header compilable?
12189echo "$as_me:$LINENO: checking $ac_header usability" >&5
12190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12191cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197$ac_includes_default
12198#include <$ac_header>
12199_ACEOF
12200rm -f conftest.$ac_objext
12201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
121ce6e5 12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_header_compiler=yes
12222else
12223 echo "$as_me: failed program was:" >&5
12224sed 's/^/| /' conftest.$ac_ext >&5
12225
12226ac_header_compiler=no
12227fi
12228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230echo "${ECHO_T}$ac_header_compiler" >&6
12231
12232# Is the header present?
12233echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12235cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241#include <$ac_header>
12242_ACEOF
12243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } >/dev/null; then
12251 if test -s conftest.err; then
12252 ac_cpp_err=$ac_c_preproc_warn_flag
12253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12254 else
12255 ac_cpp_err=
12256 fi
12257else
12258 ac_cpp_err=yes
78434e59 12259fi
bec39cab
AC
12260if test -z "$ac_cpp_err"; then
12261 ac_header_preproc=yes
78434e59 12262else
bec39cab
AC
12263 echo "$as_me: failed program was:" >&5
12264sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_header_preproc=no
78434e59 12267fi
bec39cab
AC
12268rm -f conftest.err conftest.$ac_ext
12269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12271
bec39cab
AC
12272# So? What about this header?
12273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 yes:no: )
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc=yes
12280 ;;
12281 no:yes:* )
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12294 (
12295 cat <<\_ASBOX
12296## ------------------------------------------ ##
12297## Report this to the AC_PACKAGE_NAME lists. ##
12298## ------------------------------------------ ##
12299_ASBOX
12300 ) |
12301 sed "s/^/$as_me: WARNING: /" >&2
12302 ;;
12303esac
12304echo "$as_me:$LINENO: checking for $ac_header" >&5
12305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12306if eval "test \"\${$as_ac_Header+set}\" = set"; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12310fi
bec39cab
AC
12311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12313
086ec9eb 12314fi
bec39cab
AC
12315if test `eval echo '${'$as_ac_Header'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12318_ACEOF
12319
086ec9eb 12320fi
bec39cab 12321
086ec9eb
MK
12322done
12323
9608ab8b 12324
b1d19a62 12325# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12326# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12327# think that we don't have <curses.h> if we're using GCC.
12328case $host_os in
b1d19a62 12329 solaris2.[789])
5ee754fc 12330 if test "$GCC" = yes; then
bec39cab
AC
12331
12332cat >>confdefs.h <<\_ACEOF
5ee754fc 12333#define _MSE_INT_H 1
bec39cab 12334_ACEOF
5ee754fc
MK
12335
12336 fi ;;
12337esac
bec39cab
AC
12338
12339
12340
12341
12342for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12343do
bec39cab
AC
12344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12345if eval "test \"\${$as_ac_Header+set}\" = set"; then
12346 echo "$as_me:$LINENO: checking for $ac_header" >&5
12347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12348if eval "test \"\${$as_ac_Header+set}\" = set"; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350fi
12351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12353else
12354 # Is the header compilable?
12355echo "$as_me:$LINENO: checking $ac_header usability" >&5
12356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12357cat >conftest.$ac_ext <<_ACEOF
12358/* confdefs.h. */
12359_ACEOF
12360cat confdefs.h >>conftest.$ac_ext
12361cat >>conftest.$ac_ext <<_ACEOF
12362/* end confdefs.h. */
12363$ac_includes_default
12364#include <$ac_header>
12365_ACEOF
12366rm -f conftest.$ac_objext
12367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12368 (eval $ac_compile) 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
121ce6e5 12375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest.$ac_objext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 ac_header_compiler=yes
12388else
12389 echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392ac_header_compiler=no
12393fi
12394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12395echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396echo "${ECHO_T}$ac_header_compiler" >&6
12397
12398# Is the header present?
12399echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12401cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
12407#include <$ac_header>
12408_ACEOF
12409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } >/dev/null; then
12417 if test -s conftest.err; then
12418 ac_cpp_err=$ac_c_preproc_warn_flag
12419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12420 else
12421 ac_cpp_err=
12422 fi
12423else
12424 ac_cpp_err=yes
c906108c 12425fi
bec39cab
AC
12426if test -z "$ac_cpp_err"; then
12427 ac_header_preproc=yes
12428else
12429 echo "$as_me: failed program was:" >&5
12430sed 's/^/| /' conftest.$ac_ext >&5
12431
12432 ac_header_preproc=no
c906108c 12433fi
bec39cab
AC
12434rm -f conftest.err conftest.$ac_ext
12435echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12436echo "${ECHO_T}$ac_header_preproc" >&6
12437
12438# So? What about this header?
12439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12440 yes:no: )
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12445 ac_header_preproc=yes
12446 ;;
12447 no:yes:* )
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12460 (
12461 cat <<\_ASBOX
12462## ------------------------------------------ ##
12463## Report this to the AC_PACKAGE_NAME lists. ##
12464## ------------------------------------------ ##
12465_ASBOX
12466 ) |
12467 sed "s/^/$as_me: WARNING: /" >&2
12468 ;;
12469esac
12470echo "$as_me:$LINENO: checking for $ac_header" >&5
12471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12472if eval "test \"\${$as_ac_Header+set}\" = set"; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12474else
bec39cab 12475 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12476fi
bec39cab
AC
12477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12479
12480fi
12481if test `eval echo '${'$as_ac_Header'}'` = yes; then
12482 cat >>confdefs.h <<_ACEOF
12483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12484_ACEOF
12485
12486fi
12487
5ee754fc 12488done
c906108c 12489
bec39cab 12490
065a1afc 12491for ac_header in ncurses/term.h
3b78cdbb 12492do
bec39cab
AC
12493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12494if eval "test \"\${$as_ac_Header+set}\" = set"; then
12495 echo "$as_me:$LINENO: checking for $ac_header" >&5
12496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12497if eval "test \"\${$as_ac_Header+set}\" = set"; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499fi
12500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12502else
12503 # Is the header compilable?
12504echo "$as_me:$LINENO: checking $ac_header usability" >&5
12505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12506cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h. */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h. */
12512$ac_includes_default
12513#include <$ac_header>
12514_ACEOF
12515rm -f conftest.$ac_objext
12516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12517 (eval $ac_compile) 2>conftest.er1
12518 ac_status=$?
12519 grep -v '^ *+' conftest.er1 >conftest.err
12520 rm -f conftest.er1
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
121ce6e5 12524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_header_compiler=yes
12537else
12538 echo "$as_me: failed program was:" >&5
12539sed 's/^/| /' conftest.$ac_ext >&5
12540
12541ac_header_compiler=no
12542fi
12543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12545echo "${ECHO_T}$ac_header_compiler" >&6
12546
12547# Is the header present?
12548echo "$as_me:$LINENO: checking $ac_header presence" >&5
12549echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12550cat >conftest.$ac_ext <<_ACEOF
12551/* confdefs.h. */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h. */
12556#include <$ac_header>
12557_ACEOF
12558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev/null; then
12566 if test -s conftest.err; then
12567 ac_cpp_err=$ac_c_preproc_warn_flag
12568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12569 else
12570 ac_cpp_err=
12571 fi
12572else
12573 ac_cpp_err=yes
3b78cdbb 12574fi
bec39cab
AC
12575if test -z "$ac_cpp_err"; then
12576 ac_header_preproc=yes
12577else
12578 echo "$as_me: failed program was:" >&5
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 ac_header_preproc=no
3b78cdbb 12582fi
bec39cab
AC
12583rm -f conftest.err conftest.$ac_ext
12584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12585echo "${ECHO_T}$ac_header_preproc" >&6
12586
12587# So? What about this header?
12588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12589 yes:no: )
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12591echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12593echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12594 ac_header_preproc=yes
12595 ;;
12596 no:yes:* )
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12600echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12602echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12604echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12608echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12609 (
12610 cat <<\_ASBOX
12611## ------------------------------------------ ##
12612## Report this to the AC_PACKAGE_NAME lists. ##
12613## ------------------------------------------ ##
12614_ASBOX
12615 ) |
12616 sed "s/^/$as_me: WARNING: /" >&2
12617 ;;
12618esac
12619echo "$as_me:$LINENO: checking for $ac_header" >&5
12620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12621if eval "test \"\${$as_ac_Header+set}\" = set"; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12623else
bec39cab
AC
12624 eval "$as_ac_Header=\$ac_header_preproc"
12625fi
12626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12628
3b78cdbb 12629fi
bec39cab
AC
12630if test `eval echo '${'$as_ac_Header'}'` = yes; then
12631 cat >>confdefs.h <<_ACEOF
12632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12633_ACEOF
12634
12635fi
12636
3b78cdbb
DA
12637done
12638
c906108c 12639
065a1afc
JB
12640for ac_header in term.h
12641do
12642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12643echo "$as_me:$LINENO: checking for $ac_header" >&5
12644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12645if eval "test \"\${$as_ac_Header+set}\" = set"; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647else
12648 cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654#if HAVE_CURSES_H
12655# include <curses.h>
12656#endif
12657
12658
12659#include <$ac_header>
12660_ACEOF
12661rm -f conftest.$ac_objext
12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
121ce6e5 12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
065a1afc
JB
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest.$ac_objext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 eval "$as_ac_Header=yes"
12683else
12684 echo "$as_me: failed program was:" >&5
12685sed 's/^/| /' conftest.$ac_ext >&5
12686
12687eval "$as_ac_Header=no"
12688fi
12689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12690fi
12691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12693if test `eval echo '${'$as_ac_Header'}'` = yes; then
12694 cat >>confdefs.h <<_ACEOF
12695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12696_ACEOF
12697
12698fi
12699
12700done
12701
12702
5ee754fc
MK
12703# FIXME: kettenis/20030102: In most cases we include these
12704# unconditionally, so what's the point in checking these?
bec39cab
AC
12705
12706
12707for ac_header in ctype.h time.h
c906108c 12708do
bec39cab
AC
12709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12710if eval "test \"\${$as_ac_Header+set}\" = set"; then
12711 echo "$as_me:$LINENO: checking for $ac_header" >&5
12712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12713if eval "test \"\${$as_ac_Header+set}\" = set"; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715fi
12716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12718else
12719 # Is the header compilable?
12720echo "$as_me:$LINENO: checking $ac_header usability" >&5
12721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12722cat >conftest.$ac_ext <<_ACEOF
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
12728$ac_includes_default
12729#include <$ac_header>
12730_ACEOF
12731rm -f conftest.$ac_objext
12732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
121ce6e5 12740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest.$ac_objext'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_header_compiler=yes
12753else
12754 echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757ac_header_compiler=no
12758fi
12759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12761echo "${ECHO_T}$ac_header_compiler" >&6
12762
12763# Is the header present?
12764echo "$as_me:$LINENO: checking $ac_header presence" >&5
12765echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12766cat >conftest.$ac_ext <<_ACEOF
12767/* confdefs.h. */
12768_ACEOF
12769cat confdefs.h >>conftest.$ac_ext
12770cat >>conftest.$ac_ext <<_ACEOF
12771/* end confdefs.h. */
12772#include <$ac_header>
12773_ACEOF
12774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } >/dev/null; then
12782 if test -s conftest.err; then
12783 ac_cpp_err=$ac_c_preproc_warn_flag
12784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12785 else
12786 ac_cpp_err=
12787 fi
12788else
12789 ac_cpp_err=yes
c906108c 12790fi
bec39cab
AC
12791if test -z "$ac_cpp_err"; then
12792 ac_header_preproc=yes
12793else
12794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797 ac_header_preproc=no
c906108c 12798fi
bec39cab
AC
12799rm -f conftest.err conftest.$ac_ext
12800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12801echo "${ECHO_T}$ac_header_preproc" >&6
12802
12803# So? What about this header?
12804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12805 yes:no: )
12806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12807echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12809echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12810 ac_header_preproc=yes
12811 ;;
12812 no:yes:* )
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12814echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12816echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12818echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12820echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12822echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12824echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12825 (
12826 cat <<\_ASBOX
12827## ------------------------------------------ ##
12828## Report this to the AC_PACKAGE_NAME lists. ##
12829## ------------------------------------------ ##
12830_ASBOX
12831 ) |
12832 sed "s/^/$as_me: WARNING: /" >&2
12833 ;;
12834esac
12835echo "$as_me:$LINENO: checking for $ac_header" >&5
12836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12837if eval "test \"\${$as_ac_Header+set}\" = set"; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12839else
bec39cab
AC
12840 eval "$as_ac_Header=\$ac_header_preproc"
12841fi
12842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12844
12845fi
12846if test `eval echo '${'$as_ac_Header'}'` = yes; then
12847 cat >>confdefs.h <<_ACEOF
12848#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12849_ACEOF
12850
c906108c 12851fi
bec39cab 12852
c906108c
SS
12853done
12854
5ee754fc 12855
666ec76f
MK
12856# ------------------------- #
12857# Checks for declarations. #
12858# ------------------------- #
12859
a3828db0
MK
12860echo "$as_me:$LINENO: checking whether free is declared" >&5
12861echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12862if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 12863 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12864else
bec39cab
AC
12865 cat >conftest.$ac_ext <<_ACEOF
12866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
a3828db0 12871$ac_includes_default
bec39cab
AC
12872int
12873main ()
12874{
a3828db0
MK
12875#ifndef free
12876 char *p = (char *) free;
666ec76f 12877#endif
a3828db0 12878
bec39cab
AC
12879 ;
12880 return 0;
12881}
12882_ACEOF
12883rm -f conftest.$ac_objext
12884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12885 (eval $ac_compile) 2>conftest.er1
12886 ac_status=$?
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
121ce6e5 12892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; } &&
12898 { ac_try='test -s conftest.$ac_objext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
a3828db0 12904 ac_cv_have_decl_free=yes
40a7debc 12905else
bec39cab
AC
12906 echo "$as_me: failed program was:" >&5
12907sed 's/^/| /' conftest.$ac_ext >&5
12908
a3828db0 12909ac_cv_have_decl_free=no
40a7debc 12910fi
bec39cab 12911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 12912fi
a3828db0
MK
12913echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12914echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12915if test $ac_cv_have_decl_free = yes; then
40a7debc 12916
a3828db0
MK
12917cat >>confdefs.h <<_ACEOF
12918#define HAVE_DECL_FREE 1
666ec76f
MK
12919_ACEOF
12920
a3828db0 12921
666ec76f 12922else
a3828db0
MK
12923 cat >>confdefs.h <<_ACEOF
12924#define HAVE_DECL_FREE 0
bec39cab 12925_ACEOF
40a7debc 12926
b9362cc7 12927
666ec76f 12928fi
a3828db0
MK
12929echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12930echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12931if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933else
12934 cat >conftest.$ac_ext <<_ACEOF
12935/* confdefs.h. */
12936_ACEOF
12937cat confdefs.h >>conftest.$ac_ext
12938cat >>conftest.$ac_ext <<_ACEOF
12939/* end confdefs.h. */
666ec76f
MK
12940$ac_includes_default
12941int
12942main ()
12943{
a3828db0
MK
12944#ifndef malloc
12945 char *p = (char *) malloc;
12946#endif
12947
666ec76f
MK
12948 ;
12949 return 0;
12950}
12951_ACEOF
12952rm -f conftest.$ac_objext
12953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
121ce6e5 12961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
666ec76f
MK
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
a3828db0 12973 ac_cv_have_decl_malloc=yes
666ec76f
MK
12974else
12975 echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 12977
a3828db0
MK
12978ac_cv_have_decl_malloc=no
12979fi
12980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12981fi
12982echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12983echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12984if test $ac_cv_have_decl_malloc = yes; then
12985
12986cat >>confdefs.h <<_ACEOF
12987#define HAVE_DECL_MALLOC 1
12988_ACEOF
12989
12990
12991else
12992 cat >>confdefs.h <<_ACEOF
12993#define HAVE_DECL_MALLOC 0
12994_ACEOF
12995
12996
12997fi
12998echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12999echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13000if test "${ac_cv_have_decl_realloc+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009$ac_includes_default
bec39cab
AC
13010int
13011main ()
13012{
a3828db0
MK
13013#ifndef realloc
13014 char *p = (char *) realloc;
13015#endif
13016
bec39cab
AC
13017 ;
13018 return 0;
13019}
13020_ACEOF
13021rm -f conftest.$ac_objext
13022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
121ce6e5 13030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; } &&
13036 { ac_try='test -s conftest.$ac_objext'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; }; then
a3828db0 13042 ac_cv_have_decl_realloc=yes
b9362cc7 13043else
bec39cab
AC
13044 echo "$as_me: failed program was:" >&5
13045sed 's/^/| /' conftest.$ac_ext >&5
13046
a3828db0 13047ac_cv_have_decl_realloc=no
b9362cc7 13048fi
bec39cab 13049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13050fi
a3828db0
MK
13051echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13052echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13053if test $ac_cv_have_decl_realloc = yes; then
b9362cc7 13054
666ec76f 13055cat >>confdefs.h <<_ACEOF
a3828db0 13056#define HAVE_DECL_REALLOC 1
bec39cab
AC
13057_ACEOF
13058
bec39cab 13059
a3828db0
MK
13060else
13061 cat >>confdefs.h <<_ACEOF
13062#define HAVE_DECL_REALLOC 0
13063_ACEOF
b9362cc7
AC
13064
13065
a3828db0 13066fi
5ee754fc 13067
a3828db0
MK
13068
13069echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13070echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13071if test "${ac_cv_have_decl_strerror+set}" = set; then
bec39cab
AC
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13073else
13074 cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h. */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h. */
a3828db0 13080$ac_includes_default
bec39cab
AC
13081int
13082main ()
13083{
a3828db0
MK
13084#ifndef strerror
13085 char *p = (char *) strerror;
13086#endif
13087
bec39cab
AC
13088 ;
13089 return 0;
13090}
13091_ACEOF
13092rm -f conftest.$ac_objext
13093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
121ce6e5 13101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest.$ac_objext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
a3828db0 13113 ac_cv_have_decl_strerror=yes
c906108c 13114else
bec39cab
AC
13115 echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
a3828db0 13118ac_cv_have_decl_strerror=no
c906108c 13119fi
bec39cab 13120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13121fi
a3828db0
MK
13122echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13123echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13124if test $ac_cv_have_decl_strerror = yes; then
c906108c 13125
bec39cab 13126cat >>confdefs.h <<_ACEOF
a3828db0 13127#define HAVE_DECL_STRERROR 1
bec39cab 13128_ACEOF
c906108c 13129
c906108c 13130
a3828db0
MK
13131else
13132 cat >>confdefs.h <<_ACEOF
13133#define HAVE_DECL_STRERROR 0
13134_ACEOF
c906108c 13135
5ee754fc 13136
a3828db0
MK
13137fi
13138echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13139echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13140if test "${ac_cv_have_decl_strstr+set}" = set; then
bec39cab
AC
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13142else
13143 cat >conftest.$ac_ext <<_ACEOF
13144/* confdefs.h. */
13145_ACEOF
13146cat confdefs.h >>conftest.$ac_ext
13147cat >>conftest.$ac_ext <<_ACEOF
13148/* end confdefs.h. */
a3828db0 13149$ac_includes_default
bec39cab
AC
13150int
13151main ()
13152{
a3828db0
MK
13153#ifndef strstr
13154 char *p = (char *) strstr;
bec39cab
AC
13155#endif
13156
13157 ;
13158 return 0;
13159}
13160_ACEOF
13161rm -f conftest.$ac_objext
13162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163 (eval $ac_compile) 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
121ce6e5 13170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } &&
13176 { ac_try='test -s conftest.$ac_objext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
a3828db0 13182 ac_cv_have_decl_strstr=yes
c906108c 13183else
bec39cab
AC
13184 echo "$as_me: failed program was:" >&5
13185sed 's/^/| /' conftest.$ac_ext >&5
13186
a3828db0 13187ac_cv_have_decl_strstr=no
c906108c 13188fi
bec39cab 13189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13190fi
a3828db0
MK
13191echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13192echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13193if test $ac_cv_have_decl_strstr = yes; then
bec39cab 13194
a3828db0
MK
13195cat >>confdefs.h <<_ACEOF
13196#define HAVE_DECL_STRSTR 1
13197_ACEOF
13198
13199
13200else
13201 cat >>confdefs.h <<_ACEOF
13202#define HAVE_DECL_STRSTR 0
bec39cab 13203_ACEOF
c906108c 13204
a3828db0 13205
c906108c
SS
13206fi
13207
a3828db0
MK
13208
13209echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13210echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13211if test "${ac_cv_have_decl_getopt+set}" = set; then
bec39cab 13212 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13213else
bec39cab
AC
13214 cat >conftest.$ac_ext <<_ACEOF
13215/* confdefs.h. */
13216_ACEOF
13217cat confdefs.h >>conftest.$ac_ext
13218cat >>conftest.$ac_ext <<_ACEOF
13219/* end confdefs.h. */
a3828db0
MK
13220$ac_includes_default
13221int
13222main ()
13223{
13224#ifndef getopt
13225 char *p = (char *) getopt;
bec39cab
AC
13226#endif
13227
a3828db0
MK
13228 ;
13229 return 0;
13230}
bec39cab
AC
13231_ACEOF
13232rm -f conftest.$ac_objext
13233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
121ce6e5 13241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
a3828db0 13253 ac_cv_have_decl_getopt=yes
bce58c09 13254else
bec39cab
AC
13255 echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
a3828db0 13258ac_cv_have_decl_getopt=no
bce58c09 13259fi
bec39cab 13260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13261fi
a3828db0
MK
13262echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13263echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13264if test $ac_cv_have_decl_getopt = yes; then
bec39cab 13265
a3828db0
MK
13266cat >>confdefs.h <<_ACEOF
13267#define HAVE_DECL_GETOPT 1
13268_ACEOF
bce58c09 13269
a3828db0
MK
13270
13271else
13272 cat >>confdefs.h <<_ACEOF
13273#define HAVE_DECL_GETOPT 0
bec39cab 13274_ACEOF
bce58c09 13275
c906108c 13276
e5a7de23
EZ
13277fi
13278echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13279echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13280if test "${ac_cv_have_decl_snprintf+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282else
13283 cat >conftest.$ac_ext <<_ACEOF
13284/* confdefs.h. */
13285_ACEOF
13286cat confdefs.h >>conftest.$ac_ext
13287cat >>conftest.$ac_ext <<_ACEOF
13288/* end confdefs.h. */
13289$ac_includes_default
13290int
13291main ()
13292{
13293#ifndef snprintf
13294 char *p = (char *) snprintf;
13295#endif
13296
13297 ;
13298 return 0;
13299}
13300_ACEOF
13301rm -f conftest.$ac_objext
13302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13303 (eval $ac_compile) 2>conftest.er1
13304 ac_status=$?
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
121ce6e5 13310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e5a7de23
EZ
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; } &&
13316 { ac_try='test -s conftest.$ac_objext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 ac_cv_have_decl_snprintf=yes
13323else
13324 echo "$as_me: failed program was:" >&5
13325sed 's/^/| /' conftest.$ac_ext >&5
13326
13327ac_cv_have_decl_snprintf=no
13328fi
13329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13330fi
13331echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13332echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13333if test $ac_cv_have_decl_snprintf = yes; then
13334
13335cat >>confdefs.h <<_ACEOF
13336#define HAVE_DECL_SNPRINTF 1
13337_ACEOF
13338
13339
13340else
13341 cat >>confdefs.h <<_ACEOF
13342#define HAVE_DECL_SNPRINTF 0
13343_ACEOF
13344
13345
13346fi
13347echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13348echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13349if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351else
13352 cat >conftest.$ac_ext <<_ACEOF
13353/* confdefs.h. */
13354_ACEOF
13355cat confdefs.h >>conftest.$ac_ext
13356cat >>conftest.$ac_ext <<_ACEOF
13357/* end confdefs.h. */
13358$ac_includes_default
13359int
13360main ()
13361{
13362#ifndef vsnprintf
13363 char *p = (char *) vsnprintf;
13364#endif
13365
13366 ;
13367 return 0;
13368}
13369_ACEOF
13370rm -f conftest.$ac_objext
13371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
121ce6e5 13379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e5a7de23
EZ
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_have_decl_vsnprintf=yes
13392else
13393 echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
13396ac_cv_have_decl_vsnprintf=no
13397fi
13398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399fi
13400echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13401echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13402if test $ac_cv_have_decl_vsnprintf = yes; then
13403
13404cat >>confdefs.h <<_ACEOF
13405#define HAVE_DECL_VSNPRINTF 1
13406_ACEOF
13407
13408
13409else
13410 cat >>confdefs.h <<_ACEOF
13411#define HAVE_DECL_VSNPRINTF 0
13412_ACEOF
13413
13414
a3828db0 13415fi
5ee754fc 13416
a3828db0
MK
13417
13418
13419# ----------------------- #
13420# Checks for structures. #
13421# ----------------------- #
13422
13423echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13424echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13425if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
bec39cab
AC
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13427else
13428 cat >conftest.$ac_ext <<_ACEOF
13429/* confdefs.h. */
13430_ACEOF
13431cat confdefs.h >>conftest.$ac_ext
13432cat >>conftest.$ac_ext <<_ACEOF
13433/* end confdefs.h. */
a3828db0 13434$ac_includes_default
bec39cab
AC
13435int
13436main ()
13437{
a3828db0
MK
13438static struct stat ac_aggr;
13439if (ac_aggr.st_blocks)
13440return 0;
bec39cab
AC
13441 ;
13442 return 0;
13443}
13444_ACEOF
a3828db0
MK
13445rm -f conftest.$ac_objext
13446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
121ce6e5 13454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
a3828db0 13460 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
a3828db0 13466 ac_cv_member_struct_stat_st_blocks=yes
bec39cab
AC
13467else
13468 echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
a3828db0
MK
13471cat >conftest.$ac_ext <<_ACEOF
13472/* confdefs.h. */
bec39cab
AC
13473_ACEOF
13474cat confdefs.h >>conftest.$ac_ext
13475cat >>conftest.$ac_ext <<_ACEOF
13476/* end confdefs.h. */
a3828db0 13477$ac_includes_default
bec39cab
AC
13478int
13479main ()
13480{
a3828db0
MK
13481static struct stat ac_aggr;
13482if (sizeof ac_aggr.st_blocks)
13483return 0;
bec39cab
AC
13484 ;
13485 return 0;
13486}
13487_ACEOF
a3828db0
MK
13488rm -f conftest.$ac_objext
13489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13490 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
121ce6e5 13497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
a3828db0 13503 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
a3828db0 13509 ac_cv_member_struct_stat_st_blocks=yes
46711df8 13510else
bec39cab
AC
13511 echo "$as_me: failed program was:" >&5
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
a3828db0 13514ac_cv_member_struct_stat_st_blocks=no
46711df8 13515fi
a3828db0 13516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13517fi
a3828db0
MK
13518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13519fi
13520echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13521echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13522if test $ac_cv_member_struct_stat_st_blocks = yes; then
46711df8 13523
a3828db0
MK
13524cat >>confdefs.h <<_ACEOF
13525#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab 13526_ACEOF
46711df8 13527
46711df8 13528
d3ea6809
MM
13529fi
13530
13531echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13532echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13533if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536 cat >conftest.$ac_ext <<_ACEOF
13537/* confdefs.h. */
13538_ACEOF
13539cat confdefs.h >>conftest.$ac_ext
13540cat >>conftest.$ac_ext <<_ACEOF
13541/* end confdefs.h. */
13542$ac_includes_default
13543int
13544main ()
13545{
13546static struct stat ac_aggr;
13547if (ac_aggr.st_blksize)
13548return 0;
13549 ;
13550 return 0;
13551}
13552_ACEOF
13553rm -f conftest.$ac_objext
13554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555 (eval $ac_compile) 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
121ce6e5 13562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d3ea6809
MM
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try='test -s conftest.$ac_objext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_cv_member_struct_stat_st_blksize=yes
13575else
13576 echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579cat >conftest.$ac_ext <<_ACEOF
13580/* confdefs.h. */
13581_ACEOF
13582cat confdefs.h >>conftest.$ac_ext
13583cat >>conftest.$ac_ext <<_ACEOF
13584/* end confdefs.h. */
13585$ac_includes_default
13586int
13587main ()
13588{
13589static struct stat ac_aggr;
13590if (sizeof ac_aggr.st_blksize)
13591return 0;
13592 ;
13593 return 0;
13594}
13595_ACEOF
13596rm -f conftest.$ac_objext
13597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598 (eval $ac_compile) 2>conftest.er1
13599 ac_status=$?
13600 grep -v '^ *+' conftest.er1 >conftest.err
13601 rm -f conftest.er1
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
121ce6e5 13605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d3ea6809
MM
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); }; } &&
13611 { ac_try='test -s conftest.$ac_objext'
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
13617 ac_cv_member_struct_stat_st_blksize=yes
13618else
13619 echo "$as_me: failed program was:" >&5
13620sed 's/^/| /' conftest.$ac_ext >&5
13621
13622ac_cv_member_struct_stat_st_blksize=no
13623fi
13624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13625fi
13626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13627fi
13628echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13629echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13630if test $ac_cv_member_struct_stat_st_blksize = yes; then
13631
13632cat >>confdefs.h <<_ACEOF
13633#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13634_ACEOF
13635
13636
a3828db0 13637fi
46711df8 13638
46711df8 13639
a3828db0
MK
13640# ------------------ #
13641# Checks for types. #
13642# ------------------ #
46711df8 13643
a3828db0
MK
13644echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13645echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13646if test "${ac_cv_type_signal+set}" = set; then
bec39cab
AC
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649 cat >conftest.$ac_ext <<_ACEOF
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
13654/* end confdefs.h. */
a3828db0
MK
13655#include <sys/types.h>
13656#include <signal.h>
13657#ifdef signal
13658# undef signal
bec39cab 13659#endif
bec39cab 13660#ifdef __cplusplus
a3828db0 13661extern "C" void (*signal (int, void (*)(int)))(int);
46711df8 13662#else
a3828db0 13663void (*signal ()) ();
46711df8
MK
13664#endif
13665
bec39cab
AC
13666int
13667main ()
13668{
a3828db0 13669int i;
bec39cab
AC
13670 ;
13671 return 0;
13672}
13673_ACEOF
a3828db0
MK
13674rm -f conftest.$ac_objext
13675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
121ce6e5 13683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
a3828db0 13689 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
a3828db0 13695 ac_cv_type_signal=void
bec39cab
AC
13696else
13697 echo "$as_me: failed program was:" >&5
13698sed 's/^/| /' conftest.$ac_ext >&5
13699
a3828db0 13700ac_cv_type_signal=int
bec39cab 13701fi
a3828db0 13702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 13703fi
a3828db0
MK
13704echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13705echo "${ECHO_T}$ac_cv_type_signal" >&6
bec39cab
AC
13706
13707cat >>confdefs.h <<_ACEOF
a3828db0 13708#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13709_ACEOF
46711df8 13710
46711df8 13711
f9f87d2c
MK
13712echo "$as_me:$LINENO: checking for socklen_t" >&5
13713echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13714if test "${ac_cv_type_socklen_t+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716else
13717 cat >conftest.$ac_ext <<_ACEOF
13718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h. */
13723#include <sys/types.h>
13724#include <sys/socket.h>
13725
13726
13727int
13728main ()
13729{
13730if ((socklen_t *) 0)
13731 return 0;
13732if (sizeof (socklen_t))
13733 return 0;
13734 ;
13735 return 0;
13736}
13737_ACEOF
13738rm -f conftest.$ac_objext
13739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
121ce6e5 13747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f9f87d2c
MK
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest.$ac_objext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_type_socklen_t=yes
13760else
13761 echo "$as_me: failed program was:" >&5
13762sed 's/^/| /' conftest.$ac_ext >&5
13763
13764ac_cv_type_socklen_t=no
13765fi
13766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767fi
13768echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13769echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13770if test $ac_cv_type_socklen_t = yes; then
13771
13772cat >>confdefs.h <<_ACEOF
13773#define HAVE_SOCKLEN_T 1
13774_ACEOF
13775
13776
3be60c3d
MK
13777fi
13778
13779echo "$as_me:$LINENO: checking for uintptr_t" >&5
13780echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13781if test "${ac_cv_type_uintptr_t+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783else
13784 cat >conftest.$ac_ext <<_ACEOF
13785/* confdefs.h. */
13786_ACEOF
13787cat confdefs.h >>conftest.$ac_ext
13788cat >>conftest.$ac_ext <<_ACEOF
13789/* end confdefs.h. */
13790#include <stdint.h>
13791
13792int
13793main ()
13794{
13795if ((uintptr_t *) 0)
13796 return 0;
13797if (sizeof (uintptr_t))
13798 return 0;
13799 ;
13800 return 0;
13801}
13802_ACEOF
13803rm -f conftest.$ac_objext
13804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13805 (eval $ac_compile) 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } &&
121ce6e5 13812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3be60c3d
MK
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest.$ac_objext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_type_uintptr_t=yes
13825else
13826 echo "$as_me: failed program was:" >&5
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
13829ac_cv_type_uintptr_t=no
13830fi
13831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13832fi
13833echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13834echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13835if test $ac_cv_type_uintptr_t = yes; then
13836
13837cat >>confdefs.h <<_ACEOF
13838#define HAVE_UINTPTR_T 1
13839_ACEOF
13840
13841
f9f87d2c
MK
13842fi
13843
46711df8 13844
a3828db0
MK
13845# ------------------------------------- #
13846# Checks for compiler characteristics. #
13847# ------------------------------------- #
13848
13849echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13850echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13851if test "${ac_cv_c_const+set}" = set; then
bec39cab 13852 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13853else
bec39cab
AC
13854 cat >conftest.$ac_ext <<_ACEOF
13855/* confdefs.h. */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h. */
bec39cab
AC
13860
13861int
46711df8
MK
13862main ()
13863{
a3828db0
MK
13864/* FIXME: Include the comments suggested by Paul. */
13865#ifndef __cplusplus
13866 /* Ultrix mips cc rejects this. */
13867 typedef int charset[2];
13868 const charset x;
13869 /* SunOS 4.1.1 cc rejects this. */
13870 char const *const *ccp;
13871 char **p;
13872 /* NEC SVR4.0.2 mips cc rejects this. */
13873 struct point {int x, y;};
13874 static struct point const zero = {0,0};
13875 /* AIX XL C 1.02.0.0 rejects this.
13876 It does not let you subtract one const X* pointer from another in
13877 an arm of an if-expression whose if-part is not a constant
13878 expression */
13879 const char *g = "string";
13880 ccp = &g + (g ? g-g : 0);
13881 /* HPUX 7.0 cc rejects these. */
13882 ++ccp;
13883 p = (char**) ccp;
13884 ccp = (char const *const *) p;
13885 { /* SCO 3.2v4 cc rejects this. */
13886 char *t;
13887 char const *s = 0 ? (char *) 0 : (char const *) 0;
13888
13889 *t++ = 0;
13890 }
13891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13892 int x[] = {25, 17};
13893 const int *foo = &x[0];
13894 ++foo;
13895 }
13896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13897 typedef const int *iptr;
13898 iptr p = 0;
13899 ++p;
13900 }
13901 { /* AIX XL C 1.02.0.0 rejects this saying
13902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13903 struct s { int j; const int *ap[3]; };
13904 struct s *b; b->j = 5;
13905 }
13906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13907 const int foo = 10;
13908 }
13909#endif
13910
13911 ;
13912 return 0;
46711df8 13913}
bec39cab 13914_ACEOF
a3828db0
MK
13915rm -f conftest.$ac_objext
13916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13917 (eval $ac_compile) 2>conftest.er1
13918 ac_status=$?
13919 grep -v '^ *+' conftest.er1 >conftest.err
13920 rm -f conftest.er1
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
121ce6e5 13924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a3828db0
MK
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
bec39cab
AC
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
a3828db0 13936 ac_cv_c_const=yes
46711df8 13937else
a3828db0 13938 echo "$as_me: failed program was:" >&5
bec39cab
AC
13939sed 's/^/| /' conftest.$ac_ext >&5
13940
a3828db0 13941ac_cv_c_const=no
46711df8 13942fi
a3828db0 13943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13944fi
a3828db0
MK
13945echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13946echo "${ECHO_T}$ac_cv_c_const" >&6
13947if test $ac_cv_c_const = no; then
46711df8 13948
a3828db0
MK
13949cat >>confdefs.h <<\_ACEOF
13950#define const
bec39cab
AC
13951_ACEOF
13952
46711df8
MK
13953fi
13954
a3828db0
MK
13955echo "$as_me:$LINENO: checking for inline" >&5
13956echo $ECHO_N "checking for inline... $ECHO_C" >&6
13957if test "${ac_cv_c_inline+set}" = set; then
bec39cab 13958 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13959else
a3828db0
MK
13960 ac_cv_c_inline=no
13961for ac_kw in inline __inline__ __inline; do
13962 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13963/* confdefs.h. */
13964_ACEOF
13965cat confdefs.h >>conftest.$ac_ext
13966cat >>conftest.$ac_ext <<_ACEOF
13967/* end confdefs.h. */
a3828db0
MK
13968#ifndef __cplusplus
13969typedef int foo_t;
13970static $ac_kw foo_t static_foo () {return 0; }
13971$ac_kw foo_t foo () {return 0; }
13972#endif
13973
bec39cab
AC
13974_ACEOF
13975rm -f conftest.$ac_objext
13976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13977 (eval $ac_compile) 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
121ce6e5 13984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
a3828db0 13996 ac_cv_c_inline=$ac_kw; break
bec39cab
AC
13997else
13998 echo "$as_me: failed program was:" >&5
13999sed 's/^/| /' conftest.$ac_ext >&5
14000
bec39cab
AC
14001fi
14002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0 14003done
bec39cab 14004
74c1b268 14005fi
a3828db0
MK
14006echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14007echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 14008
bec39cab 14009
a3828db0
MK
14010case $ac_cv_c_inline in
14011 inline | yes) ;;
14012 *)
14013 case $ac_cv_c_inline in
14014 no) ac_val=;;
14015 *) ac_val=$ac_cv_c_inline;;
14016 esac
14017 cat >>confdefs.h <<_ACEOF
14018#ifndef __cplusplus
14019#define inline $ac_val
14020#endif
14021_ACEOF
bec39cab
AC
14022 ;;
14023esac
bec39cab 14024
74c1b268 14025
a3828db0
MK
14026# ------------------------------ #
14027# Checks for library functions. #
14028# ------------------------------ #
bec39cab 14029
a3828db0
MK
14030# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14031# for constant arguments. Useless!
14032echo "$as_me:$LINENO: checking for working alloca.h" >&5
14033echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14034if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14036else
14037 cat >conftest.$ac_ext <<_ACEOF
14038/* confdefs.h. */
14039_ACEOF
14040cat confdefs.h >>conftest.$ac_ext
14041cat >>conftest.$ac_ext <<_ACEOF
14042/* end confdefs.h. */
a3828db0 14043#include <alloca.h>
bec39cab
AC
14044int
14045main ()
14046{
a3828db0 14047char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
14048 ;
14049 return 0;
14050}
14051_ACEOF
14052rm -f conftest.$ac_objext conftest$ac_exeext
14053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14054 (eval $ac_link) 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
121ce6e5 14061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } &&
14067 { ac_try='test -s conftest$ac_exeext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
a3828db0 14073 ac_cv_working_alloca_h=yes
bec39cab
AC
14074else
14075 echo "$as_me: failed program was:" >&5
14076sed 's/^/| /' conftest.$ac_ext >&5
14077
a3828db0 14078ac_cv_working_alloca_h=no
bec39cab
AC
14079fi
14080rm -f conftest.err conftest.$ac_objext \
14081 conftest$ac_exeext conftest.$ac_ext
14082fi
a3828db0
MK
14083echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14084echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14085if test $ac_cv_working_alloca_h = yes; then
14086
14087cat >>confdefs.h <<\_ACEOF
14088#define HAVE_ALLOCA_H 1
bec39cab 14089_ACEOF
74c1b268 14090
74c1b268
AC
14091fi
14092
a3828db0
MK
14093echo "$as_me:$LINENO: checking for alloca" >&5
14094echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14095if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 14096 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 14097else
bec39cab
AC
14098 cat >conftest.$ac_ext <<_ACEOF
14099/* confdefs.h. */
14100_ACEOF
14101cat confdefs.h >>conftest.$ac_ext
14102cat >>conftest.$ac_ext <<_ACEOF
14103/* end confdefs.h. */
a3828db0
MK
14104#ifdef __GNUC__
14105# define alloca __builtin_alloca
14106#else
14107# ifdef _MSC_VER
14108# include <malloc.h>
14109# define alloca _alloca
14110# else
14111# if HAVE_ALLOCA_H
14112# include <alloca.h>
14113# else
14114# ifdef _AIX
14115 #pragma alloca
14116# else
14117# ifndef alloca /* predefined by HP cc +Olibcalls */
14118char *alloca ();
14119# endif
14120# endif
14121# endif
97bf5e38 14122# endif
a3828db0 14123#endif
97bf5e38 14124
bec39cab
AC
14125int
14126main ()
14127{
a3828db0 14128char *p = (char *) alloca (1);
bec39cab
AC
14129 ;
14130 return 0;
14131}
14132_ACEOF
a3828db0
MK
14133rm -f conftest.$ac_objext conftest$ac_exeext
14134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14135 (eval $ac_link) 2>conftest.er1
bec39cab
AC
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
121ce6e5 14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
a3828db0 14148 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
a3828db0 14154 ac_cv_func_alloca_works=yes
0200359f 14155else
bec39cab
AC
14156 echo "$as_me: failed program was:" >&5
14157sed 's/^/| /' conftest.$ac_ext >&5
0200359f 14158
a3828db0 14159ac_cv_func_alloca_works=no
0200359f 14160fi
a3828db0
MK
14161rm -f conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
72473524 14163fi
a3828db0
MK
14164echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14165echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 14166
a3828db0
MK
14167if test $ac_cv_func_alloca_works = yes; then
14168
14169cat >>confdefs.h <<\_ACEOF
14170#define HAVE_ALLOCA 1
bec39cab
AC
14171_ACEOF
14172
a3828db0
MK
14173else
14174 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14175# that cause trouble. Some versions do not even contain alloca or
14176# contain a buggy version. If you still want to use their alloca,
14177# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 14178
a3828db0 14179ALLOCA=alloca.$ac_objext
bec39cab 14180
a3828db0
MK
14181cat >>confdefs.h <<\_ACEOF
14182#define C_ALLOCA 1
14183_ACEOF
bec39cab 14184
a3828db0
MK
14185
14186echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14187echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14188if test "${ac_cv_os_cray+set}" = set; then
bec39cab 14189 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14190else
a3828db0 14191 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14192/* confdefs.h. */
14193_ACEOF
14194cat confdefs.h >>conftest.$ac_ext
14195cat >>conftest.$ac_ext <<_ACEOF
14196/* end confdefs.h. */
a3828db0
MK
14197#if defined(CRAY) && ! defined(CRAY2)
14198webecray
14199#else
14200wenotbecray
14201#endif
14202
14203_ACEOF
14204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14205 $EGREP "webecray" >/dev/null 2>&1; then
14206 ac_cv_os_cray=yes
14207else
14208 ac_cv_os_cray=no
14209fi
14210rm -f conftest*
14211
14212fi
14213echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14214echo "${ECHO_T}$ac_cv_os_cray" >&6
14215if test $ac_cv_os_cray = yes; then
14216 for ac_func in _getb67 GETB67 getb67; do
14217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218echo "$as_me:$LINENO: checking for $ac_func" >&5
14219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14220if eval "test \"\${$as_ac_var+set}\" = set"; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14222else
14223 cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h. */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
14228/* end confdefs.h. */
14229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14231#define $ac_func innocuous_$ac_func
14232
14233/* System header to define __stub macros and hopefully few prototypes,
14234 which can conflict with char $ac_func (); below.
14235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14236 <limits.h> exists even on freestanding compilers. */
14237
14238#ifdef __STDC__
14239# include <limits.h>
14240#else
14241# include <assert.h>
14242#endif
14243
14244#undef $ac_func
14245
14246/* Override any gcc2 internal prototype to avoid an error. */
14247#ifdef __cplusplus
14248extern "C"
14249{
14250#endif
14251/* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14253char $ac_func ();
14254/* The GNU C library defines this for functions which it implements
14255 to always fail with ENOSYS. Some functions are actually named
14256 something starting with __ and the normal name is an alias. */
14257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14258choke me
14259#else
14260char (*f) () = $ac_func;
14261#endif
14262#ifdef __cplusplus
14263}
14264#endif
14265
14266int
14267main ()
14268{
14269return f != $ac_func;
14270 ;
14271 return 0;
14272}
14273_ACEOF
14274rm -f conftest.$ac_objext conftest$ac_exeext
14275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14276 (eval $ac_link) 2>conftest.er1
14277 ac_status=$?
14278 grep -v '^ *+' conftest.er1 >conftest.err
14279 rm -f conftest.er1
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } &&
121ce6e5 14283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a3828db0
MK
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest$ac_exeext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 eval "$as_ac_var=yes"
14296else
14297 echo "$as_me: failed program was:" >&5
14298sed 's/^/| /' conftest.$ac_ext >&5
14299
14300eval "$as_ac_var=no"
14301fi
14302rm -f conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
14304fi
14305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14306echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14307if test `eval echo '${'$as_ac_var'}'` = yes; then
14308
14309cat >>confdefs.h <<_ACEOF
14310#define CRAY_STACKSEG_END $ac_func
14311_ACEOF
14312
14313 break
14314fi
14315
14316 done
14317fi
14318
14319echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14320echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14321if test "${ac_cv_c_stack_direction+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14323else
14324 if test "$cross_compiling" = yes; then
14325 ac_cv_c_stack_direction=0
14326else
14327 cat >conftest.$ac_ext <<_ACEOF
14328/* confdefs.h. */
14329_ACEOF
14330cat confdefs.h >>conftest.$ac_ext
14331cat >>conftest.$ac_ext <<_ACEOF
14332/* end confdefs.h. */
14333int
14334find_stack_direction ()
14335{
14336 static char *addr = 0;
14337 auto char dummy;
14338 if (addr == 0)
14339 {
14340 addr = &dummy;
14341 return find_stack_direction ();
14342 }
14343 else
14344 return (&dummy > addr) ? 1 : -1;
14345}
14346
14347int
14348main ()
14349{
14350 exit (find_stack_direction () < 0);
14351}
14352_ACEOF
14353rm -f conftest$ac_exeext
14354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14355 (eval $ac_link) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_cv_c_stack_direction=1
14365else
14366 echo "$as_me: program exited with status $ac_status" >&5
14367echo "$as_me: failed program was:" >&5
14368sed 's/^/| /' conftest.$ac_ext >&5
14369
14370( exit $ac_status )
14371ac_cv_c_stack_direction=-1
14372fi
14373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14374fi
14375fi
14376echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14377echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14378
14379cat >>confdefs.h <<_ACEOF
14380#define STACK_DIRECTION $ac_cv_c_stack_direction
14381_ACEOF
14382
14383
14384fi
14385
14386
14387
14388for ac_header in stdlib.h unistd.h
14389do
14390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14391if eval "test \"\${$as_ac_Header+set}\" = set"; then
14392 echo "$as_me:$LINENO: checking for $ac_header" >&5
14393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14394if eval "test \"\${$as_ac_Header+set}\" = set"; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396fi
14397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14399else
14400 # Is the header compilable?
14401echo "$as_me:$LINENO: checking $ac_header usability" >&5
14402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14403cat >conftest.$ac_ext <<_ACEOF
14404/* confdefs.h. */
14405_ACEOF
14406cat confdefs.h >>conftest.$ac_ext
14407cat >>conftest.$ac_ext <<_ACEOF
14408/* end confdefs.h. */
14409$ac_includes_default
14410#include <$ac_header>
14411_ACEOF
14412rm -f conftest.$ac_objext
14413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414 (eval $ac_compile) 2>conftest.er1
14415 ac_status=$?
bec39cab
AC
14416 grep -v '^ *+' conftest.er1 >conftest.err
14417 rm -f conftest.er1
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
121ce6e5 14421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try='test -s conftest.$ac_objext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_header_compiler=yes
14434else
14435 echo "$as_me: failed program was:" >&5
14436sed 's/^/| /' conftest.$ac_ext >&5
14437
14438ac_header_compiler=no
14439fi
14440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14442echo "${ECHO_T}$ac_header_compiler" >&6
14443
14444# Is the header present?
14445echo "$as_me:$LINENO: checking $ac_header presence" >&5
14446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14447cat >conftest.$ac_ext <<_ACEOF
14448/* confdefs.h. */
14449_ACEOF
14450cat confdefs.h >>conftest.$ac_ext
14451cat >>conftest.$ac_ext <<_ACEOF
14452/* end confdefs.h. */
14453#include <$ac_header>
14454_ACEOF
14455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14457 ac_status=$?
14458 grep -v '^ *+' conftest.er1 >conftest.err
14459 rm -f conftest.er1
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } >/dev/null; then
14463 if test -s conftest.err; then
14464 ac_cpp_err=$ac_c_preproc_warn_flag
14465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14466 else
14467 ac_cpp_err=
14468 fi
14469else
14470 ac_cpp_err=yes
14471fi
14472if test -z "$ac_cpp_err"; then
14473 ac_header_preproc=yes
97bf5e38 14474else
bec39cab
AC
14475 echo "$as_me: failed program was:" >&5
14476sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 ac_header_preproc=no
72473524 14479fi
bec39cab
AC
14480rm -f conftest.err conftest.$ac_ext
14481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14482echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14483
bec39cab
AC
14484# So? What about this header?
14485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14486 yes:no: )
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14491 ac_header_preproc=yes
14492 ;;
14493 no:yes:* )
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14506 (
14507 cat <<\_ASBOX
14508## ------------------------------------------ ##
14509## Report this to the AC_PACKAGE_NAME lists. ##
14510## ------------------------------------------ ##
14511_ASBOX
14512 ) |
14513 sed "s/^/$as_me: WARNING: /" >&2
14514 ;;
14515esac
14516echo "$as_me:$LINENO: checking for $ac_header" >&5
14517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14518if eval "test \"\${$as_ac_Header+set}\" = set"; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14520else
bec39cab
AC
14521 eval "$as_ac_Header=\$ac_header_preproc"
14522fi
14523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14525
14526fi
14527if test `eval echo '${'$as_ac_Header'}'` = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14530_ACEOF
14531
14532fi
14533
14534done
14535
14536
a3828db0 14537for ac_func in getpagesize
bec39cab
AC
14538do
14539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14540echo "$as_me:$LINENO: checking for $ac_func" >&5
14541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14542if eval "test \"\${$as_ac_var+set}\" = set"; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14544else
14545 cat >conftest.$ac_ext <<_ACEOF
14546/* confdefs.h. */
14547_ACEOF
14548cat confdefs.h >>conftest.$ac_ext
14549cat >>conftest.$ac_ext <<_ACEOF
14550/* end confdefs.h. */
14551/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14553#define $ac_func innocuous_$ac_func
14554
97bf5e38 14555/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14556 which can conflict with char $ac_func (); below.
14557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14558 <limits.h> exists even on freestanding compilers. */
2b2d558c 14559
bec39cab
AC
14560#ifdef __STDC__
14561# include <limits.h>
14562#else
14563# include <assert.h>
14564#endif
97bf5e38 14565
bec39cab
AC
14566#undef $ac_func
14567
14568/* Override any gcc2 internal prototype to avoid an error. */
14569#ifdef __cplusplus
14570extern "C"
14571{
14572#endif
14573/* We use char because int might match the return type of a gcc2
14574 builtin and then its argument prototype would still apply. */
14575char $ac_func ();
97bf5e38
MK
14576/* The GNU C library defines this for functions which it implements
14577 to always fail with ENOSYS. Some functions are actually named
14578 something starting with __ and the normal name is an alias. */
bec39cab 14579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14580choke me
14581#else
bec39cab
AC
14582char (*f) () = $ac_func;
14583#endif
14584#ifdef __cplusplus
14585}
97bf5e38
MK
14586#endif
14587
bec39cab
AC
14588int
14589main ()
14590{
14591return f != $ac_func;
14592 ;
14593 return 0;
14594}
14595_ACEOF
14596rm -f conftest.$ac_objext conftest$ac_exeext
14597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598 (eval $ac_link) 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
121ce6e5 14605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; } &&
14611 { ac_try='test -s conftest$ac_exeext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 eval "$as_ac_var=yes"
14618else
14619 echo "$as_me: failed program was:" >&5
14620sed 's/^/| /' conftest.$ac_ext >&5
14621
14622eval "$as_ac_var=no"
14623fi
14624rm -f conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626fi
14627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14628echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14629if test `eval echo '${'$as_ac_var'}'` = yes; then
14630 cat >>confdefs.h <<_ACEOF
14631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14632_ACEOF
14633
2b2d558c 14634fi
bec39cab 14635done
2b2d558c 14636
a3828db0
MK
14637echo "$as_me:$LINENO: checking for working mmap" >&5
14638echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14639if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 14640 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14641else
bec39cab 14642 if test "$cross_compiling" = yes; then
a3828db0 14643 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
14644else
14645 cat >conftest.$ac_ext <<_ACEOF
a3828db0 14646/* confdefs.h. */
bec39cab
AC
14647_ACEOF
14648cat confdefs.h >>conftest.$ac_ext
14649cat >>conftest.$ac_ext <<_ACEOF
14650/* end confdefs.h. */
a3828db0
MK
14651$ac_includes_default
14652/* malloc might have been renamed as rpl_malloc. */
14653#undef malloc
bec39cab 14654
a3828db0
MK
14655/* Thanks to Mike Haertel and Jim Avera for this test.
14656 Here is a matrix of mmap possibilities:
14657 mmap private not fixed
14658 mmap private fixed at somewhere currently unmapped
14659 mmap private fixed at somewhere already mapped
14660 mmap shared not fixed
14661 mmap shared fixed at somewhere currently unmapped
14662 mmap shared fixed at somewhere already mapped
14663 For private mappings, we should verify that changes cannot be read()
14664 back from the file, nor mmap's back from the file at a different
14665 address. (There have been systems where private was not correctly
14666 implemented like the infamous i386 svr4.0, and systems where the
14667 VM page cache was not coherent with the file system buffer cache
14668 like early versions of FreeBSD and possibly contemporary NetBSD.)
14669 For shared mappings, we should conversely verify that changes get
14670 propagated back to all the places they're supposed to be.
7dfa765c 14671
a3828db0
MK
14672 Grep wants private fixed already mapped.
14673 The main things grep needs to know about mmap are:
14674 * does it exist and is it safe to write into the mmap'd area
14675 * how to use it (BSD variants) */
7dfa765c 14676
a3828db0
MK
14677#include <fcntl.h>
14678#include <sys/mman.h>
7dfa765c 14679
a3828db0
MK
14680#if !STDC_HEADERS && !HAVE_STDLIB_H
14681char *malloc ();
14682#endif
7dfa765c 14683
a3828db0
MK
14684/* This mess was copied from the GNU getpagesize.h. */
14685#if !HAVE_GETPAGESIZE
14686/* Assume that all systems that can run configure have sys/param.h. */
14687# if !HAVE_SYS_PARAM_H
14688# define HAVE_SYS_PARAM_H 1
14689# endif
64bb1671 14690
a3828db0
MK
14691# ifdef _SC_PAGESIZE
14692# define getpagesize() sysconf(_SC_PAGESIZE)
14693# else /* no _SC_PAGESIZE */
14694# if HAVE_SYS_PARAM_H
14695# include <sys/param.h>
14696# ifdef EXEC_PAGESIZE
14697# define getpagesize() EXEC_PAGESIZE
14698# else /* no EXEC_PAGESIZE */
14699# ifdef NBPG
14700# define getpagesize() NBPG * CLSIZE
14701# ifndef CLSIZE
14702# define CLSIZE 1
14703# endif /* no CLSIZE */
14704# else /* no NBPG */
14705# ifdef NBPC
14706# define getpagesize() NBPC
14707# else /* no NBPC */
14708# ifdef PAGESIZE
14709# define getpagesize() PAGESIZE
14710# endif /* PAGESIZE */
14711# endif /* no NBPC */
14712# endif /* no NBPG */
14713# endif /* no EXEC_PAGESIZE */
14714# else /* no HAVE_SYS_PARAM_H */
14715# define getpagesize() 8192 /* punt totally */
14716# endif /* no HAVE_SYS_PARAM_H */
14717# endif /* no _SC_PAGESIZE */
64bb1671 14718
a3828db0 14719#endif /* no HAVE_GETPAGESIZE */
64bb1671 14720
a3828db0
MK
14721int
14722main ()
14723{
14724 char *data, *data2, *data3;
14725 int i, pagesize;
14726 int fd;
97bf5e38 14727
a3828db0
MK
14728 pagesize = getpagesize ();
14729
14730 /* First, make a file with some known garbage in it. */
14731 data = (char *) malloc (pagesize);
14732 if (!data)
14733 exit (1);
14734 for (i = 0; i < pagesize; ++i)
14735 *(data + i) = rand ();
14736 umask (0);
14737 fd = creat ("conftest.mmap", 0600);
14738 if (fd < 0)
14739 exit (1);
14740 if (write (fd, data, pagesize) != pagesize)
14741 exit (1);
14742 close (fd);
14743
14744 /* Next, try to mmap the file at a fixed address which already has
14745 something else allocated at it. If we can, also make sure that
14746 we see the same garbage. */
14747 fd = open ("conftest.mmap", O_RDWR);
14748 if (fd < 0)
14749 exit (1);
14750 data2 = (char *) malloc (2 * pagesize);
14751 if (!data2)
14752 exit (1);
14753 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14754 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14755 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14756 exit (1);
14757 for (i = 0; i < pagesize; ++i)
14758 if (*(data + i) != *(data2 + i))
14759 exit (1);
14760
14761 /* Finally, make sure that changes to the mapped area do not
14762 percolate back to the file as seen by read(). (This is a bug on
14763 some variants of i386 svr4.0.) */
14764 for (i = 0; i < pagesize; ++i)
14765 *(data2 + i) = *(data2 + i) + 1;
14766 data3 = (char *) malloc (pagesize);
14767 if (!data3)
14768 exit (1);
14769 if (read (fd, data3, pagesize) != pagesize)
14770 exit (1);
14771 for (i = 0; i < pagesize; ++i)
14772 if (*(data + i) != *(data3 + i))
14773 exit (1);
14774 close (fd);
14775 exit (0);
97bf5e38 14776}
bec39cab
AC
14777_ACEOF
14778rm -f conftest$ac_exeext
14779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14780 (eval $ac_link) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
a3828db0 14789 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 14790else
bec39cab
AC
14791 echo "$as_me: program exited with status $ac_status" >&5
14792echo "$as_me: failed program was:" >&5
14793sed 's/^/| /' conftest.$ac_ext >&5
14794
14795( exit $ac_status )
a3828db0 14796ac_cv_func_mmap_fixed_mapped=no
0afdd437 14797fi
a3828db0 14798rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 14799fi
a3828db0
MK
14800fi
14801echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14802echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14803if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14804
14805cat >>confdefs.h <<\_ACEOF
a3828db0 14806#define HAVE_MMAP 1
bec39cab 14807_ACEOF
0afdd437
MK
14808
14809fi
a3828db0 14810rm -f conftest.mmap
0afdd437 14811
a3828db0
MK
14812echo "$as_me:$LINENO: checking for pid_t" >&5
14813echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14814if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817 cat >conftest.$ac_ext <<_ACEOF
14818/* confdefs.h. */
14819_ACEOF
14820cat confdefs.h >>conftest.$ac_ext
14821cat >>conftest.$ac_ext <<_ACEOF
14822/* end confdefs.h. */
a3828db0 14823$ac_includes_default
bec39cab
AC
14824int
14825main ()
14826{
a3828db0
MK
14827if ((pid_t *) 0)
14828 return 0;
14829if (sizeof (pid_t))
14830 return 0;
bec39cab
AC
14831 ;
14832 return 0;
14833}
14834_ACEOF
a3828db0
MK
14835rm -f conftest.$ac_objext
14836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14837 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
121ce6e5 14844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
a3828db0 14850 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
a3828db0 14856 ac_cv_type_pid_t=yes
bec39cab
AC
14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
a3828db0 14861ac_cv_type_pid_t=no
bec39cab 14862fi
a3828db0 14863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 14864fi
a3828db0
MK
14865echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14866echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14867if test $ac_cv_type_pid_t = yes; then
14868 :
14869else
14870
14871cat >>confdefs.h <<_ACEOF
14872#define pid_t int
bec39cab 14873_ACEOF
7e89e357 14874
7e89e357
JT
14875fi
14876
bec39cab 14877
a3828db0
MK
14878
14879for ac_header in unistd.h vfork.h
7be570e7 14880do
a3828db0
MK
14881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14882if eval "test \"\${$as_ac_Header+set}\" = set"; then
14883 echo "$as_me:$LINENO: checking for $ac_header" >&5
14884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14885if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14886 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
14887fi
14888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14890else
a3828db0
MK
14891 # Is the header compilable?
14892echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14894cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14895/* confdefs.h. */
14896_ACEOF
14897cat confdefs.h >>conftest.$ac_ext
14898cat >>conftest.$ac_ext <<_ACEOF
14899/* end confdefs.h. */
a3828db0
MK
14900$ac_includes_default
14901#include <$ac_header>
bec39cab 14902_ACEOF
a3828db0
MK
14903rm -f conftest.$ac_objext
14904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14905 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
121ce6e5 14912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
a3828db0 14918 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
a3828db0 14924 ac_header_compiler=yes
bec39cab
AC
14925else
14926 echo "$as_me: failed program was:" >&5
14927sed 's/^/| /' conftest.$ac_ext >&5
14928
a3828db0 14929ac_header_compiler=no
bec39cab 14930fi
a3828db0
MK
14931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14933echo "${ECHO_T}$ac_header_compiler" >&6
14934
14935# Is the header present?
14936echo "$as_me:$LINENO: checking $ac_header presence" >&5
14937echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14938cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h. */
14944#include <$ac_header>
14945_ACEOF
14946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } >/dev/null; then
14954 if test -s conftest.err; then
14955 ac_cpp_err=$ac_c_preproc_warn_flag
14956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14957 else
14958 ac_cpp_err=
14959 fi
14960else
14961 ac_cpp_err=yes
14962fi
14963if test -z "$ac_cpp_err"; then
14964 ac_header_preproc=yes
14965else
14966 echo "$as_me: failed program was:" >&5
14967sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ac_header_preproc=no
14970fi
14971rm -f conftest.err conftest.$ac_ext
14972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973echo "${ECHO_T}$ac_header_preproc" >&6
14974
14975# So? What about this header?
14976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 yes:no: )
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14979echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14981echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14982 ac_header_preproc=yes
14983 ;;
14984 no:yes:* )
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14990echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14992echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14994echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14996echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14997 (
14998 cat <<\_ASBOX
14999## ------------------------------------------ ##
15000## Report this to the AC_PACKAGE_NAME lists. ##
15001## ------------------------------------------ ##
15002_ASBOX
15003 ) |
15004 sed "s/^/$as_me: WARNING: /" >&2
15005 ;;
15006esac
15007echo "$as_me:$LINENO: checking for $ac_header" >&5
15008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15009if eval "test \"\${$as_ac_Header+set}\" = set"; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011else
15012 eval "$as_ac_Header=\$ac_header_preproc"
15013fi
15014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15016
bec39cab 15017fi
a3828db0 15018if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 15019 cat >>confdefs.h <<_ACEOF
a3828db0 15020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 15021_ACEOF
14abd0fb 15022
14abd0fb 15023fi
a3828db0 15024
14abd0fb
MK
15025done
15026
bec39cab 15027
a3828db0
MK
15028
15029for ac_func in fork vfork
14abd0fb 15030do
bec39cab
AC
15031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15032echo "$as_me:$LINENO: checking for $ac_func" >&5
15033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15034if eval "test \"\${$as_ac_var+set}\" = set"; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15036else
15037 cat >conftest.$ac_ext <<_ACEOF
15038/* confdefs.h. */
15039_ACEOF
15040cat confdefs.h >>conftest.$ac_ext
15041cat >>conftest.$ac_ext <<_ACEOF
15042/* end confdefs.h. */
15043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15045#define $ac_func innocuous_$ac_func
15046
14abd0fb 15047/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15048 which can conflict with char $ac_func (); below.
15049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15050 <limits.h> exists even on freestanding compilers. */
15051
15052#ifdef __STDC__
15053# include <limits.h>
15054#else
15055# include <assert.h>
15056#endif
14abd0fb 15057
bec39cab 15058#undef $ac_func
14abd0fb 15059
bec39cab
AC
15060/* Override any gcc2 internal prototype to avoid an error. */
15061#ifdef __cplusplus
15062extern "C"
15063{
15064#endif
15065/* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15067char $ac_func ();
14abd0fb
MK
15068/* The GNU C library defines this for functions which it implements
15069 to always fail with ENOSYS. Some functions are actually named
15070 something starting with __ and the normal name is an alias. */
15071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15072choke me
15073#else
bec39cab
AC
15074char (*f) () = $ac_func;
15075#endif
15076#ifdef __cplusplus
15077}
14abd0fb
MK
15078#endif
15079
bec39cab
AC
15080int
15081main ()
15082{
15083return f != $ac_func;
15084 ;
15085 return 0;
15086}
15087_ACEOF
15088rm -f conftest.$ac_objext conftest$ac_exeext
15089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15090 (eval $ac_link) 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
121ce6e5 15097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; } &&
15103 { ac_try='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 eval "$as_ac_var=yes"
15110else
15111 echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114eval "$as_ac_var=no"
15115fi
15116rm -f conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
15118fi
15119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15121if test `eval echo '${'$as_ac_var'}'` = yes; then
15122 cat >>confdefs.h <<_ACEOF
15123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15124_ACEOF
7be570e7 15125
7be570e7
JM
15126fi
15127done
15128
a3828db0
MK
15129if test "x$ac_cv_func_fork" = xyes; then
15130 echo "$as_me:$LINENO: checking for working fork" >&5
15131echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15132if test "${ac_cv_func_fork_works+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15134else
15135 if test "$cross_compiling" = yes; then
15136 ac_cv_func_fork_works=cross
15137else
15138 cat >conftest.$ac_ext <<_ACEOF
121ce6e5
DJ
15139/* confdefs.h. */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h. */
15144$ac_includes_default
15145int
15146main ()
15147{
15148
15149 /* By Ruediger Kuhlmann. */
15150 if (fork() < 0)
15151 exit (1);
15152 exit (0);
15153
15154 ;
15155 return 0;
15156}
a3828db0
MK
15157_ACEOF
15158rm -f conftest$ac_exeext
15159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15160 (eval $ac_link) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_func_fork_works=yes
15170else
15171 echo "$as_me: program exited with status $ac_status" >&5
15172echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 15174
a3828db0
MK
15175( exit $ac_status )
15176ac_cv_func_fork_works=no
15177fi
15178rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15179fi
15180fi
15181echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15182echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15183
15184else
15185 ac_cv_func_fork_works=$ac_cv_func_fork
15186fi
15187if test "x$ac_cv_func_fork_works" = xcross; then
15188 case $host in
15189 *-*-amigaos* | *-*-msdosdjgpp*)
15190 # Override, as these systems have only a dummy fork() stub
15191 ac_cv_func_fork_works=no
15192 ;;
15193 *)
15194 ac_cv_func_fork_works=yes
15195 ;;
15196 esac
15197 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15198echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15199fi
15200ac_cv_func_vfork_works=$ac_cv_func_vfork
15201if test "x$ac_cv_func_vfork" = xyes; then
15202 echo "$as_me:$LINENO: checking for working vfork" >&5
15203echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15204if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 15205 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
15206else
15207 if test "$cross_compiling" = yes; then
15208 ac_cv_func_vfork_works=cross
bec39cab
AC
15209else
15210 cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
15215/* end confdefs.h. */
a3828db0
MK
15216/* Thanks to Paul Eggert for this test. */
15217#include <stdio.h>
15218#include <stdlib.h>
15219#include <sys/types.h>
15220#include <sys/stat.h>
15221#include <sys/wait.h>
15222#if HAVE_UNISTD_H
15223# include <unistd.h>
bec39cab 15224#endif
a3828db0
MK
15225#if HAVE_VFORK_H
15226# include <vfork.h>
bec39cab 15227#endif
a3828db0
MK
15228/* On some sparc systems, changes by the child to local and incoming
15229 argument registers are propagated back to the parent. The compiler
15230 is told about this with #include <vfork.h>, but some compilers
15231 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15232 static variable whose address is put into a register that is
15233 clobbered by the vfork. */
15234static void
bec39cab 15235#ifdef __cplusplus
a3828db0
MK
15236sparc_address_test (int arg)
15237# else
15238sparc_address_test (arg) int arg;
c906108c 15239#endif
a3828db0
MK
15240{
15241 static pid_t child;
15242 if (!child) {
15243 child = vfork ();
15244 if (child < 0) {
15245 perror ("vfork");
15246 _exit(2);
15247 }
15248 if (!child) {
15249 arg = getpid();
15250 write(-1, "", 0);
15251 _exit (arg);
15252 }
15253 }
15254}
97bf5e38 15255
bec39cab
AC
15256int
15257main ()
15258{
a3828db0
MK
15259 pid_t parent = getpid ();
15260 pid_t child;
15261
15262 sparc_address_test (0);
15263
15264 child = vfork ();
15265
15266 if (child == 0) {
15267 /* Here is another test for sparc vfork register problems. This
15268 test uses lots of local variables, at least as many local
15269 variables as main has allocated so far including compiler
15270 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15271 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15272 reuse the register of parent for one of the local variables,
15273 since it will think that parent can't possibly be used any more
15274 in this routine. Assigning to the local variable will thus
15275 munge parent in the parent process. */
15276 pid_t
15277 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15278 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15279 /* Convince the compiler that p..p7 are live; otherwise, it might
15280 use the same hardware register for all 8 local variables. */
15281 if (p != p1 || p != p2 || p != p3 || p != p4
15282 || p != p5 || p != p6 || p != p7)
15283 _exit(1);
15284
15285 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15286 from child file descriptors. If the child closes a descriptor
15287 before it execs or exits, this munges the parent's descriptor
15288 as well. Test for this by closing stdout in the child. */
15289 _exit(close(fileno(stdout)) != 0);
15290 } else {
15291 int status;
15292 struct stat st;
15293
15294 while (wait(&status) != child)
15295 ;
15296 exit(
15297 /* Was there some problem with vforking? */
15298 child < 0
15299
15300 /* Did the child fail? (This shouldn't happen.) */
15301 || status
15302
15303 /* Did the vfork/compiler bug occur? */
15304 || parent != getpid()
15305
15306 /* Did the file descriptor bug occur? */
15307 || fstat(fileno(stdout), &st) != 0
15308 );
15309 }
bec39cab
AC
15310}
15311_ACEOF
a3828db0 15312rm -f conftest$ac_exeext
bec39cab 15313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 15314 (eval $ac_link) 2>&5
bec39cab
AC
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 15317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
a3828db0
MK
15323 ac_cv_func_vfork_works=yes
15324else
15325 echo "$as_me: program exited with status $ac_status" >&5
15326echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329( exit $ac_status )
15330ac_cv_func_vfork_works=no
15331fi
15332rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15333fi
15334fi
15335echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15336echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15337
15338fi;
15339if test "x$ac_cv_func_fork_works" = xcross; then
15340 ac_cv_func_vfork_works=$ac_cv_func_vfork
15341 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15342echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15343fi
15344
15345if test "x$ac_cv_func_vfork_works" = xyes; then
15346
15347cat >>confdefs.h <<\_ACEOF
15348#define HAVE_WORKING_VFORK 1
15349_ACEOF
15350
bec39cab 15351else
bec39cab 15352
a3828db0
MK
15353cat >>confdefs.h <<\_ACEOF
15354#define vfork fork
15355_ACEOF
15356
bec39cab 15357fi
a3828db0
MK
15358if test "x$ac_cv_func_fork_works" = xyes; then
15359
15360cat >>confdefs.h <<\_ACEOF
15361#define HAVE_WORKING_FORK 1
bec39cab 15362_ACEOF
c906108c 15363
c906108c
SS
15364fi
15365
bec39cab
AC
15366
15367
a3828db0 15368for ac_func in canonicalize_file_name realpath
97bf5e38 15369do
bec39cab
AC
15370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15371echo "$as_me:$LINENO: checking for $ac_func" >&5
15372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15373if eval "test \"\${$as_ac_var+set}\" = set"; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375else
15376 cat >conftest.$ac_ext <<_ACEOF
15377/* confdefs.h. */
15378_ACEOF
15379cat confdefs.h >>conftest.$ac_ext
15380cat >>conftest.$ac_ext <<_ACEOF
15381/* end confdefs.h. */
15382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15384#define $ac_func innocuous_$ac_func
15385
d3ea6809
MM
15386/* System header to define __stub macros and hopefully few prototypes,
15387 which can conflict with char $ac_func (); below.
15388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15389 <limits.h> exists even on freestanding compilers. */
15390
15391#ifdef __STDC__
15392# include <limits.h>
15393#else
15394# include <assert.h>
15395#endif
15396
15397#undef $ac_func
15398
15399/* Override any gcc2 internal prototype to avoid an error. */
15400#ifdef __cplusplus
15401extern "C"
15402{
15403#endif
15404/* We use char because int might match the return type of a gcc2
15405 builtin and then its argument prototype would still apply. */
15406char $ac_func ();
15407/* The GNU C library defines this for functions which it implements
15408 to always fail with ENOSYS. Some functions are actually named
15409 something starting with __ and the normal name is an alias. */
15410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15411choke me
15412#else
15413char (*f) () = $ac_func;
15414#endif
15415#ifdef __cplusplus
15416}
15417#endif
15418
15419int
15420main ()
15421{
15422return f != $ac_func;
15423 ;
15424 return 0;
15425}
15426_ACEOF
15427rm -f conftest.$ac_objext conftest$ac_exeext
15428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429 (eval $ac_link) 2>conftest.er1
15430 ac_status=$?
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
121ce6e5 15436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d3ea6809
MM
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest$ac_exeext'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 eval "$as_ac_var=yes"
15449else
15450 echo "$as_me: failed program was:" >&5
15451sed 's/^/| /' conftest.$ac_ext >&5
15452
15453eval "$as_ac_var=no"
15454fi
15455rm -f conftest.err conftest.$ac_objext \
15456 conftest$ac_exeext conftest.$ac_ext
15457fi
15458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15459echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15460if test `eval echo '${'$as_ac_var'}'` = yes; then
15461 cat >>confdefs.h <<_ACEOF
15462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15463_ACEOF
15464
15465fi
15466done
15467
15468
15469
15470for ac_func in getuid getgid
15471do
15472as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15473echo "$as_me:$LINENO: checking for $ac_func" >&5
15474echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15475if eval "test \"\${$as_ac_var+set}\" = set"; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15477else
15478 cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15486#define $ac_func innocuous_$ac_func
15487
97bf5e38 15488/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15489 which can conflict with char $ac_func (); below.
15490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15491 <limits.h> exists even on freestanding compilers. */
c906108c 15492
bec39cab
AC
15493#ifdef __STDC__
15494# include <limits.h>
15495#else
15496# include <assert.h>
15497#endif
97bf5e38 15498
bec39cab
AC
15499#undef $ac_func
15500
15501/* Override any gcc2 internal prototype to avoid an error. */
15502#ifdef __cplusplus
15503extern "C"
15504{
15505#endif
15506/* We use char because int might match the return type of a gcc2
15507 builtin and then its argument prototype would still apply. */
15508char $ac_func ();
97bf5e38
MK
15509/* The GNU C library defines this for functions which it implements
15510 to always fail with ENOSYS. Some functions are actually named
15511 something starting with __ and the normal name is an alias. */
15512#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15513choke me
c906108c 15514#else
bec39cab
AC
15515char (*f) () = $ac_func;
15516#endif
15517#ifdef __cplusplus
15518}
c906108c 15519#endif
97bf5e38 15520
bec39cab
AC
15521int
15522main ()
15523{
15524return f != $ac_func;
15525 ;
15526 return 0;
15527}
15528_ACEOF
15529rm -f conftest.$ac_objext conftest$ac_exeext
15530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15531 (eval $ac_link) 2>conftest.er1
15532 ac_status=$?
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
121ce6e5 15538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; } &&
15544 { ac_try='test -s conftest$ac_exeext'
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 eval "$as_ac_var=yes"
15551else
15552 echo "$as_me: failed program was:" >&5
15553sed 's/^/| /' conftest.$ac_ext >&5
15554
15555eval "$as_ac_var=no"
15556fi
15557rm -f conftest.err conftest.$ac_objext \
15558 conftest$ac_exeext conftest.$ac_ext
15559fi
15560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15562if test `eval echo '${'$as_ac_var'}'` = yes; then
15563 cat >>confdefs.h <<_ACEOF
15564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15565_ACEOF
c906108c 15566
c906108c 15567fi
97bf5e38 15568done
c906108c 15569
bec39cab 15570
a3828db0 15571for ac_func in poll
97bf5e38 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
97bf5e38 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
c906108c 15599
bec39cab 15600#undef $ac_func
97bf5e38 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 ();
97bf5e38
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
c906108c 15615#else
bec39cab
AC
15616char (*f) () = $ac_func;
15617#endif
15618#ifdef __cplusplus
15619}
c906108c 15620#endif
97bf5e38 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); } &&
121ce6e5 15639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try='test -s conftest$ac_exeext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 eval "$as_ac_var=yes"
15652else
15653 echo "$as_me: failed program was:" >&5
15654sed 's/^/| /' conftest.$ac_ext >&5
15655
15656eval "$as_ac_var=no"
15657fi
15658rm -f conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15660fi
15661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15662echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15663if test `eval echo '${'$as_ac_var'}'` = yes; then
15664 cat >>confdefs.h <<_ACEOF
15665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15666_ACEOF
c906108c 15667
c906108c 15668fi
97bf5e38 15669done
c906108c 15670
bec39cab 15671
a3828db0 15672for ac_func in pread64
97bf5e38 15673do
bec39cab
AC
15674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15675echo "$as_me:$LINENO: checking for $ac_func" >&5
15676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15677if eval "test \"\${$as_ac_var+set}\" = set"; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679else
15680 cat >conftest.$ac_ext <<_ACEOF
15681/* confdefs.h. */
15682_ACEOF
15683cat confdefs.h >>conftest.$ac_ext
15684cat >>conftest.$ac_ext <<_ACEOF
15685/* end confdefs.h. */
15686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15688#define $ac_func innocuous_$ac_func
15689
97bf5e38 15690/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15691 which can conflict with char $ac_func (); below.
15692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15693 <limits.h> exists even on freestanding compilers. */
15694
15695#ifdef __STDC__
15696# include <limits.h>
15697#else
15698# include <assert.h>
15699#endif
c906108c 15700
bec39cab 15701#undef $ac_func
97bf5e38 15702
bec39cab
AC
15703/* Override any gcc2 internal prototype to avoid an error. */
15704#ifdef __cplusplus
15705extern "C"
15706{
15707#endif
15708/* We use char because int might match the return type of a gcc2
15709 builtin and then its argument prototype would still apply. */
15710char $ac_func ();
97bf5e38
MK
15711/* The GNU C library defines this for functions which it implements
15712 to always fail with ENOSYS. Some functions are actually named
15713 something starting with __ and the normal name is an alias. */
15714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15715choke me
c906108c 15716#else
bec39cab
AC
15717char (*f) () = $ac_func;
15718#endif
15719#ifdef __cplusplus
15720}
c906108c 15721#endif
97bf5e38 15722
bec39cab
AC
15723int
15724main ()
15725{
15726return f != $ac_func;
15727 ;
15728 return 0;
15729}
15730_ACEOF
15731rm -f conftest.$ac_objext conftest$ac_exeext
15732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
121ce6e5 15740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest$ac_exeext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 eval "$as_ac_var=yes"
15753else
15754 echo "$as_me: failed program was:" >&5
15755sed 's/^/| /' conftest.$ac_ext >&5
15756
15757eval "$as_ac_var=no"
15758fi
15759rm -f conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15761fi
15762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15764if test `eval echo '${'$as_ac_var'}'` = yes; then
15765 cat >>confdefs.h <<_ACEOF
15766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15767_ACEOF
c906108c 15768
c906108c 15769fi
97bf5e38 15770done
c906108c 15771
bec39cab 15772
a3828db0 15773for ac_func in sbrk
b757528f 15774do
bec39cab
AC
15775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776echo "$as_me:$LINENO: checking for $ac_func" >&5
15777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15778if eval "test \"\${$as_ac_var+set}\" = set"; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780else
15781 cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15789#define $ac_func innocuous_$ac_func
15790
b757528f 15791/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15792 which can conflict with char $ac_func (); below.
15793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15794 <limits.h> exists even on freestanding compilers. */
15795
15796#ifdef __STDC__
15797# include <limits.h>
15798#else
15799# include <assert.h>
15800#endif
b757528f 15801
bec39cab 15802#undef $ac_func
b757528f 15803
bec39cab
AC
15804/* Override any gcc2 internal prototype to avoid an error. */
15805#ifdef __cplusplus
15806extern "C"
15807{
15808#endif
15809/* We use char because int might match the return type of a gcc2
15810 builtin and then its argument prototype would still apply. */
15811char $ac_func ();
b757528f
JJ
15812/* The GNU C library defines this for functions which it implements
15813 to always fail with ENOSYS. Some functions are actually named
15814 something starting with __ and the normal name is an alias. */
15815#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15816choke me
15817#else
bec39cab
AC
15818char (*f) () = $ac_func;
15819#endif
15820#ifdef __cplusplus
15821}
b757528f
JJ
15822#endif
15823
bec39cab
AC
15824int
15825main ()
15826{
15827return f != $ac_func;
15828 ;
15829 return 0;
15830}
15831_ACEOF
15832rm -f conftest.$ac_objext conftest$ac_exeext
15833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15834 (eval $ac_link) 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
121ce6e5 15841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; } &&
15847 { ac_try='test -s conftest$ac_exeext'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; }; then
15853 eval "$as_ac_var=yes"
15854else
15855 echo "$as_me: failed program was:" >&5
15856sed 's/^/| /' conftest.$ac_ext >&5
15857
15858eval "$as_ac_var=no"
15859fi
15860rm -f conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862fi
15863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15864echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15865if test `eval echo '${'$as_ac_var'}'` = yes; then
15866 cat >>confdefs.h <<_ACEOF
15867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15868_ACEOF
b757528f 15869
b757528f
JJ
15870fi
15871done
15872
bec39cab 15873
a3828db0
MK
15874
15875for ac_func in setpgid setpgrp
bcb3dc3d 15876do
bec39cab
AC
15877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15878echo "$as_me:$LINENO: checking for $ac_func" >&5
15879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15880if eval "test \"\${$as_ac_var+set}\" = set"; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882else
15883 cat >conftest.$ac_ext <<_ACEOF
15884/* confdefs.h. */
15885_ACEOF
15886cat confdefs.h >>conftest.$ac_ext
15887cat >>conftest.$ac_ext <<_ACEOF
15888/* end confdefs.h. */
15889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15891#define $ac_func innocuous_$ac_func
15892
bcb3dc3d 15893/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15894 which can conflict with char $ac_func (); below.
15895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15896 <limits.h> exists even on freestanding compilers. */
15897
15898#ifdef __STDC__
15899# include <limits.h>
15900#else
15901# include <assert.h>
15902#endif
bcb3dc3d 15903
bec39cab 15904#undef $ac_func
bcb3dc3d 15905
bec39cab
AC
15906/* Override any gcc2 internal prototype to avoid an error. */
15907#ifdef __cplusplus
15908extern "C"
15909{
15910#endif
15911/* We use char because int might match the return type of a gcc2
15912 builtin and then its argument prototype would still apply. */
15913char $ac_func ();
bcb3dc3d
MK
15914/* The GNU C library defines this for functions which it implements
15915 to always fail with ENOSYS. Some functions are actually named
15916 something starting with __ and the normal name is an alias. */
15917#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15918choke me
15919#else
bec39cab
AC
15920char (*f) () = $ac_func;
15921#endif
15922#ifdef __cplusplus
15923}
bcb3dc3d
MK
15924#endif
15925
bec39cab
AC
15926int
15927main ()
15928{
15929return f != $ac_func;
15930 ;
15931 return 0;
15932}
15933_ACEOF
15934rm -f conftest.$ac_objext conftest$ac_exeext
15935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
121ce6e5 15943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest$ac_exeext'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 eval "$as_ac_var=yes"
15956else
15957 echo "$as_me: failed program was:" >&5
15958sed 's/^/| /' conftest.$ac_ext >&5
15959
15960eval "$as_ac_var=no"
15961fi
15962rm -f conftest.err conftest.$ac_objext \
15963 conftest$ac_exeext conftest.$ac_ext
15964fi
15965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15966echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15967if test `eval echo '${'$as_ac_var'}'` = yes; then
15968 cat >>confdefs.h <<_ACEOF
15969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15970_ACEOF
bcb3dc3d 15971
bcb3dc3d
MK
15972fi
15973done
15974
bec39cab 15975
a3828db0
MK
15976
15977
15978for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 15979do
bec39cab
AC
15980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15981echo "$as_me:$LINENO: checking for $ac_func" >&5
15982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15983if eval "test \"\${$as_ac_var+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985else
15986 cat >conftest.$ac_ext <<_ACEOF
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15994#define $ac_func innocuous_$ac_func
15995
8b9cf735 15996/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15997 which can conflict with char $ac_func (); below.
15998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15999 <limits.h> exists even on freestanding compilers. */
16000
16001#ifdef __STDC__
16002# include <limits.h>
16003#else
16004# include <assert.h>
16005#endif
8b9cf735 16006
bec39cab 16007#undef $ac_func
8b9cf735 16008
a3828db0
MK
16009/* Override any gcc2 internal prototype to avoid an error. */
16010#ifdef __cplusplus
16011extern "C"
16012{
16013#endif
16014/* We use char because int might match the return type of a gcc2
16015 builtin and then its argument prototype would still apply. */
16016char $ac_func ();
16017/* The GNU C library defines this for functions which it implements
16018 to always fail with ENOSYS. Some functions are actually named
16019 something starting with __ and the normal name is an alias. */
16020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16021choke me
16022#else
16023char (*f) () = $ac_func;
16024#endif
16025#ifdef __cplusplus
16026}
16027#endif
16028
bec39cab
AC
16029int
16030main ()
16031{
a3828db0 16032return f != $ac_func;
bec39cab
AC
16033 ;
16034 return 0;
16035}
16036_ACEOF
a3828db0
MK
16037rm -f conftest.$ac_objext conftest$ac_exeext
16038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
121ce6e5 16046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
a3828db0 16052 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
a3828db0 16058 eval "$as_ac_var=yes"
086ec9eb 16059else
bec39cab
AC
16060 echo "$as_me: failed program was:" >&5
16061sed 's/^/| /' conftest.$ac_ext >&5
16062
a3828db0
MK
16063eval "$as_ac_var=no"
16064fi
16065rm -f conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16067fi
16068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16069echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16070if test `eval echo '${'$as_ac_var'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16073_ACEOF
16074
086ec9eb 16075fi
a3828db0
MK
16076done
16077
16078
16079for ac_func in socketpair
16080do
16081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16082echo "$as_me:$LINENO: checking for $ac_func" >&5
16083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16084if eval "test \"\${$as_ac_var+set}\" = set"; then
16085 echo $ECHO_N "(cached) $ECHO_C" >&6
16086else
16087 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
a3828db0
MK
16093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16095#define $ac_func innocuous_$ac_func
16096
16097/* System header to define __stub macros and hopefully few prototypes,
16098 which can conflict with char $ac_func (); below.
16099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16100 <limits.h> exists even on freestanding compilers. */
16101
16102#ifdef __STDC__
16103# include <limits.h>
16104#else
16105# include <assert.h>
16106#endif
16107
16108#undef $ac_func
16109
16110/* Override any gcc2 internal prototype to avoid an error. */
16111#ifdef __cplusplus
16112extern "C"
16113{
16114#endif
16115/* We use char because int might match the return type of a gcc2
16116 builtin and then its argument prototype would still apply. */
16117char $ac_func ();
16118/* The GNU C library defines this for functions which it implements
16119 to always fail with ENOSYS. Some functions are actually named
16120 something starting with __ and the normal name is an alias. */
16121#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16122choke me
16123#else
16124char (*f) () = $ac_func;
16125#endif
16126#ifdef __cplusplus
16127}
16128#endif
16129
bec39cab
AC
16130int
16131main ()
16132{
a3828db0 16133return f != $ac_func;
bec39cab
AC
16134 ;
16135 return 0;
16136}
16137_ACEOF
a3828db0
MK
16138rm -f conftest.$ac_objext conftest$ac_exeext
16139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
121ce6e5 16147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; } &&
a3828db0 16153 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
a3828db0 16159 eval "$as_ac_var=yes"
086ec9eb 16160else
bec39cab
AC
16161 echo "$as_me: failed program was:" >&5
16162sed 's/^/| /' conftest.$ac_ext >&5
16163
a3828db0 16164eval "$as_ac_var=no"
086ec9eb 16165fi
a3828db0
MK
16166rm -f conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
086ec9eb 16168fi
a3828db0
MK
16169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16171if test `eval echo '${'$as_ac_var'}'` = yes; then
16172 cat >>confdefs.h <<_ACEOF
16173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16174_ACEOF
086ec9eb
MK
16175
16176fi
a3828db0 16177done
086ec9eb 16178
a3828db0
MK
16179
16180for ac_func in syscall
16181do
16182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16183echo "$as_me:$LINENO: checking for $ac_func" >&5
16184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16185if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16186 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
16187else
16188 cat >conftest.$ac_ext <<_ACEOF
16189/* confdefs.h. */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h. */
a3828db0
MK
16194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16196#define $ac_func innocuous_$ac_func
16197
16198/* System header to define __stub macros and hopefully few prototypes,
16199 which can conflict with char $ac_func (); below.
16200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16201 <limits.h> exists even on freestanding compilers. */
16202
16203#ifdef __STDC__
16204# include <limits.h>
16205#else
16206# include <assert.h>
16207#endif
16208
16209#undef $ac_func
16210
16211/* Override any gcc2 internal prototype to avoid an error. */
16212#ifdef __cplusplus
16213extern "C"
16214{
16215#endif
16216/* We use char because int might match the return type of a gcc2
16217 builtin and then its argument prototype would still apply. */
16218char $ac_func ();
16219/* The GNU C library defines this for functions which it implements
16220 to always fail with ENOSYS. Some functions are actually named
16221 something starting with __ and the normal name is an alias. */
16222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16223choke me
16224#else
16225char (*f) () = $ac_func;
16226#endif
16227#ifdef __cplusplus
16228}
c906108c 16229#endif
97bf5e38 16230
bec39cab
AC
16231int
16232main ()
97bf5e38 16233{
a3828db0 16234return f != $ac_func;
bec39cab
AC
16235 ;
16236 return 0;
97bf5e38 16237}
bec39cab 16238_ACEOF
a3828db0 16239rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 16240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16241 (eval $ac_link) 2>conftest.er1
bec39cab 16242 ac_status=$?
a3828db0
MK
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
bec39cab 16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16247 (exit $ac_status); } &&
121ce6e5 16248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a3828db0
MK
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
a3828db0 16260 eval "$as_ac_var=yes"
c906108c 16261else
a3828db0 16262 echo "$as_me: failed program was:" >&5
bec39cab
AC
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
a3828db0 16265eval "$as_ac_var=no"
97bf5e38 16266fi
a3828db0
MK
16267rm -f conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269fi
16270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16271echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16272if test `eval echo '${'$as_ac_var'}'` = yes; then
16273 cat >>confdefs.h <<_ACEOF
16274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16275_ACEOF
c906108c
SS
16276
16277fi
a3828db0 16278done
c906108c 16279
a3828db0
MK
16280
16281for ac_func in ttrace
16282do
16283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16284echo "$as_me:$LINENO: checking for $ac_func" >&5
16285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16286if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16287 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 16288else
bec39cab
AC
16289 cat >conftest.$ac_ext <<_ACEOF
16290/* confdefs.h. */
16291_ACEOF
16292cat confdefs.h >>conftest.$ac_ext
16293cat >>conftest.$ac_ext <<_ACEOF
16294/* end confdefs.h. */
a3828db0
MK
16295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16297#define $ac_func innocuous_$ac_func
b83266a0 16298
a3828db0
MK
16299/* System header to define __stub macros and hopefully few prototypes,
16300 which can conflict with char $ac_func (); below.
16301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16302 <limits.h> exists even on freestanding compilers. */
16303
16304#ifdef __STDC__
16305# include <limits.h>
16306#else
16307# include <assert.h>
16308#endif
16309
16310#undef $ac_func
16311
16312/* Override any gcc2 internal prototype to avoid an error. */
16313#ifdef __cplusplus
16314extern "C"
16315{
16316#endif
16317/* We use char because int might match the return type of a gcc2
16318 builtin and then its argument prototype would still apply. */
16319char $ac_func ();
16320/* The GNU C library defines this for functions which it implements
16321 to always fail with ENOSYS. Some functions are actually named
16322 something starting with __ and the normal name is an alias. */
16323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16324choke me
16325#else
16326char (*f) () = $ac_func;
16327#endif
16328#ifdef __cplusplus
16329}
16330#endif
97bf5e38 16331
bec39cab
AC
16332int
16333main ()
16334{
a3828db0 16335return f != $ac_func;
bec39cab
AC
16336 ;
16337 return 0;
16338}
16339_ACEOF
a3828db0
MK
16340rm -f conftest.$ac_objext conftest$ac_exeext
16341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
121ce6e5 16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } &&
a3828db0 16355 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
a3828db0 16361 eval "$as_ac_var=yes"
b83266a0 16362else
bec39cab
AC
16363 echo "$as_me: failed program was:" >&5
16364sed 's/^/| /' conftest.$ac_ext >&5
16365
a3828db0 16366eval "$as_ac_var=no"
b83266a0 16367fi
a3828db0
MK
16368rm -f conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
b83266a0 16370fi
a3828db0
MK
16371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16372echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16373if test `eval echo '${'$as_ac_var'}'` = yes; then
16374 cat >>confdefs.h <<_ACEOF
16375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16376_ACEOF
b83266a0 16377
97bf5e38 16378fi
a3828db0 16379done
b83266a0 16380
a3828db0
MK
16381
16382for ac_func in wborder
16383do
16384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385echo "$as_me:$LINENO: checking for $ac_func" >&5
16386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16387if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389else
16390 cat >conftest.$ac_ext <<_ACEOF
16391/* confdefs.h. */
16392_ACEOF
16393cat confdefs.h >>conftest.$ac_ext
16394cat >>conftest.$ac_ext <<_ACEOF
16395/* end confdefs.h. */
a3828db0
MK
16396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16398#define $ac_func innocuous_$ac_func
a4db0f07 16399
a3828db0
MK
16400/* System header to define __stub macros and hopefully few prototypes,
16401 which can conflict with char $ac_func (); below.
16402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16403 <limits.h> exists even on freestanding compilers. */
16404
16405#ifdef __STDC__
16406# include <limits.h>
16407#else
16408# include <assert.h>
16409#endif
16410
16411#undef $ac_func
16412
16413/* Override any gcc2 internal prototype to avoid an error. */
16414#ifdef __cplusplus
16415extern "C"
16416{
16417#endif
16418/* We use char because int might match the return type of a gcc2
16419 builtin and then its argument prototype would still apply. */
16420char $ac_func ();
16421/* The GNU C library defines this for functions which it implements
16422 to always fail with ENOSYS. Some functions are actually named
16423 something starting with __ and the normal name is an alias. */
16424#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16425choke me
16426#else
16427char (*f) () = $ac_func;
16428#endif
16429#ifdef __cplusplus
16430}
16431#endif
97bf5e38 16432
bec39cab
AC
16433int
16434main ()
16435{
a3828db0 16436return f != $ac_func;
bec39cab
AC
16437 ;
16438 return 0;
16439}
16440_ACEOF
a3828db0
MK
16441rm -f conftest.$ac_objext conftest$ac_exeext
16442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16443 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
121ce6e5 16450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } &&
a3828db0 16456 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16459 ac_status=$?
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
a3828db0 16462 eval "$as_ac_var=yes"
a4db0f07 16463else
bec39cab
AC
16464 echo "$as_me: failed program was:" >&5
16465sed 's/^/| /' conftest.$ac_ext >&5
16466
a3828db0 16467eval "$as_ac_var=no"
a4db0f07 16468fi
a3828db0
MK
16469rm -f conftest.err conftest.$ac_objext \
16470 conftest$ac_exeext conftest.$ac_ext
a4db0f07 16471fi
a3828db0
MK
16472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16474if test `eval echo '${'$as_ac_var'}'` = yes; then
16475 cat >>confdefs.h <<_ACEOF
16476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16477_ACEOF
a4db0f07
RH
16478
16479fi
a3828db0 16480done
c906108c 16481
06825bd1 16482
a3828db0
MK
16483# Check the return and argument types of ptrace. No canned test for
16484# this, so roll our own.
16485gdb_ptrace_headers='
16486#if HAVE_SYS_TYPES_H
16487# include <sys/types.h>
16488#endif
16489#if HAVE_SYS_PTRACE_H
16490# include <sys/ptrace.h>
16491#endif
16492#if HAVE_UNISTD_H
16493# include <unistd.h>
16494#endif
16495'
16496# There is no point in checking if we don't have a prototype.
16497echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16498echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16499if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501else
16502 cat >conftest.$ac_ext <<_ACEOF
16503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
a3828db0
MK
16508$gdb_ptrace_headers
16509
bec39cab
AC
16510int
16511main ()
16512{
a3828db0
MK
16513#ifndef ptrace
16514 char *p = (char *) ptrace;
06825bd1 16515#endif
a3828db0 16516
bec39cab
AC
16517 ;
16518 return 0;
16519}
16520_ACEOF
16521rm -f conftest.$ac_objext
16522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16523 (eval $ac_compile) 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
121ce6e5 16530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
a3828db0 16542 ac_cv_have_decl_ptrace=yes
06825bd1 16543else
bec39cab
AC
16544 echo "$as_me: failed program was:" >&5
16545sed 's/^/| /' conftest.$ac_ext >&5
16546
a3828db0 16547ac_cv_have_decl_ptrace=no
06825bd1 16548fi
bec39cab 16549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16550fi
a3828db0
MK
16551echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16552echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16553if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 16554
a3828db0
MK
16555cat >>confdefs.h <<_ACEOF
16556#define HAVE_DECL_PTRACE 1
16557_ACEOF
bec39cab 16558
bec39cab 16559
a3828db0
MK
16560else
16561 cat >>confdefs.h <<_ACEOF
16562#define HAVE_DECL_PTRACE 0
bec39cab 16563_ACEOF
06825bd1 16564
a3828db0
MK
16565
16566 : ${gdb_cv_func_ptrace_ret='int'}
16567 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16568
06825bd1
MK
16569fi
16570
a3828db0
MK
16571
16572# Check return type.
16573echo "$as_me:$LINENO: checking return type of ptrace" >&5
16574echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16575if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577else
16578 cat >conftest.$ac_ext <<_ACEOF
16579/* confdefs.h. */
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h. */
a3828db0 16584$gdb_ptrace_headers
bec39cab
AC
16585int
16586main ()
16587{
a3828db0 16588extern int ptrace ();
bec39cab
AC
16589 ;
16590 return 0;
16591}
16592_ACEOF
16593rm -f conftest.$ac_objext
16594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16595 (eval $ac_compile) 2>conftest.er1
16596 ac_status=$?
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } &&
121ce6e5 16602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest.$ac_objext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
a3828db0 16614 gdb_cv_func_ptrace_ret='int'
70f9f479 16615else
bec39cab
AC
16616 echo "$as_me: failed program was:" >&5
16617sed 's/^/| /' conftest.$ac_ext >&5
16618
a3828db0 16619gdb_cv_func_ptrace_ret='long'
70f9f479 16620fi
bec39cab 16621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16622fi
a3828db0
MK
16623echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16624echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 16625
a3828db0
MK
16626cat >>confdefs.h <<_ACEOF
16627#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 16628_ACEOF
70f9f479 16629
a3828db0
MK
16630# Check argument types.
16631echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16632echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16633if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635else
a3828db0
MK
16636
16637for gdb_arg1 in 'int' 'long'; do
16638 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16639 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16640 for gdb_arg4 in 'int' 'long'; do
16641 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
a3828db0 16647$gdb_ptrace_headers
bec39cab
AC
16648int
16649main ()
16650{
a3828db0
MK
16651
16652extern $gdb_cv_func_ptrace_ret
16653 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16654
bec39cab
AC
16655 ;
16656 return 0;
16657}
16658_ACEOF
16659rm -f conftest.$ac_objext
16660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16661 (eval $ac_compile) 2>conftest.er1
16662 ac_status=$?
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
121ce6e5 16668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
a3828db0
MK
16680 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16681 break 4;
5c7f2947 16682else
bec39cab
AC
16683 echo "$as_me: failed program was:" >&5
16684sed 's/^/| /' conftest.$ac_ext >&5
16685
5c7f2947 16686fi
bec39cab 16687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16688 for gdb_arg5 in 'int *' 'int' 'long'; do
16689 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16690/* confdefs.h. */
16691_ACEOF
16692cat confdefs.h >>conftest.$ac_ext
16693cat >>conftest.$ac_ext <<_ACEOF
16694/* end confdefs.h. */
a3828db0 16695$gdb_ptrace_headers
bec39cab
AC
16696int
16697main ()
16698{
a3828db0
MK
16699
16700extern $gdb_cv_func_ptrace_ret
16701 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16702
bec39cab
AC
16703 ;
16704 return 0;
16705}
16706_ACEOF
16707rm -f conftest.$ac_objext
16708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16709 (eval $ac_compile) 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
121ce6e5 16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } &&
16722 { ac_try='test -s conftest.$ac_objext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
a3828db0
MK
16728
16729gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16730 break 5;
78434e59 16731else
bec39cab
AC
16732 echo "$as_me: failed program was:" >&5
16733sed 's/^/| /' conftest.$ac_ext >&5
16734
78434e59 16735fi
bec39cab 16736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16737 done
16738 done
16739 done
16740 done
16741done
16742# Provide a safe default value.
16743: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16744
78434e59 16745fi
a3828db0
MK
16746echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16747echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16748ac_save_IFS=$IFS; IFS=','
16749set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16750IFS=$ac_save_IFS
16751shift
bec39cab 16752
a3828db0
MK
16753cat >>confdefs.h <<_ACEOF
16754#define PTRACE_TYPE_ARG3 $3
16755_ACEOF
16756
16757if test -n "$5"; then
16758
16759cat >>confdefs.h <<_ACEOF
16760#define PTRACE_TYPE_ARG5 $5
bec39cab 16761_ACEOF
78434e59
MK
16762
16763fi
16764
a3828db0
MK
16765if test "$cross_compiling" = no; then
16766 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16767echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16768if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16769 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16770else
16771 if test "$cross_compiling" = yes; then
16772 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16773echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16774 { (exit 1); exit 1; }; }
bec39cab
AC
16775else
16776 cat >conftest.$ac_ext <<_ACEOF
16777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
a3828db0
MK
16782#if HAVE_UNISTD_H
16783# include <unistd.h>
16784#endif
16785
bec39cab
AC
16786int
16787main ()
16788{
a3828db0
MK
16789/* If this system has a BSD-style setpgrp which takes arguments,
16790 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16791 exit successfully. */
16792 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
16793 ;
16794 return 0;
16795}
16796_ACEOF
a3828db0
MK
16797rm -f conftest$ac_exeext
16798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16799 (eval $ac_link) 2>&5
bec39cab
AC
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
a3828db0 16808 ac_cv_func_setpgrp_void=no
c906108c 16809else
a3828db0
MK
16810 echo "$as_me: program exited with status $ac_status" >&5
16811echo "$as_me: failed program was:" >&5
bec39cab
AC
16812sed 's/^/| /' conftest.$ac_ext >&5
16813
a3828db0
MK
16814( exit $ac_status )
16815ac_cv_func_setpgrp_void=yes
c906108c 16816fi
a3828db0 16817rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 16818fi
a3828db0
MK
16819fi
16820echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16821echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16822if test $ac_cv_func_setpgrp_void = yes; then
16823
16824cat >>confdefs.h <<\_ACEOF
16825#define SETPGRP_VOID 1
bec39cab 16826_ACEOF
97bf5e38
MK
16827
16828fi
a3828db0
MK
16829
16830else
16831 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16832echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16833if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16834 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16835else
bec39cab
AC
16836 cat >conftest.$ac_ext <<_ACEOF
16837/* confdefs.h. */
16838_ACEOF
16839cat confdefs.h >>conftest.$ac_ext
16840cat >>conftest.$ac_ext <<_ACEOF
16841/* end confdefs.h. */
a3828db0
MK
16842
16843#include <unistd.h>
16844
bec39cab
AC
16845int
16846main ()
16847{
a3828db0
MK
16848
16849 if (setpgrp(1,1) == -1)
16850 exit (0);
16851 else
16852 exit (1);
16853
bec39cab
AC
16854 ;
16855 return 0;
16856}
16857_ACEOF
16858rm -f conftest.$ac_objext
16859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16860 (eval $ac_compile) 2>conftest.er1
16861 ac_status=$?
16862 grep -v '^ *+' conftest.er1 >conftest.err
16863 rm -f conftest.er1
16864 cat conftest.err >&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
121ce6e5 16867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; } &&
16873 { ac_try='test -s conftest.$ac_objext'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
a3828db0 16879 ac_cv_func_setpgrp_void=no
c906108c 16880else
bec39cab
AC
16881 echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
a3828db0 16884ac_cv_func_setpgrp_void=yes
c906108c 16885fi
bec39cab 16886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16887fi
a3828db0
MK
16888echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16889echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16890if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 16891 cat >>confdefs.h <<\_ACEOF
a3828db0 16892#define SETPGRP_VOID 1
bec39cab 16893_ACEOF
c3f6f71d 16894
a3828db0 16895fi
c906108c
SS
16896fi
16897
a3828db0
MK
16898# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16899# since sigsetjmp might only be defined as a macro.
16900echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16901echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16902if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16904else
16905 cat >conftest.$ac_ext <<_ACEOF
16906/* confdefs.h. */
16907_ACEOF
16908cat confdefs.h >>conftest.$ac_ext
16909cat >>conftest.$ac_ext <<_ACEOF
16910/* end confdefs.h. */
a3828db0
MK
16911
16912#include <setjmp.h>
16913
bec39cab
AC
16914int
16915main ()
16916{
a3828db0 16917sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
16918 ;
16919 return 0;
16920}
16921_ACEOF
16922rm -f conftest.$ac_objext
16923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16924 (eval $ac_compile) 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
121ce6e5 16931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
a3828db0 16943 gdb_cv_func_sigsetjmp=yes
c906108c 16944else
bec39cab
AC
16945 echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
a3828db0 16948gdb_cv_func_sigsetjmp=no
c906108c 16949fi
bec39cab 16950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16951fi
a3828db0
MK
16952echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16953echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16954if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 16955
a3828db0
MK
16956cat >>confdefs.h <<\_ACEOF
16957#define HAVE_SIGSETJMP 1
bec39cab 16958_ACEOF
c906108c 16959
97bf5e38 16960fi
c906108c 16961
a3828db0
MK
16962# Assume we'll default to using the included libiberty regex.
16963gdb_use_included_regex=yes
16964
16965# However, if the system regex is GNU regex, then default to *not*
16966# using the included regex.
16967echo "$as_me:$LINENO: checking for GNU regex" >&5
16968echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16969if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16971else
16972 cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
a3828db0 16978#include <gnu-versions.h>
bec39cab
AC
16979int
16980main ()
16981{
a3828db0
MK
16982#define REGEX_INTERFACE_VERSION 1
16983#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16984# error "Version mismatch"
16985#endif
bec39cab
AC
16986 ;
16987 return 0;
16988}
16989_ACEOF
16990rm -f conftest.$ac_objext
16991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16992 (eval $ac_compile) 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
121ce6e5 16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest.$ac_objext'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
a3828db0 17011 gdb_cv_have_gnu_regex=yes
c906108c 17012else
bec39cab
AC
17013 echo "$as_me: failed program was:" >&5
17014sed 's/^/| /' conftest.$ac_ext >&5
17015
a3828db0 17016gdb_cv_have_gnu_regex=no
c906108c 17017fi
bec39cab 17018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17019fi
a3828db0
MK
17020echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17021echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17022if test $gdb_cv_have_gnu_regex = yes; then
17023 gdb_use_included_regex=no
17024fi
c906108c 17025
a3828db0
MK
17026
17027# Check whether --with-included-regex or --without-included-regex was given.
17028if test "${with_included_regex+set}" = set; then
17029 withval="$with_included_regex"
17030 gdb_with_regex=$withval
17031else
17032 gdb_with_regex=$gdb_use_included_regex
17033fi;
17034if test "$gdb_with_regex" = yes; then
17035
17036cat >>confdefs.h <<\_ACEOF
17037#define USE_INCLUDED_REGEX 1
bec39cab 17038_ACEOF
c906108c 17039
97bf5e38 17040fi
c906108c 17041
5c45e068
MK
17042# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17043echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17044echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17045if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048 cat >conftest.$ac_ext <<_ACEOF
17049/* confdefs.h. */
17050_ACEOF
17051cat confdefs.h >>conftest.$ac_ext
17052cat >>conftest.$ac_ext <<_ACEOF
17053/* end confdefs.h. */
a3828db0
MK
17054#include <sys/param.h>
17055#include <sys/proc.h>
5c45e068
MK
17056
17057
bec39cab
AC
17058int
17059main ()
17060{
5c45e068
MK
17061static struct thread ac_aggr;
17062if (ac_aggr.td_pcb)
17063return 0;
bec39cab
AC
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest.$ac_objext
17069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17070 (eval $ac_compile) 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
121ce6e5 17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest.$ac_objext'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
5c45e068 17089 ac_cv_member_struct_thread_td_pcb=yes
c906108c 17090else
bec39cab
AC
17091 echo "$as_me: failed program was:" >&5
17092sed 's/^/| /' conftest.$ac_ext >&5
17093
5c45e068
MK
17094cat >conftest.$ac_ext <<_ACEOF
17095/* confdefs.h. */
17096_ACEOF
17097cat confdefs.h >>conftest.$ac_ext
17098cat >>conftest.$ac_ext <<_ACEOF
17099/* end confdefs.h. */
17100#include <sys/param.h>
17101#include <sys/proc.h>
17102
17103
17104int
17105main ()
17106{
17107static struct thread ac_aggr;
17108if (sizeof ac_aggr.td_pcb)
17109return 0;
17110 ;
17111 return 0;
17112}
17113_ACEOF
17114rm -f conftest.$ac_objext
17115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17116 (eval $ac_compile) 2>conftest.er1
17117 ac_status=$?
17118 grep -v '^ *+' conftest.er1 >conftest.err
17119 rm -f conftest.er1
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } &&
121ce6e5 17123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5c45e068
MK
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest.$ac_objext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_member_struct_thread_td_pcb=yes
17136else
17137 echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
17140ac_cv_member_struct_thread_td_pcb=no
17141fi
17142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17143fi
bec39cab 17144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17145fi
5c45e068
MK
17146echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17147echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17148if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 17149
5c45e068 17150cat >>confdefs.h <<_ACEOF
a3828db0 17151#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 17152_ACEOF
c906108c 17153
5c45e068 17154
97bf5e38 17155fi
c906108c 17156
5c45e068 17157
a3828db0
MK
17158# See if <sys/lwp.h> defines `struct lwp`.
17159echo "$as_me:$LINENO: checking for struct lwp" >&5
17160echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17161if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17163else
17164 cat >conftest.$ac_ext <<_ACEOF
17165/* confdefs.h. */
17166_ACEOF
17167cat confdefs.h >>conftest.$ac_ext
17168cat >>conftest.$ac_ext <<_ACEOF
17169/* end confdefs.h. */
a3828db0
MK
17170#include <sys/param.h>
17171#include <sys/lwp.h>
bec39cab
AC
17172int
17173main ()
17174{
a3828db0 17175struct lwp l;
bec39cab
AC
17176 ;
17177 return 0;
17178}
17179_ACEOF
17180rm -f conftest.$ac_objext
17181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
121ce6e5 17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; } &&
17195 { ac_try='test -s conftest.$ac_objext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
a3828db0 17201 gdb_cv_struct_lwp=yes
c906108c 17202else
bec39cab
AC
17203 echo "$as_me: failed program was:" >&5
17204sed 's/^/| /' conftest.$ac_ext >&5
17205
a3828db0 17206gdb_cv_struct_lwp=no
c906108c 17207fi
bec39cab 17208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17209fi
a3828db0
MK
17210echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17211echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17212if test $gdb_cv_struct_lwp = yes; then
c906108c 17213
a3828db0
MK
17214cat >>confdefs.h <<\_ACEOF
17215#define HAVE_STRUCT_LWP 1
bec39cab 17216_ACEOF
c906108c 17217
97bf5e38 17218fi
c906108c 17219
a3828db0
MK
17220# See if <machine/reg.h> degines `struct reg'.
17221echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17222echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17223if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
a3828db0
MK
17232#include <sys/types.h>
17233#include <machine/reg.h>
bec39cab
AC
17234int
17235main ()
17236{
a3828db0 17237struct reg r;
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); } &&
121ce6e5 17251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
a3828db0 17263 gdb_cv_struct_reg=yes
27ca5dad 17264else
bec39cab
AC
17265 echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
a3828db0 17268gdb_cv_struct_reg=no
27ca5dad 17269fi
bec39cab 17270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 17271fi
a3828db0
MK
17272echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17273echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17274if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
17275
17276cat >>confdefs.h <<\_ACEOF
a3828db0 17277#define HAVE_STRUCT_REG 1
bec39cab 17278_ACEOF
27ca5dad
MC
17279
17280fi
97bf5e38 17281
a3828db0
MK
17282# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17283# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
5c45e068
MK
17284echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17285echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17286if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 17287 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 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 <machine/reg.h>
5c45e068
MK
17296
17297int
17298main ()
17299{
17300static struct reg ac_aggr;
17301if (ac_aggr.r_fs)
17302return 0;
17303 ;
17304 return 0;
17305}
17306_ACEOF
17307rm -f conftest.$ac_objext
17308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17309 (eval $ac_compile) 2>conftest.er1
17310 ac_status=$?
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
121ce6e5 17316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5c45e068
MK
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 ac_cv_member_struct_reg_r_fs=yes
17329else
17330 echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333cat >conftest.$ac_ext <<_ACEOF
17334/* confdefs.h. */
17335_ACEOF
17336cat confdefs.h >>conftest.$ac_ext
17337cat >>conftest.$ac_ext <<_ACEOF
17338/* end confdefs.h. */
17339#include <machine/reg.h>
17340
bec39cab
AC
17341int
17342main ()
17343{
5c45e068
MK
17344static struct reg ac_aggr;
17345if (sizeof ac_aggr.r_fs)
17346return 0;
bec39cab
AC
17347 ;
17348 return 0;
17349}
17350_ACEOF
17351rm -f conftest.$ac_objext
17352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17353 (eval $ac_compile) 2>conftest.er1
17354 ac_status=$?
17355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
121ce6e5 17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
5c45e068 17372 ac_cv_member_struct_reg_r_fs=yes
3862412b 17373else
bec39cab
AC
17374 echo "$as_me: failed program was:" >&5
17375sed 's/^/| /' conftest.$ac_ext >&5
17376
5c45e068 17377ac_cv_member_struct_reg_r_fs=no
3862412b 17378fi
bec39cab 17379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17380fi
5c45e068
MK
17381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17382fi
17383echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17384echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17385if test $ac_cv_member_struct_reg_r_fs = yes; then
17386
17387cat >>confdefs.h <<_ACEOF
a3828db0 17388#define HAVE_STRUCT_REG_R_FS 1
bec39cab 17389_ACEOF
3862412b 17390
5c45e068 17391
97bf5e38 17392fi
5c45e068
MK
17393echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17394echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17395if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 17396 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17397else
bec39cab
AC
17398 cat >conftest.$ac_ext <<_ACEOF
17399/* confdefs.h. */
17400_ACEOF
17401cat confdefs.h >>conftest.$ac_ext
17402cat >>conftest.$ac_ext <<_ACEOF
17403/* end confdefs.h. */
a3828db0 17404#include <machine/reg.h>
5c45e068 17405
bec39cab
AC
17406int
17407main ()
17408{
5c45e068
MK
17409static struct reg ac_aggr;
17410if (ac_aggr.r_gs)
17411return 0;
bec39cab
AC
17412 ;
17413 return 0;
17414}
17415_ACEOF
17416rm -f conftest.$ac_objext
17417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418 (eval $ac_compile) 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
121ce6e5 17425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
5c45e068 17437 ac_cv_member_struct_reg_r_gs=yes
3862412b 17438else
bec39cab
AC
17439 echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
5c45e068
MK
17442cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448#include <machine/reg.h>
17449
17450int
17451main ()
17452{
17453static struct reg ac_aggr;
17454if (sizeof ac_aggr.r_gs)
17455return 0;
17456 ;
17457 return 0;
17458}
17459_ACEOF
17460rm -f conftest.$ac_objext
17461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17462 (eval $ac_compile) 2>conftest.er1
17463 ac_status=$?
17464 grep -v '^ *+' conftest.er1 >conftest.err
17465 rm -f conftest.er1
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
121ce6e5 17469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5c45e068
MK
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } &&
17475 { ac_try='test -s conftest.$ac_objext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_member_struct_reg_r_gs=yes
17482else
17483 echo "$as_me: failed program was:" >&5
17484sed 's/^/| /' conftest.$ac_ext >&5
17485
17486ac_cv_member_struct_reg_r_gs=no
3862412b 17487fi
bec39cab 17488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17489fi
5c45e068
MK
17490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17491fi
17492echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17493echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17494if test $ac_cv_member_struct_reg_r_gs = yes; then
17495
17496cat >>confdefs.h <<_ACEOF
a3828db0 17497#define HAVE_STRUCT_REG_R_GS 1
bec39cab 17498_ACEOF
3862412b 17499
5c45e068 17500
97bf5e38 17501fi
3862412b 17502
5c45e068 17503
a3828db0
MK
17504# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17505echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17506echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17507if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 17508 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17509else
bec39cab
AC
17510 cat >conftest.$ac_ext <<_ACEOF
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
a3828db0 17516#include <sys/ptrace.h>
bec39cab
AC
17517int
17518main ()
17519{
a3828db0 17520PTRACE_GETREGS;
bec39cab
AC
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext
17526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17527 (eval $ac_compile) 2>conftest.er1
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
121ce6e5 17534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest.$ac_objext'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
a3828db0 17546 gdb_cv_have_ptrace_getregs=yes
451928c5 17547else
bec39cab
AC
17548 echo "$as_me: failed program was:" >&5
17549sed 's/^/| /' conftest.$ac_ext >&5
17550
a3828db0 17551gdb_cv_have_ptrace_getregs=no
451928c5 17552fi
bec39cab 17553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17554fi
17555
a3828db0
MK
17556echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17557echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17558if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
17559
17560cat >>confdefs.h <<\_ACEOF
a3828db0 17561#define HAVE_PTRACE_GETREGS 1
bec39cab 17562_ACEOF
451928c5 17563
97bf5e38 17564fi
451928c5 17565
a3828db0
MK
17566# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17567echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17568echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17569if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 17570 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17571else
bec39cab
AC
17572 cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
a3828db0 17578#include <sys/ptrace.h>
bec39cab
AC
17579int
17580main ()
17581{
a3828db0 17582PTRACE_GETFPXREGS;
bec39cab
AC
17583 ;
17584 return 0;
17585}
17586_ACEOF
17587rm -f conftest.$ac_objext
17588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17589 (eval $ac_compile) 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
121ce6e5 17596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
a3828db0 17608 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 17609else
bec39cab
AC
17610 echo "$as_me: failed program was:" >&5
17611sed 's/^/| /' conftest.$ac_ext >&5
17612
a3828db0 17613gdb_cv_have_ptrace_getfpxregs=no
451928c5 17614fi
bec39cab 17615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17616fi
17617
a3828db0
MK
17618echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17619echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17620if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
17621
17622cat >>confdefs.h <<\_ACEOF
a3828db0 17623#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 17624_ACEOF
451928c5 17625
97bf5e38 17626fi
451928c5 17627
a3828db0
MK
17628# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17629echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17630echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17631if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 17632 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17633else
bec39cab
AC
17634 cat >conftest.$ac_ext <<_ACEOF
17635/* confdefs.h. */
17636_ACEOF
17637cat confdefs.h >>conftest.$ac_ext
17638cat >>conftest.$ac_ext <<_ACEOF
17639/* end confdefs.h. */
a3828db0
MK
17640#include <sys/types.h>
17641#include <sys/ptrace.h>
bec39cab
AC
17642int
17643main ()
17644{
a3828db0 17645PT_GETDBREGS;
bec39cab
AC
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest.$ac_objext
17651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652 (eval $ac_compile) 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
121ce6e5 17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest.$ac_objext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
a3828db0 17671 gdb_cv_have_pt_getdbregs=yes
3862412b 17672else
bec39cab
AC
17673 echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
a3828db0 17676gdb_cv_have_pt_getdbregs=no
3862412b 17677fi
bec39cab 17678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17679fi
17680
a3828db0
MK
17681echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17682echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17683if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
17684
17685cat >>confdefs.h <<\_ACEOF
a3828db0 17686#define HAVE_PT_GETDBREGS 1
bec39cab 17687_ACEOF
3862412b 17688
97bf5e38 17689fi
3862412b 17690
a3828db0
MK
17691# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17692echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17693echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17694if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 17695 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17696else
bec39cab
AC
17697 cat >conftest.$ac_ext <<_ACEOF
17698/* confdefs.h. */
17699_ACEOF
17700cat confdefs.h >>conftest.$ac_ext
17701cat >>conftest.$ac_ext <<_ACEOF
17702/* end confdefs.h. */
a3828db0
MK
17703#include <sys/types.h>
17704#include <sys/ptrace.h>
bec39cab
AC
17705int
17706main ()
17707{
a3828db0 17708PT_GETXMMREGS;
bec39cab
AC
17709 ;
17710 return 0;
17711}
17712_ACEOF
17713rm -f conftest.$ac_objext
17714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17715 (eval $ac_compile) 2>conftest.er1
17716 ac_status=$?
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
121ce6e5 17722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
a3828db0 17734 gdb_cv_have_pt_getxmmregs=yes
3862412b 17735else
bec39cab
AC
17736 echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
a3828db0 17739gdb_cv_have_pt_getxmmregs=no
3862412b 17740fi
bec39cab 17741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17742fi
17743
a3828db0
MK
17744echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17745echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17746if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
17747
17748cat >>confdefs.h <<\_ACEOF
a3828db0 17749#define HAVE_PT_GETXMMREGS 1
bec39cab 17750_ACEOF
3862412b 17751
97bf5e38 17752fi
3862412b 17753
97bf5e38
MK
17754# If we are configured native on GNU/Linux, work around problems with
17755# sys/procfs.h
17756# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17757
17758if test "${target}" = "${host}"; then
17759 case "${host}" in
17760 i[3456]86-*-linux*)
60ca704f
SE
17761
17762cat >>confdefs.h <<\_ACEOF
97bf5e38 17763#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17764_ACEOF
97bf5e38 17765
60ca704f
SE
17766
17767cat >>confdefs.h <<\_ACEOF
97bf5e38 17768#define sys_quotactl 1
bec39cab 17769_ACEOF
97bf5e38
MK
17770
17771 ;;
97bf5e38 17772 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
17773
17774cat >>confdefs.h <<\_ACEOF
97bf5e38 17775#define NEW_PROC_API 1
bec39cab 17776_ACEOF
97bf5e38
MK
17777
17778 ;;
0bbc026e 17779 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
17780
17781cat >>confdefs.h <<\_ACEOF
97bf5e38 17782#define NEW_PROC_API 1
bec39cab 17783_ACEOF
c960c18f
AC
17784
17785 ;;
17786 mips-sgi-irix5*)
17787 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
17788
17789cat >>confdefs.h <<\_ACEOF
c960c18f 17790#define _KMEMUSER 1
bec39cab 17791_ACEOF
97bf5e38
MK
17792
17793 ;;
17794 esac
17795fi
17796
17797if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17798 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17799echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17800 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802else
17803 cat >conftest.$ac_ext <<_ACEOF
17804/* confdefs.h. */
17805_ACEOF
17806cat confdefs.h >>conftest.$ac_ext
17807cat >>conftest.$ac_ext <<_ACEOF
17808/* end confdefs.h. */
596c9d4b
KB
17809
17810#define _SYSCALL32
17811#include <sys/procfs.h>
bec39cab
AC
17812int
17813main ()
17814{
97bf5e38 17815pstatus_t avar
bec39cab
AC
17816 ;
17817 return 0;
17818}
17819_ACEOF
17820rm -f conftest.$ac_objext
17821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822 (eval $ac_compile) 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
121ce6e5 17829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
97bf5e38 17841 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17842else
bec39cab
AC
17843 echo "$as_me: failed program was:" >&5
17844sed 's/^/| /' conftest.$ac_ext >&5
17845
17846bfd_cv_have_sys_procfs_type_pstatus_t=no
17847
596c9d4b 17848fi
bec39cab 17849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17850fi
17851
97bf5e38 17852 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17853
17854cat >>confdefs.h <<\_ACEOF
97bf5e38 17855#define HAVE_PSTATUS_T 1
bec39cab 17856_ACEOF
596c9d4b
KB
17857
17858 fi
bec39cab
AC
17859 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17860echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17861
bec39cab
AC
17862 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17863echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17864 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17866else
bec39cab
AC
17867 cat >conftest.$ac_ext <<_ACEOF
17868/* confdefs.h. */
17869_ACEOF
17870cat confdefs.h >>conftest.$ac_ext
17871cat >>conftest.$ac_ext <<_ACEOF
17872/* end confdefs.h. */
596c9d4b
KB
17873
17874#define _SYSCALL32
17875#include <sys/procfs.h>
bec39cab
AC
17876int
17877main ()
17878{
97bf5e38 17879prrun_t avar
bec39cab
AC
17880 ;
17881 return 0;
17882}
17883_ACEOF
17884rm -f conftest.$ac_objext
17885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17886 (eval $ac_compile) 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
121ce6e5 17893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest.$ac_objext'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
97bf5e38 17905 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 17906else
bec39cab
AC
17907 echo "$as_me: failed program was:" >&5
17908sed 's/^/| /' conftest.$ac_ext >&5
17909
17910bfd_cv_have_sys_procfs_type_prrun_t=no
17911
596c9d4b 17912fi
bec39cab 17913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17914fi
17915
97bf5e38 17916 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
17917
17918cat >>confdefs.h <<\_ACEOF
97bf5e38 17919#define HAVE_PRRUN_T 1
bec39cab 17920_ACEOF
596c9d4b
KB
17921
17922 fi
bec39cab
AC
17923 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17924echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 17925
bec39cab
AC
17926 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17927echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17928 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17930else
bec39cab
AC
17931 cat >conftest.$ac_ext <<_ACEOF
17932/* confdefs.h. */
17933_ACEOF
17934cat confdefs.h >>conftest.$ac_ext
17935cat >>conftest.$ac_ext <<_ACEOF
17936/* end confdefs.h. */
596c9d4b
KB
17937
17938#define _SYSCALL32
17939#include <sys/procfs.h>
bec39cab
AC
17940int
17941main ()
17942{
97bf5e38 17943gregset_t avar
bec39cab
AC
17944 ;
17945 return 0;
17946}
17947_ACEOF
17948rm -f conftest.$ac_objext
17949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17950 (eval $ac_compile) 2>conftest.er1
17951 ac_status=$?
17952 grep -v '^ *+' conftest.er1 >conftest.err
17953 rm -f conftest.er1
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } &&
121ce6e5 17957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest.$ac_objext'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
97bf5e38 17969 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 17970else
bec39cab
AC
17971 echo "$as_me: failed program was:" >&5
17972sed 's/^/| /' conftest.$ac_ext >&5
17973
17974bfd_cv_have_sys_procfs_type_gregset_t=no
17975
596c9d4b 17976fi
bec39cab 17977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17978fi
17979
97bf5e38 17980 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
17981
17982cat >>confdefs.h <<\_ACEOF
97bf5e38 17983#define HAVE_GREGSET_T 1
bec39cab 17984_ACEOF
596c9d4b
KB
17985
17986 fi
bec39cab
AC
17987 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17988echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 17989
bec39cab
AC
17990 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17991echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17992 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 17994else
bec39cab
AC
17995 cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
97bf5e38
MK
18001
18002#define _SYSCALL32
d84dd0c5 18003#include <sys/procfs.h>
bec39cab
AC
18004int
18005main ()
18006{
97bf5e38 18007fpregset_t avar
bec39cab
AC
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext
18013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18014 (eval $ac_compile) 2>conftest.er1
18015 ac_status=$?
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
121ce6e5 18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; } &&
18027 { ac_try='test -s conftest.$ac_objext'
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
97bf5e38 18033 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 18034else
bec39cab
AC
18035 echo "$as_me: failed program was:" >&5
18036sed 's/^/| /' conftest.$ac_ext >&5
18037
18038bfd_cv_have_sys_procfs_type_fpregset_t=no
18039
d84dd0c5 18040fi
bec39cab 18041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
18042fi
18043
97bf5e38 18044 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
18045
18046cat >>confdefs.h <<\_ACEOF
97bf5e38 18047#define HAVE_FPREGSET_T 1
bec39cab 18048_ACEOF
d84dd0c5 18049
97bf5e38 18050 fi
bec39cab
AC
18051 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18052echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 18053
bec39cab
AC
18054 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18055echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18056 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18058else
bec39cab
AC
18059 cat >conftest.$ac_ext <<_ACEOF
18060/* confdefs.h. */
18061_ACEOF
18062cat confdefs.h >>conftest.$ac_ext
18063cat >>conftest.$ac_ext <<_ACEOF
18064/* end confdefs.h. */
c906108c 18065
97bf5e38
MK
18066#define _SYSCALL32
18067#include <sys/procfs.h>
bec39cab
AC
18068int
18069main ()
18070{
97bf5e38 18071prgregset_t avar
bec39cab
AC
18072 ;
18073 return 0;
18074}
18075_ACEOF
18076rm -f conftest.$ac_objext
18077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18078 (eval $ac_compile) 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
121ce6e5 18085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest.$ac_objext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
97bf5e38 18097 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 18098else
bec39cab
AC
18099 echo "$as_me: failed program was:" >&5
18100sed 's/^/| /' conftest.$ac_ext >&5
18101
18102bfd_cv_have_sys_procfs_type_prgregset_t=no
18103
c906108c 18104fi
bec39cab 18105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18106fi
18107
97bf5e38 18108 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
18109
18110cat >>confdefs.h <<\_ACEOF
97bf5e38 18111#define HAVE_PRGREGSET_T 1
bec39cab 18112_ACEOF
c906108c 18113
97bf5e38 18114 fi
bec39cab
AC
18115 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18116echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 18117
bec39cab
AC
18118 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18119echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18120 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18122else
bec39cab
AC
18123 cat >conftest.$ac_ext <<_ACEOF
18124/* confdefs.h. */
18125_ACEOF
18126cat confdefs.h >>conftest.$ac_ext
18127cat >>conftest.$ac_ext <<_ACEOF
18128/* end confdefs.h. */
97bf5e38
MK
18129
18130#define _SYSCALL32
18131#include <sys/procfs.h>
bec39cab
AC
18132int
18133main ()
18134{
97bf5e38 18135prfpregset_t avar
bec39cab
AC
18136 ;
18137 return 0;
18138}
18139_ACEOF
18140rm -f conftest.$ac_objext
18141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18142 (eval $ac_compile) 2>conftest.er1
18143 ac_status=$?
18144 grep -v '^ *+' conftest.er1 >conftest.err
18145 rm -f conftest.er1
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
121ce6e5 18149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest.$ac_objext'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
97bf5e38 18161 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 18162else
bec39cab
AC
18163 echo "$as_me: failed program was:" >&5
18164sed 's/^/| /' conftest.$ac_ext >&5
18165
18166bfd_cv_have_sys_procfs_type_prfpregset_t=no
18167
d45fe813 18168fi
bec39cab 18169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18170fi
18171
97bf5e38 18172 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18173
18174cat >>confdefs.h <<\_ACEOF
97bf5e38 18175#define HAVE_PRFPREGSET_T 1
bec39cab 18176_ACEOF
d45fe813 18177
97bf5e38 18178 fi
bec39cab
AC
18179 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18180echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 18181
bec39cab
AC
18182 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18183echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18184 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18186else
bec39cab
AC
18187 cat >conftest.$ac_ext <<_ACEOF
18188/* confdefs.h. */
18189_ACEOF
18190cat confdefs.h >>conftest.$ac_ext
18191cat >>conftest.$ac_ext <<_ACEOF
18192/* end confdefs.h. */
97bf5e38
MK
18193
18194#define _SYSCALL32
18195#include <sys/procfs.h>
bec39cab
AC
18196int
18197main ()
18198{
97bf5e38 18199prgregset32_t avar
bec39cab
AC
18200 ;
18201 return 0;
18202}
18203_ACEOF
18204rm -f conftest.$ac_objext
18205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18206 (eval $ac_compile) 2>conftest.er1
18207 ac_status=$?
18208 grep -v '^ *+' conftest.er1 >conftest.err
18209 rm -f conftest.er1
18210 cat conftest.err >&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } &&
121ce6e5 18213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; } &&
18219 { ac_try='test -s conftest.$ac_objext'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
97bf5e38 18225 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 18226else
bec39cab
AC
18227 echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230bfd_cv_have_sys_procfs_type_prgregset32_t=no
18231
d45fe813 18232fi
bec39cab 18233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18234fi
18235
97bf5e38 18236 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18237
18238cat >>confdefs.h <<\_ACEOF
97bf5e38 18239#define HAVE_PRGREGSET32_T 1
bec39cab 18240_ACEOF
d45fe813 18241
97bf5e38 18242 fi
bec39cab
AC
18243 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18244echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18245
bec39cab
AC
18246 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18247echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18248 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18250else
bec39cab
AC
18251 cat >conftest.$ac_ext <<_ACEOF
18252/* confdefs.h. */
18253_ACEOF
18254cat confdefs.h >>conftest.$ac_ext
18255cat >>conftest.$ac_ext <<_ACEOF
18256/* end confdefs.h. */
97bf5e38
MK
18257
18258#define _SYSCALL32
18259#include <sys/procfs.h>
bec39cab
AC
18260int
18261main ()
18262{
97bf5e38 18263prfpregset32_t avar
bec39cab
AC
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268rm -f conftest.$ac_objext
18269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18270 (eval $ac_compile) 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
121ce6e5 18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
97bf5e38 18289 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18290else
bec39cab
AC
18291 echo "$as_me: failed program was:" >&5
18292sed 's/^/| /' conftest.$ac_ext >&5
18293
18294bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18295
d45fe813 18296fi
bec39cab 18297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18298fi
18299
97bf5e38 18300 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18301
18302cat >>confdefs.h <<\_ACEOF
97bf5e38 18303#define HAVE_PRFPREGSET32_T 1
bec39cab 18304_ACEOF
d45fe813 18305
97bf5e38 18306 fi
bec39cab
AC
18307 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18308echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18309
bec39cab
AC
18310 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18311echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18312 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18313 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18314else
bec39cab
AC
18315 cat >conftest.$ac_ext <<_ACEOF
18316/* confdefs.h. */
18317_ACEOF
18318cat confdefs.h >>conftest.$ac_ext
18319cat >>conftest.$ac_ext <<_ACEOF
18320/* end confdefs.h. */
97bf5e38 18321
d45fe813 18322#define _SYSCALL32
97bf5e38 18323#include <sys/procfs.h>
bec39cab
AC
18324int
18325main ()
18326{
97bf5e38 18327lwpid_t avar
bec39cab
AC
18328 ;
18329 return 0;
18330}
18331_ACEOF
18332rm -f conftest.$ac_objext
18333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18334 (eval $ac_compile) 2>conftest.er1
18335 ac_status=$?
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
121ce6e5 18341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
97bf5e38 18353 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18354else
bec39cab
AC
18355 echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
18358bfd_cv_have_sys_procfs_type_lwpid_t=no
18359
d45fe813 18360fi
bec39cab 18361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18362fi
18363
97bf5e38 18364 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18365
18366cat >>confdefs.h <<\_ACEOF
97bf5e38 18367#define HAVE_LWPID_T 1
bec39cab 18368_ACEOF
d45fe813 18369
97bf5e38 18370 fi
bec39cab
AC
18371 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18372echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18373
bec39cab
AC
18374 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18375echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18376 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18378else
bec39cab
AC
18379 cat >conftest.$ac_ext <<_ACEOF
18380/* confdefs.h. */
18381_ACEOF
18382cat confdefs.h >>conftest.$ac_ext
18383cat >>conftest.$ac_ext <<_ACEOF
18384/* end confdefs.h. */
c906108c 18385
97bf5e38
MK
18386#define _SYSCALL32
18387#include <sys/procfs.h>
bec39cab
AC
18388int
18389main ()
18390{
97bf5e38 18391psaddr_t avar
bec39cab
AC
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest.$ac_objext
18397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18398 (eval $ac_compile) 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
121ce6e5 18405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try='test -s conftest.$ac_objext'
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
97bf5e38 18417 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18418else
bec39cab
AC
18419 echo "$as_me: failed program was:" >&5
18420sed 's/^/| /' conftest.$ac_ext >&5
18421
18422bfd_cv_have_sys_procfs_type_psaddr_t=no
18423
c906108c 18424fi
bec39cab 18425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18426fi
18427
97bf5e38 18428 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18429
18430cat >>confdefs.h <<\_ACEOF
97bf5e38 18431#define HAVE_PSADDR_T 1
bec39cab 18432_ACEOF
c906108c 18433
97bf5e38 18434 fi
bec39cab
AC
18435 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18436echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18437
bec39cab
AC
18438 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18439echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18440 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18442else
bec39cab
AC
18443 cat >conftest.$ac_ext <<_ACEOF
18444/* confdefs.h. */
18445_ACEOF
18446cat confdefs.h >>conftest.$ac_ext
18447cat >>conftest.$ac_ext <<_ACEOF
18448/* end confdefs.h. */
c906108c 18449
97bf5e38
MK
18450#define _SYSCALL32
18451#include <sys/procfs.h>
bec39cab
AC
18452int
18453main ()
18454{
97bf5e38 18455prsysent_t avar
bec39cab
AC
18456 ;
18457 return 0;
18458}
18459_ACEOF
18460rm -f conftest.$ac_objext
18461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18462 (eval $ac_compile) 2>conftest.er1
18463 ac_status=$?
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
121ce6e5 18469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
97bf5e38 18481 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18482else
bec39cab
AC
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486bfd_cv_have_sys_procfs_type_prsysent_t=no
18487
c906108c 18488fi
bec39cab 18489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18490fi
18491
97bf5e38 18492 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18493
18494cat >>confdefs.h <<\_ACEOF
97bf5e38 18495#define HAVE_PRSYSENT_T 1
bec39cab 18496_ACEOF
c906108c 18497
97bf5e38 18498 fi
bec39cab
AC
18499 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18500echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18501
bec39cab
AC
18502 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18503echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18504 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18506else
bec39cab
AC
18507 cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h. */
c906108c 18513
97bf5e38
MK
18514#define _SYSCALL32
18515#include <sys/procfs.h>
bec39cab
AC
18516int
18517main ()
18518{
97bf5e38 18519pr_sigset_t avar
bec39cab
AC
18520 ;
18521 return 0;
18522}
18523_ACEOF
18524rm -f conftest.$ac_objext
18525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18526 (eval $ac_compile) 2>conftest.er1
18527 ac_status=$?
18528 grep -v '^ *+' conftest.er1 >conftest.err
18529 rm -f conftest.er1
18530 cat conftest.err >&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
121ce6e5 18533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; } &&
18539 { ac_try='test -s conftest.$ac_objext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
97bf5e38 18545 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18546else
bec39cab
AC
18547 echo "$as_me: failed program was:" >&5
18548sed 's/^/| /' conftest.$ac_ext >&5
18549
18550bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18551
c906108c 18552fi
bec39cab 18553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18554fi
18555
97bf5e38 18556 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18557
18558cat >>confdefs.h <<\_ACEOF
97bf5e38 18559#define HAVE_PR_SIGSET_T 1
bec39cab 18560_ACEOF
c906108c 18561
97bf5e38 18562 fi
bec39cab
AC
18563 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18564echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18565
bec39cab
AC
18566 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18567echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18568 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18570else
bec39cab
AC
18571 cat >conftest.$ac_ext <<_ACEOF
18572/* confdefs.h. */
18573_ACEOF
18574cat confdefs.h >>conftest.$ac_ext
18575cat >>conftest.$ac_ext <<_ACEOF
18576/* end confdefs.h. */
c906108c 18577
97bf5e38
MK
18578#define _SYSCALL32
18579#include <sys/procfs.h>
bec39cab
AC
18580int
18581main ()
18582{
97bf5e38 18583pr_sigaction64_t avar
bec39cab
AC
18584 ;
18585 return 0;
18586}
18587_ACEOF
18588rm -f conftest.$ac_objext
18589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18590 (eval $ac_compile) 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
121ce6e5 18597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
97bf5e38 18609 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18610else
bec39cab
AC
18611 echo "$as_me: failed program was:" >&5
18612sed 's/^/| /' conftest.$ac_ext >&5
18613
18614bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18615
c906108c 18616fi
bec39cab 18617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18618fi
18619
97bf5e38 18620 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18621
18622cat >>confdefs.h <<\_ACEOF
97bf5e38 18623#define HAVE_PR_SIGACTION64_T 1
bec39cab 18624_ACEOF
c906108c 18625
97bf5e38 18626 fi
bec39cab
AC
18627 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18628echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18629
bec39cab
AC
18630 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18631echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18632 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18634else
bec39cab
AC
18635 cat >conftest.$ac_ext <<_ACEOF
18636/* confdefs.h. */
18637_ACEOF
18638cat confdefs.h >>conftest.$ac_ext
18639cat >>conftest.$ac_ext <<_ACEOF
18640/* end confdefs.h. */
97bf5e38
MK
18641
18642#define _SYSCALL32
18643#include <sys/procfs.h>
bec39cab
AC
18644int
18645main ()
18646{
97bf5e38 18647pr_siginfo64_t avar
bec39cab
AC
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext
18653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18654 (eval $ac_compile) 2>conftest.er1
18655 ac_status=$?
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
121ce6e5 18661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest.$ac_objext'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
97bf5e38
MK
18673 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18674else
bec39cab
AC
18675 echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
18678bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18679
97bf5e38 18680fi
bec39cab 18681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18682fi
c906108c 18683
97bf5e38 18684 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18685
18686cat >>confdefs.h <<\_ACEOF
97bf5e38 18687#define HAVE_PR_SIGINFO64_T 1
bec39cab 18688_ACEOF
c906108c 18689
97bf5e38 18690 fi
bec39cab
AC
18691 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18692echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18693
18694
97bf5e38
MK
18695
18696
18697
97bf5e38 18698 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18699 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18700echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18701 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18703else
18704 if test "$cross_compiling" = yes; then
97bf5e38 18705 gdb_cv_prfpregset_t_broken=yes
c906108c 18706else
bec39cab
AC
18707 cat >conftest.$ac_ext <<_ACEOF
18708/* confdefs.h. */
18709_ACEOF
18710cat confdefs.h >>conftest.$ac_ext
18711cat >>conftest.$ac_ext <<_ACEOF
18712/* end confdefs.h. */
97bf5e38
MK
18713#include <sys/procfs.h>
18714 int main ()
18715 {
18716 if (sizeof (prfpregset_t) == sizeof (void *))
18717 return 1;
18718 return 0;
18719 }
bec39cab
AC
18720_ACEOF
18721rm -f conftest$ac_exeext
18722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18723 (eval $ac_link) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
97bf5e38 18732 gdb_cv_prfpregset_t_broken=no
c906108c 18733else
bec39cab
AC
18734 echo "$as_me: program exited with status $ac_status" >&5
18735echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
18738( exit $ac_status )
18739gdb_cv_prfpregset_t_broken=yes
c906108c 18740fi
bec39cab 18741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18742fi
c906108c
SS
18743fi
18744
bec39cab
AC
18745 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18746echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18747 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
18748
18749cat >>confdefs.h <<\_ACEOF
97bf5e38 18750#define PRFPREGSET_T_BROKEN 1
bec39cab 18751_ACEOF
c906108c 18752
97bf5e38
MK
18753 fi
18754 fi
c906108c 18755
bec39cab
AC
18756
18757 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18758echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18759 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18761else
bec39cab
AC
18762 cat >conftest.$ac_ext <<_ACEOF
18763/* confdefs.h. */
18764_ACEOF
18765cat confdefs.h >>conftest.$ac_ext
18766cat >>conftest.$ac_ext <<_ACEOF
18767/* end confdefs.h. */
97bf5e38
MK
18768#include <unistd.h>
18769#include <sys/types.h>
18770#include <sys/procfs.h>
18771
bec39cab
AC
18772int
18773main ()
18774{
97bf5e38
MK
18775
18776 int dummy;;
18777 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18778
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext
18784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18785 (eval $ac_compile) 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
121ce6e5 18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest.$ac_objext'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
97bf5e38 18804 gdb_cv_have_procfs_piocset=yes
c906108c 18805else
bec39cab
AC
18806 echo "$as_me: failed program was:" >&5
18807sed 's/^/| /' conftest.$ac_ext >&5
18808
18809gdb_cv_have_procfs_piocset=no
c906108c 18810fi
bec39cab 18811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18812fi
97bf5e38 18813
bec39cab
AC
18814 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18815echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18816 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
18817
18818cat >>confdefs.h <<\_ACEOF
97bf5e38 18819#define HAVE_PROCFS_PIOCSET 1
bec39cab 18820_ACEOF
97bf5e38
MK
18821
18822 fi
c906108c 18823fi
c906108c 18824
97bf5e38 18825if test ${host} = ${target} ; then
bec39cab
AC
18826
18827 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18828echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18829 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831else
18832 cat >conftest.$ac_ext <<_ACEOF
18833/* confdefs.h. */
18834_ACEOF
18835cat confdefs.h >>conftest.$ac_ext
18836cat >>conftest.$ac_ext <<_ACEOF
18837/* end confdefs.h. */
97bf5e38 18838#include <link.h>
bec39cab
AC
18839int
18840main ()
18841{
97bf5e38 18842struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18843 ;
18844 return 0;
18845}
18846_ACEOF
18847rm -f conftest.$ac_objext
18848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18849 (eval $ac_compile) 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
121ce6e5 18856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest.$ac_objext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
97bf5e38 18868 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 18869else
bec39cab
AC
18870 echo "$as_me: failed program was:" >&5
18871sed 's/^/| /' conftest.$ac_ext >&5
18872
18873gdb_cv_have_struct_link_map_with_l_members=no
c906108c 18874fi
bec39cab 18875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18876fi
18877
bec39cab
AC
18878 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18879echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 18880 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
18881
18882cat >>confdefs.h <<\_ACEOF
97bf5e38 18883#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 18884_ACEOF
97bf5e38
MK
18885
18886 fi
18887
bec39cab
AC
18888
18889 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18890echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18891 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18893else
bec39cab
AC
18894 cat >conftest.$ac_ext <<_ACEOF
18895/* confdefs.h. */
18896_ACEOF
18897cat confdefs.h >>conftest.$ac_ext
18898cat >>conftest.$ac_ext <<_ACEOF
18899/* end confdefs.h. */
97bf5e38
MK
18900#include <sys/types.h>
18901#include <link.h>
bec39cab
AC
18902int
18903main ()
18904{
97bf5e38 18905struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
18906 ;
18907 return 0;
18908}
18909_ACEOF
18910rm -f conftest.$ac_objext
18911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18912 (eval $ac_compile) 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
121ce6e5 18919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest.$ac_objext'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
97bf5e38
MK
18931 gdb_cv_have_struct_link_map_with_lm_members=yes
18932else
bec39cab
AC
18933 echo "$as_me: failed program was:" >&5
18934sed 's/^/| /' conftest.$ac_ext >&5
18935
18936gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 18937fi
bec39cab 18938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18939fi
c906108c 18940
bec39cab
AC
18941 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18942echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 18943 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
18944
18945cat >>confdefs.h <<\_ACEOF
97bf5e38 18946#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 18947_ACEOF
97bf5e38
MK
18948
18949 fi
18950
bec39cab
AC
18951
18952 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18953echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18954 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18956else
bec39cab
AC
18957 cat >conftest.$ac_ext <<_ACEOF
18958/* confdefs.h. */
18959_ACEOF
18960cat confdefs.h >>conftest.$ac_ext
18961cat >>conftest.$ac_ext <<_ACEOF
18962/* end confdefs.h. */
97bf5e38
MK
18963#include <sys/types.h>
18964#ifdef HAVE_NLIST_H
18965#include <nlist.h>
18966#endif
18967#include <link.h>
bec39cab
AC
18968int
18969main ()
18970{
97bf5e38 18971struct so_map lm; (void) lm.som_addr;
bec39cab
AC
18972 ;
18973 return 0;
18974}
18975_ACEOF
18976rm -f conftest.$ac_objext
18977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978 (eval $ac_compile) 2>conftest.er1
18979 ac_status=$?
18980 grep -v '^ *+' conftest.er1 >conftest.err
18981 rm -f conftest.er1
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
121ce6e5 18985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
97bf5e38
MK
18997 gdb_cv_have_struct_so_map_with_som_members=yes
18998else
bec39cab
AC
18999 echo "$as_me: failed program was:" >&5
19000sed 's/^/| /' conftest.$ac_ext >&5
19001
19002gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 19003fi
bec39cab 19004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19005fi
c906108c 19006
bec39cab
AC
19007 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19008echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 19009 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
19010
19011cat >>confdefs.h <<\_ACEOF
97bf5e38 19012#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 19013_ACEOF
c906108c 19014
97bf5e38 19015 fi
c906108c 19016
bec39cab
AC
19017
19018 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19019echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19020 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19022else
bec39cab
AC
19023 cat >conftest.$ac_ext <<_ACEOF
19024/* confdefs.h. */
19025_ACEOF
19026cat confdefs.h >>conftest.$ac_ext
19027cat >>conftest.$ac_ext <<_ACEOF
19028/* end confdefs.h. */
97bf5e38
MK
19029#define _SYSCALL32
19030#include <sys/link.h>
bec39cab
AC
19031int
19032main ()
19033{
97bf5e38 19034struct link_map32 l;
bec39cab
AC
19035 ;
19036 return 0;
19037}
19038_ACEOF
19039rm -f conftest.$ac_objext
19040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19041 (eval $ac_compile) 2>conftest.er1
19042 ac_status=$?
19043 grep -v '^ *+' conftest.er1 >conftest.err
19044 rm -f conftest.er1
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
121ce6e5 19048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest.$ac_objext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
97bf5e38
MK
19060 gdb_cv_have_struct_link_map32=yes
19061else
bec39cab
AC
19062 echo "$as_me: failed program was:" >&5
19063sed 's/^/| /' conftest.$ac_ext >&5
19064
19065gdb_cv_have_struct_link_map32=no
97bf5e38 19066fi
bec39cab 19067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19068fi
c906108c 19069
bec39cab
AC
19070 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19071echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 19072 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
19073
19074cat >>confdefs.h <<\_ACEOF
97bf5e38 19075#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 19076_ACEOF
c906108c 19077
60ca704f
SE
19078
19079cat >>confdefs.h <<\_ACEOF
97bf5e38 19080#define _SYSCALL32 1
bec39cab 19081_ACEOF
c906108c 19082
97bf5e38
MK
19083 fi
19084fi
c906108c 19085
bc8bcb4b 19086# Check if the compiler supports the `long long' type.
c906108c 19087
bec39cab
AC
19088echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19089echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19090if test "${gdb_cv_c_long_long+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19092else
bec39cab
AC
19093 cat >conftest.$ac_ext <<_ACEOF
19094/* confdefs.h. */
19095_ACEOF
19096cat confdefs.h >>conftest.$ac_ext
19097cat >>conftest.$ac_ext <<_ACEOF
19098/* end confdefs.h. */
bc8bcb4b 19099extern long long foo;
bec39cab
AC
19100int
19101main ()
19102{
bc8bcb4b 19103switch (foo & 2) { case 0: return 1; }
bec39cab
AC
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext
19109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
121ce6e5 19117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
97bf5e38
MK
19129 gdb_cv_c_long_long=yes
19130else
bec39cab
AC
19131 echo "$as_me: failed program was:" >&5
19132sed 's/^/| /' conftest.$ac_ext >&5
19133
19134gdb_cv_c_long_long=no
97bf5e38 19135fi
bec39cab 19136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19137fi
bec39cab
AC
19138echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19139echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 19140if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
19141
19142cat >>confdefs.h <<\_ACEOF
97bf5e38 19143#define CC_HAS_LONG_LONG 1
bec39cab 19144_ACEOF
97bf5e38
MK
19145
19146fi
19147
bc8bcb4b 19148# Check if the compiler and runtime support printing long longs.
97bf5e38 19149
bec39cab
AC
19150echo "$as_me:$LINENO: checking for long long support in printf" >&5
19151echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19152if test "${gdb_cv_printf_has_long_long+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19154else
19155 if test "$cross_compiling" = yes; then
19156 gdb_cv_printf_has_long_long=no
19157else
bec39cab
AC
19158 cat >conftest.$ac_ext <<_ACEOF
19159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
bc8bcb4b
MK
19164$ac_includes_default
19165int
19166main ()
19167{
19168char buf[32];
97bf5e38
MK
19169 long long l = 0;
19170 l = (l << 16) + 0x0123;
19171 l = (l << 16) + 0x4567;
19172 l = (l << 16) + 0x89ab;
19173 l = (l << 16) + 0xcdef;
19174 sprintf (buf, "0x%016llx", l);
19175 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
19176 ;
19177 return 0;
c906108c 19178}
bec39cab
AC
19179_ACEOF
19180rm -f conftest$ac_exeext
19181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19182 (eval $ac_link) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
97bf5e38
MK
19191 gdb_cv_printf_has_long_long=yes
19192else
bec39cab
AC
19193 echo "$as_me: program exited with status $ac_status" >&5
19194echo "$as_me: failed program was:" >&5
19195sed 's/^/| /' conftest.$ac_ext >&5
19196
19197( exit $ac_status )
19198gdb_cv_printf_has_long_long=no
97bf5e38 19199fi
bec39cab 19200rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19201fi
97bf5e38 19202fi
bc8bcb4b
MK
19203echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19204echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 19205if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
19206
19207cat >>confdefs.h <<\_ACEOF
97bf5e38 19208#define PRINTF_HAS_LONG_LONG 1
bec39cab 19209_ACEOF
97bf5e38
MK
19210
19211fi
97bf5e38 19212
bc8bcb4b
MK
19213# Check if the compiler supports the `long double' type. We can't use
19214# AC_C_LONG_DOUBLE because that one does additional checks on the
19215# constants defined in <float.h> that fail on some systems,
19216# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 19217
bec39cab
AC
19218echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19219echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 19220if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 19221 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19222else
bec39cab
AC
19223 cat >conftest.$ac_ext <<_ACEOF
19224/* confdefs.h. */
19225_ACEOF
19226cat confdefs.h >>conftest.$ac_ext
19227cat >>conftest.$ac_ext <<_ACEOF
19228/* end confdefs.h. */
97bf5e38 19229long double foo;
bec39cab
AC
19230_ACEOF
19231rm -f conftest.$ac_objext
19232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19233 (eval $ac_compile) 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
121ce6e5 19240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest.$ac_objext'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
bc8bcb4b 19252 gdb_cv_c_long_double=yes
97bf5e38 19253else
bec39cab
AC
19254 echo "$as_me: failed program was:" >&5
19255sed 's/^/| /' conftest.$ac_ext >&5
19256
bc8bcb4b 19257gdb_cv_c_long_double=no
97bf5e38 19258fi
bec39cab 19259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19260fi
bc8bcb4b
MK
19261echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19262echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19263if test $gdb_cv_c_long_double = yes; then
c906108c 19264
bc8bcb4b 19265cat >>confdefs.h <<\_ACEOF
97bf5e38 19266#define HAVE_LONG_DOUBLE 1
bec39cab 19267_ACEOF
97bf5e38
MK
19268
19269fi
19270
bc8bcb4b 19271# Check if the compiler and runtime support printing long doubles.
97bf5e38 19272
bec39cab
AC
19273echo "$as_me:$LINENO: checking for long double support in printf" >&5
19274echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19275if test "${gdb_cv_printf_has_long_double+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19277else
19278 if test "$cross_compiling" = yes; then
19279 gdb_cv_printf_has_long_double=no
19280else
bec39cab
AC
19281 cat >conftest.$ac_ext <<_ACEOF
19282/* confdefs.h. */
19283_ACEOF
19284cat confdefs.h >>conftest.$ac_ext
19285cat >>conftest.$ac_ext <<_ACEOF
19286/* end confdefs.h. */
bc8bcb4b
MK
19287$ac_includes_default
19288int
19289main ()
19290{
19291char buf[16];
97bf5e38
MK
19292 long double f = 3.141592653;
19293 sprintf (buf, "%Lg", f);
19294 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
19295 ;
19296 return 0;
97bf5e38 19297}
bec39cab
AC
19298_ACEOF
19299rm -f conftest$ac_exeext
19300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19301 (eval $ac_link) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
97bf5e38 19310 gdb_cv_printf_has_long_double=yes
c906108c 19311else
bec39cab
AC
19312 echo "$as_me: program exited with status $ac_status" >&5
19313echo "$as_me: failed program was:" >&5
19314sed 's/^/| /' conftest.$ac_ext >&5
19315
19316( exit $ac_status )
19317gdb_cv_printf_has_long_double=no
c906108c 19318fi
bec39cab 19319rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19320fi
c906108c 19321fi
bc8bcb4b
MK
19322echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19323echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 19324if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
19325
19326cat >>confdefs.h <<\_ACEOF
97bf5e38 19327#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19328_ACEOF
97bf5e38
MK
19329
19330fi
97bf5e38 19331
bc8bcb4b 19332# Check if the compiler and runtime support scanning long doubles.
97bf5e38 19333
bec39cab
AC
19334echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19335echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19336if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19338else
19339 if test "$cross_compiling" = yes; then
19340 gdb_cv_scanf_has_long_double=no
19341else
bec39cab
AC
19342 cat >conftest.$ac_ext <<_ACEOF
19343/* confdefs.h. */
19344_ACEOF
19345cat confdefs.h >>conftest.$ac_ext
19346cat >>conftest.$ac_ext <<_ACEOF
19347/* end confdefs.h. */
bc8bcb4b
MK
19348#include <stdio.h>
19349int
19350main ()
19351{
19352char *buf = "3.141592653";
97bf5e38
MK
19353 long double f = 0;
19354 sscanf (buf, "%Lg", &f);
19355 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
19356 ;
19357 return 0;
97bf5e38 19358}
bec39cab
AC
19359_ACEOF
19360rm -f conftest$ac_exeext
19361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19362 (eval $ac_link) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
97bf5e38
MK
19371 gdb_cv_scanf_has_long_double=yes
19372else
bec39cab
AC
19373 echo "$as_me: program exited with status $ac_status" >&5
19374echo "$as_me: failed program was:" >&5
19375sed 's/^/| /' conftest.$ac_ext >&5
19376
19377( exit $ac_status )
19378gdb_cv_scanf_has_long_double=no
97bf5e38 19379fi
bec39cab 19380rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19381fi
c906108c 19382fi
bc8bcb4b
MK
19383echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19384echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 19385if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
19386
19387cat >>confdefs.h <<\_ACEOF
97bf5e38 19388#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19389_ACEOF
97bf5e38
MK
19390
19391fi
c906108c 19392
438013df
AO
19393case ${host_os} in
19394aix*)
bec39cab
AC
19395 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19396echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19397if test "${gdb_cv_bigtoc+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19399else
bec39cab 19400
438013df
AO
19401 SAVE_LDFLAGS=$LDFLAGS
19402
19403 case $GCC in
19404 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19405 *) gdb_cv_bigtoc=-bbigtoc ;;
19406 esac
19407
19408 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19409 cat >conftest.$ac_ext <<_ACEOF
19410/* confdefs.h. */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h. */
438013df 19415
bec39cab
AC
19416int
19417main ()
19418{
438013df 19419int i;
bec39cab
AC
19420 ;
19421 return 0;
19422}
19423_ACEOF
19424rm -f conftest.$ac_objext conftest$ac_exeext
19425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19426 (eval $ac_link) 2>conftest.er1
19427 ac_status=$?
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
121ce6e5 19433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest$ac_exeext'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
438013df
AO
19445 :
19446else
bec39cab
AC
19447 echo "$as_me: failed program was:" >&5
19448sed 's/^/| /' conftest.$ac_ext >&5
19449
19450gdb_cv_bigtoc=
438013df 19451fi
bec39cab
AC
19452rm -f conftest.err conftest.$ac_objext \
19453 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19454 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19455
bec39cab
AC
19456fi
19457echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19458echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19459 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19460 ;;
19461esac
19462
c906108c
SS
19463
19464
19465if test ${build} = ${host} -a ${host} = ${target} ; then
19466 case ${host_os} in
19467 hpux*)
bec39cab
AC
19468 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19469echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19470 if test -f /usr/include/dce/cma_config.h ; then
19471 if test "$GCC" = "yes" ; then
bec39cab
AC
19472 echo "$as_me:$LINENO: result: yes" >&5
19473echo "${ECHO_T}yes" >&6
60ca704f
SE
19474
19475cat >>confdefs.h <<\_ACEOF
c906108c 19476#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19477_ACEOF
c906108c 19478
3483b318 19479 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19480 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19481 else
bec39cab
AC
19482 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19483echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19484 fi
19485 else
bec39cab
AC
19486 echo "$as_me:$LINENO: result: no" >&5
19487echo "${ECHO_T}no" >&6
c906108c
SS
19488 fi
19489 ;;
19490 solaris*)
d92419e5
JB
19491 # See if thread_db library is around for Solaris thread debugging.
19492 # Note that we must explicitly test for version 1 of the library
19493 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19494 # the same API.
bec39cab
AC
19495 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19496echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19497 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19498 echo "$as_me:$LINENO: result: yes" >&5
19499echo "${ECHO_T}yes" >&6
60ca704f
SE
19500
19501cat >>confdefs.h <<\_ACEOF
c906108c 19502#define HAVE_THREAD_DB_LIB 1
bec39cab 19503_ACEOF
c906108c 19504
3483b318 19505 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19506 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19507
19508echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19509echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19510if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19512else
bec39cab 19513 ac_check_lib_save_LIBS=$LIBS
c906108c 19514LIBS="-ldl $LIBS"
bec39cab
AC
19515cat >conftest.$ac_ext <<_ACEOF
19516/* confdefs.h. */
19517_ACEOF
19518cat confdefs.h >>conftest.$ac_ext
19519cat >>conftest.$ac_ext <<_ACEOF
19520/* end confdefs.h. */
19521
c906108c 19522/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19523#ifdef __cplusplus
19524extern "C"
19525#endif
c906108c 19526/* We use char because int might match the return type of a gcc2
bec39cab
AC
19527 builtin and then its argument prototype would still apply. */
19528char dlopen ();
19529int
19530main ()
19531{
19532dlopen ();
19533 ;
19534 return 0;
19535}
19536_ACEOF
19537rm -f conftest.$ac_objext conftest$ac_exeext
19538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19539 (eval $ac_link) 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
121ce6e5 19546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest$ac_exeext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_lib_dl_dlopen=yes
19559else
19560 echo "$as_me: failed program was:" >&5
19561sed 's/^/| /' conftest.$ac_ext >&5
19562
19563ac_cv_lib_dl_dlopen=no
19564fi
19565rm -f conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19567LIBS=$ac_check_lib_save_LIBS
19568fi
19569echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19570echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19571if test $ac_cv_lib_dl_dlopen = yes; then
19572 cat >>confdefs.h <<_ACEOF
19573#define HAVE_LIBDL 1
19574_ACEOF
c906108c
SS
19575
19576 LIBS="-ldl $LIBS"
19577
c906108c
SS
19578fi
19579
19580 if test "$GCC" = "yes" ; then
19581 # The GNU linker requires the -export-dynamic option to make
19582 # all symbols visible in the dynamic symbol table.
19583 hold_ldflags=$LDFLAGS
bec39cab
AC
19584 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19585echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19586 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
19587 cat >conftest.$ac_ext <<_ACEOF
19588/* confdefs.h. */
19589_ACEOF
19590cat confdefs.h >>conftest.$ac_ext
19591cat >>conftest.$ac_ext <<_ACEOF
19592/* end confdefs.h. */
c906108c 19593
bec39cab
AC
19594int
19595main ()
19596{
c906108c 19597int i;
bec39cab
AC
19598 ;
19599 return 0;
19600}
19601_ACEOF
19602rm -f conftest.$ac_objext conftest$ac_exeext
19603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19604 (eval $ac_link) 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
121ce6e5 19611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest$ac_exeext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
c906108c
SS
19623 found=yes
19624else
bec39cab
AC
19625 echo "$as_me: failed program was:" >&5
19626sed 's/^/| /' conftest.$ac_ext >&5
19627
19628found=no
c906108c 19629fi
bec39cab
AC
19630rm -f conftest.err conftest.$ac_objext \
19631 conftest$ac_exeext conftest.$ac_ext
c906108c 19632 LDFLAGS=$hold_ldflags
bec39cab
AC
19633 echo "$as_me:$LINENO: result: $found" >&5
19634echo "${ECHO_T}$found" >&6
c906108c
SS
19635 if test $found = yes; then
19636 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19637 fi
19638 fi
19639 # Sun randomly tweaked the prototypes in <proc_service.h>
19640 # at one point.
bec39cab
AC
19641 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19642echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19643 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19645else
bec39cab
AC
19646
19647 cat >conftest.$ac_ext <<_ACEOF
19648/* confdefs.h. */
19649_ACEOF
19650cat confdefs.h >>conftest.$ac_ext
19651cat >>conftest.$ac_ext <<_ACEOF
19652/* end confdefs.h. */
c906108c
SS
19653
19654 #include <proc_service.h>
19655 ps_err_e ps_pdwrite
19656 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19657
bec39cab
AC
19658int
19659main ()
19660{
19661
19662 ;
19663 return 0;
19664}
19665_ACEOF
19666rm -f conftest.$ac_objext
19667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19668 (eval $ac_compile) 2>conftest.er1
19669 ac_status=$?
19670 grep -v '^ *+' conftest.er1 >conftest.err
19671 rm -f conftest.er1
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
121ce6e5 19675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
c906108c
SS
19687 gdb_cv_proc_service_is_old=no
19688else
bec39cab
AC
19689 echo "$as_me: failed program was:" >&5
19690sed 's/^/| /' conftest.$ac_ext >&5
19691
19692gdb_cv_proc_service_is_old=yes
c906108c 19693fi
bec39cab
AC
19694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19695
c906108c
SS
19696fi
19697
bec39cab
AC
19698 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19699echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19700 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
19701
19702cat >>confdefs.h <<\_ACEOF
c906108c 19703#define PROC_SERVICE_IS_OLD 1
bec39cab 19704_ACEOF
c906108c
SS
19705
19706 fi
19707 else
bec39cab
AC
19708 echo "$as_me:$LINENO: result: no" >&5
19709echo "${ECHO_T}no" >&6
c906108c
SS
19710 fi
19711 ;;
d92419e5 19712 aix*)
bec39cab
AC
19713 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19714echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19715 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717else
19718 cat >conftest.$ac_ext <<_ACEOF
19719/* confdefs.h. */
19720_ACEOF
19721cat confdefs.h >>conftest.$ac_ext
19722cat >>conftest.$ac_ext <<_ACEOF
19723/* end confdefs.h. */
d92419e5 19724#include <sys/pthdebug.h>
bec39cab
AC
19725int
19726main ()
19727{
d92419e5
JB
19728#ifndef PTHDB_VERSION_3
19729 #error
19730 #endif
bec39cab
AC
19731 ;
19732 return 0;
19733}
19734_ACEOF
19735rm -f conftest.$ac_objext
19736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
121ce6e5 19744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; } &&
19750 { ac_try='test -s conftest.$ac_objext'
19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; }; then
d92419e5
JB
19756 gdb_cv_have_aix_thread_debug=yes
19757else
bec39cab
AC
19758 echo "$as_me: failed program was:" >&5
19759sed 's/^/| /' conftest.$ac_ext >&5
19760
19761gdb_cv_have_aix_thread_debug=no
d92419e5 19762fi
bec39cab 19763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19764fi
19765
bec39cab
AC
19766 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19767echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19768 if test $gdb_cv_have_aix_thread_debug = yes; then
19769 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19770 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19771 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19772 fi
19773 ;;
c906108c 19774 esac
bec39cab 19775
c906108c
SS
19776fi
19777
3f47be5c 19778if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19779 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19780echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19781if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783else
19784 cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
3f47be5c 19790#include <thread_db.h>
bec39cab
AC
19791int
19792main ()
19793{
3f47be5c 19794int i = TD_NOTALLOC;
bec39cab
AC
19795 ;
19796 return 0;
19797}
19798_ACEOF
19799rm -f conftest.$ac_objext
19800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801 (eval $ac_compile) 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
121ce6e5 19808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
3f47be5c
EZ
19820 gdb_cv_thread_db_h_has_td_notalloc=yes
19821else
bec39cab
AC
19822 echo "$as_me: failed program was:" >&5
19823sed 's/^/| /' conftest.$ac_ext >&5
19824
19825gdb_cv_thread_db_h_has_td_notalloc=no
19826
3f47be5c 19827fi
bec39cab 19828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19829
bec39cab
AC
19830fi
19831echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19832echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19833fi
19834if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19835
19836cat >>confdefs.h <<\_ACEOF
3f47be5c 19837#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19838_ACEOF
3f47be5c
EZ
19839
19840fi
19841
b757528f 19842if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19843 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19844echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19845if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847else
19848 cat >conftest.$ac_ext <<_ACEOF
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
b757528f 19854#include <sys/syscall.h>
bec39cab
AC
19855int
19856main ()
19857{
b757528f 19858int i = __NR_tkill;
bec39cab
AC
19859 ;
19860 return 0;
19861}
19862_ACEOF
19863rm -f conftest.$ac_objext
19864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19865 (eval $ac_compile) 2>conftest.er1
19866 ac_status=$?
19867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } &&
121ce6e5 19872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
b757528f
JJ
19884 gdb_cv_sys_syscall_h_has_tkill=yes
19885else
bec39cab
AC
19886 echo "$as_me: failed program was:" >&5
19887sed 's/^/| /' conftest.$ac_ext >&5
19888
19889gdb_cv_sys_syscall_h_has_tkill=no
19890
b757528f 19891fi
bec39cab 19892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 19893
bec39cab
AC
19894fi
19895echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19896echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
19897fi
19898if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
19899
19900cat >>confdefs.h <<\_ACEOF
b757528f 19901#define HAVE_TKILL_SYSCALL 1
bec39cab 19902_ACEOF
b757528f
JJ
19903
19904fi
19905
fb40c209 19906
bec39cab 19907
030292b7
DJ
19908# Check whether --with-sysroot or --without-sysroot was given.
19909if test "${with_sysroot+set}" = set; then
19910 withval="$with_sysroot"
bec39cab 19911
030292b7 19912 case ${with_sysroot} in
715d1656 19913 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
19914 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19915 esac
19916
19917 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19918
19919 if test "x$exec_prefix" = xNONE; then
19920 if test "x$prefix" = xNONE; then
19921 test_prefix=/usr/local
19922 else
19923 test_prefix=$prefix
19924 fi
19925 else
19926 test_prefix=$exec_prefix
19927 fi
19928 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
19929 "${test_prefix}"|"${test_prefix}/"*|\
19930 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
19931 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19932 TARGET_SYSTEM_ROOT_DEFINE="$t"
19933 ;;
19934 esac
19935
19936else
bec39cab 19937
030292b7
DJ
19938 TARGET_SYSTEM_ROOT=
19939 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19940
bec39cab 19941fi;
030292b7
DJ
19942
19943
19944
094a342e
MK
19945# Check whether --enable-werror or --disable-werror was given.
19946if test "${enable_werror+set}" = set; then
19947 enableval="$enable_werror"
19948 case "${enableval}" in
19949 yes | y) ERROR_ON_WARNING="yes" ;;
19950 no | n) ERROR_ON_WARNING="no" ;;
19951 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19952echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19953 { (exit 1); exit 1; }; } ;;
19954 esac
19955fi;
19956
19957# Enable -Werror by default when using gcc
19958if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19959 ERROR_ON_WARNING=yes
19960fi
19961
19962WERROR_CFLAGS=""
19963if test "${ERROR_ON_WARNING}" = yes ; then
19964 WERROR_CFLAGS="-Werror"
19965fi
19966
3b851bce
AC
19967# NOTE: Don't add -Wall or -Wunused, they both include
19968# -Wunused-parameter which reports bogus warnings.
19969# NOTE: If you add to this list, remember to update
19970# gdb/doc/gdbint.texinfo.
1decb323 19971build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 19972-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
7be93b9e 19973-Wunused-label -Wunused-function -Wno-pointer-sign"
a3b362c4
JB
19974
19975# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 19976if test x${CFLAGS+set} = xset; then
a3b362c4
JB
19977 case "${CFLAGS}" in
19978 *"-O0"* ) ;;
19979 *"-O"* )
19980 build_warnings="${build_warnings} -Wuninitialized"
19981 ;;
19982 esac
19983else
19984 build_warnings="${build_warnings} -Wuninitialized"
19985fi
19986
d8038014 19987# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 19988# -Wunused-function -Wunused-variable -Wunused-value
93d56215 19989# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
19990# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19991# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19992# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
19993# Check whether --enable-build-warnings or --disable-build-warnings was given.
19994if test "${enable_build_warnings+set}" = set; then
19995 enableval="$enable_build_warnings"
1decb323 19996 case "${enableval}" in
c906108c
SS
19997 yes) ;;
19998 no) build_warnings="-w";;
19999 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20000 build_warnings="${build_warnings} ${t}";;
20001 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20002 build_warnings="${t} ${build_warnings}";;
20003 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20004esac
d4f3574e 20005if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 20006 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 20007fi
bec39cab 20008fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
20009if test "${enable_gdb_build_warnings+set}" = set; then
20010 enableval="$enable_gdb_build_warnings"
20011 case "${enableval}" in
20012 yes) ;;
20013 no) build_warnings="-w";;
20014 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20015 build_warnings="${build_warnings} ${t}";;
20016 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20017 build_warnings="${t} ${build_warnings}";;
20018 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20019esac
20020if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20021 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20022fi
bec39cab 20023fi; WARN_CFLAGS=""
c906108c
SS
20024if test "x${build_warnings}" != x -a "x$GCC" = xyes
20025then
bec39cab
AC
20026 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20027echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
20028 # Separate out the -Werror flag as some files just cannot be
20029 # compiled with it enabled.
20030 for w in ${build_warnings}; do
20031 case $w in
20032 -Werr*) WERROR_CFLAGS=-Werror ;;
20033 *) # Check that GCC accepts it
4536bbc6
AC
20034 saved_CFLAGS="$CFLAGS"
20035 CFLAGS="$CFLAGS $w"
bec39cab
AC
20036 cat >conftest.$ac_ext <<_ACEOF
20037/* confdefs.h. */
20038_ACEOF
20039cat confdefs.h >>conftest.$ac_ext
20040cat >>conftest.$ac_ext <<_ACEOF
20041/* end confdefs.h. */
4536bbc6 20042
bec39cab
AC
20043int
20044main ()
20045{
4536bbc6 20046
bec39cab
AC
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053 (eval $ac_compile) 2>conftest.er1
20054 ac_status=$?
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
121ce6e5 20060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest.$ac_objext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
4536bbc6
AC
20072 WARN_CFLAGS="${WARN_CFLAGS} $w"
20073else
bec39cab
AC
20074 echo "$as_me: failed program was:" >&5
20075sed 's/^/| /' conftest.$ac_ext >&5
20076
4536bbc6 20077fi
bec39cab 20078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 20079 CFLAGS="$saved_CFLAGS"
746a987d
AC
20080 esac
20081 done
bec39cab
AC
20082 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20083echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
20084fi
20085
20086
104c1213 20087
7a292a7a 20088# In the Cygwin environment, we need some additional flags.
bec39cab
AC
20089echo "$as_me:$LINENO: checking for cygwin" >&5
20090echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20091if test "${gdb_cv_os_cygwin+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20093else
20094 cat >conftest.$ac_ext <<_ACEOF
20095/* confdefs.h. */
20096_ACEOF
20097cat confdefs.h >>conftest.$ac_ext
20098cat >>conftest.$ac_ext <<_ACEOF
20099/* end confdefs.h. */
7a292a7a
SS
20100
20101#if defined (__CYGWIN__) || defined (__CYGWIN32__)
20102lose
20103#endif
bec39cab 20104_ACEOF
7a292a7a 20105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 20106 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
20107 gdb_cv_os_cygwin=yes
20108else
7a292a7a
SS
20109 gdb_cv_os_cygwin=no
20110fi
20111rm -f conftest*
20112
20113fi
bec39cab
AC
20114echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20115echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 20116
aff38e61 20117
3eb25fda 20118SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 20119case ${host} in
95cbc983
AC
20120 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20121 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 20122 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
20123esac
20124
20125
cd0fc7c3
SS
20126# libreadline needs libuser32.a in a cygwin environment
20127WIN32LIBS=
20128if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
20129 WIN32LIBS="-luser32"
20130 case "${target}" in
20131 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20132 ;;
20133 esac
cd0fc7c3 20134fi
c906108c 20135
b4505029
MM
20136# The ser-tcp.c module requires sockets.
20137case ${host} in
20138 *mingw32*)
20139
20140cat >>confdefs.h <<\_ACEOF
20141#define USE_WIN32API 1
20142_ACEOF
20143
20144 WIN32LIBS="$WIN32LIBS -lws2_32"
20145 ;;
20146esac
20147
7a292a7a 20148
121ce6e5
DJ
20149# Add any host-specific objects to GDB.
20150CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20151
3fc11d3e
JM
20152LIBGUI="../libgui/src/libgui.a"
20153GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20154
20155
7a292a7a 20156
3fc11d3e
JM
20157WIN32LDAPP=
20158
20159
20160
d91670b9
CV
20161case "${host}" in
20162*-*-cygwin*)
20163 configdir="win"
20164 ;;
20165*)
20166 configdir="unix"
20167 ;;
20168esac
3fc11d3e
JM
20169
20170GDBTKLIBS=
20171if test "${enable_gdbtk}" = "yes"; then
20172
d1c3b63a
KS
20173 # Gdbtk must have an absolute path to srcdir in order to run
20174 # properly when not installed.
20175 here=`pwd`
20176 cd ${srcdir}
20177 GDBTK_SRC_DIR=`pwd`
20178 cd $here
20179
bec39cab 20180
3fc11d3e
JM
20181#
20182# Ok, lets find the tcl configuration
bec39cab 20183# First, look for one uninstalled.
3fc11d3e
JM
20184# the alternative search directory is invoked by --with-tclconfig
20185#
20186
20187if test x"${no_tcl}" = x ; then
20188 # we reset no_tcl in case something fails here
20189 no_tcl=true
bec39cab
AC
20190
20191# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
20192if test "${with_tclconfig+set}" = set; then
20193 withval="$with_tclconfig"
20194 with_tclconfig=${withval}
bec39cab
AC
20195fi;
20196 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20197echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20198 if test "${ac_cv_c_tclconfig+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20200else
bec39cab 20201
3fc11d3e
JM
20202
20203 # First check to see if --with-tclconfig was specified.
20204 if test x"${with_tclconfig}" != x ; then
20205 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20206 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20207 else
bec39cab
AC
20208 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20209echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20210 { (exit 1); exit 1; }; }
3fc11d3e
JM
20211 fi
20212 fi
20213
20214 # then check for a private Tcl installation
20215 if test x"${ac_cv_c_tclconfig}" = x ; then
20216 for i in \
20217 ../tcl \
20218 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20219 ../../tcl \
20220 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20221 ../../../tcl \
20222 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20223 if test -f "$i/${configdir}/tclConfig.sh" ; then
20224 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20225 break
20226 fi
20227 done
20228 fi
20229 # check in a few common install locations
20230 if test x"${ac_cv_c_tclconfig}" = x ; then
20231 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20232 if test -f "$i/tclConfig.sh" ; then
20233 ac_cv_c_tclconfig=`(cd $i; pwd)`
20234 break
20235 fi
20236 done
20237 fi
20238 # check in a few other private locations
20239 if test x"${ac_cv_c_tclconfig}" = x ; then
20240 for i in \
20241 ${srcdir}/../tcl \
20242 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20243 if test -f "$i/${configdir}/tclConfig.sh" ; then
20244 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20245 break
20246 fi
20247 done
20248 fi
bec39cab 20249
3fc11d3e
JM
20250fi
20251
20252 if test x"${ac_cv_c_tclconfig}" = x ; then
20253 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
20254 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20255echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
20256 else
20257 no_tcl=
20258 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
20259 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20260echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
20261 fi
20262fi
20263
20264 if test -z "${no_tcl}"; then
bec39cab 20265
3fc11d3e
JM
20266 . $TCLCONFIG
20267
3fc11d3e
JM
20268
20269
20270
20271
3fc11d3e
JM
20272
20273
20274
bec39cab
AC
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
3fc11d3e
JM
20294#
20295# Ok, lets find the tk configuration
bec39cab 20296# First, look for one uninstalled.
3fc11d3e
JM
20297# the alternative search directory is invoked by --with-tkconfig
20298#
20299
20300if test x"${no_tk}" = x ; then
20301 # we reset no_tk in case something fails here
20302 no_tk=true
bec39cab
AC
20303
20304# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20305if test "${with_tkconfig+set}" = set; then
20306 withval="$with_tkconfig"
20307 with_tkconfig=${withval}
bec39cab
AC
20308fi;
20309 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20310echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20311 if test "${ac_cv_c_tkconfig+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20313else
bec39cab 20314
3fc11d3e
JM
20315
20316 # First check to see if --with-tkconfig was specified.
20317 if test x"${with_tkconfig}" != x ; then
20318 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20319 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20320 else
bec39cab
AC
20321 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20322echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20323 { (exit 1); exit 1; }; }
3fc11d3e
JM
20324 fi
20325 fi
20326
20327 # then check for a private Tk library
20328 if test x"${ac_cv_c_tkconfig}" = x ; then
20329 for i in \
20330 ../tk \
20331 `ls -dr ../tk[4-9]* 2>/dev/null` \
20332 ../../tk \
20333 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20334 ../../../tk \
20335 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20336 if test -f "$i/${configdir}/tkConfig.sh" ; then
20337 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20338 break
20339 fi
20340 done
20341 fi
20342 # check in a few common install locations
20343 if test x"${ac_cv_c_tkconfig}" = x ; then
20344 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20345 if test -f "$i/tkConfig.sh" ; then
20346 ac_cv_c_tkconfig=`(cd $i; pwd)`
20347 break
20348 fi
20349 done
20350 fi
20351 # check in a few other private locations
20352 if test x"${ac_cv_c_tkconfig}" = x ; then
20353 for i in \
20354 ${srcdir}/../tk \
20355 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20356 if test -f "$i/${configdir}/tkConfig.sh" ; then
20357 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20358 break
20359 fi
20360 done
20361 fi
bec39cab 20362
3fc11d3e
JM
20363fi
20364
20365 if test x"${ac_cv_c_tkconfig}" = x ; then
20366 TKCONFIG="# no Tk configs found"
bec39cab
AC
20367 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20368echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20369 else
20370 no_tk=
20371 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20372 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20373echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20374 fi
20375fi
20376
20377
20378
dd2504ab
JM
20379 # now look for Tcl library stuff
20380
d91670b9 20381 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20382
20383 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20384
3fc11d3e
JM
20385 # If $no_tk is nonempty, then we can't do Tk, and there is no
20386 # point to doing Tcl.
20387 if test -z "${no_tk}"; then
bec39cab 20388
3fc11d3e
JM
20389 if test -f "$TKCONFIG" ; then
20390 . $TKCONFIG
20391 fi
20392
3fc11d3e 20393
3fc11d3e
JM
20394
20395
3fc11d3e 20396
bec39cab
AC
20397
20398
20399
20400
20401
20402
20403
20404
20405
3fc11d3e
JM
20406#
20407# Ok, lets find the tcl source trees so we can use the headers
20408# Warning: transition of version 9 to 10 will break this algorithm
20409# because 10 sorts before 9. We also look for just tcl. We have to
20410# be careful that we don't match stuff like tclX by accident.
20411# the alternative search directory is involked by --with-tclinclude
20412#
20413
20414no_tcl=true
bec39cab
AC
20415echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20416echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20417
3fc11d3e
JM
20418# Check whether --with-tclinclude or --without-tclinclude was given.
20419if test "${with_tclinclude+set}" = set; then
20420 withval="$with_tclinclude"
20421 with_tclinclude=${withval}
bec39cab
AC
20422fi;
20423if test "${ac_cv_c_tclh+set}" = set; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20425else
bec39cab 20426
3fc11d3e
JM
20427# first check to see if --with-tclinclude was specified
20428if test x"${with_tclinclude}" != x ; then
20429 if test -f ${with_tclinclude}/tclInt.h ; then
20430 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20431 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20432 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20433 else
bec39cab
AC
20434 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20435echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20436 { (exit 1); exit 1; }; }
3fc11d3e
JM
20437 fi
20438fi
20439
20440# next check if it came with Tcl configuration file
20441if test x"${ac_cv_c_tclconfig}" = x ; then
20442 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20443 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20444 fi
20445fi
20446
20447# next check in private source directory
20448#
20449# since ls returns lowest version numbers first, reverse its output
20450if test x"${ac_cv_c_tclh}" = x ; then
20451 for i in \
20452 ${srcdir}/../tcl \
20453 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20454 ${srcdir}/../../tcl \
20455 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20456 ${srcdir}/../../../tcl \
20457 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20458 if test -f $i/generic/tclInt.h ; then
20459 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20460 break
20461 fi
20462 done
20463fi
20464# finally check in a few common install locations
20465#
20466# since ls returns lowest version numbers first, reverse its output
20467if test x"${ac_cv_c_tclh}" = x ; then
20468 for i in \
20469 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20470 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20471 /usr/local/src/tcl \
20472 /usr/local/lib/tcl \
20473 ${prefix}/include ; do
20474 if test -f $i/generic/tclInt.h ; then
20475 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20476 break
20477 fi
20478 done
20479fi
20480# see if one is installed
20481if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20482 if test "${ac_cv_header_tclInt_h+set}" = set; then
20483 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20484echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20485if test "${ac_cv_header_tclInt_h+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20487fi
20488echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20489echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20490else
20491 # Is the header compilable?
20492echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20493echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20494cat >conftest.$ac_ext <<_ACEOF
20495/* confdefs.h. */
20496_ACEOF
20497cat confdefs.h >>conftest.$ac_ext
20498cat >>conftest.$ac_ext <<_ACEOF
20499/* end confdefs.h. */
20500$ac_includes_default
20501#include <tclInt.h>
20502_ACEOF
20503rm -f conftest.$ac_objext
20504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505 (eval $ac_compile) 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
121ce6e5 20512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; } &&
20518 { ac_try='test -s conftest.$ac_objext'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
20524 ac_header_compiler=yes
20525else
20526 echo "$as_me: failed program was:" >&5
20527sed 's/^/| /' conftest.$ac_ext >&5
20528
20529ac_header_compiler=no
20530fi
20531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20532echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20533echo "${ECHO_T}$ac_header_compiler" >&6
20534
20535# Is the header present?
20536echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20537echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20538cat >conftest.$ac_ext <<_ACEOF
20539/* confdefs.h. */
20540_ACEOF
20541cat confdefs.h >>conftest.$ac_ext
20542cat >>conftest.$ac_ext <<_ACEOF
20543/* end confdefs.h. */
3fc11d3e 20544#include <tclInt.h>
bec39cab
AC
20545_ACEOF
20546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20548 ac_status=$?
20549 grep -v '^ *+' conftest.er1 >conftest.err
20550 rm -f conftest.er1
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } >/dev/null; then
20554 if test -s conftest.err; then
20555 ac_cpp_err=$ac_c_preproc_warn_flag
20556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20557 else
20558 ac_cpp_err=
20559 fi
20560else
20561 ac_cpp_err=yes
3fc11d3e 20562fi
bec39cab
AC
20563if test -z "$ac_cpp_err"; then
20564 ac_header_preproc=yes
20565else
20566 echo "$as_me: failed program was:" >&5
20567sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 ac_header_preproc=no
3fc11d3e 20570fi
bec39cab
AC
20571rm -f conftest.err conftest.$ac_ext
20572echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20573echo "${ECHO_T}$ac_header_preproc" >&6
20574
20575# So? What about this header?
20576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20577 yes:no: )
20578 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20579echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20580 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20581echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20582 ac_header_preproc=yes
20583 ;;
20584 no:yes:* )
20585 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20586echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20588echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20589 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20590echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20591 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20592echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20593 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20594echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20595 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20596echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20597 (
20598 cat <<\_ASBOX
20599## ------------------------------------------ ##
20600## Report this to the AC_PACKAGE_NAME lists. ##
20601## ------------------------------------------ ##
20602_ASBOX
20603 ) |
20604 sed "s/^/$as_me: WARNING: /" >&2
20605 ;;
20606esac
20607echo "$as_me:$LINENO: checking for tclInt.h" >&5
20608echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20609if test "${ac_cv_header_tclInt_h+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611else
20612 ac_cv_header_tclInt_h=$ac_header_preproc
20613fi
20614echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20615echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20616
20617fi
20618if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20619 ac_cv_c_tclh=installed
20620else
bec39cab 20621 ac_cv_c_tclh=""
3fc11d3e
JM
20622fi
20623
bec39cab 20624
3fc11d3e
JM
20625fi
20626
20627fi
20628
20629if test x"${ac_cv_c_tclh}" = x ; then
20630 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20631 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20632echo "$as_me: error: Can't find Tcl private headers" >&2;}
20633 { (exit 1); exit 1; }; }
3fc11d3e
JM
20634fi
20635if test x"${ac_cv_c_tclh}" != x ; then
20636 no_tcl=""
20637 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20638 echo "$as_me:$LINENO: result: is installed" >&5
20639echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20640 TCLHDIR=""
20641 else
bec39cab
AC
20642 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20643echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20644 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20645 TCLHDIR="-I${ac_cv_c_tclh}"
20646 fi
20647fi
20648
20649
20650
bec39cab 20651
3fc11d3e
JM
20652#
20653# Ok, lets find the tk source trees so we can use the headers
20654# If the directory (presumably symlink) named "tk" exists, use that one
20655# in preference to any others. Same logic is used when choosing library
20656# and again with Tcl. The search order is the best place to look first, then in
20657# decreasing significance. The loop breaks if the trigger file is found.
20658# Note the gross little conversion here of srcdir by cd'ing to the found
20659# directory. This converts the path from a relative to an absolute, so
20660# recursive cache variables for the path will work right. We check all
20661# the possible paths in one loop rather than many seperate loops to speed
20662# things up.
20663# the alternative search directory is involked by --with-tkinclude
20664#
20665no_tk=true
bec39cab
AC
20666echo "$as_me:$LINENO: checking for Tk private headers" >&5
20667echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20668
3fc11d3e
JM
20669# Check whether --with-tkinclude or --without-tkinclude was given.
20670if test "${with_tkinclude+set}" = set; then
20671 withval="$with_tkinclude"
20672 with_tkinclude=${withval}
bec39cab
AC
20673fi;
20674if test "${ac_cv_c_tkh+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20676else
bec39cab 20677
3fc11d3e
JM
20678# first check to see if --with-tkinclude was specified
20679if test x"${with_tkinclude}" != x ; then
20680 if test -f ${with_tkinclude}/tk.h ; then
20681 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20682 elif test -f ${with_tkinclude}/generic/tk.h ; then
20683 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20684 else
bec39cab
AC
20685 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20686echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20687 { (exit 1); exit 1; }; }
3fc11d3e
JM
20688 fi
20689fi
20690
20691# next check if it came with Tk configuration file
20692if test x"${ac_cv_c_tkconfig}" = x ; then
20693 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20694 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20695 fi
20696fi
20697
20698# next check in private source directory
20699#
20700# since ls returns lowest version numbers first, reverse its output
20701if test x"${ac_cv_c_tkh}" = x ; then
20702 for i in \
20703 ${srcdir}/../tk \
20704 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20705 ${srcdir}/../../tk \
20706 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20707 ${srcdir}/../../../tk \
20708 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20709 if test -f $i/generic/tk.h ; then
20710 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20711 break
20712 fi
20713 done
20714fi
20715# finally check in a few common install locations
20716#
20717# since ls returns lowest version numbers first, reverse its output
20718if test x"${ac_cv_c_tkh}" = x ; then
20719 for i in \
20720 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20721 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20722 /usr/local/src/tk \
20723 /usr/local/lib/tk \
20724 ${prefix}/include ; do
20725 if test -f $i/generic/tk.h ; then
20726 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20727 break
20728 fi
20729 done
20730fi
20731# see if one is installed
20732if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20733 if test "${ac_cv_header_tk_h+set}" = set; then
20734 echo "$as_me:$LINENO: checking for tk.h" >&5
20735echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20736if test "${ac_cv_header_tk_h+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738fi
20739echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20740echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20741else
20742 # Is the header compilable?
20743echo "$as_me:$LINENO: checking tk.h usability" >&5
20744echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20745cat >conftest.$ac_ext <<_ACEOF
20746/* confdefs.h. */
20747_ACEOF
20748cat confdefs.h >>conftest.$ac_ext
20749cat >>conftest.$ac_ext <<_ACEOF
20750/* end confdefs.h. */
20751$ac_includes_default
3fc11d3e 20752#include <tk.h>
bec39cab
AC
20753_ACEOF
20754rm -f conftest.$ac_objext
20755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20756 (eval $ac_compile) 2>conftest.er1
20757 ac_status=$?
20758 grep -v '^ *+' conftest.er1 >conftest.err
20759 rm -f conftest.er1
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
121ce6e5 20763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20766 ac_status=$?
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; } &&
20769 { ac_try='test -s conftest.$ac_objext'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; }; then
20775 ac_header_compiler=yes
20776else
20777 echo "$as_me: failed program was:" >&5
20778sed 's/^/| /' conftest.$ac_ext >&5
20779
20780ac_header_compiler=no
20781fi
20782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20784echo "${ECHO_T}$ac_header_compiler" >&6
20785
20786# Is the header present?
20787echo "$as_me:$LINENO: checking tk.h presence" >&5
20788echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20789cat >conftest.$ac_ext <<_ACEOF
20790/* confdefs.h. */
20791_ACEOF
20792cat confdefs.h >>conftest.$ac_ext
20793cat >>conftest.$ac_ext <<_ACEOF
20794/* end confdefs.h. */
20795#include <tk.h>
20796_ACEOF
20797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } >/dev/null; then
20805 if test -s conftest.err; then
20806 ac_cpp_err=$ac_c_preproc_warn_flag
20807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20808 else
20809 ac_cpp_err=
20810 fi
20811else
20812 ac_cpp_err=yes
3fc11d3e 20813fi
bec39cab
AC
20814if test -z "$ac_cpp_err"; then
20815 ac_header_preproc=yes
20816else
20817 echo "$as_me: failed program was:" >&5
20818sed 's/^/| /' conftest.$ac_ext >&5
20819
20820 ac_header_preproc=no
20821fi
20822rm -f conftest.err conftest.$ac_ext
20823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20824echo "${ECHO_T}$ac_header_preproc" >&6
20825
20826# So? What about this header?
20827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20828 yes:no: )
20829 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20830echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20832echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20833 ac_header_preproc=yes
20834 ;;
20835 no:yes:* )
20836 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20837echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20839echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20841echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20842 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20843echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20845echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20846 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20847echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20848 (
20849 cat <<\_ASBOX
20850## ------------------------------------------ ##
20851## Report this to the AC_PACKAGE_NAME lists. ##
20852## ------------------------------------------ ##
20853_ASBOX
20854 ) |
20855 sed "s/^/$as_me: WARNING: /" >&2
20856 ;;
20857esac
20858echo "$as_me:$LINENO: checking for tk.h" >&5
20859echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20860if test "${ac_cv_header_tk_h+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20862else
20863 ac_cv_header_tk_h=$ac_header_preproc
20864fi
20865echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20866echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20867
3fc11d3e 20868fi
bec39cab 20869if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
20870 ac_cv_c_tkh=installed
20871else
bec39cab 20872 ac_cv_c_tkh=""
3fc11d3e
JM
20873fi
20874
bec39cab 20875
3fc11d3e
JM
20876fi
20877
20878fi
20879
20880if test x"${ac_cv_c_tkh}" != x ; then
20881 no_tk=""
20882 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
20883 echo "$as_me:$LINENO: result: is installed" >&5
20884echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20885 TKHDIR=""
20886 else
bec39cab
AC
20887 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20888echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
20889 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20890 TKHDIR="-I${ac_cv_c_tkh}"
20891 fi
20892else
20893 TKHDIR="# no Tk directory found"
bec39cab
AC
20894 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20895echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
20896 no_tk=true
20897fi
20898
20899
20900
bec39cab
AC
20901
20902echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20903echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20904if test x"${ac_cv_c_itclh}" = x ; then
20905 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20906 if test -f $i/generic/itcl.h ; then
20907 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20908 break
20909 fi
20910 done
20911fi
20912if test x"${ac_cv_c_itclh}" = x ; then
20913 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
20914 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20915echo "$as_me: error: Can't find Itcl private headers" >&2;}
20916 { (exit 1); exit 1; }; }
3fc11d3e
JM
20917fi
20918if test x"${ac_cv_c_itclh}" != x ; then
20919 ITCLHDIR="-I${ac_cv_c_itclh}"
20920fi
20921# should always be here
20922# ITCLLIB="../itcl/itcl/unix/libitcl.a"
20923
20924#AC_SUBST(ITCLLIB)
20925
bec39cab
AC
20926
20927echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20928echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20929if test x"${ac_cv_c_itkh}" = x ; then
20930 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20931 if test -f $i/generic/itk.h ; then
20932 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20933 break
20934 fi
20935 done
20936fi
20937if test x"${ac_cv_c_itkh}" = x ; then
20938 ITKHDIR="# no Itk private headers found"
bec39cab
AC
20939 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20940echo "$as_me: error: Can't find Itk private headers" >&2;}
20941 { (exit 1); exit 1; }; }
3fc11d3e
JM
20942fi
20943if test x"${ac_cv_c_itkh}" != x ; then
20944 ITKHDIR="-I${ac_cv_c_itkh}"
20945fi
20946# should always be here
20947# ITKLIB="../itcl/itk/unix/libitk.a"
20948
20949#AC_SUBST(ITKLIB)
20950
3fc11d3e 20951
dd2504ab
JM
20952
20953 # now look for Tk library stuff
20954
d91670b9 20955 tkdir="../tk/${configdir}/"
dd2504ab
JM
20956
20957 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20958
3fc11d3e
JM
20959 # now look for Itcl library stuff
20960
bec39cab 20961
3fc11d3e
JM
20962#
20963# Ok, lets find the itcl configuration
bec39cab 20964# First, look for one uninstalled.
3fc11d3e
JM
20965# the alternative search directory is invoked by --with-itclconfig
20966#
20967
20968if test x"${no_itcl}" = x ; then
20969 # we reset no_itcl in case something fails here
20970 no_itcl=true
bec39cab
AC
20971
20972# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
20973if test "${with_itclconfig+set}" = set; then
20974 withval="$with_itclconfig"
20975 with_itclconfig=${withval}
bec39cab
AC
20976fi;
20977 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20978echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20979 if test "${ac_cv_c_itclconfig+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20981else
bec39cab 20982
3fc11d3e
JM
20983
20984 # First check to see if --with-itclconfig was specified.
20985 if test x"${with_itclconfig}" != x ; then
20986 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20987 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20988 else
bec39cab
AC
20989 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20990echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20991 { (exit 1); exit 1; }; }
3fc11d3e
JM
20992 fi
20993 fi
20994
20995 # then check for a private Itcl library
20996 if test x"${ac_cv_c_itclconfig}" = x ; then
20997 for i in \
20998 ../itcl/itcl \
20999 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21000 ../../itcl \
21001 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21002 ../../../itcl \
21003 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21004 if test -f "$i/itclConfig.sh" ; then
21005 ac_cv_c_itclconfig=`(cd $i; pwd)`
21006 break
21007 fi
21008 done
21009 fi
21010 # check in a few common install locations
21011 if test x"${ac_cv_c_itclconfig}" = x ; then
21012 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21013 if test -f "$i/itclConfig.sh" ; then
21014 ac_cv_c_itclconfig=`(cd $i; pwd)`
21015 break
21016 fi
21017 done
21018 fi
21019 # check in a few other private locations
21020 if test x"${ac_cv_c_itclconfig}" = x ; then
21021 for i in \
21022 ${srcdir}/../itcl/itcl \
21023 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21024 if test -f "$i/itclConfig.sh" ; then
21025 ac_cv_c_itclconfig=`(cd $i; pwd)`
21026 break
21027 fi
21028 done
21029 fi
bec39cab 21030
3fc11d3e
JM
21031fi
21032
21033 if test x"${ac_cv_c_itclconfig}" = x ; then
21034 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
21035 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21036echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
21037 else
21038 no_itcl=
21039 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
21040 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21041echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
21042 fi
21043fi
21044
21045 if test -z "${no_itcl}"; then
bec39cab 21046
3fc11d3e
JM
21047 if test -f "$ITCLCONFIG" ; then
21048 . $ITCLCONFIG
21049 fi
21050
3fc11d3e 21051
3fc11d3e
JM
21052
21053
bec39cab
AC
21054
21055
21056
21057
21058
21059
21060
3fc11d3e
JM
21061
21062 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 21063 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
21064 fi
21065
bec39cab 21066
3fc11d3e 21067 # now look for Itk library stuff
bec39cab 21068
3fc11d3e
JM
21069#
21070# Ok, lets find the itk configuration
bec39cab 21071# First, look for one uninstalled.
3fc11d3e
JM
21072# the alternative search directory is invoked by --with-itkconfig
21073#
21074
21075if test x"${no_itk}" = x ; then
21076 # we reset no_itk in case something fails here
21077 no_itk=true
bec39cab
AC
21078
21079# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
21080if test "${with_itkconfig+set}" = set; then
21081 withval="$with_itkconfig"
21082 with_itkconfig=${withval}
bec39cab
AC
21083fi;
21084 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21085echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21086 if test "${ac_cv_c_itkconfig+set}" = set; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21088else
bec39cab 21089
3fc11d3e
JM
21090
21091 # First check to see if --with-itkconfig was specified.
21092 if test x"${with_itkconfig}" != x ; then
21093 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21094 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21095 else
bec39cab
AC
21096 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21097echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21098 { (exit 1); exit 1; }; }
3fc11d3e
JM
21099 fi
21100 fi
21101
21102 # then check for a private Itk library
21103 if test x"${ac_cv_c_itkconfig}" = x ; then
21104 for i in \
21105 ../itcl/itk \
21106 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21107 ../../itk \
21108 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21109 ../../../itk \
21110 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21111 if test -f "$i/itkConfig.sh" ; then
21112 ac_cv_c_itkconfig=`(cd $i; pwd)`
21113 break
21114 fi
21115 done
21116 fi
21117 # check in a few common install locations
21118 if test x"${ac_cv_c_itkconfig}" = x ; then
21119 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21120 if test -f "$i/itkConfig.sh" ; then
21121 ac_cv_c_itkconfig=`(cd $i; pwd)`
21122 break
21123 fi
21124 done
21125 fi
21126 # check in a few other private locations
21127 if test x"${ac_cv_c_itkconfig}" = x ; then
21128 for i in \
21129 ${srcdir}/../itcl/itk \
21130 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21131 if test -f "$i/itkConfig.sh" ; then
21132 ac_cv_c_itkconfig=`(cd $i; pwd)`
21133 break
21134 fi
21135 done
21136 fi
bec39cab 21137
3fc11d3e
JM
21138fi
21139
21140 if test x"${ac_cv_c_itkconfig}" = x ; then
21141 ITKCONFIG="# no Itk configs found"
bec39cab
AC
21142 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21143echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
21144 else
21145 no_itk=
21146 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
21147 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21148echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
21149 fi
21150fi
21151
21152
bec39cab
AC
21153 if test -z "${no_itcl}"; then
21154
21155 if test -f "$ITKCONFIG" ; then
21156 . $ITKCONFIG
21157 fi
21158
21159
21160
21161
21162
21163
3fc11d3e 21164
3fc11d3e 21165
3fc11d3e
JM
21166
21167
3fc11d3e
JM
21168
21169
3fc11d3e 21170 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 21171 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
21172 fi
21173
4226a5a5 21174 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
21175
21176 # Include some libraries that Tcl and Tk want.
b2a1bd4f 21177 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
21178 # Yes, the ordering seems wrong here. But it isn't.
21179 # TK_LIBS is the list of libraries that need to be linked
21180 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21181 # were in LIBS then any link tests after this point would
21182 # try to include things like `$(LIBGUI)', which wouldn't work.
21183 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
21184
21185 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21186 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21187 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
21188 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21189 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21190 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21191 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
21192
21193 if test x$gdb_cv_os_cygwin = xyes; then
21194 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21195 WIN32LDAPP="-Wl,--subsystem,console"
21196 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21197 fi
21198 fi
21199 fi
ffc6a242 21200
bec39cab
AC
21201
21202
21203subdirs="$subdirs gdbtk"
3ace7edb 21204
3fc11d3e
JM
21205fi
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
dd2504ab 21219
bec39cab
AC
21220echo "$as_me:$LINENO: checking for X" >&5
21221echo $ECHO_N "checking for X... $ECHO_C" >&6
21222
121ce6e5 21223ac_path_x_has_been_run=yes
c906108c
SS
21224
21225# Check whether --with-x or --without-x was given.
21226if test "${with_x+set}" = set; then
21227 withval="$with_x"
c906108c 21228
bec39cab 21229fi;
c906108c
SS
21230# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21231if test "x$with_x" = xno; then
21232 # The user explicitly disabled X.
21233 have_x=disabled
21234else
21235 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21236 # Both variables are already set.
21237 have_x=yes
21238 else
bec39cab
AC
21239 if test "${ac_cv_have_x+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21241else
21242 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
21243ac_x_includes=no ac_x_libraries=no
21244rm -fr conftest.dir
21245if mkdir conftest.dir; then
21246 cd conftest.dir
c906108c 21247 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 21248 cat >Imakefile <<'_ACEOF'
c906108c
SS
21249acfindx:
21250 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 21251_ACEOF
c906108c
SS
21252 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21253 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21254 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21255 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21256 for ac_extension in a so sl; do
21257 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
21258 test -f $ac_im_libdir/libX11.$ac_extension; then
21259 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
21260 fi
21261 done
21262 # Screen out bogus values from the imake configuration. They are
21263 # bogus both because they are the default anyway, and because
21264 # using them would break gcc on systems where it needs fixed includes.
bec39cab 21265 case $ac_im_incroot in
c906108c 21266 /usr/include) ;;
bec39cab 21267 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 21268 esac
bec39cab 21269 case $ac_im_usrlibdir in
c906108c 21270 /usr/lib | /lib) ;;
bec39cab 21271 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
21272 esac
21273 fi
21274 cd ..
bec39cab 21275 rm -fr conftest.dir
c906108c
SS
21276fi
21277
bec39cab
AC
21278# Standard set of common directories for X headers.
21279# Check X11 before X11Rn because it is often a symlink to the current release.
21280ac_x_header_dirs='
21281/usr/X11/include
21282/usr/X11R6/include
21283/usr/X11R5/include
21284/usr/X11R4/include
21285
21286/usr/include/X11
21287/usr/include/X11R6
21288/usr/include/X11R5
21289/usr/include/X11R4
21290
21291/usr/local/X11/include
21292/usr/local/X11R6/include
21293/usr/local/X11R5/include
21294/usr/local/X11R4/include
21295
21296/usr/local/include/X11
21297/usr/local/include/X11R6
21298/usr/local/include/X11R5
21299/usr/local/include/X11R4
21300
21301/usr/X386/include
21302/usr/x386/include
21303/usr/XFree86/include/X11
21304
21305/usr/include
21306/usr/local/include
21307/usr/unsupported/include
21308/usr/athena/include
21309/usr/local/x11r5/include
21310/usr/lpp/Xamples/include
21311
21312/usr/openwin/include
21313/usr/openwin/share/include'
21314
21315if test "$ac_x_includes" = no; then
121ce6e5 21316 # Guess where to find include files, by looking for a specified header file.
c906108c 21317 # First, try using that file with no special directory specified.
bec39cab
AC
21318 cat >conftest.$ac_ext <<_ACEOF
21319/* confdefs.h. */
21320_ACEOF
21321cat confdefs.h >>conftest.$ac_ext
21322cat >>conftest.$ac_ext <<_ACEOF
21323/* end confdefs.h. */
121ce6e5 21324#include <X11/Xlib.h>
bec39cab
AC
21325_ACEOF
21326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21328 ac_status=$?
21329 grep -v '^ *+' conftest.er1 >conftest.err
21330 rm -f conftest.er1
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } >/dev/null; then
21334 if test -s conftest.err; then
21335 ac_cpp_err=$ac_c_preproc_warn_flag
21336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21337 else
21338 ac_cpp_err=
21339 fi
21340else
21341 ac_cpp_err=yes
21342fi
21343if test -z "$ac_cpp_err"; then
c906108c
SS
21344 # We can compile using X headers with no special include directory.
21345ac_x_includes=
21346else
bec39cab
AC
21347 echo "$as_me: failed program was:" >&5
21348sed 's/^/| /' conftest.$ac_ext >&5
21349
21350 for ac_dir in $ac_x_header_dirs; do
121ce6e5 21351 if test -r "$ac_dir/X11/Xlib.h"; then
bec39cab
AC
21352 ac_x_includes=$ac_dir
21353 break
21354 fi
21355done
c906108c 21356fi
bec39cab
AC
21357rm -f conftest.err conftest.$ac_ext
21358fi # $ac_x_includes = no
c906108c 21359
bec39cab 21360if test "$ac_x_libraries" = no; then
c906108c 21361 # Check for the libraries.
c906108c
SS
21362 # See if we find them without any special options.
21363 # Don't add to $LIBS permanently.
bec39cab 21364 ac_save_LIBS=$LIBS
121ce6e5 21365 LIBS="-lX11 $LIBS"
bec39cab
AC
21366 cat >conftest.$ac_ext <<_ACEOF
21367/* confdefs.h. */
21368_ACEOF
21369cat confdefs.h >>conftest.$ac_ext
21370cat >>conftest.$ac_ext <<_ACEOF
21371/* end confdefs.h. */
121ce6e5 21372#include <X11/Xlib.h>
bec39cab
AC
21373int
21374main ()
21375{
121ce6e5 21376XrmInitialize ()
bec39cab
AC
21377 ;
21378 return 0;
21379}
21380_ACEOF
21381rm -f conftest.$ac_objext conftest$ac_exeext
21382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21383 (eval $ac_link) 2>conftest.er1
21384 ac_status=$?
21385 grep -v '^ *+' conftest.er1 >conftest.err
21386 rm -f conftest.er1
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } &&
121ce6e5 21390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392 (eval $ac_try) 2>&5
21393 ac_status=$?
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; } &&
21396 { ac_try='test -s conftest$ac_exeext'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21399 ac_status=$?
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; }; then
21402 LIBS=$ac_save_LIBS
c906108c
SS
21403# We can link X programs with no special library path.
21404ac_x_libraries=
21405else
bec39cab
AC
21406 echo "$as_me: failed program was:" >&5
21407sed 's/^/| /' conftest.$ac_ext >&5
21408
21409LIBS=$ac_save_LIBS
21410for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21411do
bec39cab 21412 # Don't even attempt the hair of trying to link an X program!
c906108c 21413 for ac_extension in a so sl; do
121ce6e5 21414 if test -r $ac_dir/libX11.$ac_extension; then
c906108c
SS
21415 ac_x_libraries=$ac_dir
21416 break 2
21417 fi
21418 done
21419done
21420fi
bec39cab
AC
21421rm -f conftest.err conftest.$ac_objext \
21422 conftest$ac_exeext conftest.$ac_ext
21423fi # $ac_x_libraries = no
c906108c 21424
bec39cab 21425if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21426 # Didn't find X anywhere. Cache the known absence of X.
21427 ac_cv_have_x="have_x=no"
21428else
21429 # Record where we found X for the cache.
21430 ac_cv_have_x="have_x=yes \
bec39cab 21431 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21432fi
21433fi
bec39cab 21434
c906108c
SS
21435 fi
21436 eval "$ac_cv_have_x"
21437fi # $with_x != no
21438
21439if test "$have_x" != yes; then
bec39cab
AC
21440 echo "$as_me:$LINENO: result: $have_x" >&5
21441echo "${ECHO_T}$have_x" >&6
c906108c
SS
21442 no_x=yes
21443else
21444 # If each of the values was on the command line, it overrides each guess.
21445 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21446 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21447 # Update the cache value to reflect the command line values.
21448 ac_cv_have_x="have_x=yes \
21449 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
121ce6e5
DJ
21450 # It might be that x_includes is empty (headers are found in the
21451 # standard search path. Then output the corresponding message
21452 ac_out_x_includes=$x_includes
21453 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
21454 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
21455echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
c906108c
SS
21456fi
21457
21458
9cc52bde
MK
21459# Check whether we should enable the TUI, but only do so if we really
21460# can.
21461if test x"$enable_tui" = xyes; then
21462 if test -d $srcdir/tui; then
21463 if test "$ac_cv_search_waddstr" != no; then
21464 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21465 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21466 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21467 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21468 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21469 CONFIG_ALL="${CONFIG_ALL} all-tui"
21470 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21471 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21472 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21473 else
bec39cab
AC
21474 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21475echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21476 fi
21477 fi
21478fi
21479
bec39cab
AC
21480# Unlike the sim directory, whether a simulator is linked is controlled by
21481# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21482# This code just checks for a few cases where we'd like to ignore those
21483# definitions, even when they're present in the '.mt' file. These cases
21484# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21485# not part of the source tree.
7a292a7a
SS
21486#
21487# Check whether --enable-sim or --disable-sim was given.
21488if test "${enable_sim+set}" = set; then
21489 enableval="$enable_sim"
21490 echo "enable_sim = $enable_sim";
21491 echo "enableval = ${enableval}";
21492 case "${enableval}" in
21493 yes) ignore_sim=false ;;
21494 no) ignore_sim=true ;;
21495 *) ignore_sim=false ;;
21496 esac
21497else
21498 ignore_sim=false
bec39cab 21499fi;
7a292a7a
SS
21500
21501if test ! -d "${srcdir}/../sim"; then
21502 ignore_sim=true
21503fi
21504
21505if test "${ignore_sim}" = "true"; then
21506 IGNORE_SIM="SIM="
21507 IGNORE_SIM_OBS="SIM_OBS="
21508else
21509 IGNORE_SIM=""
21510 IGNORE_SIM_OBS=""
60ca704f
SE
21511
21512cat >>confdefs.h <<\_ACEOF
7a292a7a 21513#define WITH_SIM 1
bec39cab 21514_ACEOF
7a292a7a
SS
21515
21516fi
21517
21518
21519
c906108c
SS
21520
21521
21522
21523
21524
21525
dfcd3bfb 21526
e56ac5c3
AC
21527
21528
b3a90332
AC
21529
21530
c35f4ffc 21531# List of host floatformats.
bec39cab
AC
21532
21533cat >>confdefs.h <<_ACEOF
c35f4ffc 21534#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21535_ACEOF
c35f4ffc 21536
bec39cab
AC
21537
21538cat >>confdefs.h <<_ACEOF
c35f4ffc 21539#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21540_ACEOF
21541
c35f4ffc 21542
bec39cab 21543cat >>confdefs.h <<_ACEOF
c35f4ffc 21544#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21545_ACEOF
c35f4ffc
AC
21546
21547
c906108c
SS
21548# target_subdir is used by the testsuite to find the target libraries.
21549target_subdir=
21550if test "${host}" != "${target}"; then
21551 target_subdir="${target_alias}/"
21552fi
21553
21554
21555frags=
0dad8a66
MK
21556if test "${target}" = "${host}"; then
21557 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21558 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21559 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21560echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21561 { (exit 1); exit 1; }; }
0dad8a66
MK
21562 fi
21563 frags="$frags $host_makefile_frag"
21564else
21565 host_makefile_frag=/dev/null
c906108c 21566fi
c906108c
SS
21567
21568target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21569if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21570 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21571echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21572 { (exit 1); exit 1; }; }
c906108c
SS
21573fi
21574frags="$frags $target_makefile_frag"
21575
21576
21577
21578
21579
21580hostfile=`sed -n '
21581s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21582' ${host_makefile_frag}`
21583
21584targetfile=`sed -n '
2c0fc042 21585s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21586' ${target_makefile_frag}`
21587
c906108c 21588if test "${target}" = "${host}"; then
a85f51e7
DJ
21589# We pick this up from the host configuration file (.mh) because we
21590# do not have a native configuration Makefile fragment.
c906108c
SS
21591nativefile=`sed -n '
21592s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21593' ${host_makefile_frag}`
c906108c
SS
21594fi
21595
21596
b00a8037 21597if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21598
21599cat >>confdefs.h <<_ACEOF
b00a8037 21600#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21601_ACEOF
b00a8037
DJ
21602
21603fi
21604
8dcde887
MK
21605# Enable multi-ice-gdb-server.
21606# Check whether --enable-multi-ice or --disable-multi-ice was given.
21607if test "${enable_multi_ice+set}" = set; then
21608 enableval="$enable_multi_ice"
21609 case $enableval in
21610 yes | no)
21611 ;;
bec39cab
AC
21612 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21613echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21614 { (exit 1); exit 1; }; } ;;
8dcde887 21615 esac
bec39cab 21616fi;
8dcde887 21617if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21618
21619
21620subdirs="$subdirs multi-ice"
3ace7edb 21621
a85f51e7
DJ
21622fi
21623
8dcde887
MK
21624# We only build gdbserver automatically if host and target are the same.
21625if test "x$target" = "x$host"; then
bec39cab
AC
21626 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21627echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21628 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21629 echo "$as_me:$LINENO: result: yes" >&5
21630echo "${ECHO_T}yes" >&6
21631
21632
21633subdirs="$subdirs gdbserver"
3ace7edb 21634
8dcde887 21635 else
bec39cab
AC
21636 echo "$as_me:$LINENO: result: no" >&5
21637echo "${ECHO_T}no" >&6
8dcde887
MK
21638 fi
21639fi
21640
065a1afc
JB
21641# We configure the nlm subdirectory on netware targets, as instructed
21642# by configure.tgt.
21643if test "x$build_nlm" = xyes; then
21644
21645
21646subdirs="$subdirs nlm"
21647
21648fi
21649
2c0fc042
AC
21650# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21651# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21652# to an empty version.
c906108c
SS
21653
21654files=
21655links=
5a2402b8 21656
c906108c 21657rm -f xm.h
5a2402b8 21658xm_h=""
c906108c 21659if test "${hostfile}" != ""; then
5a2402b8 21660 xm_h=xm.h
0f475e27
AC
21661 case "${hostfile}" in
21662 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21663 * ) GDB_XM_FILE="${hostfile}"
21664 esac
5a2402b8
AC
21665 files="${files} ${GDB_XM_FILE}"
21666 links="${links} xm.h"
60ca704f
SE
21667
21668cat >>confdefs.h <<_ACEOF
b78960be 21669#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21670_ACEOF
5a2402b8 21671
c906108c 21672fi
5a2402b8
AC
21673
21674
c906108c 21675rm -f tm.h
5a2402b8 21676tm_h=""
c906108c 21677if test "${targetfile}" != ""; then
5a2402b8 21678 tm_h=tm.h
0f475e27 21679 case "${targetfile}" in
b8c4aece 21680 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21681 * ) GDB_TM_FILE="${targetfile}"
21682 esac
5a2402b8
AC
21683 files="${files} ${GDB_TM_FILE}"
21684 links="${links} tm.h"
60ca704f
SE
21685
21686cat >>confdefs.h <<_ACEOF
b78960be 21687#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21688_ACEOF
5a2402b8 21689
c906108c 21690fi
5a2402b8
AC
21691
21692
c906108c 21693rm -f nm.h
5a2402b8 21694nm_h=""
c906108c 21695if test "${nativefile}" != ""; then
5a2402b8 21696 nm_h=nm.h
0f475e27
AC
21697 case "${nativefile}" in
21698 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21699 * ) GDB_NM_FILE="${nativefile}"
21700 esac
5a2402b8
AC
21701 files="${files} ${GDB_NM_FILE}"
21702 links="${links} nm.h"
60ca704f
SE
21703
21704cat >>confdefs.h <<_ACEOF
b78960be 21705#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21706_ACEOF
5a2402b8 21707
c906108c 21708fi
5a2402b8
AC
21709
21710
bec39cab
AC
21711ac_sources="$files"
21712ac_dests="$links"
21713while test -n "$ac_sources"; do
21714 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21715 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21716 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21717done
21718 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21719
21720
c906108c
SS
21721
21722
c906108c 21723
c906108c 21724
bec39cab
AC
21725cat >>confdefs.h <<\_ACEOF
21726#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21727_ACEOF
c906108c 21728
234b45d4 21729
234b45d4
KB
21730
21731
21732
bec39cab 21733# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21734if test "${with_libiconv_prefix+set}" = set; then
21735 withval="$with_libiconv_prefix"
bec39cab 21736
234b45d4
KB
21737 for dir in `echo "$withval" | tr : ' '`; do
21738 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21739 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21740 done
234b45d4 21741
bec39cab 21742fi;
234b45d4 21743
bec39cab
AC
21744 echo "$as_me:$LINENO: checking for iconv" >&5
21745echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21746if test "${am_cv_func_iconv+set}" = set; then
21747 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21748else
bec39cab 21749
234b45d4
KB
21750 am_cv_func_iconv="no, consider installing GNU libiconv"
21751 am_cv_lib_iconv=no
bec39cab
AC
21752 cat >conftest.$ac_ext <<_ACEOF
21753/* confdefs.h. */
21754_ACEOF
21755cat confdefs.h >>conftest.$ac_ext
21756cat >>conftest.$ac_ext <<_ACEOF
21757/* end confdefs.h. */
234b45d4
KB
21758#include <stdlib.h>
21759#include <iconv.h>
bec39cab
AC
21760int
21761main ()
21762{
234b45d4
KB
21763iconv_t cd = iconv_open("","");
21764 iconv(cd,NULL,NULL,NULL,NULL);
21765 iconv_close(cd);
bec39cab
AC
21766 ;
21767 return 0;
21768}
21769_ACEOF
21770rm -f conftest.$ac_objext conftest$ac_exeext
21771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21772 (eval $ac_link) 2>conftest.er1
21773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } &&
121ce6e5 21779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest$ac_exeext'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
234b45d4
KB
21791 am_cv_func_iconv=yes
21792else
bec39cab
AC
21793 echo "$as_me: failed program was:" >&5
21794sed 's/^/| /' conftest.$ac_ext >&5
21795
234b45d4 21796fi
bec39cab
AC
21797rm -f conftest.err conftest.$ac_objext \
21798 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21799 if test "$am_cv_func_iconv" != yes; then
21800 am_save_LIBS="$LIBS"
21801 LIBS="$LIBS -liconv"
bec39cab
AC
21802 cat >conftest.$ac_ext <<_ACEOF
21803/* confdefs.h. */
21804_ACEOF
21805cat confdefs.h >>conftest.$ac_ext
21806cat >>conftest.$ac_ext <<_ACEOF
21807/* end confdefs.h. */
234b45d4
KB
21808#include <stdlib.h>
21809#include <iconv.h>
bec39cab
AC
21810int
21811main ()
21812{
234b45d4
KB
21813iconv_t cd = iconv_open("","");
21814 iconv(cd,NULL,NULL,NULL,NULL);
21815 iconv_close(cd);
bec39cab
AC
21816 ;
21817 return 0;
21818}
21819_ACEOF
21820rm -f conftest.$ac_objext conftest$ac_exeext
21821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21822 (eval $ac_link) 2>conftest.er1
21823 ac_status=$?
21824 grep -v '^ *+' conftest.er1 >conftest.err
21825 rm -f conftest.er1
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } &&
121ce6e5 21829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; } &&
21835 { ac_try='test -s conftest$ac_exeext'
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21838 ac_status=$?
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; }; then
234b45d4
KB
21841 am_cv_lib_iconv=yes
21842 am_cv_func_iconv=yes
21843else
bec39cab
AC
21844 echo "$as_me: failed program was:" >&5
21845sed 's/^/| /' conftest.$ac_ext >&5
21846
234b45d4 21847fi
bec39cab
AC
21848rm -f conftest.err conftest.$ac_objext \
21849 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21850 LIBS="$am_save_LIBS"
21851 fi
bec39cab
AC
21852
21853fi
21854echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21855echo "${ECHO_T}$am_cv_func_iconv" >&6
21856 if test "$am_cv_func_iconv" = yes; then
21857
21858cat >>confdefs.h <<\_ACEOF
21859#define HAVE_ICONV 1
21860_ACEOF
21861
21862 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21863echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21864 if test "${am_cv_proto_iconv+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21866else
21867
21868 cat >conftest.$ac_ext <<_ACEOF
21869/* confdefs.h. */
21870_ACEOF
21871cat confdefs.h >>conftest.$ac_ext
21872cat >>conftest.$ac_ext <<_ACEOF
21873/* end confdefs.h. */
21874
21875#include <stdlib.h>
21876#include <iconv.h>
21877extern
21878#ifdef __cplusplus
21879"C"
21880#endif
21881#if defined(__STDC__) || defined(__cplusplus)
21882size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21883#else
21884size_t iconv();
21885#endif
21886
21887int
21888main ()
21889{
21890
21891 ;
21892 return 0;
21893}
21894_ACEOF
21895rm -f conftest.$ac_objext
21896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21897 (eval $ac_compile) 2>conftest.er1
21898 ac_status=$?
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } &&
121ce6e5 21904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; } &&
21910 { ac_try='test -s conftest.$ac_objext'
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21916 am_cv_proto_iconv_arg1=""
21917else
21918 echo "$as_me: failed program was:" >&5
21919sed 's/^/| /' conftest.$ac_ext >&5
21920
21921am_cv_proto_iconv_arg1="const"
21922fi
21923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21924 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);"
21925fi
21926
21927 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21928 echo "$as_me:$LINENO: result: ${ac_t:-
21929 }$am_cv_proto_iconv" >&5
21930echo "${ECHO_T}${ac_t:-
21931 }$am_cv_proto_iconv" >&6
21932
21933cat >>confdefs.h <<_ACEOF
21934#define ICONV_CONST $am_cv_proto_iconv_arg1
21935_ACEOF
21936
21937 fi
21938 LIBICONV=
21939 if test "$am_cv_lib_iconv" = yes; then
21940 LIBICONV="-liconv"
21941 fi
21942
21943
21944
21945 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21946 ac_config_commands="$ac_config_commands default"
21947cat >confcache <<\_ACEOF
21948# This file is a shell script that caches the results of configure
21949# tests run on this system so they can be shared between configure
21950# scripts and configure runs, see configure's option --config-cache.
21951# It is not useful on other systems. If it contains results you don't
21952# want to keep, you may remove or edit it.
21953#
21954# config.status only pays attention to the cache file if you give it
21955# the --recheck option to rerun configure.
21956#
21957# `ac_cv_env_foo' variables (set or unset) will be overridden when
21958# loading this file, other *unset* `ac_cv_foo' will be assigned the
21959# following values.
21960
21961_ACEOF
21962
21963# The following way of writing the cache mishandles newlines in values,
21964# but we know of no workaround that is simple, portable, and efficient.
21965# So, don't put newlines in cache variables' values.
21966# Ultrix sh set writes to stderr and can't be redirected directly,
21967# and sets the high bit in the cache file unless we assign to the vars.
21968{
21969 (set) 2>&1 |
21970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21971 *ac_space=\ *)
21972 # `set' does not quote correctly, so add quotes (double-quote
21973 # substitution turns \\\\ into \\, and sed turns \\ into \).
21974 sed -n \
21975 "s/'/'\\\\''/g;
21976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21977 ;;
21978 *)
21979 # `set' quotes correctly as required by POSIX, so do not add quotes.
21980 sed -n \
21981 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21982 ;;
21983 esac;
21984} |
21985 sed '
21986 t clear
21987 : clear
21988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21989 t end
21990 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21991 : end' >>confcache
21992if diff $cache_file confcache >/dev/null 2>&1; then :; else
21993 if test -w $cache_file; then
21994 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21995 cat confcache >$cache_file
21996 else
21997 echo "not updating unwritable cache $cache_file"
21998 fi
21999fi
22000rm -f confcache
22001
22002test "x$prefix" = xNONE && prefix=$ac_default_prefix
22003# Let make expand exec_prefix.
22004test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22005
22006# VPATH may cause trouble with some makes, so we remove $(srcdir),
22007# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22008# trailing colons and then remove the whole line if VPATH becomes empty
22009# (actually we leave an empty line to preserve line numbers).
22010if test "x$srcdir" = x.; then
22011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22012s/:*\$(srcdir):*/:/;
22013s/:*\${srcdir}:*/:/;
22014s/:*@srcdir@:*/:/;
22015s/^\([^=]*=[ ]*\):*/\1/;
22016s/:*$//;
22017s/^[^=]*=[ ]*$//;
22018}'
22019fi
22020
22021DEFS=-DHAVE_CONFIG_H
22022
22023ac_libobjs=
22024ac_ltlibobjs=
22025for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22026 # 1. Remove the extension, and $U if already installed.
22027 ac_i=`echo "$ac_i" |
22028 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22029 # 2. Add them.
22030 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22031 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22032done
22033LIBOBJS=$ac_libobjs
22034
22035LTLIBOBJS=$ac_ltlibobjs
22036
22037
85981d60
AC
22038if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22039 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22040Usually this means the macro was only invoked conditionally." >&5
22041echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22042Usually this means the macro was only invoked conditionally." >&2;}
22043 { (exit 1); exit 1; }; }
22044fi
bec39cab
AC
22045
22046: ${CONFIG_STATUS=./config.status}
22047ac_clean_files_save=$ac_clean_files
22048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22049{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22050echo "$as_me: creating $CONFIG_STATUS" >&6;}
22051cat >$CONFIG_STATUS <<_ACEOF
22052#! $SHELL
22053# Generated by $as_me.
22054# Run this file to recreate the current configuration.
22055# Compiler output produced by configure, useful for debugging
22056# configure, is in config.log if it exists.
22057
22058debug=false
22059ac_cs_recheck=false
22060ac_cs_silent=false
22061SHELL=\${CONFIG_SHELL-$SHELL}
22062_ACEOF
22063
22064cat >>$CONFIG_STATUS <<\_ACEOF
22065## --------------------- ##
22066## M4sh Initialization. ##
22067## --------------------- ##
22068
22069# Be Bourne compatible
22070if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22071 emulate sh
22072 NULLCMD=:
22073 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22074 # is contrary to our usage. Disable this feature.
22075 alias -g '${1+"$@"}'='"$@"'
22076elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22077 set -o posix
22078fi
22079DUALCASE=1; export DUALCASE # for MKS sh
22080
22081# Support unset when possible.
22082if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22083 as_unset=unset
22084else
22085 as_unset=false
22086fi
22087
22088
22089# Work around bugs in pre-3.0 UWIN ksh.
22090$as_unset ENV MAIL MAILPATH
22091PS1='$ '
22092PS2='> '
22093PS4='+ '
22094
22095# NLS nuisances.
22096for as_var in \
22097 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22098 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22099 LC_TELEPHONE LC_TIME
22100do
22101 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22102 eval $as_var=C; export $as_var
22103 else
22104 $as_unset $as_var
22105 fi
22106done
22107
22108# Required to use basename.
22109if expr a : '\(a\)' >/dev/null 2>&1; then
22110 as_expr=expr
22111else
22112 as_expr=false
22113fi
22114
22115if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22116 as_basename=basename
22117else
22118 as_basename=false
22119fi
22120
22121
22122# Name of the executable.
22123as_me=`$as_basename "$0" ||
22124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22125 X"$0" : 'X\(//\)$' \| \
22126 X"$0" : 'X\(/\)$' \| \
22127 . : '\(.\)' 2>/dev/null ||
22128echo X/"$0" |
22129 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22130 /^X\/\(\/\/\)$/{ s//\1/; q; }
22131 /^X\/\(\/\).*/{ s//\1/; q; }
22132 s/.*/./; q'`
22133
22134
22135# PATH needs CR, and LINENO needs CR and PATH.
22136# Avoid depending upon Character Ranges.
22137as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22138as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22139as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22140as_cr_digits='0123456789'
22141as_cr_alnum=$as_cr_Letters$as_cr_digits
22142
22143# The user is always right.
22144if test "${PATH_SEPARATOR+set}" != set; then
22145 echo "#! /bin/sh" >conf$$.sh
22146 echo "exit 0" >>conf$$.sh
22147 chmod +x conf$$.sh
22148 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22149 PATH_SEPARATOR=';'
22150 else
22151 PATH_SEPARATOR=:
22152 fi
22153 rm -f conf$$.sh
22154fi
22155
22156
22157 as_lineno_1=$LINENO
22158 as_lineno_2=$LINENO
22159 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22160 test "x$as_lineno_1" != "x$as_lineno_2" &&
22161 test "x$as_lineno_3" = "x$as_lineno_2" || {
22162 # Find who we are. Look in the path if we contain no path at all
22163 # relative or not.
22164 case $0 in
22165 *[\\/]* ) as_myself=$0 ;;
22166 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22167for as_dir in $PATH
22168do
22169 IFS=$as_save_IFS
22170 test -z "$as_dir" && as_dir=.
22171 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22172done
22173
22174 ;;
22175 esac
22176 # We did not find ourselves, most probably we were run as `sh COMMAND'
22177 # in which case we are not to be found in the path.
22178 if test "x$as_myself" = x; then
22179 as_myself=$0
22180 fi
22181 if test ! -f "$as_myself"; then
22182 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22183echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22184 { (exit 1); exit 1; }; }
22185 fi
22186 case $CONFIG_SHELL in
22187 '')
22188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22190do
22191 IFS=$as_save_IFS
22192 test -z "$as_dir" && as_dir=.
22193 for as_base in sh bash ksh sh5; do
22194 case $as_dir in
22195 /*)
22196 if ("$as_dir/$as_base" -c '
22197 as_lineno_1=$LINENO
22198 as_lineno_2=$LINENO
22199 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22200 test "x$as_lineno_1" != "x$as_lineno_2" &&
22201 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22202 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22203 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22204 CONFIG_SHELL=$as_dir/$as_base
22205 export CONFIG_SHELL
22206 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22207 fi;;
22208 esac
22209 done
22210done
22211;;
22212 esac
22213
22214 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22215 # uniformly replaced by the line number. The first 'sed' inserts a
22216 # line-number line before each line; the second 'sed' does the real
22217 # work. The second script uses 'N' to pair each line-number line
22218 # with the numbered line, and appends trailing '-' during
22219 # substitution so that $LINENO is not a special case at line end.
22220 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22221 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22222 sed '=' <$as_myself |
22223 sed '
22224 N
22225 s,$,-,
22226 : loop
22227 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22228 t loop
22229 s,-$,,
22230 s,^['$as_cr_digits']*\n,,
22231 ' >$as_me.lineno &&
22232 chmod +x $as_me.lineno ||
22233 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22234echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22235 { (exit 1); exit 1; }; }
22236
22237 # Don't try to exec as it changes $[0], causing all sort of problems
22238 # (the dirname of $[0] is not the place where we might find the
22239 # original and so on. Autoconf is especially sensible to this).
22240 . ./$as_me.lineno
22241 # Exit status is that of the last command.
22242 exit
22243}
22244
22245
22246case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22247 *c*,-n*) ECHO_N= ECHO_C='
22248' ECHO_T=' ' ;;
22249 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22250 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22251esac
22252
22253if expr a : '\(a\)' >/dev/null 2>&1; then
22254 as_expr=expr
22255else
22256 as_expr=false
22257fi
22258
22259rm -f conf$$ conf$$.exe conf$$.file
22260echo >conf$$.file
22261if ln -s conf$$.file conf$$ 2>/dev/null; then
22262 # We could just check for DJGPP; but this test a) works b) is more generic
22263 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22264 if test -f conf$$.exe; then
22265 # Don't use ln at all; we don't have any links
22266 as_ln_s='cp -p'
22267 else
22268 as_ln_s='ln -s'
22269 fi
22270elif ln conf$$.file conf$$ 2>/dev/null; then
22271 as_ln_s=ln
22272else
22273 as_ln_s='cp -p'
22274fi
22275rm -f conf$$ conf$$.exe conf$$.file
22276
22277if mkdir -p . 2>/dev/null; then
22278 as_mkdir_p=:
22279else
22280 test -d ./-p && rmdir ./-p
22281 as_mkdir_p=false
22282fi
22283
22284as_executable_p="test -f"
22285
22286# Sed expression to map a string onto a valid CPP name.
22287as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22288
22289# Sed expression to map a string onto a valid variable name.
22290as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22291
22292
22293# IFS
22294# We need space, tab and new line, in precisely that order.
22295as_nl='
22296'
22297IFS=" $as_nl"
22298
22299# CDPATH.
22300$as_unset CDPATH
22301
22302exec 6>&1
22303
22304# Open the log real soon, to keep \$[0] and so on meaningful, and to
22305# report actual input values of CONFIG_FILES etc. instead of their
22306# values after options handling. Logging --version etc. is OK.
22307exec 5>>config.log
22308{
22309 echo
22310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22311## Running $as_me. ##
22312_ASBOX
22313} >&5
22314cat >&5 <<_CSEOF
22315
22316This file was extended by $as_me, which was
22317generated by GNU Autoconf 2.59. Invocation command line was
22318
22319 CONFIG_FILES = $CONFIG_FILES
22320 CONFIG_HEADERS = $CONFIG_HEADERS
22321 CONFIG_LINKS = $CONFIG_LINKS
22322 CONFIG_COMMANDS = $CONFIG_COMMANDS
22323 $ $0 $@
22324
22325_CSEOF
22326echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22327echo >&5
22328_ACEOF
22329
22330# Files that config.status was made for.
22331if test -n "$ac_config_files"; then
22332 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22333fi
22334
22335if test -n "$ac_config_headers"; then
22336 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22337fi
22338
22339if test -n "$ac_config_links"; then
22340 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22341fi
22342
bec39cab
AC
22343if test -n "$ac_config_commands"; then
22344 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22345fi
234b45d4 22346
bec39cab 22347cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22348
bec39cab
AC
22349ac_cs_usage="\
22350\`$as_me' instantiates files from templates according to the
22351current configuration.
234b45d4 22352
bec39cab 22353Usage: $0 [OPTIONS] [FILE]...
234b45d4 22354
bec39cab
AC
22355 -h, --help print this help, then exit
22356 -V, --version print version number, then exit
22357 -q, --quiet do not print progress messages
22358 -d, --debug don't remove temporary files
22359 --recheck update $as_me by reconfiguring in the same conditions
22360 --file=FILE[:TEMPLATE]
22361 instantiate the configuration file FILE
22362 --header=FILE[:TEMPLATE]
22363 instantiate the configuration header FILE
234b45d4 22364
bec39cab
AC
22365Configuration files:
22366$config_files
234b45d4 22367
bec39cab
AC
22368Configuration headers:
22369$config_headers
234b45d4 22370
bec39cab
AC
22371Configuration links:
22372$config_links
234b45d4 22373
bec39cab
AC
22374Configuration commands:
22375$config_commands
22376
22377Report bugs to <bug-autoconf@gnu.org>."
22378_ACEOF
22379
22380cat >>$CONFIG_STATUS <<_ACEOF
22381ac_cs_version="\\
22382config.status
22383configured by $0, generated by GNU Autoconf 2.59,
22384 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22385
22386Copyright (C) 2003 Free Software Foundation, Inc.
22387This config.status script is free software; the Free Software Foundation
22388gives unlimited permission to copy, distribute and modify it."
22389srcdir=$srcdir
22390INSTALL="$INSTALL"
22391_ACEOF
22392
22393cat >>$CONFIG_STATUS <<\_ACEOF
22394# If no file are specified by the user, then we need to provide default
22395# value. By we need to know if files were specified by the user.
22396ac_need_defaults=:
22397while test $# != 0
22398do
22399 case $1 in
22400 --*=*)
22401 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22402 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22403 ac_shift=:
c906108c 22404 ;;
bec39cab
AC
22405 -*)
22406 ac_option=$1
22407 ac_optarg=$2
22408 ac_shift=shift
c906108c 22409 ;;
bec39cab
AC
22410 *) # This is not an option, so the user has probably given explicit
22411 # arguments.
22412 ac_option=$1
22413 ac_need_defaults=false;;
22414 esac
c906108c 22415
bec39cab
AC
22416 case $ac_option in
22417 # Handling of the options.
22418_ACEOF
22419cat >>$CONFIG_STATUS <<\_ACEOF
22420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22421 ac_cs_recheck=: ;;
22422 --version | --vers* | -V )
22423 echo "$ac_cs_version"; exit 0 ;;
22424 --he | --h)
22425 # Conflict between --help and --header
22426 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22427Try \`$0 --help' for more information." >&5
22428echo "$as_me: error: ambiguous option: $1
22429Try \`$0 --help' for more information." >&2;}
22430 { (exit 1); exit 1; }; };;
22431 --help | --hel | -h )
22432 echo "$ac_cs_usage"; exit 0 ;;
22433 --debug | --d* | -d )
22434 debug=: ;;
22435 --file | --fil | --fi | --f )
22436 $ac_shift
22437 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22438 ac_need_defaults=false;;
22439 --header | --heade | --head | --hea )
22440 $ac_shift
22441 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22442 ac_need_defaults=false;;
22443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22445 ac_cs_silent=: ;;
c906108c 22446
bec39cab
AC
22447 # This is an error.
22448 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22449Try \`$0 --help' for more information." >&5
22450echo "$as_me: error: unrecognized option: $1
22451Try \`$0 --help' for more information." >&2;}
22452 { (exit 1); exit 1; }; } ;;
c906108c 22453
bec39cab 22454 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22455
bec39cab
AC
22456 esac
22457 shift
22458done
c906108c 22459
bec39cab 22460ac_configure_extra_args=
c906108c 22461
bec39cab
AC
22462if $ac_cs_silent; then
22463 exec 6>/dev/null
22464 ac_configure_extra_args="$ac_configure_extra_args --silent"
22465fi
c906108c 22466
bec39cab
AC
22467_ACEOF
22468cat >>$CONFIG_STATUS <<_ACEOF
22469if \$ac_cs_recheck; then
22470 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22471 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22472fi
22473
22474_ACEOF
22475
22476cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22477#
bec39cab 22478# INIT-COMMANDS section.
c906108c 22479#
c906108c 22480
bec39cab
AC
22481
22482gdb_host_cpu=$gdb_host_cpu
22483gdb_target_cpu=$gdb_target_cpu
22484nativefile=$nativefile
22485
22486
22487_ACEOF
22488
22489
22490
22491cat >>$CONFIG_STATUS <<\_ACEOF
22492for ac_config_target in $ac_config_targets
c906108c 22493do
bec39cab
AC
22494 case "$ac_config_target" in
22495 # Handling of arguments.
22496 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22497 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22498 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22499 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22500 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22501 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22502echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22503 { (exit 1); exit 1; }; };;
c906108c
SS
22504 esac
22505done
22506
bec39cab
AC
22507# If the user did not use the arguments to specify the items to instantiate,
22508# then the envvar interface is used. Set only those that are not.
22509# We use the long form for the default assignment because of an extremely
22510# bizarre bug on SunOS 4.1.3.
22511if $ac_need_defaults; then
22512 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22513 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22514 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22515 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22516fi
22517
22518# Have a temporary directory for convenience. Make it in the build tree
22519# simply because there is no reason to put it here, and in addition,
22520# creating and moving files from /tmp can sometimes cause problems.
22521# Create a temporary directory, and hook for its removal unless debugging.
22522$debug ||
22523{
22524 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22525 trap '{ (exit 1); exit 1; }' 1 2 13 15
22526}
c906108c 22527
bec39cab 22528# Create a (secure) tmp directory for tmp files.
c906108c 22529
bec39cab
AC
22530{
22531 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22532 test -n "$tmp" && test -d "$tmp"
22533} ||
22534{
22535 tmp=./confstat$$-$RANDOM
22536 (umask 077 && mkdir $tmp)
22537} ||
22538{
22539 echo "$me: cannot create a temporary directory in ." >&2
22540 { (exit 1); exit 1; }
22541}
22542
22543_ACEOF
22544
22545cat >>$CONFIG_STATUS <<_ACEOF
22546
22547#
22548# CONFIG_FILES section.
22549#
22550
22551# No need to generate the scripts if there are no CONFIG_FILES.
22552# This happens for instance when ./config.status config.h
22553if test -n "\$CONFIG_FILES"; then
22554 # Protect against being on the right side of a sed subst in config.status.
22555 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22556 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22557s,@SHELL@,$SHELL,;t t
22558s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22559s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22560s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22561s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22562s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22563s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22564s,@exec_prefix@,$exec_prefix,;t t
22565s,@prefix@,$prefix,;t t
22566s,@program_transform_name@,$program_transform_name,;t t
22567s,@bindir@,$bindir,;t t
22568s,@sbindir@,$sbindir,;t t
22569s,@libexecdir@,$libexecdir,;t t
22570s,@datadir@,$datadir,;t t
22571s,@sysconfdir@,$sysconfdir,;t t
22572s,@sharedstatedir@,$sharedstatedir,;t t
22573s,@localstatedir@,$localstatedir,;t t
22574s,@libdir@,$libdir,;t t
22575s,@includedir@,$includedir,;t t
22576s,@oldincludedir@,$oldincludedir,;t t
22577s,@infodir@,$infodir,;t t
22578s,@mandir@,$mandir,;t t
22579s,@build_alias@,$build_alias,;t t
22580s,@host_alias@,$host_alias,;t t
22581s,@target_alias@,$target_alias,;t t
22582s,@DEFS@,$DEFS,;t t
22583s,@ECHO_C@,$ECHO_C,;t t
22584s,@ECHO_N@,$ECHO_N,;t t
22585s,@ECHO_T@,$ECHO_T,;t t
22586s,@LIBS@,$LIBS,;t t
22587s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22588s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22589s,@MAINT@,$MAINT,;t t
22590s,@CC@,$CC,;t t
22591s,@CFLAGS@,$CFLAGS,;t t
22592s,@LDFLAGS@,$LDFLAGS,;t t
22593s,@CPPFLAGS@,$CPPFLAGS,;t t
22594s,@ac_ct_CC@,$ac_ct_CC,;t t
22595s,@EXEEXT@,$EXEEXT,;t t
22596s,@OBJEXT@,$OBJEXT,;t t
22597s,@CPP@,$CPP,;t t
22598s,@EGREP@,$EGREP,;t t
22599s,@build@,$build,;t t
22600s,@build_cpu@,$build_cpu,;t t
22601s,@build_vendor@,$build_vendor,;t t
22602s,@build_os@,$build_os,;t t
22603s,@host@,$host,;t t
22604s,@host_cpu@,$host_cpu,;t t
22605s,@host_vendor@,$host_vendor,;t t
22606s,@host_os@,$host_os,;t t
22607s,@target@,$target,;t t
22608s,@target_cpu@,$target_cpu,;t t
22609s,@target_vendor@,$target_vendor,;t t
22610s,@target_os@,$target_os,;t t
c21a4eee 22611s,@SET_MAKE@,$SET_MAKE,;t t
bec39cab
AC
22612s,@RANLIB@,$RANLIB,;t t
22613s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
bec39cab
AC
22614s,@ALLOCA@,$ALLOCA,;t t
22615s,@USE_NLS@,$USE_NLS,;t t
22616s,@MSGFMT@,$MSGFMT,;t t
22617s,@GMSGFMT@,$GMSGFMT,;t t
22618s,@XGETTEXT@,$XGETTEXT,;t t
22619s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22620s,@CATALOGS@,$CATALOGS,;t t
22621s,@CATOBJEXT@,$CATOBJEXT,;t t
22622s,@DATADIRNAME@,$DATADIRNAME,;t t
22623s,@GMOFILES@,$GMOFILES,;t t
22624s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22625s,@INTLDEPS@,$INTLDEPS,;t t
22626s,@INTLLIBS@,$INTLLIBS,;t t
22627s,@INTLOBJS@,$INTLOBJS,;t t
22628s,@POFILES@,$POFILES,;t t
22629s,@POSUB@,$POSUB,;t t
22630s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22631s,@GT_NO@,$GT_NO,;t t
22632s,@GT_YES@,$GT_YES,;t t
22633s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22634s,@l@,$l,;t t
22635s,@localedir@,$localedir,;t t
22636s,@PACKAGE@,$PACKAGE,;t t
22637s,@subdirs@,$subdirs,;t t
22638s,@AWK@,$AWK,;t t
22639s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22640s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22641s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22642s,@LN_S@,$LN_S,;t t
22643s,@YACC@,$YACC,;t t
22644s,@AR@,$AR,;t t
22645s,@ac_ct_AR@,$ac_ct_AR,;t t
22646s,@DLLTOOL@,$DLLTOOL,;t t
22647s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22648s,@WINDRES@,$WINDRES,;t t
22649s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22650s,@MIG@,$MIG,;t t
22651s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22652s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22653s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22654s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22655s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22656s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22657s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22658s,@WIN32LIBS@,$WIN32LIBS,;t t
22659s,@LIBGUI@,$LIBGUI,;t t
22660s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22661s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22662s,@TCL_VERSION@,$TCL_VERSION,;t t
22663s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22664s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22665s,@TCL_CC@,$TCL_CC,;t t
22666s,@TCL_DEFS@,$TCL_DEFS,;t t
22667s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22668s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22669s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22670s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22671s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22672s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22673s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22674s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22675s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22676s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22677s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22678s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22679s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22680s,@TK_VERSION@,$TK_VERSION,;t t
22681s,@TK_DEFS@,$TK_DEFS,;t t
22682s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22683s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22684s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22685s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22686s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22687s,@TCLHDIR@,$TCLHDIR,;t t
22688s,@TKHDIR@,$TKHDIR,;t t
22689s,@ITCLHDIR@,$ITCLHDIR,;t t
22690s,@ITKHDIR@,$ITKHDIR,;t t
22691s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22692s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22693s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22694s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22695s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22696s,@ITK_VERSION@,$ITK_VERSION,;t t
22697s,@ITK_DEFS@,$ITK_DEFS,;t t
22698s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22699s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22700s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22701s,@X_CFLAGS@,$X_CFLAGS,;t t
22702s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22703s,@X_LIBS@,$X_LIBS,;t t
22704s,@TCL_DEPS@,$TCL_DEPS,;t t
22705s,@TK_DEPS@,$TK_DEPS,;t t
22706s,@ITCLLIB@,$ITCLLIB,;t t
22707s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22708s,@ITKLIB@,$ITKLIB,;t t
22709s,@ITK_DEPS@,$ITK_DEPS,;t t
22710s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22711s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22712s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22713s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22714s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22715s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22716s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22717s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22718s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22719s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22720s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22721s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22722s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22723s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22724s,@target_subdir@,$target_subdir,;t t
22725s,@frags@,$frags,;t t
22726s,@xm_h@,$xm_h,;t t
22727s,@tm_h@,$tm_h,;t t
22728s,@nm_h@,$nm_h,;t t
22729s,@LIBICONV@,$LIBICONV,;t t
22730s,@LIBOBJS@,$LIBOBJS,;t t
22731s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22732/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22733s,@host_makefile_frag@,,;t t
c906108c 22734/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22735s,@target_makefile_frag@,,;t t
c906108c 22736CEOF
bec39cab
AC
22737
22738_ACEOF
22739
22740 cat >>$CONFIG_STATUS <<\_ACEOF
22741 # Split the substitutions into bite-sized pieces for seds with
22742 # small command number limits, like on Digital OSF/1 and HP-UX.
22743 ac_max_sed_lines=48
22744 ac_sed_frag=1 # Number of current file.
22745 ac_beg=1 # First line for current file.
22746 ac_end=$ac_max_sed_lines # Line after last line for current file.
22747 ac_more_lines=:
22748 ac_sed_cmds=
22749 while $ac_more_lines; do
22750 if test $ac_beg -gt 1; then
22751 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22752 else
22753 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22754 fi
22755 if test ! -s $tmp/subs.frag; then
22756 ac_more_lines=false
c906108c 22757 else
bec39cab
AC
22758 # The purpose of the label and of the branching condition is to
22759 # speed up the sed processing (if there are no `@' at all, there
22760 # is no need to browse any of the substitutions).
22761 # These are the two extra sed commands mentioned above.
22762 (echo ':t
22763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22764 if test -z "$ac_sed_cmds"; then
22765 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22766 else
22767 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22768 fi
22769 ac_sed_frag=`expr $ac_sed_frag + 1`
22770 ac_beg=$ac_end
22771 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22772 fi
bec39cab
AC
22773 done
22774 if test -z "$ac_sed_cmds"; then
22775 ac_sed_cmds=cat
c906108c 22776 fi
bec39cab 22777fi # test -n "$CONFIG_FILES"
c906108c 22778
bec39cab
AC
22779_ACEOF
22780cat >>$CONFIG_STATUS <<\_ACEOF
22781for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22783 case $ac_file in
22784 - | *:- | *:-:* ) # input from stdin
22785 cat >$tmp/stdin
22786 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22788 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22790 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22791 esac
22792
bec39cab
AC
22793 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22796 X"$ac_file" : 'X\(//\)[^/]' \| \
22797 X"$ac_file" : 'X\(//\)$' \| \
22798 X"$ac_file" : 'X\(/\)' \| \
22799 . : '\(.\)' 2>/dev/null ||
22800echo X"$ac_file" |
22801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22803 /^X\(\/\/\)$/{ s//\1/; q; }
22804 /^X\(\/\).*/{ s//\1/; q; }
22805 s/.*/./; q'`
22806 { if $as_mkdir_p; then
22807 mkdir -p "$ac_dir"
c906108c 22808 else
bec39cab
AC
22809 as_dir="$ac_dir"
22810 as_dirs=
22811 while test ! -d "$as_dir"; do
22812 as_dirs="$as_dir $as_dirs"
22813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22814$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22815 X"$as_dir" : 'X\(//\)[^/]' \| \
22816 X"$as_dir" : 'X\(//\)$' \| \
22817 X"$as_dir" : 'X\(/\)' \| \
22818 . : '\(.\)' 2>/dev/null ||
22819echo X"$as_dir" |
22820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22822 /^X\(\/\/\)$/{ s//\1/; q; }
22823 /^X\(\/\).*/{ s//\1/; q; }
22824 s/.*/./; q'`
22825 done
22826 test ! -n "$as_dirs" || mkdir $as_dirs
22827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22828echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22829 { (exit 1); exit 1; }; }; }
c906108c 22830
bec39cab
AC
22831 ac_builddir=.
22832
22833if test "$ac_dir" != .; then
22834 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22835 # A "../" for each directory in $ac_dir_suffix.
22836 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22837else
22838 ac_dir_suffix= ac_top_builddir=
22839fi
22840
22841case $srcdir in
22842 .) # No --srcdir option. We are building in place.
22843 ac_srcdir=.
22844 if test -z "$ac_top_builddir"; then
22845 ac_top_srcdir=.
22846 else
22847 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22848 fi ;;
22849 [\\/]* | ?:[\\/]* ) # Absolute path.
22850 ac_srcdir=$srcdir$ac_dir_suffix;
22851 ac_top_srcdir=$srcdir ;;
c906108c 22852 *) # Relative path.
bec39cab
AC
22853 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22854 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22855esac
22856
22857# Do not use `cd foo && pwd` to compute absolute paths, because
22858# the directories may not exist.
22859case `pwd` in
22860.) ac_abs_builddir="$ac_dir";;
22861*)
22862 case "$ac_dir" in
22863 .) ac_abs_builddir=`pwd`;;
22864 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22865 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22866 esac;;
22867esac
22868case $ac_abs_builddir in
22869.) ac_abs_top_builddir=${ac_top_builddir}.;;
22870*)
22871 case ${ac_top_builddir}. in
22872 .) ac_abs_top_builddir=$ac_abs_builddir;;
22873 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22874 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22875 esac;;
22876esac
22877case $ac_abs_builddir in
22878.) ac_abs_srcdir=$ac_srcdir;;
22879*)
22880 case $ac_srcdir in
22881 .) ac_abs_srcdir=$ac_abs_builddir;;
22882 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22883 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22884 esac;;
22885esac
22886case $ac_abs_builddir in
22887.) ac_abs_top_srcdir=$ac_top_srcdir;;
22888*)
22889 case $ac_top_srcdir in
22890 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22891 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22892 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22893 esac;;
22894esac
c906108c 22895
c906108c 22896
bec39cab
AC
22897 case $INSTALL in
22898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22899 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
22900 esac
22901
bec39cab
AC
22902 # Let's still pretend it is `configure' which instantiates (i.e., don't
22903 # use $as_me), people would be surprised to read:
22904 # /* config.h. Generated by config.status. */
22905 if test x"$ac_file" = x-; then
22906 configure_input=
22907 else
22908 configure_input="$ac_file. "
22909 fi
22910 configure_input=$configure_input"Generated from `echo $ac_file_in |
22911 sed 's,.*/,,'` by configure."
22912
22913 # First look for the input files in the build tree, otherwise in the
22914 # src tree.
22915 ac_file_inputs=`IFS=:
22916 for f in $ac_file_in; do
22917 case $f in
22918 -) echo $tmp/stdin ;;
22919 [\\/$]*)
22920 # Absolute (can't be DOS-style, as IFS=:)
22921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22922echo "$as_me: error: cannot find input file: $f" >&2;}
22923 { (exit 1); exit 1; }; }
22924 echo "$f";;
22925 *) # Relative
22926 if test -f "$f"; then
22927 # Build tree
22928 echo "$f"
22929 elif test -f "$srcdir/$f"; then
22930 # Source tree
22931 echo "$srcdir/$f"
22932 else
22933 # /dev/null tree
22934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22935echo "$as_me: error: cannot find input file: $f" >&2;}
22936 { (exit 1); exit 1; }; }
22937 fi;;
22938 esac
22939 done` || { (exit 1); exit 1; }
121ce6e5
DJ
22940
22941 if test x"$ac_file" != x-; then
22942 { echo "$as_me:$LINENO: creating $ac_file" >&5
22943echo "$as_me: creating $ac_file" >&6;}
22944 rm -f "$ac_file"
22945 fi
bec39cab
AC
22946_ACEOF
22947cat >>$CONFIG_STATUS <<_ACEOF
22948 sed "$ac_vpsub
22949$extrasub
22950_ACEOF
22951cat >>$CONFIG_STATUS <<\_ACEOF
22952:t
22953/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22954s,@configure_input@,$configure_input,;t t
22955s,@srcdir@,$ac_srcdir,;t t
22956s,@abs_srcdir@,$ac_abs_srcdir,;t t
22957s,@top_srcdir@,$ac_top_srcdir,;t t
22958s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22959s,@builddir@,$ac_builddir,;t t
22960s,@abs_builddir@,$ac_abs_builddir,;t t
22961s,@top_builddir@,$ac_top_builddir,;t t
22962s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22963s,@INSTALL@,$ac_INSTALL,;t t
22964" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22965 rm -f $tmp/stdin
22966 if test x"$ac_file" != x-; then
22967 mv $tmp/out $ac_file
22968 else
22969 cat $tmp/out
22970 rm -f $tmp/out
22971 fi
22972
22973done
22974_ACEOF
22975cat >>$CONFIG_STATUS <<\_ACEOF
22976
22977#
22978# CONFIG_HEADER section.
22979#
c906108c
SS
22980
22981# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22982# NAME is the cpp macro being defined and VALUE is the value it is being given.
22983#
22984# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
22985ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22986ac_dB='[ ].*$,\1#\2'
22987ac_dC=' '
22988ac_dD=',;t'
22989# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22990ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22991ac_uB='$,\1#\2define\3'
c906108c 22992ac_uC=' '
bec39cab
AC
22993ac_uD=',;t'
22994
22995for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 22996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22997 case $ac_file in
22998 - | *:- | *:-:* ) # input from stdin
22999 cat >$tmp/stdin
23000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23004 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
23005 esac
23006
bec39cab
AC
23007 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23008echo "$as_me: creating $ac_file" >&6;}
23009
23010 # First look for the input files in the build tree, otherwise in the
23011 # src tree.
23012 ac_file_inputs=`IFS=:
23013 for f in $ac_file_in; do
23014 case $f in
23015 -) echo $tmp/stdin ;;
23016 [\\/$]*)
23017 # Absolute (can't be DOS-style, as IFS=:)
23018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23019echo "$as_me: error: cannot find input file: $f" >&2;}
23020 { (exit 1); exit 1; }; }
23021 # Do quote $f, to prevent DOS paths from being IFS'd.
23022 echo "$f";;
23023 *) # Relative
23024 if test -f "$f"; then
23025 # Build tree
23026 echo "$f"
23027 elif test -f "$srcdir/$f"; then
23028 # Source tree
23029 echo "$srcdir/$f"
23030 else
23031 # /dev/null tree
23032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23033echo "$as_me: error: cannot find input file: $f" >&2;}
23034 { (exit 1); exit 1; }; }
23035 fi;;
23036 esac
23037 done` || { (exit 1); exit 1; }
23038 # Remove the trailing spaces.
23039 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23040
23041_ACEOF
23042
23043# Transform confdefs.h into two sed scripts, `conftest.defines' and
23044# `conftest.undefs', that substitutes the proper values into
23045# config.h.in to produce config.h. The first handles `#define'
23046# templates, and the second `#undef' templates.
23047# And first: Protect against being on the right side of a sed subst in
23048# config.status. Protect against being in an unquoted here document
23049# in config.status.
23050rm -f conftest.defines conftest.undefs
23051# Using a here document instead of a string reduces the quoting nightmare.
23052# Putting comments in sed scripts is not portable.
23053#
23054# `end' is used to avoid that the second main sed command (meant for
23055# 0-ary CPP macros) applies to n-ary macro definitions.
23056# See the Autoconf documentation for `clear'.
23057cat >confdef2sed.sed <<\_ACEOF
23058s/[\\&,]/\\&/g
23059s,[\\$`],\\&,g
23060t clear
23061: clear
23062s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23063t end
23064s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23065: end
23066_ACEOF
23067# If some macros were called several times there might be several times
23068# the same #defines, which is useless. Nevertheless, we may not want to
23069# sort them, since we want the *last* AC-DEFINE to be honored.
23070uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23071sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23072rm -f confdef2sed.sed
c906108c
SS
23073
23074# This sed command replaces #undef with comments. This is necessary, for
23075# example, in the case of _POSIX_SOURCE, which is predefined and required
23076# on some systems where configure will not decide to define it.
bec39cab
AC
23077cat >>conftest.undefs <<\_ACEOF
23078s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23079_ACEOF
23080
23081# Break up conftest.defines because some shells have a limit on the size
23082# of here documents, and old seds have small limits too (100 cmds).
23083echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23084echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23085echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23086echo ' :' >>$CONFIG_STATUS
23087rm -f conftest.tail
23088while grep . conftest.defines >/dev/null
23089do
23090 # Write a limited-size here document to $tmp/defines.sed.
23091 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23092 # Speed up: don't consider the non `#define' lines.
23093 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23094 # Work around the forget-to-reset-the-flag bug.
23095 echo 't clr' >>$CONFIG_STATUS
23096 echo ': clr' >>$CONFIG_STATUS
23097 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23098 echo 'CEOF
23099 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23100 rm -f $tmp/in
23101 mv $tmp/out $tmp/in
23102' >>$CONFIG_STATUS
23103 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23104 rm -f conftest.defines
23105 mv conftest.tail conftest.defines
23106done
23107rm -f conftest.defines
23108echo ' fi # grep' >>$CONFIG_STATUS
23109echo >>$CONFIG_STATUS
c906108c 23110
bec39cab
AC
23111# Break up conftest.undefs because some shells have a limit on the size
23112# of here documents, and old seds have small limits too (100 cmds).
23113echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 23114rm -f conftest.tail
bec39cab 23115while grep . conftest.undefs >/dev/null
c906108c 23116do
bec39cab
AC
23117 # Write a limited-size here document to $tmp/undefs.sed.
23118 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23119 # Speed up: don't consider the non `#undef'
23120 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23121 # Work around the forget-to-reset-the-flag bug.
23122 echo 't clr' >>$CONFIG_STATUS
23123 echo ': clr' >>$CONFIG_STATUS
23124 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 23125 echo 'CEOF
bec39cab
AC
23126 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23127 rm -f $tmp/in
23128 mv $tmp/out $tmp/in
23129' >>$CONFIG_STATUS
23130 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23131 rm -f conftest.undefs
23132 mv conftest.tail conftest.undefs
23133done
23134rm -f conftest.undefs
23135
23136cat >>$CONFIG_STATUS <<\_ACEOF
23137 # Let's still pretend it is `configure' which instantiates (i.e., don't
23138 # use $as_me), people would be surprised to read:
23139 # /* config.h. Generated by config.status. */
23140 if test x"$ac_file" = x-; then
23141 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 23142 else
bec39cab 23143 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 23144 fi
bec39cab
AC
23145 cat $tmp/in >>$tmp/config.h
23146 rm -f $tmp/in
23147 if test x"$ac_file" != x-; then
23148 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23150echo "$as_me: $ac_file is unchanged" >&6;}
23151 else
23152 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23153$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23154 X"$ac_file" : 'X\(//\)[^/]' \| \
23155 X"$ac_file" : 'X\(//\)$' \| \
23156 X"$ac_file" : 'X\(/\)' \| \
23157 . : '\(.\)' 2>/dev/null ||
23158echo X"$ac_file" |
23159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23161 /^X\(\/\/\)$/{ s//\1/; q; }
23162 /^X\(\/\).*/{ s//\1/; q; }
23163 s/.*/./; q'`
23164 { if $as_mkdir_p; then
23165 mkdir -p "$ac_dir"
23166 else
23167 as_dir="$ac_dir"
23168 as_dirs=
23169 while test ! -d "$as_dir"; do
23170 as_dirs="$as_dir $as_dirs"
23171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23172$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23173 X"$as_dir" : 'X\(//\)[^/]' \| \
23174 X"$as_dir" : 'X\(//\)$' \| \
23175 X"$as_dir" : 'X\(/\)' \| \
23176 . : '\(.\)' 2>/dev/null ||
23177echo X"$as_dir" |
23178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23180 /^X\(\/\/\)$/{ s//\1/; q; }
23181 /^X\(\/\).*/{ s//\1/; q; }
23182 s/.*/./; q'`
23183 done
23184 test ! -n "$as_dirs" || mkdir $as_dirs
23185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23186echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23187 { (exit 1); exit 1; }; }; }
c906108c 23188
bec39cab
AC
23189 rm -f $ac_file
23190 mv $tmp/config.h $ac_file
23191 fi
23192 else
23193 cat $tmp/config.h
23194 rm -f $tmp/config.h
23195 fi
23196done
23197_ACEOF
23198cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23199
bec39cab
AC
23200#
23201# CONFIG_LINKS section.
23202#
c906108c 23203
bec39cab
AC
23204for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23205 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23206 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 23207
bec39cab
AC
23208 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23209echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
23210
23211 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
23212 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23213echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23214 { (exit 1); exit 1; }; }
c906108c
SS
23215 fi
23216 rm -f $ac_dest
23217
23218 # Make relative symlinks.
bec39cab
AC
23219 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23220$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23221 X"$ac_dest" : 'X\(//\)[^/]' \| \
23222 X"$ac_dest" : 'X\(//\)$' \| \
23223 X"$ac_dest" : 'X\(/\)' \| \
23224 . : '\(.\)' 2>/dev/null ||
23225echo X"$ac_dest" |
23226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23228 /^X\(\/\/\)$/{ s//\1/; q; }
23229 /^X\(\/\).*/{ s//\1/; q; }
23230 s/.*/./; q'`
23231 { if $as_mkdir_p; then
23232 mkdir -p "$ac_dest_dir"
c906108c 23233 else
bec39cab
AC
23234 as_dir="$ac_dest_dir"
23235 as_dirs=
23236 while test ! -d "$as_dir"; do
23237 as_dirs="$as_dir $as_dirs"
23238 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23239$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23240 X"$as_dir" : 'X\(//\)[^/]' \| \
23241 X"$as_dir" : 'X\(//\)$' \| \
23242 X"$as_dir" : 'X\(/\)' \| \
23243 . : '\(.\)' 2>/dev/null ||
23244echo X"$as_dir" |
23245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23247 /^X\(\/\/\)$/{ s//\1/; q; }
23248 /^X\(\/\).*/{ s//\1/; q; }
23249 s/.*/./; q'`
23250 done
23251 test ! -n "$as_dirs" || mkdir $as_dirs
23252 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23253echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23254 { (exit 1); exit 1; }; }; }
23255
23256 ac_builddir=.
23257
23258if test "$ac_dest_dir" != .; then
23259 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23260 # A "../" for each directory in $ac_dir_suffix.
23261 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23262else
23263 ac_dir_suffix= ac_top_builddir=
23264fi
23265
23266case $srcdir in
23267 .) # No --srcdir option. We are building in place.
23268 ac_srcdir=.
23269 if test -z "$ac_top_builddir"; then
23270 ac_top_srcdir=.
23271 else
23272 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23273 fi ;;
23274 [\\/]* | ?:[\\/]* ) # Absolute path.
23275 ac_srcdir=$srcdir$ac_dir_suffix;
23276 ac_top_srcdir=$srcdir ;;
23277 *) # Relative path.
23278 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23279 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23280esac
23281
23282# Do not use `cd foo && pwd` to compute absolute paths, because
23283# the directories may not exist.
23284case `pwd` in
23285.) ac_abs_builddir="$ac_dest_dir";;
23286*)
23287 case "$ac_dest_dir" in
23288 .) ac_abs_builddir=`pwd`;;
23289 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23290 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23291 esac;;
23292esac
23293case $ac_abs_builddir in
23294.) ac_abs_top_builddir=${ac_top_builddir}.;;
23295*)
23296 case ${ac_top_builddir}. in
23297 .) ac_abs_top_builddir=$ac_abs_builddir;;
23298 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23299 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23300 esac;;
23301esac
23302case $ac_abs_builddir in
23303.) ac_abs_srcdir=$ac_srcdir;;
23304*)
23305 case $ac_srcdir in
23306 .) ac_abs_srcdir=$ac_abs_builddir;;
23307 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23308 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23309 esac;;
23310esac
23311case $ac_abs_builddir in
23312.) ac_abs_top_srcdir=$ac_top_srcdir;;
23313*)
23314 case $ac_top_srcdir in
23315 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23316 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23317 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23318 esac;;
23319esac
c906108c 23320
bec39cab
AC
23321
23322 case $srcdir in
23323 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23324 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23325 esac
23326
bec39cab
AC
23327 # Try a symlink, then a hard link, then a copy.
23328 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23329 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23330 cp -p $srcdir/$ac_source $ac_dest ||
23331 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23332echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23333 { (exit 1); exit 1; }; }
c906108c 23334done
bec39cab
AC
23335_ACEOF
23336cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23337
bec39cab
AC
23338#
23339# CONFIG_COMMANDS section.
23340#
23341for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23342 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23343 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23344 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23345$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23346 X"$ac_dest" : 'X\(//\)[^/]' \| \
23347 X"$ac_dest" : 'X\(//\)$' \| \
23348 X"$ac_dest" : 'X\(/\)' \| \
23349 . : '\(.\)' 2>/dev/null ||
23350echo X"$ac_dest" |
23351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23353 /^X\(\/\/\)$/{ s//\1/; q; }
23354 /^X\(\/\).*/{ s//\1/; q; }
23355 s/.*/./; q'`
23356 { if $as_mkdir_p; then
23357 mkdir -p "$ac_dir"
23358 else
23359 as_dir="$ac_dir"
23360 as_dirs=
23361 while test ! -d "$as_dir"; do
23362 as_dirs="$as_dir $as_dirs"
23363 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23364$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23365 X"$as_dir" : 'X\(//\)[^/]' \| \
23366 X"$as_dir" : 'X\(//\)$' \| \
23367 X"$as_dir" : 'X\(/\)' \| \
23368 . : '\(.\)' 2>/dev/null ||
23369echo X"$as_dir" |
23370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23372 /^X\(\/\/\)$/{ s//\1/; q; }
23373 /^X\(\/\).*/{ s//\1/; q; }
23374 s/.*/./; q'`
23375 done
23376 test ! -n "$as_dirs" || mkdir $as_dirs
23377 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23378echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23379 { (exit 1); exit 1; }; }; }
23380
23381 ac_builddir=.
23382
23383if test "$ac_dir" != .; then
23384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23385 # A "../" for each directory in $ac_dir_suffix.
23386 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23387else
23388 ac_dir_suffix= ac_top_builddir=
23389fi
23390
23391case $srcdir in
23392 .) # No --srcdir option. We are building in place.
23393 ac_srcdir=.
23394 if test -z "$ac_top_builddir"; then
23395 ac_top_srcdir=.
23396 else
23397 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23398 fi ;;
23399 [\\/]* | ?:[\\/]* ) # Absolute path.
23400 ac_srcdir=$srcdir$ac_dir_suffix;
23401 ac_top_srcdir=$srcdir ;;
23402 *) # Relative path.
23403 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23404 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23405esac
23406
23407# Do not use `cd foo && pwd` to compute absolute paths, because
23408# the directories may not exist.
23409case `pwd` in
23410.) ac_abs_builddir="$ac_dir";;
23411*)
23412 case "$ac_dir" in
23413 .) ac_abs_builddir=`pwd`;;
23414 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23415 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23416 esac;;
23417esac
23418case $ac_abs_builddir in
23419.) ac_abs_top_builddir=${ac_top_builddir}.;;
23420*)
23421 case ${ac_top_builddir}. in
23422 .) ac_abs_top_builddir=$ac_abs_builddir;;
23423 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23424 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23425 esac;;
23426esac
23427case $ac_abs_builddir in
23428.) ac_abs_srcdir=$ac_srcdir;;
23429*)
23430 case $ac_srcdir in
23431 .) ac_abs_srcdir=$ac_abs_builddir;;
23432 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23433 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23434 esac;;
23435esac
23436case $ac_abs_builddir in
23437.) ac_abs_top_srcdir=$ac_top_srcdir;;
23438*)
23439 case $ac_top_srcdir in
23440 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23441 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23442 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23443 esac;;
23444esac
c906108c 23445
c906108c 23446
bec39cab
AC
23447 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23448echo "$as_me: executing $ac_dest commands" >&6;}
23449 case $ac_dest in
23450 default )
c906108c 23451
2c0fc042 23452sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23453/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23454/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23455mv -f Makefile.tmp Makefile
23456
2acceee2 23457
c906108c
SS
23458case x$CONFIG_HEADERS in
23459xconfig.h:config.in)
23460echo > stamp-h ;;
23461esac
bec39cab
AC
23462 ;;
23463 esac
23464done
23465_ACEOF
c906108c 23466
bec39cab
AC
23467cat >>$CONFIG_STATUS <<\_ACEOF
23468
23469{ (exit 0); exit 0; }
23470_ACEOF
c906108c 23471chmod +x $CONFIG_STATUS
bec39cab
AC
23472ac_clean_files=$ac_clean_files_save
23473
23474
23475# configure is writing to config.log, and then calls config.status.
23476# config.status does its own redirection, appending to config.log.
23477# Unfortunately, on DOS this fails, as config.log is still kept open
23478# by configure, so config.status won't be able to write to it; its
23479# output is simply discarded. So we exec the FD to /dev/null,
23480# effectively closing config.log, so it can be properly (re)opened and
23481# appended to by config.status. When coming back to configure, we
23482# need to make the FD available again.
23483if test "$no_create" != yes; then
23484 ac_cs_success=:
23485 ac_config_status_args=
23486 test "$silent" = yes &&
23487 ac_config_status_args="$ac_config_status_args --quiet"
23488 exec 5>/dev/null
23489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23490 exec 5>>config.log
23491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23492 # would make configure fail if this is the last instruction.
23493 $ac_cs_success || { (exit 1); exit 1; }
23494fi
c906108c 23495
bec39cab
AC
23496#
23497# CONFIG_SUBDIRS section.
23498#
c906108c
SS
23499if test "$no_recursion" != yes; then
23500
23501 # Remove --cache-file and --srcdir arguments so they do not pile up.
23502 ac_sub_configure_args=
23503 ac_prev=
23504 for ac_arg in $ac_configure_args; do
23505 if test -n "$ac_prev"; then
23506 ac_prev=
23507 continue
23508 fi
bec39cab 23509 case $ac_arg in
c906108c
SS
23510 -cache-file | --cache-file | --cache-fil | --cache-fi \
23511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23512 ac_prev=cache_file ;;
23513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23515 | --c=*)
23516 ;;
23517 --config-cache | -C)
c906108c
SS
23518 ;;
23519 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23520 ac_prev=srcdir ;;
23521 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23522 ;;
bec39cab
AC
23523 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23524 ac_prev=prefix ;;
23525 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23526 ;;
c906108c
SS
23527 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23528 esac
23529 done
23530
bec39cab
AC
23531 # Always prepend --prefix to ensure using the same prefix
23532 # in subdir configurations.
23533 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23534
23535 ac_popdir=`pwd`
23536 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23537
23538 # Do not complain, so a configure script can configure whichever
23539 # parts of a large source tree are present.
bec39cab 23540 test -d $srcdir/$ac_dir || continue
c906108c 23541
bec39cab
AC
23542 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23543echo "$as_me: configuring in $ac_dir" >&6;}
23544 { if $as_mkdir_p; then
23545 mkdir -p "$ac_dir"
23546 else
23547 as_dir="$ac_dir"
23548 as_dirs=
23549 while test ! -d "$as_dir"; do
23550 as_dirs="$as_dir $as_dirs"
23551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23553 X"$as_dir" : 'X\(//\)[^/]' \| \
23554 X"$as_dir" : 'X\(//\)$' \| \
23555 X"$as_dir" : 'X\(/\)' \| \
23556 . : '\(.\)' 2>/dev/null ||
23557echo X"$as_dir" |
23558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23560 /^X\(\/\/\)$/{ s//\1/; q; }
23561 /^X\(\/\).*/{ s//\1/; q; }
23562 s/.*/./; q'`
23563 done
23564 test ! -n "$as_dirs" || mkdir $as_dirs
23565 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23566echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23567 { (exit 1); exit 1; }; }; }
c906108c 23568
bec39cab
AC
23569 ac_builddir=.
23570
23571if test "$ac_dir" != .; then
23572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23573 # A "../" for each directory in $ac_dir_suffix.
23574 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23575else
23576 ac_dir_suffix= ac_top_builddir=
23577fi
23578
23579case $srcdir in
23580 .) # No --srcdir option. We are building in place.
23581 ac_srcdir=.
23582 if test -z "$ac_top_builddir"; then
23583 ac_top_srcdir=.
23584 else
23585 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23586 fi ;;
23587 [\\/]* | ?:[\\/]* ) # Absolute path.
23588 ac_srcdir=$srcdir$ac_dir_suffix;
23589 ac_top_srcdir=$srcdir ;;
23590 *) # Relative path.
23591 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23592 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23593esac
c906108c 23594
bec39cab
AC
23595# Do not use `cd foo && pwd` to compute absolute paths, because
23596# the directories may not exist.
23597case `pwd` in
23598.) ac_abs_builddir="$ac_dir";;
23599*)
23600 case "$ac_dir" in
23601 .) ac_abs_builddir=`pwd`;;
23602 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23603 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23604 esac;;
23605esac
23606case $ac_abs_builddir in
23607.) ac_abs_top_builddir=${ac_top_builddir}.;;
23608*)
23609 case ${ac_top_builddir}. in
23610 .) ac_abs_top_builddir=$ac_abs_builddir;;
23611 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23612 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23613 esac;;
23614esac
23615case $ac_abs_builddir in
23616.) ac_abs_srcdir=$ac_srcdir;;
23617*)
23618 case $ac_srcdir in
23619 .) ac_abs_srcdir=$ac_abs_builddir;;
23620 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23621 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23622 esac;;
23623esac
23624case $ac_abs_builddir in
23625.) ac_abs_top_srcdir=$ac_top_srcdir;;
23626*)
23627 case $ac_top_srcdir in
23628 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23629 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23630 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23631 esac;;
23632esac
c906108c 23633
c906108c 23634
bec39cab 23635 cd $ac_dir
c906108c
SS
23636
23637 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23638 if test -f $ac_srcdir/configure.gnu; then
23639 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23640 elif test -f $ac_srcdir/configure; then
23641 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23642 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23643 ac_sub_configure=$ac_configure
23644 else
bec39cab
AC
23645 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23646echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23647 ac_sub_configure=
23648 fi
23649
23650 # The recursion is here.
23651 if test -n "$ac_sub_configure"; then
c906108c 23652 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23653 case $cache_file in
23654 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23655 *) # Relative path.
bec39cab 23656 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23657 esac
c906108c 23658
bec39cab
AC
23659 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23660echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23661 # The eval makes quoting arguments work.
bec39cab
AC
23662 eval $ac_sub_configure $ac_sub_configure_args \
23663 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23664 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23665echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23666 { (exit 1); exit 1; }; }
c906108c
SS
23667 fi
23668
121ce6e5 23669 cd "$ac_popdir"
c906108c
SS
23670 done
23671fi
23672
23673
23674exit 0
This page took 1.786043 seconds and 4 git commands to generate.