*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
bec39cab 3# Generated by GNU Autoconf 2.59.
c906108c 4#
bec39cab 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
c906108c 243
bec39cab
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subdirs_all="$ac_subdirs_all doc testsuite"
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
065a1afc
JB
316ac_subdirs_all="$ac_subdirs_all rdi-share"
317ac_subdirs_all="$ac_subdirs_all nlm"
c21a4eee 318ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
bec39cab 319ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
320
321# Initialize some variables set by options.
bec39cab
AC
322ac_init_help=
323ac_init_version=false
c906108c
SS
324# The variables have the same names as the options, with
325# dashes changed to underlines.
bec39cab 326cache_file=/dev/null
c906108c 327exec_prefix=NONE
c906108c 328no_create=
c906108c
SS
329no_recursion=
330prefix=NONE
331program_prefix=NONE
332program_suffix=NONE
333program_transform_name=s,x,x,
334silent=
335site=
336srcdir=
c906108c
SS
337verbose=
338x_includes=NONE
339x_libraries=NONE
bec39cab
AC
340
341# Installation directory options.
342# These are left unexpanded so users can "make install exec_prefix=/foo"
343# and all the variables that are supposed to be based on exec_prefix
344# by default will actually change.
345# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
346bindir='${exec_prefix}/bin'
347sbindir='${exec_prefix}/sbin'
348libexecdir='${exec_prefix}/libexec'
349datadir='${prefix}/share'
350sysconfdir='${prefix}/etc'
351sharedstatedir='${prefix}/com'
352localstatedir='${prefix}/var'
353libdir='${exec_prefix}/lib'
354includedir='${prefix}/include'
355oldincludedir='/usr/include'
356infodir='${prefix}/info'
357mandir='${prefix}/man'
358
c906108c
SS
359ac_prev=
360for ac_option
361do
c906108c
SS
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
bec39cab 369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
bec39cab 373 case $ac_option in
c906108c
SS
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 378 bindir=$ac_optarg ;;
c906108c
SS
379
380 -build | --build | --buil | --bui | --bu)
bec39cab 381 ac_prev=build_alias ;;
c906108c 382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 383 build_alias=$ac_optarg ;;
c906108c
SS
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
c906108c
SS
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
bec39cab 399 datadir=$ac_optarg ;;
c906108c
SS
400
401 -disable-* | --disable-*)
bec39cab 402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 403 # Reject names that are not valid shell variable names.
bec39cab
AC
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
c906108c
SS
409
410 -enable-* | --enable-*)
bec39cab 411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 412 # Reject names that are not valid shell variable names.
bec39cab
AC
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
419 *) ac_optarg=yes ;;
420 esac
bec39cab 421 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
bec39cab 430 exec_prefix=$ac_optarg ;;
c906108c
SS
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
bec39cab
AC
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
c906108c
SS
442
443 -host | --host | --hos | --ho)
bec39cab 444 ac_prev=host_alias ;;
c906108c 445 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 446 host_alias=$ac_optarg ;;
c906108c
SS
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 453 includedir=$ac_optarg ;;
c906108c
SS
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 458 infodir=$ac_optarg ;;
c906108c
SS
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 463 libdir=$ac_optarg ;;
c906108c
SS
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
bec39cab 470 libexecdir=$ac_optarg ;;
c906108c
SS
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 479 localstatedir=$ac_optarg ;;
c906108c
SS
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 484 mandir=$ac_optarg ;;
c906108c
SS
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 491 | --no-cr | --no-c | -n)
c906108c
SS
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 505 oldincludedir=$ac_optarg ;;
c906108c
SS
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 510 prefix=$ac_optarg ;;
c906108c
SS
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 517 program_prefix=$ac_optarg ;;
c906108c
SS
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 524 program_suffix=$ac_optarg ;;
c906108c
SS
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 541 program_transform_name=$ac_optarg ;;
c906108c
SS
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
bec39cab 551 sbindir=$ac_optarg ;;
c906108c
SS
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
bec39cab 562 sharedstatedir=$ac_optarg ;;
c906108c
SS
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
bec39cab 567 site=$ac_optarg ;;
3ace7edb 568
c906108c
SS
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 572 srcdir=$ac_optarg ;;
c906108c
SS
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 579 sysconfdir=$ac_optarg ;;
c906108c
SS
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 582 ac_prev=target_alias ;;
c906108c 583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 584 target_alias=$ac_optarg ;;
c906108c
SS
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
bec39cab
AC
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
c906108c
SS
591
592 -with-* | --with-*)
bec39cab 593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 594 # Reject names that are not valid shell variable names.
bec39cab
AC
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
c906108c 598 ac_package=`echo $ac_package| sed 's/-/_/g'`
bec39cab
AC
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
601 *) ac_optarg=yes ;;
602 esac
bec39cab 603 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
604
605 -without-* | --without-*)
bec39cab 606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 607 # Reject names that are not valid shell variable names.
bec39cab
AC
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
c906108c
SS
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 623 x_includes=$ac_optarg ;;
c906108c
SS
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 630 x_libraries=$ac_optarg ;;
c906108c 631
bec39cab
AC
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
c906108c
SS
635 ;;
636
bec39cab
AC
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
c906108c 647 *)
bec39cab
AC
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
bec39cab
AC
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
c906108c 662fi
c906108c 663
bec39cab
AC
664# Be sure to have absolute paths.
665for ac_var in exec_prefix prefix
666do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673done
c906108c 674
bec39cab
AC
675# Be sure to have absolute paths.
676for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 678do
bec39cab
AC
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
c906108c
SS
684 esac
685done
686
bec39cab
AC
687# There might be people who depend on the old broken behavior: `$host'
688# used to hold the argument of --host etc.
689# FIXME: To remove some day.
690build=$build_alias
691host=$host_alias
692target=$target_alias
693
694# FIXME: To remove some day.
695if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703fi
c906108c 704
bec39cab
AC
705ac_tool_prefix=
706test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708test "$silent" = yes && exec 6>/dev/null
c906108c 709
c906108c
SS
710
711# Find the source files, if location was not specified.
712if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
bec39cab
AC
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
c906108c
SS
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731else
732 ac_srcdir_defaulted=no
733fi
734if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
c906108c 738 else
bec39cab
AC
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
c906108c
SS
741 fi
742fi
bec39cab
AC
743(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747ac_env_build_alias_set=${build_alias+set}
748ac_env_build_alias_value=$build_alias
749ac_cv_env_build_alias_set=${build_alias+set}
750ac_cv_env_build_alias_value=$build_alias
751ac_env_host_alias_set=${host_alias+set}
752ac_env_host_alias_value=$host_alias
753ac_cv_env_host_alias_set=${host_alias+set}
754ac_cv_env_host_alias_value=$host_alias
755ac_env_target_alias_set=${target_alias+set}
756ac_env_target_alias_value=$target_alias
757ac_cv_env_target_alias_set=${target_alias+set}
758ac_cv_env_target_alias_value=$target_alias
759ac_env_CC_set=${CC+set}
760ac_env_CC_value=$CC
761ac_cv_env_CC_set=${CC+set}
762ac_cv_env_CC_value=$CC
763ac_env_CFLAGS_set=${CFLAGS+set}
764ac_env_CFLAGS_value=$CFLAGS
765ac_cv_env_CFLAGS_set=${CFLAGS+set}
766ac_cv_env_CFLAGS_value=$CFLAGS
767ac_env_LDFLAGS_set=${LDFLAGS+set}
768ac_env_LDFLAGS_value=$LDFLAGS
769ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770ac_cv_env_LDFLAGS_value=$LDFLAGS
771ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_env_CPPFLAGS_value=$CPPFLAGS
773ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775ac_env_CPP_set=${CPP+set}
776ac_env_CPP_value=$CPP
777ac_cv_env_CPP_set=${CPP+set}
778ac_cv_env_CPP_value=$CPP
c906108c 779
bec39cab
AC
780#
781# Report the --help message.
782#
783if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787\`configure' configures this package to adapt to many kinds of systems.
788
789Usage: $0 [OPTION]... [VAR=VALUE]...
790
791To assign environment variables (e.g., CC, CFLAGS...), specify them as
792VAR=VALUE. See below for descriptions of some of the useful variables.
793
794Defaults for the options are specified in brackets.
795
796Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807_ACEOF
808
809 cat <<_ACEOF
810Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816By default, \`make install' will install all the files in
817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819for instance \`--prefix=\$HOME'.
820
821For better control, use the options below.
822
823Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836_ACEOF
837
838 cat <<\_ACEOF
839
840Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
bec39cab
AC
865 --disable-nls do not use Native Language Support
866 --disable-gdbcli disable command-line interface (CLI)
867 --disable-gdbmi disable machine-interface (MI)
868 --enable-tui enable full-screen terminal user interface (TUI)
869 --enable-gdbtk enable gdbtk graphical user interface (GUI)
870 --enable-profiling enable profiling of GDB
871 --enable-build-warnings Enable build-time compiler warnings if gcc is used
872 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
873 --enable-sim Link gdb with simulator
874 --enable-multi-ice build the multi-ice-gdb-server
875
876Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-included-gettext use the GNU gettext library included here
880 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
881 --with-libunwind Use libunwind frame unwinding support
882 --without-included-regex don't use included regex; this is the default
883 on systems with version 2 of the GNU C library
884 (use with caution on other system)
885 --with-sysroot=DIR Search for usr/lib et al within DIR.
886 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
887 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
888 --with-tclinclude=DIR Directory where tcl private headers are
889 --with-tkinclude=DIR Directory where tk private headers are
890 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
891 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
892 --with-x use the X Window System
893 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894
895Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
902 CPP C preprocessor
903
904Use these variables to override the choices made by `configure' or to help
905it to find libraries and programs with nonstandard names/locations.
906
907_ACEOF
908fi
909
910if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
916
917if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921else
922 ac_dir_suffix= ac_top_builddir=
923fi
924
925case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939esac
940
941# Do not use `cd foo && pwd` to compute absolute paths, because
942# the directories may not exist.
943case `pwd` in
944.) ac_abs_builddir="$ac_dir";;
945*)
946 case "$ac_dir" in
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_builddir=${ac_top_builddir}.;;
954*)
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_srcdir=$ac_srcdir;;
963*)
964 case $ac_srcdir in
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_top_srcdir=$ac_top_srcdir;;
972*)
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 esac;;
978esac
979
980 cd $ac_dir
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
983 echo
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
986 echo
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
990 echo
991 $ac_configure --help
3ace7edb 992 else
bec39cab
AC
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 fi
995 cd $ac_popdir
996 done
997fi
998
999test -n "$ac_init_help" && exit 0
1000if $ac_init_version; then
1001 cat <<\_ACEOF
1002
1003Copyright (C) 2003 Free Software Foundation, Inc.
1004This configure script is free software; the Free Software Foundation
1005gives unlimited permission to copy, distribute and modify it.
1006_ACEOF
1007 exit 0
1008fi
1009exec 5>config.log
1010cat >&5 <<_ACEOF
1011This file contains any messages produced by compilers while
1012running configure, to aid debugging if configure makes a mistake.
1013
1014It was created by $as_me, which was
1015generated by GNU Autoconf 2.59. Invocation command line was
1016
1017 $ $0 $@
1018
1019_ACEOF
1020{
1021cat <<_ASUNAME
1022## --------- ##
1023## Platform. ##
1024## --------- ##
1025
1026hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034
1035/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042
1043_ASUNAME
1044
1045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046for as_dir in $PATH
1047do
1048 IFS=$as_save_IFS
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1051done
1052
1053} >&5
1054
1055cat >&5 <<_ACEOF
1056
1057
1058## ----------- ##
1059## Core tests. ##
1060## ----------- ##
1061
1062_ACEOF
1063
1064
1065# Keep a trace of the command line.
1066# Strip out --no-create and --no-recursion so they do not pile up.
1067# Strip out --silent because we don't want to record it for future runs.
1068# Also quote any args containing shell meta-characters.
1069# Make two passes to allow for proper duplicate-argument suppression.
1070ac_configure_args=
1071ac_configure_args0=
1072ac_configure_args1=
1073ac_sep=
1074ac_must_keep_next=false
1075for ac_pass in 1 2
1076do
1077 for ac_arg
1078 do
1079 case $ac_arg in
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 continue ;;
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 esac
1087 case $ac_pass in
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 2)
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1093 else
1094 case $ac_arg in
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 esac
1102 ;;
1103 -* ) ac_must_keep_next=true ;;
1104 esac
1105 fi
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1108 ac_sep=" "
1109 ;;
1110 esac
1111 done
1112done
1113$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116# When interrupted or exit'd, cleanup temporary files, and complete
1117# config.log. We remove comments because anyway the quotes in there
1118# would cause problems or look ugly.
1119# WARNING: Be sure not to use single quotes in there, as some shells,
1120# such as our DU 5.0 friend, will then `close' the trap.
1121trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1123 {
1124 echo
1125
1126 cat <<\_ASBOX
1127## ---------------- ##
1128## Cache variables. ##
1129## ---------------- ##
1130_ASBOX
1131 echo
1132 # The following way of writing the cache mishandles newlines in values,
1133{
1134 (set) 2>&1 |
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 *ac_space=\ *)
1137 sed -n \
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140 ;;
1141 *)
1142 sed -n \
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ;;
1145 esac;
1146}
1147 echo
1148
1149 cat <<\_ASBOX
1150## ----------------- ##
1151## Output variables. ##
1152## ----------------- ##
1153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_vars
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161
1162 if test -n "$ac_subst_files"; then
1163 cat <<\_ASBOX
1164## ------------- ##
1165## Output files. ##
1166## ------------- ##
1167_ASBOX
1168 echo
1169 for ac_var in $ac_subst_files
1170 do
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1175 fi
1176
1177 if test -s confdefs.h; then
1178 cat <<\_ASBOX
1179## ----------- ##
1180## confdefs.h. ##
1181## ----------- ##
1182_ASBOX
1183 echo
1184 sed "/^$/d" confdefs.h | sort
1185 echo
3ace7edb 1186 fi
bec39cab
AC
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1190 } >&5
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 exit $exit_status
1194 ' 0
1195for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197done
1198ac_signal=0
1199
1200# confdefs.h avoids OS command line length limits that DEFS can exceed.
1201rm -rf conftest* confdefs.h
1202# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203echo >confdefs.h
1204
1205# Predefined preprocessor variables.
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_NAME "$PACKAGE_NAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_VERSION "$PACKAGE_VERSION"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_STRING "$PACKAGE_STRING"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229_ACEOF
1230
1231
1232# Let the site file select an alternate cache file if it wants to.
1233# Prefer explicitly selected file to automatically selected ones.
1234if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 else
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c906108c
SS
1239 fi
1240fi
1241for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
bec39cab
AC
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1246 . "$ac_site_file"
1247 fi
1248done
1249
1250if test -r "$cache_file"; then
bec39cab
AC
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255echo "$as_me: loading cache $cache_file" >&6;}
1256 case $cache_file in
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1259 esac
1260 fi
c906108c 1261else
bec39cab
AC
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263echo "$as_me: creating cache $cache_file" >&6;}
1264 >$cache_file
1265fi
1266
1267# Check that the precious variables saved in the cache have kept the same
1268# value.
1269ac_cache_corrupted=false
1270for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1277 set,)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,set)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,);;
1286 *)
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1295 fi;;
1296 esac
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1299 case $ac_new_val in
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1303 esac
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307 esac
1308 fi
1309done
1310if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
c906108c
SS
1316fi
1317
1318ac_ext=c
c906108c 1319ac_cpp='$CPP $CPPFLAGS'
bec39cab
AC
1320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1323
1324
1325
bec39cab
AC
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342 ac_config_headers="$ac_config_headers config.h:config.in"
1343
1344echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1345echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
413ccac7
AC
1346 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1347if test "${enable_maintainer_mode+set}" = set; then
1348 enableval="$enable_maintainer_mode"
1349 USE_MAINTAINER_MODE=$enableval
1350else
1351 USE_MAINTAINER_MODE=no
bec39cab
AC
1352fi;
1353 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1354echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1355
413ccac7
AC
1356
1357if test $USE_MAINTAINER_MODE = yes; then
1358 MAINTAINER_MODE_TRUE=
1359 MAINTAINER_MODE_FALSE='#'
1360else
1361 MAINTAINER_MODE_TRUE='#'
1362 MAINTAINER_MODE_FALSE=
1363fi
85981d60 1364
413ccac7 1365 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1366
c906108c 1367
bec39cab
AC
1368
1369ac_ext=c
1370ac_cpp='$CPP $CPPFLAGS'
1371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1376set dummy ${ac_tool_prefix}gcc; ac_word=$2
1377echo "$as_me:$LINENO: checking for $ac_word" >&5
1378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379if test "${ac_cv_prog_CC+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381else
1382 if test -n "$CC"; then
1383 ac_cv_prog_CC="$CC" # Let the user override the test.
1384else
1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386for as_dir in $PATH
1387do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394 break 2
1395 fi
1396done
1397done
1398
1399fi
1400fi
1401CC=$ac_cv_prog_CC
1402if test -n "$CC"; then
1403 echo "$as_me:$LINENO: result: $CC" >&5
1404echo "${ECHO_T}$CC" >&6
1405else
1406 echo "$as_me:$LINENO: result: no" >&5
1407echo "${ECHO_T}no" >&6
1408fi
1409
1410fi
1411if test -z "$ac_cv_prog_CC"; then
1412 ac_ct_CC=$CC
1413 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1414set dummy gcc; ac_word=$2
bec39cab
AC
1415echo "$as_me:$LINENO: checking for $ac_word" >&5
1416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420 if test -n "$ac_ct_CC"; then
1421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422else
1423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424for as_dir in $PATH
1425do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_ac_ct_CC="gcc"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434done
1435done
1436
1437fi
1438fi
1439ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440if test -n "$ac_ct_CC"; then
1441 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1442echo "${ECHO_T}$ac_ct_CC" >&6
1443else
1444 echo "$as_me:$LINENO: result: no" >&5
1445echo "${ECHO_T}no" >&6
1446fi
1447
1448 CC=$ac_ct_CC
1449else
1450 CC="$ac_cv_prog_CC"
1451fi
1452
1453if test -z "$CC"; then
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1456set dummy ${ac_tool_prefix}cc; ac_word=$2
1457echo "$as_me:$LINENO: checking for $ac_word" >&5
1458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459if test "${ac_cv_prog_CC+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1461else
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1464else
bec39cab
AC
1465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466for as_dir in $PATH
1467do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_CC="${ac_tool_prefix}cc"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 break 2
1475 fi
1476done
1477done
1478
c906108c
SS
1479fi
1480fi
bec39cab 1481CC=$ac_cv_prog_CC
c906108c 1482if test -n "$CC"; then
bec39cab
AC
1483 echo "$as_me:$LINENO: result: $CC" >&5
1484echo "${ECHO_T}$CC" >&6
1485else
1486 echo "$as_me:$LINENO: result: no" >&5
1487echo "${ECHO_T}no" >&6
1488fi
1489
1490fi
1491if test -z "$ac_cv_prog_CC"; then
1492 ac_ct_CC=$CC
1493 # Extract the first word of "cc", so it can be a program name with args.
1494set dummy cc; ac_word=$2
1495echo "$as_me:$LINENO: checking for $ac_word" >&5
1496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499else
1500 if test -n "$ac_ct_CC"; then
1501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502else
1503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504for as_dir in $PATH
1505do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_CC="cc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514done
1515done
1516
1517fi
1518fi
1519ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520if test -n "$ac_ct_CC"; then
1521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1523else
bec39cab
AC
1524 echo "$as_me:$LINENO: result: no" >&5
1525echo "${ECHO_T}no" >&6
c906108c
SS
1526fi
1527
bec39cab
AC
1528 CC=$ac_ct_CC
1529else
1530 CC="$ac_cv_prog_CC"
1531fi
1532
1533fi
c906108c
SS
1534if test -z "$CC"; then
1535 # Extract the first word of "cc", so it can be a program name with args.
1536set dummy cc; ac_word=$2
bec39cab
AC
1537echo "$as_me:$LINENO: checking for $ac_word" >&5
1538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539if test "${ac_cv_prog_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1541else
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1544else
c906108c 1545 ac_prog_rejected=no
bec39cab
AC
1546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547for as_dir in $PATH
1548do
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1554 ac_prog_rejected=yes
1555 continue
1556 fi
1557 ac_cv_prog_CC="cc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561done
1562done
1563
c906108c
SS
1564if test $ac_prog_rejected = yes; then
1565 # We found a bogon in the path, so make sure we never use it.
1566 set dummy $ac_cv_prog_CC
1567 shift
bec39cab 1568 if test $# != 0; then
c906108c
SS
1569 # We chose a different compiler from the bogus one.
1570 # However, it has the same basename, so the bogon will be chosen
1571 # first if we set CC to just the basename; use the full file name.
1572 shift
bec39cab 1573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1574 fi
1575fi
1576fi
1577fi
bec39cab 1578CC=$ac_cv_prog_CC
c906108c 1579if test -n "$CC"; then
bec39cab
AC
1580 echo "$as_me:$LINENO: result: $CC" >&5
1581echo "${ECHO_T}$CC" >&6
c906108c 1582else
bec39cab
AC
1583 echo "$as_me:$LINENO: result: no" >&5
1584echo "${ECHO_T}no" >&6
c906108c
SS
1585fi
1586
bec39cab
AC
1587fi
1588if test -z "$CC"; then
1589 if test -n "$ac_tool_prefix"; then
1590 for ac_prog in cl
1591 do
1592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1594echo "$as_me:$LINENO: checking for $ac_word" >&5
1595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1598else
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1601else
bec39cab
AC
1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603for as_dir in $PATH
1604do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 break 2
1612 fi
1613done
1614done
1615
c906108c
SS
1616fi
1617fi
bec39cab 1618CC=$ac_cv_prog_CC
c906108c 1619if test -n "$CC"; then
bec39cab
AC
1620 echo "$as_me:$LINENO: result: $CC" >&5
1621echo "${ECHO_T}$CC" >&6
c906108c 1622else
bec39cab
AC
1623 echo "$as_me:$LINENO: result: no" >&5
1624echo "${ECHO_T}no" >&6
c906108c 1625fi
bec39cab
AC
1626
1627 test -n "$CC" && break
1628 done
1629fi
1630if test -z "$CC"; then
1631 ac_ct_CC=$CC
1632 for ac_prog in cl
1633do
1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
1635set dummy $ac_prog; ac_word=$2
1636echo "$as_me:$LINENO: checking for $ac_word" >&5
1637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643else
1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="$ac_prog"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
c906108c 1654 fi
bec39cab
AC
1655done
1656done
1657
1658fi
1659fi
1660ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663echo "${ECHO_T}$ac_ct_CC" >&6
1664else
1665 echo "$as_me:$LINENO: result: no" >&5
1666echo "${ECHO_T}no" >&6
c906108c
SS
1667fi
1668
bec39cab
AC
1669 test -n "$ac_ct_CC" && break
1670done
c906108c 1671
bec39cab
AC
1672 CC=$ac_ct_CC
1673fi
1674
1675fi
1676
1677
1678test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1679See \`config.log' for more details." >&5
1680echo "$as_me: error: no acceptable C compiler found in \$PATH
1681See \`config.log' for more details." >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684# Provide some information about the compiler.
1685echo "$as_me:$LINENO:" \
1686 "checking for C compiler version" >&5
1687ac_compiler=`set X $ac_compile; echo $2`
1688{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689 (eval $ac_compiler --version </dev/null >&5) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694 (eval $ac_compiler -v </dev/null >&5) 2>&5
1695 ac_status=$?
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699 (eval $ac_compiler -V </dev/null >&5) 2>&5
1700 ac_status=$?
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1703
1704cat >conftest.$ac_ext <<_ACEOF
1705/* confdefs.h. */
1706_ACEOF
1707cat confdefs.h >>conftest.$ac_ext
1708cat >>conftest.$ac_ext <<_ACEOF
1709/* end confdefs.h. */
1710
1711int
1712main ()
1713{
1714
1715 ;
1716 return 0;
1717}
1718_ACEOF
1719ac_clean_files_save=$ac_clean_files
1720ac_clean_files="$ac_clean_files a.out a.exe b.out"
1721# Try to create an executable without -o first, disregard a.out.
1722# It will help us diagnose broken compilers, and finding out an intuition
1723# of exeext.
1724echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1725echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1726ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1728 (eval $ac_link_default) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # Find the output, starting from the most likely. This scheme is
1733# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1734# resort.
1735
1736# Be careful to initialize this variable, since it used to be cached.
1737# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1738ac_cv_exeext=
1739# b.out is created by i960 compilers.
1740for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1741do
1742 test -f "$ac_file" || continue
1743 case $ac_file in
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1745 ;;
1746 conftest.$ac_ext )
1747 # This is the source file.
1748 ;;
1749 [ab].out )
1750 # We found the default executable, but exeext='' is most
1751 # certainly right.
1752 break;;
1753 *.* )
1754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool,
1756 # but it would be cool to find out if it's true. Does anybody
1757 # maintain Libtool? --akim.
1758 export ac_cv_exeext
1759 break;;
1760 * )
1761 break;;
1762 esac
1763done
1764else
1765 echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1769See \`config.log' for more details." >&5
1770echo "$as_me: error: C compiler cannot create executables
1771See \`config.log' for more details." >&2;}
1772 { (exit 77); exit 77; }; }
1773fi
1774
1775ac_exeext=$ac_cv_exeext
1776echo "$as_me:$LINENO: result: $ac_file" >&5
1777echo "${ECHO_T}$ac_file" >&6
1778
1779# Check the compiler produces executables we can run. If not, either
1780# the compiler is broken, or we cross compile.
1781echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784# If not cross compiling, check that we can run a simple program.
1785if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 (eval $ac_try) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1792 cross_compiling=no
c906108c 1793 else
bec39cab
AC
1794 if test "$cross_compiling" = maybe; then
1795 cross_compiling=yes
1796 else
1797 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798If you meant to cross compile, use \`--host'.
1799See \`config.log' for more details." >&5
1800echo "$as_me: error: cannot run C compiled programs.
1801If you meant to cross compile, use \`--host'.
1802See \`config.log' for more details." >&2;}
1803 { (exit 1); exit 1; }; }
1804 fi
c906108c 1805 fi
bec39cab
AC
1806fi
1807echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
1809
1810rm -f a.out a.exe conftest$ac_cv_exeext b.out
1811ac_clean_files=$ac_clean_files_save
1812# Check the compiler produces executables we can run. If not, either
1813# the compiler is broken, or we cross compile.
1814echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1815echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816echo "$as_me:$LINENO: result: $cross_compiling" >&5
1817echo "${ECHO_T}$cross_compiling" >&6
1818
1819echo "$as_me:$LINENO: checking for suffix of executables" >&5
1820echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1823 ac_status=$?
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828# work properly (i.e., refer to `conftest.exe'), while it won't with
1829# `rm'.
1830for ac_file in conftest.exe conftest conftest.*; do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 export ac_cv_exeext
1836 break;;
1837 * ) break;;
1838 esac
1839done
c906108c 1840else
bec39cab
AC
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1842See \`config.log' for more details." >&5
1843echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1844See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
c906108c 1846fi
c906108c 1847
bec39cab
AC
1848rm -f conftest$ac_cv_exeext
1849echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1850echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1851
bec39cab
AC
1852rm -f conftest.$ac_ext
1853EXEEXT=$ac_cv_exeext
1854ac_exeext=$EXEEXT
1855echo "$as_me:$LINENO: checking for suffix of object files" >&5
1856echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1857if test "${ac_cv_objext+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860 cat >conftest.$ac_ext <<_ACEOF
1861/* confdefs.h. */
1862_ACEOF
1863cat confdefs.h >>conftest.$ac_ext
1864cat >>conftest.$ac_ext <<_ACEOF
1865/* end confdefs.h. */
c906108c 1866
bec39cab
AC
1867int
1868main ()
1869{
c906108c 1870
bec39cab
AC
1871 ;
1872 return 0;
1873}
1874_ACEOF
1875rm -f conftest.o conftest.obj
1876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877 (eval $ac_compile) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1882 case $ac_file in
1883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1885 break;;
1886 esac
1887done
c906108c 1888else
bec39cab
AC
1889 echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1893See \`config.log' for more details." >&5
1894echo "$as_me: error: cannot compute suffix of object files: cannot compile
1895See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
c906108c
SS
1897fi
1898
bec39cab
AC
1899rm -f conftest.$ac_cv_objext conftest.$ac_ext
1900fi
1901echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1902echo "${ECHO_T}$ac_cv_objext" >&6
1903OBJEXT=$ac_cv_objext
1904ac_objext=$OBJEXT
1905echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1906echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1907if test "${ac_cv_c_compiler_gnu+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1909else
bec39cab
AC
1910 cat >conftest.$ac_ext <<_ACEOF
1911/* confdefs.h. */
1912_ACEOF
1913cat confdefs.h >>conftest.$ac_ext
1914cat >>conftest.$ac_ext <<_ACEOF
1915/* end confdefs.h. */
1916
1917int
1918main ()
1919{
1920#ifndef __GNUC__
1921 choke me
1922#endif
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928rm -f conftest.$ac_objext
1929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>conftest.er1
1931 ac_status=$?
1932 grep -v '^ *+' conftest.er1 >conftest.err
1933 rm -f conftest.er1
1934 cat conftest.err >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); } &&
1937 { ac_try='test -z "$ac_c_werror_flag"
1938 || test ! -s conftest.err'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 (eval $ac_try) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 (eval $ac_try) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1950 ac_compiler_gnu=yes
1951else
1952 echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955ac_compiler_gnu=no
1956fi
1957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958ac_cv_c_compiler_gnu=$ac_compiler_gnu
1959
1960fi
1961echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963GCC=`test $ac_compiler_gnu = yes && echo yes`
1964ac_test_CFLAGS=${CFLAGS+set}
1965ac_save_CFLAGS=$CFLAGS
1966CFLAGS="-g"
1967echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969if test "${ac_cv_prog_cc_g+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972 cat >conftest.$ac_ext <<_ACEOF
1973/* confdefs.h. */
1974_ACEOF
1975cat confdefs.h >>conftest.$ac_ext
1976cat >>conftest.$ac_ext <<_ACEOF
1977/* end confdefs.h. */
1978
1979int
1980main ()
1981{
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987rm -f conftest.$ac_objext
1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
c906108c
SS
2009 ac_cv_prog_cc_g=yes
2010else
bec39cab
AC
2011 echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2013
bec39cab 2014ac_cv_prog_cc_g=no
c906108c 2015fi
bec39cab
AC
2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017fi
2018echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2019echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2020if test "$ac_test_CFLAGS" = set; then
bec39cab 2021 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2022elif test $ac_cv_prog_cc_g = yes; then
2023 if test "$GCC" = yes; then
2024 CFLAGS="-g -O2"
2025 else
2026 CFLAGS="-g"
2027 fi
2028else
2029 if test "$GCC" = yes; then
2030 CFLAGS="-O2"
2031 else
2032 CFLAGS=
2033 fi
2034fi
bec39cab
AC
2035echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2036echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2037if test "${ac_cv_prog_cc_stdc+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040 ac_cv_prog_cc_stdc=no
2041ac_save_CC=$CC
2042cat >conftest.$ac_ext <<_ACEOF
2043/* confdefs.h. */
2044_ACEOF
2045cat confdefs.h >>conftest.$ac_ext
2046cat >>conftest.$ac_ext <<_ACEOF
2047/* end confdefs.h. */
c906108c
SS
2048#include <stdarg.h>
2049#include <stdio.h>
2050#include <sys/types.h>
2051#include <sys/stat.h>
2052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2053struct buf { int x; };
2054FILE * (*rcsopen) (struct buf *, struct stat *, int);
2055static char *e (p, i)
2056 char **p;
2057 int i;
2058{
2059 return p[i];
2060}
2061static char *f (char * (*g) (char **, int), char **p, ...)
2062{
2063 char *s;
2064 va_list v;
2065 va_start (v,p);
2066 s = g (p, va_arg (v,int));
2067 va_end (v);
2068 return s;
2069}
bec39cab
AC
2070
2071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2072 function prototypes and stuff, but not '\xHH' hex character constants.
2073 These don't provoke an error unfortunately, instead are silently treated
2074 as 'x'. The following induces an error, until -std1 is added to get
2075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2076 array size at least. It's necessary to write '\x00'==0 to get something
2077 that's true only with -std1. */
2078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079
c906108c
SS
2080int test (int i, double x);
2081struct s1 {int (*f) (int a);};
2082struct s2 {int (*f) (double a);};
2083int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2084int argc;
2085char **argv;
bec39cab
AC
2086int
2087main ()
2088{
c906108c 2089return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094# Don't try gcc -ansi; that turns off useful extensions and
2095# breaks some systems' header files.
2096# AIX -qlanglvl=ansi
2097# Ultrix and OSF/1 -std1
2098# HP-UX 10.20 and later -Ae
2099# HP-UX older versions -Aa -D_HPUX_SOURCE
2100# SVR4 -Xc -D__EXTENSIONS__
2101for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102do
2103 CC="$ac_save_CC $ac_arg"
2104 rm -f conftest.$ac_objext
2105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2107 ac_status=$?
2108 grep -v '^ *+' conftest.er1 >conftest.err
2109 rm -f conftest.er1
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_c_werror_flag"
2114 || test ! -s conftest.err'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 ac_cv_prog_cc_stdc=$ac_arg
2127break
c906108c 2128else
bec39cab
AC
2129 echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
c906108c 2132fi
bec39cab 2133rm -f conftest.err conftest.$ac_objext
c906108c 2134done
bec39cab
AC
2135rm -f conftest.$ac_ext conftest.$ac_objext
2136CC=$ac_save_CC
c906108c
SS
2137
2138fi
2139
bec39cab
AC
2140case "x$ac_cv_prog_cc_stdc" in
2141 x|xno)
2142 echo "$as_me:$LINENO: result: none needed" >&5
2143echo "${ECHO_T}none needed" >&6 ;;
2144 *)
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2146echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2147 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2148esac
2149
bec39cab
AC
2150# Some people use a C++ compiler to compile C. Since we use `exit',
2151# in C++ we need to declare it. In case someone uses the same compiler
2152# for both compiling C and C++ we need to have the C++ compiler decide
2153# the declaration of exit, since it's the most demanding environment.
2154cat >conftest.$ac_ext <<_ACEOF
2155#ifndef __cplusplus
2156 choke me
2157#endif
2158_ACEOF
2159rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2162 ac_status=$?
2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 for ac_declaration in \
2182 '' \
2183 'extern "C" void std::exit (int) throw (); using std::exit;' \
2184 'extern "C" void std::exit (int); using std::exit;' \
2185 'extern "C" void exit (int) throw ();' \
2186 'extern "C" void exit (int);' \
2187 'void exit (int);'
2188do
2189 cat >conftest.$ac_ext <<_ACEOF
2190/* confdefs.h. */
2191_ACEOF
2192cat confdefs.h >>conftest.$ac_ext
2193cat >>conftest.$ac_ext <<_ACEOF
2194/* end confdefs.h. */
2195$ac_declaration
2196#include <stdlib.h>
2197int
2198main ()
2199{
2200exit (42);
2201 ;
2202 return 0;
2203}
2204_ACEOF
2205rm -f conftest.$ac_objext
2206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag"
2215 || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 :
2228else
2229 echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2231
bec39cab 2232continue
c906108c 2233fi
bec39cab
AC
2234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235 cat >conftest.$ac_ext <<_ACEOF
2236/* confdefs.h. */
2237_ACEOF
2238cat confdefs.h >>conftest.$ac_ext
2239cat >>conftest.$ac_ext <<_ACEOF
2240/* end confdefs.h. */
2241$ac_declaration
2242int
2243main ()
2244{
2245exit (42);
2246 ;
2247 return 0;
2248}
2249_ACEOF
2250rm -f conftest.$ac_objext
2251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 break
2273else
2274 echo "$as_me: failed program was:" >&5
2275sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2276
bec39cab
AC
2277fi
2278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279done
2280rm -f conftest*
2281if test -n "$ac_declaration"; then
2282 echo '#ifdef __cplusplus' >>confdefs.h
2283 echo $ac_declaration >>confdefs.h
2284 echo '#endif' >>confdefs.h
c906108c
SS
2285fi
2286
bec39cab
AC
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2290
bec39cab
AC
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293ac_ext=c
2294ac_cpp='$CPP $CPPFLAGS'
2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2298
60ca704f 2299
bec39cab
AC
2300cat >>confdefs.h <<\_ACEOF
2301#define _GNU_SOURCE 1
2302_ACEOF
c906108c
SS
2303
2304
8bb2c122 2305
bec39cab
AC
2306ac_ext=c
2307ac_cpp='$CPP $CPPFLAGS'
2308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2312echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2313# On Suns, sometimes $CPP names a directory.
2314if test -n "$CPP" && test -d "$CPP"; then
2315 CPP=
8bb2c122 2316fi
bec39cab
AC
2317if test -z "$CPP"; then
2318 if test "${ac_cv_prog_CPP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 # Double quotes because CPP needs to be expanded
2322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2323 do
2324 ac_preproc_ok=false
2325for ac_c_preproc_warn_flag in '' yes
2326do
2327 # Use a header file that comes with gcc, so configuring glibc
2328 # with a fresh cross-compiler works.
2329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 # <limits.h> exists even on freestanding compilers.
2331 # On the NeXT, cc -E runs the code through the compiler's parser,
2332 # not just through cpp. "Syntax error" is here to catch this case.
2333 cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h. */
2339#ifdef __STDC__
2340# include <limits.h>
2341#else
2342# include <assert.h>
2343#endif
2344 Syntax error
2345_ACEOF
2346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } >/dev/null; then
2354 if test -s conftest.err; then
2355 ac_cpp_err=$ac_c_preproc_warn_flag
2356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2357 else
2358 ac_cpp_err=
2359 fi
8bb2c122 2360else
bec39cab 2361 ac_cpp_err=yes
8bb2c122 2362fi
bec39cab
AC
2363if test -z "$ac_cpp_err"; then
2364 :
8bb2c122 2365else
bec39cab
AC
2366 echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 # Broken: fails on valid input.
2370continue
2371fi
2372rm -f conftest.err conftest.$ac_ext
2373
2374 # OK, works on sane cases. Now check whether non-existent headers
2375 # can be detected and how.
2376 cat >conftest.$ac_ext <<_ACEOF
2377/* confdefs.h. */
2378_ACEOF
2379cat confdefs.h >>conftest.$ac_ext
2380cat >>conftest.$ac_ext <<_ACEOF
2381/* end confdefs.h. */
2382#include <ac_nonexistent.h>
2383_ACEOF
2384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } >/dev/null; then
2392 if test -s conftest.err; then
2393 ac_cpp_err=$ac_c_preproc_warn_flag
2394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2395 else
2396 ac_cpp_err=
2397 fi
8bb2c122 2398else
bec39cab 2399 ac_cpp_err=yes
8bb2c122 2400fi
bec39cab
AC
2401if test -z "$ac_cpp_err"; then
2402 # Broken: success on invalid input.
2403continue
8bb2c122 2404else
bec39cab
AC
2405 echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2407
bec39cab
AC
2408 # Passes both tests.
2409ac_preproc_ok=:
2410break
8bb2c122 2411fi
bec39cab 2412rm -f conftest.err conftest.$ac_ext
8bb2c122 2413
bec39cab
AC
2414done
2415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2416rm -f conftest.err conftest.$ac_ext
2417if $ac_preproc_ok; then
2418 break
2419fi
8bb2c122 2420
bec39cab
AC
2421 done
2422 ac_cv_prog_CPP=$CPP
ddc9cd0f 2423
c906108c 2424fi
bec39cab
AC
2425 CPP=$ac_cv_prog_CPP
2426else
2427 ac_cv_prog_CPP=$CPP
c906108c 2428fi
bec39cab
AC
2429echo "$as_me:$LINENO: result: $CPP" >&5
2430echo "${ECHO_T}$CPP" >&6
2431ac_preproc_ok=false
2432for ac_c_preproc_warn_flag in '' yes
2433do
2434 # Use a header file that comes with gcc, so configuring glibc
2435 # with a fresh cross-compiler works.
2436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2437 # <limits.h> exists even on freestanding compilers.
2438 # On the NeXT, cc -E runs the code through the compiler's parser,
2439 # not just through cpp. "Syntax error" is here to catch this case.
2440 cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h. */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h. */
2446#ifdef __STDC__
2447# include <limits.h>
2448#else
2449# include <assert.h>
2450#endif
2451 Syntax error
2452_ACEOF
2453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } >/dev/null; then
2461 if test -s conftest.err; then
2462 ac_cpp_err=$ac_c_preproc_warn_flag
2463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2464 else
2465 ac_cpp_err=
2466 fi
c906108c 2467else
bec39cab 2468 ac_cpp_err=yes
c906108c 2469fi
bec39cab
AC
2470if test -z "$ac_cpp_err"; then
2471 :
c906108c 2472else
bec39cab
AC
2473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 # Broken: fails on valid input.
2477continue
2478fi
2479rm -f conftest.err conftest.$ac_ext
2480
2481 # OK, works on sane cases. Now check whether non-existent headers
2482 # can be detected and how.
2483 cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h. */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h. */
2489#include <ac_nonexistent.h>
2490_ACEOF
2491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502 else
2503 ac_cpp_err=
2504 fi
c906108c 2505else
bec39cab 2506 ac_cpp_err=yes
c906108c 2507fi
bec39cab
AC
2508if test -z "$ac_cpp_err"; then
2509 # Broken: success on invalid input.
2510continue
c906108c 2511else
bec39cab
AC
2512 echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2514
bec39cab
AC
2515 # Passes both tests.
2516ac_preproc_ok=:
2517break
c906108c 2518fi
bec39cab 2519rm -f conftest.err conftest.$ac_ext
c906108c 2520
bec39cab
AC
2521done
2522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2523rm -f conftest.err conftest.$ac_ext
2524if $ac_preproc_ok; then
c906108c
SS
2525 :
2526else
bec39cab
AC
2527 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2528See \`config.log' for more details." >&5
2529echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2530See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
c906108c 2532fi
c906108c 2533
bec39cab
AC
2534ac_ext=c
2535ac_cpp='$CPP $CPPFLAGS'
2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541echo "$as_me:$LINENO: checking for egrep" >&5
2542echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2543if test "${ac_cv_prog_egrep+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2547 then ac_cv_prog_egrep='grep -E'
2548 else ac_cv_prog_egrep='egrep'
2549 fi
c906108c 2550fi
bec39cab
AC
2551echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2552echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2553 EGREP=$ac_cv_prog_egrep
c906108c 2554
bec39cab
AC
2555
2556
2557echo "$as_me:$LINENO: checking for AIX" >&5
2558echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2559cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h. */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
2564/* end confdefs.h. */
2565#ifdef _AIX
2566 yes
2567#endif
2568
2569_ACEOF
c906108c 2570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2571 $EGREP "yes" >/dev/null 2>&1; then
2572 echo "$as_me:$LINENO: result: yes" >&5
2573echo "${ECHO_T}yes" >&6
2574cat >>confdefs.h <<\_ACEOF
2575#define _ALL_SOURCE 1
2576_ACEOF
2577
c906108c 2578else
bec39cab
AC
2579 echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6
c906108c
SS
2581fi
2582rm -f conftest*
2583
c906108c 2584
bec39cab
AC
2585echo "$as_me:$LINENO: checking for library containing strerror" >&5
2586echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2587if test "${ac_cv_search_strerror+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2589else
bec39cab
AC
2590 ac_func_search_save_LIBS=$LIBS
2591ac_cv_search_strerror=no
2592cat >conftest.$ac_ext <<_ACEOF
2593/* confdefs.h. */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h. */
c906108c 2598
bec39cab
AC
2599/* Override any gcc2 internal prototype to avoid an error. */
2600#ifdef __cplusplus
2601extern "C"
2602#endif
2603/* We use char because int might match the return type of a gcc2
2604 builtin and then its argument prototype would still apply. */
2605char strerror ();
2606int
2607main ()
2608{
2609strerror ();
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614rm -f conftest.$ac_objext conftest$ac_exeext
2615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2616 (eval $ac_link) 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag"
2624 || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest$ac_exeext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 ac_cv_search_strerror="none required"
2637else
2638 echo "$as_me: failed program was:" >&5
2639sed 's/^/| /' conftest.$ac_ext >&5
2640
2641fi
2642rm -f conftest.err conftest.$ac_objext \
2643 conftest$ac_exeext conftest.$ac_ext
2644if test "$ac_cv_search_strerror" = no; then
2645 for ac_lib in cposix; do
2646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2647 cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
2653
2654/* Override any gcc2 internal prototype to avoid an error. */
2655#ifdef __cplusplus
2656extern "C"
2657#endif
2658/* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2660char strerror ();
2661int
2662main ()
2663{
2664strerror ();
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669rm -f conftest.$ac_objext conftest$ac_exeext
2670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671 (eval $ac_link) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag"
2679 || test ! -s conftest.err'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 (eval $ac_try) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; } &&
2685 { ac_try='test -s conftest$ac_exeext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_search_strerror="-l$ac_lib"
2692break
c906108c 2693else
bec39cab
AC
2694 echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2696
2697fi
bec39cab
AC
2698rm -f conftest.err conftest.$ac_objext \
2699 conftest$ac_exeext conftest.$ac_ext
2700 done
c906108c 2701fi
bec39cab 2702LIBS=$ac_func_search_save_LIBS
c906108c 2703fi
bec39cab
AC
2704echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2705echo "${ECHO_T}$ac_cv_search_strerror" >&6
2706if test "$ac_cv_search_strerror" != no; then
2707 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2708
c906108c
SS
2709fi
2710
c906108c 2711
c906108c 2712
bec39cab
AC
2713
2714echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2715echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2716if test "${am_cv_prog_cc_stdc+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2718else
bec39cab
AC
2719 am_cv_prog_cc_stdc=no
2720ac_save_CC="$CC"
2721# Don't try gcc -ansi; that turns off useful extensions and
2722# breaks some systems' header files.
2723# AIX -qlanglvl=ansi
2724# Ultrix and OSF/1 -std1
2725# HP-UX 10.20 and later -Ae
2726# HP-UX older versions -Aa -D_HPUX_SOURCE
2727# SVR4 -Xc -D__EXTENSIONS__
2728for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729do
2730 CC="$ac_save_CC $ac_arg"
2731 cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h. */
2737#include <stdarg.h>
2738#include <stdio.h>
2739#include <sys/types.h>
2740#include <sys/stat.h>
2741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2742struct buf { int x; };
2743FILE * (*rcsopen) (struct buf *, struct stat *, int);
2744static char *e (p, i)
2745 char **p;
2746 int i;
2747{
2748 return p[i];
2749}
2750static char *f (char * (*g) (char **, int), char **p, ...)
2751{
2752 char *s;
2753 va_list v;
2754 va_start (v,p);
2755 s = g (p, va_arg (v,int));
2756 va_end (v);
2757 return s;
2758}
2759int test (int i, double x);
2760struct s1 {int (*f) (int a);};
2761struct s2 {int (*f) (double a);};
2762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2763int argc;
2764char **argv;
c906108c 2765
bec39cab
AC
2766int
2767main ()
2768{
c906108c 2769
bec39cab 2770return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2771
bec39cab
AC
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776rm -f conftest.$ac_objext
2777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_c_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2799else
bec39cab
AC
2800 echo "$as_me: failed program was:" >&5
2801sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2802
2803fi
bec39cab
AC
2804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805done
2806CC="$ac_save_CC"
c906108c
SS
2807
2808fi
2809
bec39cab
AC
2810if test -z "$am_cv_prog_cc_stdc"; then
2811 echo "$as_me:$LINENO: result: none needed" >&5
2812echo "${ECHO_T}none needed" >&6
c906108c 2813else
bec39cab
AC
2814 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2815echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2816fi
bec39cab
AC
2817case "x$am_cv_prog_cc_stdc" in
2818 x|xno) ;;
2819 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2820esac
c906108c 2821
c906108c 2822
bec39cab
AC
2823ac_aux_dir=
2824for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2825 if test -f $ac_dir/install-sh; then
2826 ac_aux_dir=$ac_dir
2827 ac_install_sh="$ac_aux_dir/install-sh -c"
2828 break
2829 elif test -f $ac_dir/install.sh; then
2830 ac_aux_dir=$ac_dir
2831 ac_install_sh="$ac_aux_dir/install.sh -c"
2832 break
2833 elif test -f $ac_dir/shtool; then
2834 ac_aux_dir=$ac_dir
2835 ac_install_sh="$ac_aux_dir/shtool install -c"
2836 break
2837 fi
2838done
2839if test -z "$ac_aux_dir"; then
2840 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2841echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2842 { (exit 1); exit 1; }; }
c906108c 2843fi
bec39cab
AC
2844ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2845ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2846ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2847
bec39cab
AC
2848# Make sure we can run config.sub.
2849$ac_config_sub sun4 >/dev/null 2>&1 ||
2850 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2851echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2852 { (exit 1); exit 1; }; }
2853
2854echo "$as_me:$LINENO: checking build system type" >&5
2855echo $ECHO_N "checking build system type... $ECHO_C" >&6
2856if test "${ac_cv_build+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859 ac_cv_build_alias=$build_alias
2860test -z "$ac_cv_build_alias" &&
2861 ac_cv_build_alias=`$ac_config_guess`
2862test -z "$ac_cv_build_alias" &&
2863 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2864echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2865 { (exit 1); exit 1; }; }
2866ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2867 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2868echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2869 { (exit 1); exit 1; }; }
2870
2871fi
2872echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2873echo "${ECHO_T}$ac_cv_build" >&6
2874build=$ac_cv_build
2875build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2876build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2877build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2878
2879
2880echo "$as_me:$LINENO: checking host system type" >&5
2881echo $ECHO_N "checking host system type... $ECHO_C" >&6
2882if test "${ac_cv_host+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885 ac_cv_host_alias=$host_alias
2886test -z "$ac_cv_host_alias" &&
2887 ac_cv_host_alias=$ac_cv_build_alias
2888ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2889 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2890echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2891 { (exit 1); exit 1; }; }
2892
2893fi
2894echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2895echo "${ECHO_T}$ac_cv_host" >&6
2896host=$ac_cv_host
2897host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2898host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2899host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2900
2901
2902echo "$as_me:$LINENO: checking target system type" >&5
2903echo $ECHO_N "checking target system type... $ECHO_C" >&6
2904if test "${ac_cv_target+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906else
2907 ac_cv_target_alias=$target_alias
2908test "x$ac_cv_target_alias" = "x" &&
2909 ac_cv_target_alias=$ac_cv_host_alias
2910ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2911 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2912echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2913 { (exit 1); exit 1; }; }
2914
2915fi
2916echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2917echo "${ECHO_T}$ac_cv_target" >&6
2918target=$ac_cv_target
2919target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2920target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2921target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2922
c906108c 2923
bec39cab
AC
2924# The aliases save the names the user supplied, while $host etc.
2925# will get canonicalized.
2926test -n "$target_alias" &&
2927 test "$program_prefix$program_suffix$program_transform_name" = \
2928 NONENONEs,x,x, &&
2929 program_prefix=${target_alias}-
c906108c 2930
c906108c 2931
bec39cab
AC
2932CONFIG_OBS=
2933CONFIG_DEPS=
2934CONFIG_SRCS=
2935ENABLE_CFLAGS=
c906108c 2936
bec39cab
AC
2937CONFIG_ALL=
2938CONFIG_CLEAN=
2939CONFIG_INSTALL=
2940CONFIG_UNINSTALL=
2941
2942
2943echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2944echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2945set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2946if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948else
2949 cat >conftest.make <<\_ACEOF
2950all:
2951 @echo 'ac_maketemp="$(MAKE)"'
2952_ACEOF
2953# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2954eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2955if test -n "$ac_maketemp"; then
2956 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 2957else
bec39cab 2958 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 2959fi
bec39cab
AC
2960rm -f conftest.make
2961fi
2962if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2963 echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6
2965 SET_MAKE=
2966else
2967 echo "$as_me:$LINENO: result: no" >&5
2968echo "${ECHO_T}no" >&6
2969 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
2970fi
2971
bec39cab
AC
2972if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2974set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2975echo "$as_me:$LINENO: checking for $ac_word" >&5
2976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977if test "${ac_cv_prog_RANLIB+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 if test -n "$RANLIB"; then
2981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995done
c906108c 2996
bec39cab
AC
2997fi
2998fi
2999RANLIB=$ac_cv_prog_RANLIB
3000if test -n "$RANLIB"; then
3001 echo "$as_me:$LINENO: result: $RANLIB" >&5
3002echo "${ECHO_T}$RANLIB" >&6
c906108c 3003else
bec39cab
AC
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
c906108c
SS
3006fi
3007
bec39cab
AC
3008fi
3009if test -z "$ac_cv_prog_RANLIB"; then
3010 ac_ct_RANLIB=$RANLIB
3011 # Extract the first word of "ranlib", so it can be a program name with args.
3012set dummy ranlib; ac_word=$2
3013echo "$as_me:$LINENO: checking for $ac_word" >&5
3014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3015if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 if test -n "$ac_ct_RANLIB"; then
3019 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_ac_ct_RANLIB="ranlib"
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032done
c906108c 3033done
bec39cab
AC
3034
3035 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3036fi
3037fi
3038ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3039if test -n "$ac_ct_RANLIB"; then
3040 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3041echo "${ECHO_T}$ac_ct_RANLIB" >&6
3042else
3043 echo "$as_me:$LINENO: result: no" >&5
3044echo "${ECHO_T}no" >&6
c906108c
SS
3045fi
3046
bec39cab 3047 RANLIB=$ac_ct_RANLIB
c906108c 3048else
bec39cab
AC
3049 RANLIB="$ac_cv_prog_RANLIB"
3050fi
3051
3052echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3053echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3054if test "${ac_cv_header_stdc+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3056else
bec39cab
AC
3057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
3063#include <stdlib.h>
3064#include <stdarg.h>
3065#include <string.h>
3066#include <float.h>
3067
3068int
c906108c
SS
3069main ()
3070{
bec39cab
AC
3071
3072 ;
3073 return 0;
c906108c 3074}
bec39cab
AC
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -z "$ac_c_werror_flag"
3086 || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_header_stdc=yes
c906108c 3099else
bec39cab
AC
3100 echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3102
bec39cab 3103ac_cv_header_stdc=no
c906108c 3104fi
bec39cab 3105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3106
bec39cab
AC
3107if test $ac_cv_header_stdc = yes; then
3108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115#include <string.h>
c906108c 3116
bec39cab
AC
3117_ACEOF
3118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3119 $EGREP "memchr" >/dev/null 2>&1; then
3120 :
c906108c 3121else
bec39cab 3122 ac_cv_header_stdc=no
c906108c 3123fi
bec39cab 3124rm -f conftest*
c906108c 3125
bec39cab 3126fi
c906108c 3127
bec39cab
AC
3128if test $ac_cv_header_stdc = yes; then
3129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3130 cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
3136#include <stdlib.h>
c906108c 3137
bec39cab
AC
3138_ACEOF
3139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3140 $EGREP "free" >/dev/null 2>&1; then
3141 :
c906108c 3142else
bec39cab 3143 ac_cv_header_stdc=no
c906108c
SS
3144fi
3145rm -f conftest*
c906108c 3146
c906108c 3147fi
c906108c 3148
bec39cab
AC
3149if test $ac_cv_header_stdc = yes; then
3150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3151 if test "$cross_compiling" = yes; then
bec39cab 3152 :
c906108c 3153else
bec39cab
AC
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */
3160#include <ctype.h>
3161#if ((' ' & 0x0FF) == 0x020)
3162# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3163# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3164#else
3165# define ISLOWER(c) \
3166 (('a' <= (c) && (c) <= 'i') \
3167 || ('j' <= (c) && (c) <= 'r') \
3168 || ('s' <= (c) && (c) <= 'z'))
3169# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3170#endif
c906108c 3171
bec39cab
AC
3172#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3173int
3174main ()
3175{
3176 int i;
3177 for (i = 0; i < 256; i++)
3178 if (XOR (islower (i), ISLOWER (i))
3179 || toupper (i) != TOUPPER (i))
3180 exit(2);
3181 exit (0);
3182}
3183_ACEOF
3184rm -f conftest$ac_exeext
3185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3186 (eval $ac_link) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 (eval $ac_try) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3195 :
3196else
3197 echo "$as_me: program exited with status $ac_status" >&5
3198echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3200
bec39cab
AC
3201( exit $ac_status )
3202ac_cv_header_stdc=no
3203fi
3204rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3205fi
3206fi
3207fi
3208echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3209echo "${ECHO_T}$ac_cv_header_stdc" >&6
3210if test $ac_cv_header_stdc = yes; then
c906108c 3211
bec39cab
AC
3212cat >>confdefs.h <<\_ACEOF
3213#define STDC_HEADERS 1
3214_ACEOF
c906108c 3215
bec39cab 3216fi
c906108c 3217
bec39cab
AC
3218echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3219echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3220if test "${ac_cv_c_const+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223 cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
c906108c 3229
bec39cab
AC
3230int
3231main ()
3232{
3233/* FIXME: Include the comments suggested by Paul. */
3234#ifndef __cplusplus
3235 /* Ultrix mips cc rejects this. */
3236 typedef int charset[2];
3237 const charset x;
3238 /* SunOS 4.1.1 cc rejects this. */
3239 char const *const *ccp;
3240 char **p;
3241 /* NEC SVR4.0.2 mips cc rejects this. */
3242 struct point {int x, y;};
3243 static struct point const zero = {0,0};
3244 /* AIX XL C 1.02.0.0 rejects this.
3245 It does not let you subtract one const X* pointer from another in
3246 an arm of an if-expression whose if-part is not a constant
3247 expression */
3248 const char *g = "string";
3249 ccp = &g + (g ? g-g : 0);
3250 /* HPUX 7.0 cc rejects these. */
3251 ++ccp;
3252 p = (char**) ccp;
3253 ccp = (char const *const *) p;
3254 { /* SCO 3.2v4 cc rejects this. */
3255 char *t;
3256 char const *s = 0 ? (char *) 0 : (char const *) 0;
3257
3258 *t++ = 0;
3259 }
3260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3261 int x[] = {25, 17};
3262 const int *foo = &x[0];
3263 ++foo;
3264 }
3265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3266 typedef const int *iptr;
3267 iptr p = 0;
3268 ++p;
3269 }
3270 { /* AIX XL C 1.02.0.0 rejects this saying
3271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3272 struct s { int j; const int *ap[3]; };
3273 struct s *b; b->j = 5;
3274 }
3275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3276 const int foo = 10;
3277 }
3278#endif
c906108c 3279
bec39cab
AC
3280 ;
3281 return 0;
3282}
3283_ACEOF
3284rm -f conftest.$ac_objext
3285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>conftest.er1
3287 ac_status=$?
3288 grep -v '^ *+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try='test -z "$ac_c_werror_flag"
3294 || test ! -s conftest.err'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 (eval $ac_try) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; } &&
3300 { ac_try='test -s conftest.$ac_objext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_cv_c_const=yes
c906108c 3307else
bec39cab
AC
3308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3310
bec39cab
AC
3311ac_cv_c_const=no
3312fi
3313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3314fi
bec39cab
AC
3315echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3316echo "${ECHO_T}$ac_cv_c_const" >&6
3317if test $ac_cv_c_const = no; then
c906108c 3318
bec39cab
AC
3319cat >>confdefs.h <<\_ACEOF
3320#define const
3321_ACEOF
c906108c
SS
3322
3323fi
3324
bec39cab
AC
3325echo "$as_me:$LINENO: checking for inline" >&5
3326echo $ECHO_N "checking for inline... $ECHO_C" >&6
3327if test "${ac_cv_c_inline+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3329else
bec39cab
AC
3330 ac_cv_c_inline=no
3331for ac_kw in inline __inline__ __inline; do
3332 cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h. */
3338#ifndef __cplusplus
3339typedef int foo_t;
3340static $ac_kw foo_t static_foo () {return 0; }
3341$ac_kw foo_t foo () {return 0; }
c906108c
SS
3342#endif
3343
bec39cab
AC
3344_ACEOF
3345rm -f conftest.$ac_objext
3346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -z "$ac_c_werror_flag"
3355 || test ! -s conftest.err'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 (eval $ac_try) 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 (eval $ac_try) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 ac_cv_c_inline=$ac_kw; break
c906108c 3368else
bec39cab
AC
3369 echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3371
c906108c 3372fi
bec39cab 3373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3374done
3375
bec39cab
AC
3376fi
3377echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3378echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3379
c906108c 3380
bec39cab
AC
3381case $ac_cv_c_inline in
3382 inline | yes) ;;
3383 *)
3384 case $ac_cv_c_inline in
3385 no) ac_val=;;
3386 *) ac_val=$ac_cv_c_inline;;
3387 esac
3388 cat >>confdefs.h <<_ACEOF
3389#ifndef __cplusplus
3390#define inline $ac_val
c906108c 3391#endif
bec39cab
AC
3392_ACEOF
3393 ;;
3394esac
c906108c 3395
bec39cab 3396# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3397
c906108c 3398
c906108c 3399
c906108c 3400
c906108c 3401
c906108c 3402
c906108c 3403
c906108c 3404
c906108c 3405
bec39cab
AC
3406for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3407 inttypes.h stdint.h unistd.h
3408do
3409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3410echo "$as_me:$LINENO: checking for $ac_header" >&5
3411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3412if eval "test \"\${$as_ac_Header+set}\" = set"; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421$ac_includes_default
3422
3423#include <$ac_header>
3424_ACEOF
3425rm -f conftest.$ac_objext
3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427 (eval $ac_compile) 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag"
3435 || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 eval "$as_ac_Header=yes"
3448else
3449 echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452eval "$as_ac_Header=no"
3453fi
3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455fi
3456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3458if test `eval echo '${'$as_ac_Header'}'` = yes; then
3459 cat >>confdefs.h <<_ACEOF
3460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3461_ACEOF
c906108c 3462
c906108c
SS
3463fi
3464
bec39cab 3465done
c906108c 3466
c906108c 3467
bec39cab
AC
3468echo "$as_me:$LINENO: checking for off_t" >&5
3469echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3470if test "${ac_cv_type_off_t+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3472else
bec39cab
AC
3473 cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h. */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h. */
3479$ac_includes_default
3480int
3481main ()
3482{
3483if ((off_t *) 0)
3484 return 0;
3485if (sizeof (off_t))
3486 return 0;
3487 ;
3488 return 0;
3489}
3490_ACEOF
3491rm -f conftest.$ac_objext
3492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } &&
3500 { ac_try='test -z "$ac_c_werror_flag"
3501 || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_type_off_t=yes
3514else
3515 echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518ac_cv_type_off_t=no
c906108c 3519fi
bec39cab 3520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3521fi
bec39cab
AC
3522echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3523echo "${ECHO_T}$ac_cv_type_off_t" >&6
3524if test $ac_cv_type_off_t = yes; then
3525 :
c906108c 3526else
bec39cab
AC
3527
3528cat >>confdefs.h <<_ACEOF
3529#define off_t long
3530_ACEOF
3531
3532fi
3533
3534echo "$as_me:$LINENO: checking for size_t" >&5
3535echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3536if test "${ac_cv_type_size_t+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539 cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
3545$ac_includes_default
3546int
3547main ()
3548{
3549if ((size_t *) 0)
3550 return 0;
3551if (sizeof (size_t))
3552 return 0;
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557rm -f conftest.$ac_objext
3558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_c_werror_flag"
3567 || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 ac_cv_type_size_t=yes
c906108c 3580else
bec39cab
AC
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584ac_cv_type_size_t=no
c906108c 3585fi
bec39cab 3586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3587fi
bec39cab
AC
3588echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3589echo "${ECHO_T}$ac_cv_type_size_t" >&6
3590if test $ac_cv_type_size_t = yes; then
3591 :
3592else
c906108c 3593
bec39cab
AC
3594cat >>confdefs.h <<_ACEOF
3595#define size_t unsigned
3596_ACEOF
c906108c 3597
c906108c 3598fi
bec39cab
AC
3599
3600# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3601# for constant arguments. Useless!
3602echo "$as_me:$LINENO: checking for working alloca.h" >&5
3603echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3604if test "${ac_cv_working_alloca_h+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607 cat >conftest.$ac_ext <<_ACEOF
3608/* confdefs.h. */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h. */
3613#include <alloca.h>
3614int
3615main ()
3616{
3617char *p = (char *) alloca (2 * sizeof (int));
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622rm -f conftest.$ac_objext conftest$ac_exeext
3623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3624 (eval $ac_link) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest$ac_exeext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_cv_working_alloca_h=yes
3645else
3646 echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649ac_cv_working_alloca_h=no
3650fi
3651rm -f conftest.err conftest.$ac_objext \
3652 conftest$ac_exeext conftest.$ac_ext
3653fi
3654echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3655echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3656if test $ac_cv_working_alloca_h = yes; then
3657
3658cat >>confdefs.h <<\_ACEOF
3659#define HAVE_ALLOCA_H 1
3660_ACEOF
c906108c
SS
3661
3662fi
bec39cab
AC
3663
3664echo "$as_me:$LINENO: checking for alloca" >&5
3665echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3666if test "${ac_cv_func_alloca_works+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3668else
bec39cab
AC
3669 cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
3675#ifdef __GNUC__
3676# define alloca __builtin_alloca
3677#else
3678# ifdef _MSC_VER
3679# include <malloc.h>
3680# define alloca _alloca
3681# else
3682# if HAVE_ALLOCA_H
3683# include <alloca.h>
3684# else
3685# ifdef _AIX
3686 #pragma alloca
3687# else
3688# ifndef alloca /* predefined by HP cc +Olibcalls */
3689char *alloca ();
3690# endif
3691# endif
3692# endif
3693# endif
3694#endif
c906108c 3695
bec39cab
AC
3696int
3697main ()
3698{
3699char *p = (char *) alloca (1);
3700 ;
3701 return 0;
3702}
3703_ACEOF
3704rm -f conftest.$ac_objext conftest$ac_exeext
3705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706 (eval $ac_link) 2>conftest.er1
3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -z "$ac_c_werror_flag"
3714 || test ! -s conftest.err'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } &&
3720 { ac_try='test -s conftest$ac_exeext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_cv_func_alloca_works=yes
c906108c 3727else
bec39cab
AC
3728 echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731ac_cv_func_alloca_works=no
c906108c 3732fi
bec39cab
AC
3733rm -f conftest.err conftest.$ac_objext \
3734 conftest$ac_exeext conftest.$ac_ext
c906108c 3735fi
bec39cab
AC
3736echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3737echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3738
3739if test $ac_cv_func_alloca_works = yes; then
3740
3741cat >>confdefs.h <<\_ACEOF
3742#define HAVE_ALLOCA 1
3743_ACEOF
c906108c 3744
c906108c 3745else
bec39cab
AC
3746 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3747# that cause trouble. Some versions do not even contain alloca or
3748# contain a buggy version. If you still want to use their alloca,
3749# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3750
bec39cab 3751ALLOCA=alloca.$ac_objext
c906108c 3752
bec39cab
AC
3753cat >>confdefs.h <<\_ACEOF
3754#define C_ALLOCA 1
3755_ACEOF
c906108c 3756
bec39cab
AC
3757
3758echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3759echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3760if test "${ac_cv_os_cray+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3762else
bec39cab
AC
3763 cat >conftest.$ac_ext <<_ACEOF
3764/* confdefs.h. */
3765_ACEOF
3766cat confdefs.h >>conftest.$ac_ext
3767cat >>conftest.$ac_ext <<_ACEOF
3768/* end confdefs.h. */
3769#if defined(CRAY) && ! defined(CRAY2)
3770webecray
3771#else
3772wenotbecray
3773#endif
3774
3775_ACEOF
3776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 $EGREP "webecray" >/dev/null 2>&1; then
3778 ac_cv_os_cray=yes
c906108c 3779else
bec39cab 3780 ac_cv_os_cray=no
c906108c 3781fi
bec39cab
AC
3782rm -f conftest*
3783
3784fi
3785echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3786echo "${ECHO_T}$ac_cv_os_cray" >&6
3787if test $ac_cv_os_cray = yes; then
3788 for ac_func in _getb67 GETB67 getb67; do
3789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3790echo "$as_me:$LINENO: checking for $ac_func" >&5
3791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3792if eval "test \"\${$as_ac_var+set}\" = set"; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
3801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3803#define $ac_func innocuous_$ac_func
3804
c906108c 3805/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3806 which can conflict with char $ac_func (); below.
3807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3808 <limits.h> exists even on freestanding compilers. */
3809
3810#ifdef __STDC__
3811# include <limits.h>
3812#else
3813# include <assert.h>
3814#endif
c906108c 3815
bec39cab 3816#undef $ac_func
c906108c 3817
bec39cab
AC
3818/* Override any gcc2 internal prototype to avoid an error. */
3819#ifdef __cplusplus
3820extern "C"
3821{
3822#endif
3823/* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3825char $ac_func ();
c906108c
SS
3826/* The GNU C library defines this for functions which it implements
3827 to always fail with ENOSYS. Some functions are actually named
3828 something starting with __ and the normal name is an alias. */
3829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3830choke me
3831#else
bec39cab
AC
3832char (*f) () = $ac_func;
3833#endif
3834#ifdef __cplusplus
3835}
c906108c
SS
3836#endif
3837
bec39cab
AC
3838int
3839main ()
3840{
3841return f != $ac_func;
3842 ;
3843 return 0;
3844}
3845_ACEOF
3846rm -f conftest.$ac_objext conftest$ac_exeext
3847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848 (eval $ac_link) 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_c_werror_flag"
3856 || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest$ac_exeext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 eval "$as_ac_var=yes"
3869else
3870 echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873eval "$as_ac_var=no"
3874fi
3875rm -f conftest.err conftest.$ac_objext \
3876 conftest$ac_exeext conftest.$ac_ext
3877fi
3878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3880if test `eval echo '${'$as_ac_var'}'` = yes; then
3881
3882cat >>confdefs.h <<_ACEOF
3883#define CRAY_STACKSEG_END $ac_func
3884_ACEOF
c906108c 3885
bec39cab 3886 break
c906108c 3887fi
c906108c 3888
c906108c 3889 done
c906108c 3890fi
bec39cab
AC
3891
3892echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3893echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3894if test "${ac_cv_c_stack_direction+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3896else
bec39cab
AC
3897 if test "$cross_compiling" = yes; then
3898 ac_cv_c_stack_direction=0
3899else
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906int
3907find_stack_direction ()
3908{
3909 static char *addr = 0;
3910 auto char dummy;
3911 if (addr == 0)
3912 {
3913 addr = &dummy;
3914 return find_stack_direction ();
3915 }
3916 else
3917 return (&dummy > addr) ? 1 : -1;
3918}
c906108c 3919
bec39cab
AC
3920int
3921main ()
3922{
3923 exit (find_stack_direction () < 0);
3924}
3925_ACEOF
3926rm -f conftest$ac_exeext
3927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_c_stack_direction=1
c906108c 3938else
bec39cab
AC
3939 echo "$as_me: program exited with status $ac_status" >&5
3940echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943( exit $ac_status )
3944ac_cv_c_stack_direction=-1
3945fi
3946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3947fi
c906108c 3948fi
bec39cab
AC
3949echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3950echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3951
3952cat >>confdefs.h <<_ACEOF
3953#define STACK_DIRECTION $ac_cv_c_stack_direction
3954_ACEOF
c906108c 3955
c906108c 3956
c906108c
SS
3957fi
3958
3959
c906108c 3960
bec39cab
AC
3961for ac_header in stdlib.h unistd.h
3962do
3963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3964if eval "test \"\${$as_ac_Header+set}\" = set"; then
3965 echo "$as_me:$LINENO: checking for $ac_header" >&5
3966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3967if eval "test \"\${$as_ac_Header+set}\" = set"; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969fi
3970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3972else
3973 # Is the header compilable?
3974echo "$as_me:$LINENO: checking $ac_header usability" >&5
3975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3976cat >conftest.$ac_ext <<_ACEOF
3977/* confdefs.h. */
3978_ACEOF
3979cat confdefs.h >>conftest.$ac_ext
3980cat >>conftest.$ac_ext <<_ACEOF
3981/* end confdefs.h. */
3982$ac_includes_default
3983#include <$ac_header>
3984_ACEOF
3985rm -f conftest.$ac_objext
3986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_header_compiler=yes
4008else
4009 echo "$as_me: failed program was:" >&5
4010sed 's/^/| /' conftest.$ac_ext >&5
4011
4012ac_header_compiler=no
4013fi
4014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4016echo "${ECHO_T}$ac_header_compiler" >&6
4017
4018# Is the header present?
4019echo "$as_me:$LINENO: checking $ac_header presence" >&5
4020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4021cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027#include <$ac_header>
4028_ACEOF
4029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } >/dev/null; then
4037 if test -s conftest.err; then
4038 ac_cpp_err=$ac_c_preproc_warn_flag
4039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4040 else
4041 ac_cpp_err=
4042 fi
c906108c 4043else
bec39cab 4044 ac_cpp_err=yes
c906108c 4045fi
bec39cab
AC
4046if test -z "$ac_cpp_err"; then
4047 ac_header_preproc=yes
c906108c 4048else
bec39cab
AC
4049 echo "$as_me: failed program was:" >&5
4050sed 's/^/| /' conftest.$ac_ext >&5
4051
4052 ac_header_preproc=no
c906108c 4053fi
bec39cab
AC
4054rm -f conftest.err conftest.$ac_ext
4055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4056echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4057
bec39cab
AC
4058# So? What about this header?
4059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4060 yes:no: )
4061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4065 ac_header_preproc=yes
4066 ;;
4067 no:yes:* )
4068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4080 (
4081 cat <<\_ASBOX
4082## ------------------------------------------ ##
4083## Report this to the AC_PACKAGE_NAME lists. ##
4084## ------------------------------------------ ##
4085_ASBOX
4086 ) |
4087 sed "s/^/$as_me: WARNING: /" >&2
4088 ;;
4089esac
4090echo "$as_me:$LINENO: checking for $ac_header" >&5
4091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4092if eval "test \"\${$as_ac_Header+set}\" = set"; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095 eval "$as_ac_Header=\$ac_header_preproc"
4096fi
4097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4099
4100fi
4101if test `eval echo '${'$as_ac_Header'}'` = yes; then
4102 cat >>confdefs.h <<_ACEOF
4103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104_ACEOF
4105
4106fi
4107
4108done
4109
4110
4111for ac_func in getpagesize
4112do
4113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4114echo "$as_me:$LINENO: checking for $ac_func" >&5
4115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4116if eval "test \"\${$as_ac_var+set}\" = set"; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119 cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h. */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h. */
4125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4127#define $ac_func innocuous_$ac_func
4128
4129/* System header to define __stub macros and hopefully few prototypes,
4130 which can conflict with char $ac_func (); below.
4131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4132 <limits.h> exists even on freestanding compilers. */
4133
4134#ifdef __STDC__
4135# include <limits.h>
4136#else
4137# include <assert.h>
4138#endif
4139
4140#undef $ac_func
4141
4142/* Override any gcc2 internal prototype to avoid an error. */
4143#ifdef __cplusplus
4144extern "C"
4145{
4146#endif
4147/* We use char because int might match the return type of a gcc2
4148 builtin and then its argument prototype would still apply. */
4149char $ac_func ();
4150/* The GNU C library defines this for functions which it implements
4151 to always fail with ENOSYS. Some functions are actually named
4152 something starting with __ and the normal name is an alias. */
4153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4154choke me
4155#else
4156char (*f) () = $ac_func;
4157#endif
4158#ifdef __cplusplus
4159}
4160#endif
4161
4162int
4163main ()
4164{
4165return f != $ac_func;
4166 ;
4167 return 0;
4168}
4169_ACEOF
4170rm -f conftest.$ac_objext conftest$ac_exeext
4171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172 (eval $ac_link) 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest$ac_exeext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 eval "$as_ac_var=yes"
4193else
4194 echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197eval "$as_ac_var=no"
4198fi
4199rm -f conftest.err conftest.$ac_objext \
4200 conftest$ac_exeext conftest.$ac_ext
4201fi
4202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4204if test `eval echo '${'$as_ac_var'}'` = yes; then
4205 cat >>confdefs.h <<_ACEOF
4206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4207_ACEOF
4208
4209fi
4210done
4211
4212echo "$as_me:$LINENO: checking for working mmap" >&5
4213echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4214if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 if test "$cross_compiling" = yes; then
4218 ac_cv_func_mmap_fixed_mapped=no
4219else
4220 cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h. */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h. */
4226$ac_includes_default
4227/* malloc might have been renamed as rpl_malloc. */
4228#undef malloc
4229
4230/* Thanks to Mike Haertel and Jim Avera for this test.
4231 Here is a matrix of mmap possibilities:
4232 mmap private not fixed
4233 mmap private fixed at somewhere currently unmapped
4234 mmap private fixed at somewhere already mapped
4235 mmap shared not fixed
4236 mmap shared fixed at somewhere currently unmapped
4237 mmap shared fixed at somewhere already mapped
4238 For private mappings, we should verify that changes cannot be read()
4239 back from the file, nor mmap's back from the file at a different
4240 address. (There have been systems where private was not correctly
4241 implemented like the infamous i386 svr4.0, and systems where the
4242 VM page cache was not coherent with the file system buffer cache
4243 like early versions of FreeBSD and possibly contemporary NetBSD.)
4244 For shared mappings, we should conversely verify that changes get
4245 propagated back to all the places they're supposed to be.
4246
4247 Grep wants private fixed already mapped.
4248 The main things grep needs to know about mmap are:
4249 * does it exist and is it safe to write into the mmap'd area
4250 * how to use it (BSD variants) */
4251
4252#include <fcntl.h>
4253#include <sys/mman.h>
4254
4255#if !STDC_HEADERS && !HAVE_STDLIB_H
4256char *malloc ();
4257#endif
4258
4259/* This mess was copied from the GNU getpagesize.h. */
4260#if !HAVE_GETPAGESIZE
4261/* Assume that all systems that can run configure have sys/param.h. */
4262# if !HAVE_SYS_PARAM_H
4263# define HAVE_SYS_PARAM_H 1
4264# endif
4265
4266# ifdef _SC_PAGESIZE
4267# define getpagesize() sysconf(_SC_PAGESIZE)
4268# else /* no _SC_PAGESIZE */
4269# if HAVE_SYS_PARAM_H
4270# include <sys/param.h>
4271# ifdef EXEC_PAGESIZE
4272# define getpagesize() EXEC_PAGESIZE
4273# else /* no EXEC_PAGESIZE */
4274# ifdef NBPG
4275# define getpagesize() NBPG * CLSIZE
4276# ifndef CLSIZE
4277# define CLSIZE 1
4278# endif /* no CLSIZE */
4279# else /* no NBPG */
4280# ifdef NBPC
4281# define getpagesize() NBPC
4282# else /* no NBPC */
4283# ifdef PAGESIZE
4284# define getpagesize() PAGESIZE
4285# endif /* PAGESIZE */
4286# endif /* no NBPC */
4287# endif /* no NBPG */
4288# endif /* no EXEC_PAGESIZE */
4289# else /* no HAVE_SYS_PARAM_H */
4290# define getpagesize() 8192 /* punt totally */
4291# endif /* no HAVE_SYS_PARAM_H */
4292# endif /* no _SC_PAGESIZE */
4293
4294#endif /* no HAVE_GETPAGESIZE */
4295
4296int
4297main ()
4298{
4299 char *data, *data2, *data3;
4300 int i, pagesize;
4301 int fd;
4302
4303 pagesize = getpagesize ();
4304
4305 /* First, make a file with some known garbage in it. */
4306 data = (char *) malloc (pagesize);
4307 if (!data)
4308 exit (1);
4309 for (i = 0; i < pagesize; ++i)
4310 *(data + i) = rand ();
4311 umask (0);
4312 fd = creat ("conftest.mmap", 0600);
4313 if (fd < 0)
4314 exit (1);
4315 if (write (fd, data, pagesize) != pagesize)
4316 exit (1);
4317 close (fd);
4318
4319 /* Next, try to mmap the file at a fixed address which already has
4320 something else allocated at it. If we can, also make sure that
4321 we see the same garbage. */
4322 fd = open ("conftest.mmap", O_RDWR);
4323 if (fd < 0)
4324 exit (1);
4325 data2 = (char *) malloc (2 * pagesize);
4326 if (!data2)
4327 exit (1);
4328 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4329 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4330 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4331 exit (1);
4332 for (i = 0; i < pagesize; ++i)
4333 if (*(data + i) != *(data2 + i))
4334 exit (1);
4335
4336 /* Finally, make sure that changes to the mapped area do not
4337 percolate back to the file as seen by read(). (This is a bug on
4338 some variants of i386 svr4.0.) */
4339 for (i = 0; i < pagesize; ++i)
4340 *(data2 + i) = *(data2 + i) + 1;
4341 data3 = (char *) malloc (pagesize);
4342 if (!data3)
4343 exit (1);
4344 if (read (fd, data3, pagesize) != pagesize)
4345 exit (1);
4346 for (i = 0; i < pagesize; ++i)
4347 if (*(data + i) != *(data3 + i))
4348 exit (1);
4349 close (fd);
4350 exit (0);
4351}
4352_ACEOF
4353rm -f conftest$ac_exeext
4354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355 (eval $ac_link) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 ac_cv_func_mmap_fixed_mapped=yes
4365else
4366 echo "$as_me: program exited with status $ac_status" >&5
4367echo "$as_me: failed program was:" >&5
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
4370( exit $ac_status )
4371ac_cv_func_mmap_fixed_mapped=no
4372fi
4373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4374fi
4375fi
4376echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4377echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4378if test $ac_cv_func_mmap_fixed_mapped = yes; then
4379
4380cat >>confdefs.h <<\_ACEOF
4381#define HAVE_MMAP 1
4382_ACEOF
4383
4384fi
4385rm -f conftest.mmap
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4398unistd.h values.h sys/param.h
4399do
4400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4401if eval "test \"\${$as_ac_Header+set}\" = set"; then
4402 echo "$as_me:$LINENO: checking for $ac_header" >&5
4403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4404if eval "test \"\${$as_ac_Header+set}\" = set"; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406fi
4407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409else
4410 # Is the header compilable?
4411echo "$as_me:$LINENO: checking $ac_header usability" >&5
4412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4413cat >conftest.$ac_ext <<_ACEOF
4414/* confdefs.h. */
4415_ACEOF
4416cat confdefs.h >>conftest.$ac_ext
4417cat >>conftest.$ac_ext <<_ACEOF
4418/* end confdefs.h. */
4419$ac_includes_default
4420#include <$ac_header>
4421_ACEOF
4422rm -f conftest.$ac_objext
4423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>conftest.er1
4425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -z "$ac_c_werror_flag"
4432 || test ! -s conftest.err'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 (eval $ac_try) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; } &&
4438 { ac_try='test -s conftest.$ac_objext'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4444 ac_header_compiler=yes
4445else
4446 echo "$as_me: failed program was:" >&5
4447sed 's/^/| /' conftest.$ac_ext >&5
4448
4449ac_header_compiler=no
4450fi
4451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4453echo "${ECHO_T}$ac_header_compiler" >&6
4454
4455# Is the header present?
4456echo "$as_me:$LINENO: checking $ac_header presence" >&5
4457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4458cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h. */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h. */
4464#include <$ac_header>
4465_ACEOF
4466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } >/dev/null; then
4474 if test -s conftest.err; then
4475 ac_cpp_err=$ac_c_preproc_warn_flag
4476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4477 else
4478 ac_cpp_err=
4479 fi
4480else
4481 ac_cpp_err=yes
4482fi
4483if test -z "$ac_cpp_err"; then
4484 ac_header_preproc=yes
4485else
4486 echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 ac_header_preproc=no
4490fi
4491rm -f conftest.err conftest.$ac_ext
4492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4493echo "${ECHO_T}$ac_header_preproc" >&6
4494
4495# So? What about this header?
4496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4497 yes:no: )
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4502 ac_header_preproc=yes
4503 ;;
4504 no:yes:* )
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4517 (
4518 cat <<\_ASBOX
4519## ------------------------------------------ ##
4520## Report this to the AC_PACKAGE_NAME lists. ##
4521## ------------------------------------------ ##
4522_ASBOX
4523 ) |
4524 sed "s/^/$as_me: WARNING: /" >&2
4525 ;;
4526esac
4527echo "$as_me:$LINENO: checking for $ac_header" >&5
4528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4529if eval "test \"\${$as_ac_Header+set}\" = set"; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 eval "$as_ac_Header=\$ac_header_preproc"
4533fi
4534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4536
4537fi
4538if test `eval echo '${'$as_ac_Header'}'` = yes; then
4539 cat >>confdefs.h <<_ACEOF
4540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4541_ACEOF
4542
4543fi
4544
4545done
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4558__argz_count __argz_stringify __argz_next
4559do
4560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4561echo "$as_me:$LINENO: checking for $ac_func" >&5
4562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4563if eval "test \"\${$as_ac_var+set}\" = set"; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565else
4566 cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h. */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h. */
4572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4574#define $ac_func innocuous_$ac_func
4575
4576/* System header to define __stub macros and hopefully few prototypes,
4577 which can conflict with char $ac_func (); below.
4578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4579 <limits.h> exists even on freestanding compilers. */
4580
4581#ifdef __STDC__
4582# include <limits.h>
4583#else
4584# include <assert.h>
4585#endif
4586
4587#undef $ac_func
4588
4589/* Override any gcc2 internal prototype to avoid an error. */
4590#ifdef __cplusplus
4591extern "C"
4592{
4593#endif
4594/* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4596char $ac_func ();
4597/* The GNU C library defines this for functions which it implements
4598 to always fail with ENOSYS. Some functions are actually named
4599 something starting with __ and the normal name is an alias. */
4600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4601choke me
4602#else
4603char (*f) () = $ac_func;
4604#endif
4605#ifdef __cplusplus
4606}
4607#endif
4608
4609int
4610main ()
4611{
4612return f != $ac_func;
4613 ;
4614 return 0;
4615}
4616_ACEOF
4617rm -f conftest.$ac_objext conftest$ac_exeext
4618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 eval "$as_ac_var=yes"
4640else
4641 echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644eval "$as_ac_var=no"
4645fi
4646rm -f conftest.err conftest.$ac_objext \
4647 conftest$ac_exeext conftest.$ac_ext
4648fi
4649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4651if test `eval echo '${'$as_ac_var'}'` = yes; then
4652 cat >>confdefs.h <<_ACEOF
4653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4654_ACEOF
4655
4656fi
4657done
4658
4659
4660 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4661
4662for ac_func in stpcpy
4663do
4664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4665echo "$as_me:$LINENO: checking for $ac_func" >&5
4666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4667if eval "test \"\${$as_ac_var+set}\" = set"; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 cat >conftest.$ac_ext <<_ACEOF
4671/* confdefs.h. */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h. */
4676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4678#define $ac_func innocuous_$ac_func
4679
4680/* System header to define __stub macros and hopefully few prototypes,
4681 which can conflict with char $ac_func (); below.
4682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4683 <limits.h> exists even on freestanding compilers. */
4684
4685#ifdef __STDC__
4686# include <limits.h>
4687#else
4688# include <assert.h>
4689#endif
4690
4691#undef $ac_func
4692
4693/* Override any gcc2 internal prototype to avoid an error. */
4694#ifdef __cplusplus
4695extern "C"
4696{
4697#endif
4698/* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4700char $ac_func ();
4701/* The GNU C library defines this for functions which it implements
4702 to always fail with ENOSYS. Some functions are actually named
4703 something starting with __ and the normal name is an alias. */
4704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4705choke me
4706#else
4707char (*f) () = $ac_func;
4708#endif
4709#ifdef __cplusplus
4710}
4711#endif
4712
4713int
4714main ()
4715{
4716return f != $ac_func;
4717 ;
4718 return 0;
4719}
4720_ACEOF
4721rm -f conftest.$ac_objext conftest$ac_exeext
4722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 eval "$as_ac_var=yes"
4744else
4745 echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748eval "$as_ac_var=no"
4749fi
4750rm -f conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752fi
4753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4755if test `eval echo '${'$as_ac_var'}'` = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4758_ACEOF
4759
4760fi
4761done
4762
4763 fi
4764 if test "${ac_cv_func_stpcpy}" = "yes"; then
4765
4766cat >>confdefs.h <<\_ACEOF
4767#define HAVE_STPCPY 1
4768_ACEOF
4769
4770 fi
4771
4772 if test $ac_cv_header_locale_h = yes; then
4773 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4774echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4775if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4777else
4778 cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h. */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h. */
4784#include <locale.h>
4785int
4786main ()
4787{
4788return LC_MESSAGES
4789 ;
4790 return 0;
4791}
4792_ACEOF
4793rm -f conftest.$ac_objext conftest$ac_exeext
4794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4795 (eval $ac_link) 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -z "$ac_c_werror_flag"
4803 || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest$ac_exeext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 am_cv_val_LC_MESSAGES=yes
4816else
4817 echo "$as_me: failed program was:" >&5
4818sed 's/^/| /' conftest.$ac_ext >&5
4819
4820am_cv_val_LC_MESSAGES=no
4821fi
4822rm -f conftest.err conftest.$ac_objext \
4823 conftest$ac_exeext conftest.$ac_ext
4824fi
4825echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4826echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4827 if test $am_cv_val_LC_MESSAGES = yes; then
4828
4829cat >>confdefs.h <<\_ACEOF
4830#define HAVE_LC_MESSAGES 1
4831_ACEOF
4832
4833 fi
4834 fi
4835 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4836echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4837 # Check whether --enable-nls or --disable-nls was given.
4838if test "${enable_nls+set}" = set; then
4839 enableval="$enable_nls"
4840 USE_NLS=$enableval
4841else
4842 USE_NLS=yes
4843fi;
4844 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4845echo "${ECHO_T}$USE_NLS" >&6
4846
4847
4848 USE_INCLUDED_LIBINTL=no
4849
4850 if test "$USE_NLS" = "yes"; then
bec39cab
AC
4851 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4852echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4853
4854# Check whether --with-included-gettext or --without-included-gettext was given.
4855if test "${with_included_gettext+set}" = set; then
4856 withval="$with_included_gettext"
4857 nls_cv_force_use_gnu_gettext=$withval
4858else
4859 nls_cv_force_use_gnu_gettext=no
4860fi;
4861 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4862echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4863
4864 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4865 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4866 nls_cv_header_intl=
4867 nls_cv_header_libgt=
a53bf506 4868 CATOBJEXT=
bec39cab
AC
4869
4870 if test "${ac_cv_header_libintl_h+set}" = set; then
4871 echo "$as_me:$LINENO: checking for libintl.h" >&5
4872echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4873if test "${ac_cv_header_libintl_h+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875fi
4876echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4877echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4878else
4879 # Is the header compilable?
4880echo "$as_me:$LINENO: checking libintl.h usability" >&5
4881echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4882cat >conftest.$ac_ext <<_ACEOF
4883/* confdefs.h. */
4884_ACEOF
4885cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h. */
4888$ac_includes_default
4889#include <libintl.h>
4890_ACEOF
4891rm -f conftest.$ac_objext
4892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } &&
4900 { ac_try='test -z "$ac_c_werror_flag"
4901 || test ! -s conftest.err'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; } &&
4907 { ac_try='test -s conftest.$ac_objext'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 ac_header_compiler=yes
4914else
4915 echo "$as_me: failed program was:" >&5
4916sed 's/^/| /' conftest.$ac_ext >&5
4917
4918ac_header_compiler=no
4919fi
4920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4922echo "${ECHO_T}$ac_header_compiler" >&6
4923
4924# Is the header present?
4925echo "$as_me:$LINENO: checking libintl.h presence" >&5
4926echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4927cat >conftest.$ac_ext <<_ACEOF
4928/* confdefs.h. */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h. */
4933#include <libintl.h>
4934_ACEOF
4935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } >/dev/null; then
4943 if test -s conftest.err; then
4944 ac_cpp_err=$ac_c_preproc_warn_flag
4945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4946 else
4947 ac_cpp_err=
4948 fi
4949else
4950 ac_cpp_err=yes
4951fi
4952if test -z "$ac_cpp_err"; then
4953 ac_header_preproc=yes
4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 ac_header_preproc=no
4959fi
4960rm -f conftest.err conftest.$ac_ext
4961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4962echo "${ECHO_T}$ac_header_preproc" >&6
4963
4964# So? What about this header?
4965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4966 yes:no: )
4967 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4968echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4969 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4970echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4971 ac_header_preproc=yes
4972 ;;
4973 no:yes:* )
4974 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4975echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4976 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4977echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4978 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4979echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4981echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4982 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4983echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4984 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4985echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4986 (
4987 cat <<\_ASBOX
4988## ------------------------------------------ ##
4989## Report this to the AC_PACKAGE_NAME lists. ##
4990## ------------------------------------------ ##
4991_ASBOX
4992 ) |
4993 sed "s/^/$as_me: WARNING: /" >&2
4994 ;;
4995esac
4996echo "$as_me:$LINENO: checking for libintl.h" >&5
4997echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4998if test "${ac_cv_header_libintl_h+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001 ac_cv_header_libintl_h=$ac_header_preproc
5002fi
5003echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5004echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5005
5006fi
5007if test $ac_cv_header_libintl_h = yes; then
5008 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5009echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5010if test "${gt_cv_func_gettext_libc+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012else
5013 cat >conftest.$ac_ext <<_ACEOF
5014/* confdefs.h. */
5015_ACEOF
5016cat confdefs.h >>conftest.$ac_ext
5017cat >>conftest.$ac_ext <<_ACEOF
5018/* end confdefs.h. */
5019#include <libintl.h>
5020int
5021main ()
5022{
5023return (int) gettext ("")
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028rm -f conftest.$ac_objext conftest$ac_exeext
5029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5030 (eval $ac_link) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest$ac_exeext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 gt_cv_func_gettext_libc=yes
5051else
5052 echo "$as_me: failed program was:" >&5
5053sed 's/^/| /' conftest.$ac_ext >&5
5054
5055gt_cv_func_gettext_libc=no
5056fi
5057rm -f conftest.err conftest.$ac_objext \
5058 conftest$ac_exeext conftest.$ac_ext
5059fi
5060echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5061echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5062
5063 if test "$gt_cv_func_gettext_libc" != "yes"; then
5064 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5065echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5066if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 ac_check_lib_save_LIBS=$LIBS
5070LIBS="-lintl $LIBS"
5071cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077
5078/* Override any gcc2 internal prototype to avoid an error. */
5079#ifdef __cplusplus
5080extern "C"
5081#endif
5082/* We use char because int might match the return type of a gcc2
5083 builtin and then its argument prototype would still apply. */
5084char bindtextdomain ();
5085int
5086main ()
5087{
5088bindtextdomain ();
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093rm -f conftest.$ac_objext conftest$ac_exeext
5094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest$ac_exeext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_cv_lib_intl_bindtextdomain=yes
5116else
5117 echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120ac_cv_lib_intl_bindtextdomain=no
5121fi
5122rm -f conftest.err conftest.$ac_objext \
5123 conftest$ac_exeext conftest.$ac_ext
5124LIBS=$ac_check_lib_save_LIBS
5125fi
5126echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5127echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5128if test $ac_cv_lib_intl_bindtextdomain = yes; then
5129 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5130echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5131if test "${gt_cv_func_gettext_libintl+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134 cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h. */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h. */
5140
5141int
5142main ()
5143{
5144return (int) gettext ("")
5145 ;
5146 return 0;
5147}
5148_ACEOF
5149rm -f conftest.$ac_objext conftest$ac_exeext
5150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5151 (eval $ac_link) 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } &&
5158 { ac_try='test -z "$ac_c_werror_flag"
5159 || test ! -s conftest.err'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; } &&
5165 { ac_try='test -s conftest$ac_exeext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 gt_cv_func_gettext_libintl=yes
5172else
5173 echo "$as_me: failed program was:" >&5
5174sed 's/^/| /' conftest.$ac_ext >&5
5175
5176gt_cv_func_gettext_libintl=no
5177fi
5178rm -f conftest.err conftest.$ac_objext \
5179 conftest$ac_exeext conftest.$ac_ext
5180fi
5181echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5182echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5183fi
5184
5185 fi
5186
5187 if test "$gt_cv_func_gettext_libc" = "yes" \
5188 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5189
5190cat >>confdefs.h <<\_ACEOF
5191#define HAVE_GETTEXT 1
5192_ACEOF
5193
5194 # Extract the first word of "msgfmt", so it can be a program name with args.
5195set dummy msgfmt; ac_word=$2
5196echo "$as_me:$LINENO: checking for $ac_word" >&5
5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198if test "${ac_cv_path_MSGFMT+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201 case "$MSGFMT" in
5202 /*)
5203 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5204 ;;
5205 *)
5206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5207 for ac_dir in $PATH; do
5208 test -z "$ac_dir" && ac_dir=.
5209 if test -f $ac_dir/$ac_word; then
5210 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5211 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5212 break
5213 fi
5214 fi
5215 done
5216 IFS="$ac_save_ifs"
5217 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5218 ;;
5219esac
5220fi
5221MSGFMT="$ac_cv_path_MSGFMT"
5222if test -n "$MSGFMT"; then
5223 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5224echo "${ECHO_T}$MSGFMT" >&6
5225else
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228fi
5229 if test "$MSGFMT" != "no"; then
5230
5231for ac_func in dcgettext
5232do
5233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5234echo "$as_me:$LINENO: checking for $ac_func" >&5
5235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5236if eval "test \"\${$as_ac_var+set}\" = set"; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h. */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h. */
5245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5247#define $ac_func innocuous_$ac_func
5248
5249/* System header to define __stub macros and hopefully few prototypes,
5250 which can conflict with char $ac_func (); below.
5251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5252 <limits.h> exists even on freestanding compilers. */
5253
5254#ifdef __STDC__
5255# include <limits.h>
5256#else
5257# include <assert.h>
5258#endif
5259
5260#undef $ac_func
5261
5262/* Override any gcc2 internal prototype to avoid an error. */
5263#ifdef __cplusplus
5264extern "C"
5265{
5266#endif
5267/* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5269char $ac_func ();
5270/* The GNU C library defines this for functions which it implements
5271 to always fail with ENOSYS. Some functions are actually named
5272 something starting with __ and the normal name is an alias. */
5273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5274choke me
5275#else
5276char (*f) () = $ac_func;
5277#endif
5278#ifdef __cplusplus
5279}
5280#endif
5281
5282int
5283main ()
5284{
5285return f != $ac_func;
5286 ;
5287 return 0;
5288}
5289_ACEOF
5290rm -f conftest.$ac_objext conftest$ac_exeext
5291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292 (eval $ac_link) 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_c_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest$ac_exeext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 eval "$as_ac_var=yes"
5313else
5314 echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317eval "$as_ac_var=no"
5318fi
5319rm -f conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
5321fi
5322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5324if test `eval echo '${'$as_ac_var'}'` = yes; then
5325 cat >>confdefs.h <<_ACEOF
5326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5327_ACEOF
5328
5329fi
5330done
5331
5332 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5333set dummy gmsgfmt; ac_word=$2
5334echo "$as_me:$LINENO: checking for $ac_word" >&5
5335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5336if test "${ac_cv_path_GMSGFMT+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339 case $GMSGFMT in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5342 ;;
5343 *)
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355done
5356done
5357
5358 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5359 ;;
5360esac
5361fi
5362GMSGFMT=$ac_cv_path_GMSGFMT
5363
5364if test -n "$GMSGFMT"; then
5365 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5366echo "${ECHO_T}$GMSGFMT" >&6
5367else
5368 echo "$as_me:$LINENO: result: no" >&5
5369echo "${ECHO_T}no" >&6
5370fi
5371
5372 # Extract the first word of "xgettext", so it can be a program name with args.
5373set dummy xgettext; ac_word=$2
5374echo "$as_me:$LINENO: checking for $ac_word" >&5
5375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376if test "${ac_cv_path_XGETTEXT+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378else
5379 case "$XGETTEXT" in
5380 /*)
5381 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5382 ;;
5383 *)
5384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5385 for ac_dir in $PATH; do
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f $ac_dir/$ac_word; then
5388 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5389 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5390 break
5391 fi
5392 fi
5393 done
5394 IFS="$ac_save_ifs"
5395 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5396 ;;
5397esac
5398fi
5399XGETTEXT="$ac_cv_path_XGETTEXT"
5400if test -n "$XGETTEXT"; then
5401 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5402echo "${ECHO_T}$XGETTEXT" >&6
5403else
5404 echo "$as_me:$LINENO: result: no" >&5
5405echo "${ECHO_T}no" >&6
5406fi
5407
5408 cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414
5415int
5416main ()
5417{
5418extern int _nl_msg_cat_cntr;
5419 return _nl_msg_cat_cntr
5420 ;
5421 return 0;
5422}
5423_ACEOF
5424rm -f conftest.$ac_objext conftest$ac_exeext
5425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5426 (eval $ac_link) 2>conftest.er1
5427 ac_status=$?
5428 grep -v '^ *+' conftest.er1 >conftest.err
5429 rm -f conftest.er1
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try='test -z "$ac_c_werror_flag"
5434 || test ! -s conftest.err'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; } &&
5440 { ac_try='test -s conftest$ac_exeext'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; }; then
5446 CATOBJEXT=.gmo
5447 DATADIRNAME=share
5448else
5449 echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452CATOBJEXT=.mo
5453 DATADIRNAME=lib
5454fi
5455rm -f conftest.err conftest.$ac_objext \
5456 conftest$ac_exeext conftest.$ac_ext
5457 INSTOBJEXT=.mo
5458 fi
5459 fi
5460
5461fi
5462
5463
5464
5465
a53bf506 5466 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
5467 # Neither gettext nor catgets in included in the C library.
5468 # Fall back on GNU gettext library (assuming it is present).
5469 nls_cv_use_gnu_gettext=yes
bec39cab
AC
5470 fi
5471 fi
5472
5473 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5474 INTLOBJS="\$(GETTOBJS)"
5475 # Extract the first word of "msgfmt", so it can be a program name with args.
5476set dummy msgfmt; ac_word=$2
5477echo "$as_me:$LINENO: checking for $ac_word" >&5
5478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5479if test "${ac_cv_path_MSGFMT+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482 case "$MSGFMT" in
5483 /*)
5484 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5485 ;;
5486 *)
5487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5488 for ac_dir in $PATH; do
5489 test -z "$ac_dir" && ac_dir=.
5490 if test -f $ac_dir/$ac_word; then
5491 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5492 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5493 break
5494 fi
5495 fi
5496 done
5497 IFS="$ac_save_ifs"
5498 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5499 ;;
5500esac
5501fi
5502MSGFMT="$ac_cv_path_MSGFMT"
5503if test -n "$MSGFMT"; then
5504 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5505echo "${ECHO_T}$MSGFMT" >&6
5506else
5507 echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6
5509fi
5510
5511 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5512set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5513echo "$as_me:$LINENO: checking for $ac_word" >&5
5514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515if test "${ac_cv_path_GMSGFMT+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 case $GMSGFMT in
5519 [\\/]* | ?:[\\/]*)
5520 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5521 ;;
5522 *)
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534done
5535done
5536
5537 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5538 ;;
5539esac
5540fi
5541GMSGFMT=$ac_cv_path_GMSGFMT
5542
5543if test -n "$GMSGFMT"; then
5544 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5545echo "${ECHO_T}$GMSGFMT" >&6
5546else
5547 echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549fi
5550
5551 # Extract the first word of "xgettext", so it can be a program name with args.
5552set dummy xgettext; ac_word=$2
5553echo "$as_me:$LINENO: checking for $ac_word" >&5
5554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5555if test "${ac_cv_path_XGETTEXT+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558 case "$XGETTEXT" in
5559 /*)
5560 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5561 ;;
5562 *)
5563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5564 for ac_dir in $PATH; do
5565 test -z "$ac_dir" && ac_dir=.
5566 if test -f $ac_dir/$ac_word; then
5567 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5568 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5569 break
5570 fi
5571 fi
5572 done
5573 IFS="$ac_save_ifs"
5574 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5575 ;;
5576esac
5577fi
5578XGETTEXT="$ac_cv_path_XGETTEXT"
5579if test -n "$XGETTEXT"; then
5580 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5581echo "${ECHO_T}$XGETTEXT" >&6
5582else
5583 echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585fi
5586
5587
5588 USE_INCLUDED_LIBINTL=yes
5589 CATOBJEXT=.gmo
5590 INSTOBJEXT=.mo
5591 DATADIRNAME=share
5592 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5593 INTLLIBS=$INTLDEPS
5594 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5595 nls_cv_header_intl=libintl.h
5596 nls_cv_header_libgt=libgettext.h
5597 fi
5598
5599 if test "$XGETTEXT" != ":"; then
5600 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5601 : ;
5602 else
5603 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5604echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5605 XGETTEXT=":"
5606 fi
5607 fi
5608
5609 # We need to process the po/ directory.
5610 POSUB=po
5611 else
5612 DATADIRNAME=share
5613 nls_cv_header_intl=libintl.h
5614 nls_cv_header_libgt=libgettext.h
5615 fi
5616
5617 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5618 # because some of the sources are only built for this goal.
5619 if test "$PACKAGE" = gettext; then
5620 USE_NLS=yes
5621 USE_INCLUDED_LIBINTL=yes
5622 fi
5623
5624 for lang in $ALL_LINGUAS; do
5625 GMOFILES="$GMOFILES $lang.gmo"
5626 POFILES="$POFILES $lang.po"
5627 done
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
c46f8c51
AC
5640 if test "x$CATOBJEXT" != "x"; then
5641
5642cat >>confdefs.h <<\_ACEOF
5643#define ENABLE_NLS 1
5644_ACEOF
5645
5646 fi
bec39cab
AC
5647
5648
5649 if test "x$CATOBJEXT" != "x"; then
5650 if test "x$ALL_LINGUAS" = "x"; then
5651 LINGUAS=
5652 else
5653 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5654echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5655 NEW_LINGUAS=
5656 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5657 case "$ALL_LINGUAS" in
5658 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5659 esac
5660 done
5661 LINGUAS=$NEW_LINGUAS
5662 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5663echo "${ECHO_T}$LINGUAS" >&6
5664 fi
5665
5666 if test -n "$LINGUAS"; then
5667 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5668 fi
5669 fi
5670
5671 if test $ac_cv_header_locale_h = yes; then
5672 INCLUDE_LOCALE_H="#include <locale.h>"
5673 else
5674 INCLUDE_LOCALE_H="\
5675/* The system does not provide the header <locale.h>. Take care yourself. */"
5676 fi
5677
5678
5679 if test -f $srcdir/po2tbl.sed.in; then
5680 if test "$CATOBJEXT" = ".cat"; then
5681 if test "${ac_cv_header_linux_version_h+set}" = set; then
5682 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5683echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5684if test "${ac_cv_header_linux_version_h+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686fi
5687echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5688echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5689else
5690 # Is the header compilable?
5691echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5692echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5693cat >conftest.$ac_ext <<_ACEOF
5694/* confdefs.h. */
5695_ACEOF
5696cat confdefs.h >>conftest.$ac_ext
5697cat >>conftest.$ac_ext <<_ACEOF
5698/* end confdefs.h. */
5699$ac_includes_default
5700#include <linux/version.h>
5701_ACEOF
5702rm -f conftest.$ac_objext
5703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704 (eval $ac_compile) 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -z "$ac_c_werror_flag"
5712 || test ! -s conftest.err'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try='test -s conftest.$ac_objext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 ac_header_compiler=yes
5725else
5726 echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
5729ac_header_compiler=no
5730fi
5731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5732echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5733echo "${ECHO_T}$ac_header_compiler" >&6
5734
5735# Is the header present?
5736echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5737echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5738cat >conftest.$ac_ext <<_ACEOF
5739/* confdefs.h. */
5740_ACEOF
5741cat confdefs.h >>conftest.$ac_ext
5742cat >>conftest.$ac_ext <<_ACEOF
5743/* end confdefs.h. */
5744#include <linux/version.h>
5745_ACEOF
5746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } >/dev/null; then
5754 if test -s conftest.err; then
5755 ac_cpp_err=$ac_c_preproc_warn_flag
5756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5757 else
5758 ac_cpp_err=
5759 fi
5760else
5761 ac_cpp_err=yes
5762fi
5763if test -z "$ac_cpp_err"; then
5764 ac_header_preproc=yes
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_header_preproc=no
5770fi
5771rm -f conftest.err conftest.$ac_ext
5772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5773echo "${ECHO_T}$ac_header_preproc" >&6
5774
5775# So? What about this header?
5776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5777 yes:no: )
5778 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5779echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5781echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5782 ac_header_preproc=yes
5783 ;;
5784 no:yes:* )
5785 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5786echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5787 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5788echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5789 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5790echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5791 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5792echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5793 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5794echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5796echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5797 (
5798 cat <<\_ASBOX
5799## ------------------------------------------ ##
5800## Report this to the AC_PACKAGE_NAME lists. ##
5801## ------------------------------------------ ##
5802_ASBOX
5803 ) |
5804 sed "s/^/$as_me: WARNING: /" >&2
5805 ;;
5806esac
5807echo "$as_me:$LINENO: checking for linux/version.h" >&5
5808echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5809if test "${ac_cv_header_linux_version_h+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812 ac_cv_header_linux_version_h=$ac_header_preproc
5813fi
5814echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5815echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5816
5817fi
5818if test $ac_cv_header_linux_version_h = yes; then
5819 msgformat=linux
5820else
5821 msgformat=xopen
5822fi
5823
5824
5825
5826 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5827 fi
5828 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5829 $srcdir/po2tbl.sed.in > po2tbl.sed
5830 fi
5831
5832 if test "$PACKAGE" = "gettext"; then
5833 GT_NO="#NO#"
5834 GT_YES=
5835 else
5836 GT_NO=
5837 GT_YES="#YES#"
5838 fi
5839
5840
5841
5842 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5843
5844
5845 l=
5846
5847
5848 if test -f $srcdir/po/POTFILES.in; then
5849 test -d po || mkdir po
5850 if test "x$srcdir" != "x."; then
5851 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5852 posrcprefix="$srcdir/"
5853 else
5854 posrcprefix="../$srcdir/"
5855 fi
5856 else
5857 posrcprefix="../"
5858 fi
5859 rm -f po/POTFILES
5860 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5861 < $srcdir/po/POTFILES.in > po/POTFILES
5862 fi
5863
5864
5865localedir='${datadir}/locale'
5866
5867
5868if test "x$POSUB" != x; then
5869
5870 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5871echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5872 # Look for .po and .gmo files in the source directory.
5873 CATALOGS=
5874 XLINGUAS=
5875 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5876 # If there aren't any .gmo files the shell will give us the
5877 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5878 # weeded out.
5879 case "$cat" in *\**)
5880 continue;;
5881 esac
5882 # The quadruple backslash is collapsed to a double backslash
5883 # by the backticks, then collapsed again by the double quotes,
5884 # leaving us with one backslash in the sed expression (right
5885 # before the dot that mustn't act as a wildcard).
5886 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5887 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5888 # The user is allowed to set LINGUAS to a list of languages to
5889 # install catalogs for. If it's empty that means "all of them."
5890 if test "x$LINGUAS" = x; then
5891 CATALOGS="$CATALOGS $cat"
5892 XLINGUAS="$XLINGUAS $lang"
5893 else
5894 case "$LINGUAS" in *$lang*)
5895 CATALOGS="$CATALOGS $cat"
5896 XLINGUAS="$XLINGUAS $lang"
5897 ;;
5898 esac
5899 fi
5900 done
5901 LINGUAS="$XLINGUAS"
5902 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5903echo "${ECHO_T}$LINGUAS" >&6
5904
5905 CONFIG_ALL="$CONFIG_ALL all-po"
5906 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5907 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5908 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5909fi
5910
5911PACKAGE=gdb
5912
5913cat >>confdefs.h <<_ACEOF
5914#define PACKAGE "$PACKAGE"
5915_ACEOF
5916
5917
5918
5919debugdir=${libdir}/debug
5920
5921
5922# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5923if test "${with_separate_debug_dir+set}" = set; then
5924 withval="$with_separate_debug_dir"
5925 debugdir="${withval}"
5926fi;
5927
5928
5929 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5931 ac_define_dir=`eval echo $debugdir`
5932 ac_define_dir=`eval echo $ac_define_dir`
5933
5934cat >>confdefs.h <<_ACEOF
5935#define DEBUGDIR "$ac_define_dir"
5936_ACEOF
5937
5938
5939#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5940
5941
5942
5943subdirs="$subdirs doc testsuite"
5944
5945
5946. $srcdir/configure.host
5947
5948. $srcdir/configure.tgt
5949
5950# Fetch the default architecture and default target vector from BFD.
5951targ=$target; . $srcdir/../bfd/config.bfd
5952
5953# We only want the first architecture, so strip off the others if
5954# there is more than one.
5955targ_archs=`echo $targ_archs | sed 's/ .*//'`
5956
5957if test "x$targ_archs" != x; then
5958
5959cat >>confdefs.h <<_ACEOF
5960#define DEFAULT_BFD_ARCH $targ_archs
5961_ACEOF
5962
5963fi
5964if test "x$targ_defvec" != x; then
5965
5966cat >>confdefs.h <<_ACEOF
5967#define DEFAULT_BFD_VEC $targ_defvec
5968_ACEOF
5969
5970fi
5971
5972test "$program_prefix" != NONE &&
5973 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5974# Use a double $ so make ignores it.
5975test "$program_suffix" != NONE &&
5976 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5977# Double any \ or $. echo might interpret backslashes.
5978# By default was `s,x,x', remove it if useless.
5979cat <<\_ACEOF >conftest.sed
5980s/[\\$]/&&/g;s/;s,x,x,$//
5981_ACEOF
5982program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5983rm conftest.sed
5984
5985
5986# The CLI cannot be disabled yet, but may be in the future.
5987
5988# Enable CLI.
5989# Check whether --enable-gdbcli or --disable-gdbcli was given.
5990if test "${enable_gdbcli+set}" = set; then
5991 enableval="$enable_gdbcli"
5992 case $enableval in
5993 yes)
5994 ;;
5995 no)
5996 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5997echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5998 { (exit 1); exit 1; }; } ;;
5999 *)
6000 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6001echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6002 { (exit 1); exit 1; }; } ;;
6003 esac
6004else
6005 enable_gdbcli=yes
6006fi;
6007if test x"$enable_gdbcli" = xyes; then
6008 if test -d $srcdir/cli; then
6009 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6010 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6011 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6012 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6013 fi
6014fi
6015
6016# Enable MI.
6017# Check whether --enable-gdbmi or --disable-gdbmi was given.
6018if test "${enable_gdbmi+set}" = set; then
6019 enableval="$enable_gdbmi"
6020 case $enableval in
6021 yes | no)
6022 ;;
6023 *)
6024 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6025echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6026 { (exit 1); exit 1; }; } ;;
6027 esac
6028else
6029 enable_gdbmi=yes
6030fi;
6031if test x"$enable_gdbmi" = xyes; then
6032 if test -d $srcdir/mi; then
6033 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6034 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6035 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6036 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6037 fi
6038fi
6039
6040# Enable TUI.
6041# Check whether --enable-tui or --disable-tui was given.
6042if test "${enable_tui+set}" = set; then
6043 enableval="$enable_tui"
6044 case $enableval in
6045 yes | no)
6046 ;;
6047 *)
6048 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6049echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6050 { (exit 1); exit 1; }; } ;;
6051 esac
6052else
6053 enable_tui=yes
6054fi;
6055
6056# Enable gdbtk.
6057# Check whether --enable-gdbtk or --disable-gdbtk was given.
6058if test "${enable_gdbtk+set}" = set; then
6059 enableval="$enable_gdbtk"
6060 case $enableval in
6061 yes | no)
6062 ;;
6063 *)
6064 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6065echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6066 { (exit 1); exit 1; }; } ;;
6067 esac
6068else
04ac69aa 6069 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
6070 enable_gdbtk=yes
6071 else
6072 enable_gdbtk=no
6073 fi
6074fi;
6075# We unconditionally disable gdbtk tests on selected platforms.
6076case $host_os in
6077 go32* | windows*)
6078 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6079echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6080 enable_gdbtk=no ;;
6081esac
6082
6083# Libunwind support.
6084
6085# Check whether --with-libunwind or --without-libunwind was given.
6086if test "${with_libunwind+set}" = set; then
6087 withval="$with_libunwind"
6088 case "${withval}" in
6089 yes) enable_libunwind=yes ;;
6090 no) enable_libunwind=no ;;
6091 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6092echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6093 { (exit 1); exit 1; }; } ;;
6094esac
6095else
6096
6097
6098for ac_header in libunwind.h
6099do
6100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6101if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo "$as_me:$LINENO: checking for $ac_header" >&5
6103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6104if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106fi
6107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6109else
6110 # Is the header compilable?
6111echo "$as_me:$LINENO: checking $ac_header usability" >&5
6112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6113cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h. */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h. */
6119$ac_includes_default
6120#include <$ac_header>
6121_ACEOF
6122rm -f conftest.$ac_objext
6123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag"
6132 || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try='test -s conftest.$ac_objext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 ac_header_compiler=yes
6145else
6146 echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149ac_header_compiler=no
6150fi
6151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6153echo "${ECHO_T}$ac_header_compiler" >&6
6154
6155# Is the header present?
6156echo "$as_me:$LINENO: checking $ac_header presence" >&5
6157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6158cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
6164#include <$ac_header>
6165_ACEOF
6166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } >/dev/null; then
6174 if test -s conftest.err; then
6175 ac_cpp_err=$ac_c_preproc_warn_flag
6176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6177 else
6178 ac_cpp_err=
6179 fi
6180else
6181 ac_cpp_err=yes
6182fi
6183if test -z "$ac_cpp_err"; then
6184 ac_header_preproc=yes
6185else
6186 echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 ac_header_preproc=no
6190fi
6191rm -f conftest.err conftest.$ac_ext
6192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6193echo "${ECHO_T}$ac_header_preproc" >&6
6194
6195# So? What about this header?
6196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6197 yes:no: )
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6202 ac_header_preproc=yes
6203 ;;
6204 no:yes:* )
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6217 (
6218 cat <<\_ASBOX
6219## ------------------------------------------ ##
6220## Report this to the AC_PACKAGE_NAME lists. ##
6221## ------------------------------------------ ##
6222_ASBOX
6223 ) |
6224 sed "s/^/$as_me: WARNING: /" >&2
6225 ;;
6226esac
6227echo "$as_me:$LINENO: checking for $ac_header" >&5
6228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6229if eval "test \"\${$as_ac_Header+set}\" = set"; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231else
6232 eval "$as_ac_Header=\$ac_header_preproc"
6233fi
6234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6236
6237fi
6238if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239 cat >>confdefs.h <<_ACEOF
6240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6241_ACEOF
6242
6243fi
6244
6245done
6246
6247
6248for ac_header in libunwind-ia64.h
6249do
6250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6251if eval "test \"\${$as_ac_Header+set}\" = set"; then
6252 echo "$as_me:$LINENO: checking for $ac_header" >&5
6253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6254if eval "test \"\${$as_ac_Header+set}\" = set"; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256fi
6257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6259else
6260 # Is the header compilable?
6261echo "$as_me:$LINENO: checking $ac_header usability" >&5
6262echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6263cat >conftest.$ac_ext <<_ACEOF
6264/* confdefs.h. */
6265_ACEOF
6266cat confdefs.h >>conftest.$ac_ext
6267cat >>conftest.$ac_ext <<_ACEOF
6268/* end confdefs.h. */
6269$ac_includes_default
6270#include <$ac_header>
6271_ACEOF
6272rm -f conftest.$ac_objext
6273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_header_compiler=yes
6295else
6296 echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299ac_header_compiler=no
6300fi
6301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6303echo "${ECHO_T}$ac_header_compiler" >&6
6304
6305# Is the header present?
6306echo "$as_me:$LINENO: checking $ac_header presence" >&5
6307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6308cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h. */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h. */
6314#include <$ac_header>
6315_ACEOF
6316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } >/dev/null; then
6324 if test -s conftest.err; then
6325 ac_cpp_err=$ac_c_preproc_warn_flag
6326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6327 else
6328 ac_cpp_err=
6329 fi
6330else
6331 ac_cpp_err=yes
6332fi
6333if test -z "$ac_cpp_err"; then
6334 ac_header_preproc=yes
6335else
6336 echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ac_header_preproc=no
6340fi
6341rm -f conftest.err conftest.$ac_ext
6342echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6343echo "${ECHO_T}$ac_header_preproc" >&6
6344
6345# So? What about this header?
6346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6347 yes:no: )
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6352 ac_header_preproc=yes
6353 ;;
6354 no:yes:* )
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6367 (
6368 cat <<\_ASBOX
6369## ------------------------------------------ ##
6370## Report this to the AC_PACKAGE_NAME lists. ##
6371## ------------------------------------------ ##
6372_ASBOX
6373 ) |
6374 sed "s/^/$as_me: WARNING: /" >&2
6375 ;;
6376esac
6377echo "$as_me:$LINENO: checking for $ac_header" >&5
6378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6379if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
6382 eval "$as_ac_Header=\$ac_header_preproc"
6383fi
6384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386
6387fi
6388if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6391_ACEOF
6392
6393fi
6394
6395done
6396
6397 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6398 enable_libunwind=yes;
6399 fi
6400
6401fi;
6402
6403if test x"$enable_libunwind" = xyes; then
6404
6405for ac_header in libunwind.h
6406do
6407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6408if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409 echo "$as_me:$LINENO: checking for $ac_header" >&5
6410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6411if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413fi
6414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6416else
6417 # Is the header compilable?
6418echo "$as_me:$LINENO: checking $ac_header usability" >&5
6419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6420cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h. */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h. */
6426$ac_includes_default
6427#include <$ac_header>
6428_ACEOF
6429rm -f conftest.$ac_objext
6430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -z "$ac_c_werror_flag"
6439 || test ! -s conftest.err'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; } &&
6445 { ac_try='test -s conftest.$ac_objext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 (eval $ac_try) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_header_compiler=yes
6452else
6453 echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
6455
6456ac_header_compiler=no
6457fi
6458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6459echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6460echo "${ECHO_T}$ac_header_compiler" >&6
6461
6462# Is the header present?
6463echo "$as_me:$LINENO: checking $ac_header presence" >&5
6464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6465cat >conftest.$ac_ext <<_ACEOF
6466/* confdefs.h. */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h. */
6471#include <$ac_header>
6472_ACEOF
6473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6475 ac_status=$?
6476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } >/dev/null; then
6481 if test -s conftest.err; then
6482 ac_cpp_err=$ac_c_preproc_warn_flag
6483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6484 else
6485 ac_cpp_err=
6486 fi
6487else
6488 ac_cpp_err=yes
6489fi
6490if test -z "$ac_cpp_err"; then
6491 ac_header_preproc=yes
6492else
6493 echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 ac_header_preproc=no
6497fi
6498rm -f conftest.err conftest.$ac_ext
6499echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6500echo "${ECHO_T}$ac_header_preproc" >&6
6501
6502# So? What about this header?
6503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6504 yes:no: )
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6509 ac_header_preproc=yes
6510 ;;
6511 no:yes:* )
6512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6515echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6519echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6524 (
6525 cat <<\_ASBOX
6526## ------------------------------------------ ##
6527## Report this to the AC_PACKAGE_NAME lists. ##
6528## ------------------------------------------ ##
6529_ASBOX
6530 ) |
6531 sed "s/^/$as_me: WARNING: /" >&2
6532 ;;
6533esac
6534echo "$as_me:$LINENO: checking for $ac_header" >&5
6535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539 eval "$as_ac_Header=\$ac_header_preproc"
6540fi
6541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6543
6544fi
6545if test `eval echo '${'$as_ac_Header'}'` = yes; then
6546 cat >>confdefs.h <<_ACEOF
6547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6548_ACEOF
6549
6550fi
6551
6552done
6553
6554
6555for ac_header in libunwind-ia64.h
6556do
6557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6558if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo "$as_me:$LINENO: checking for $ac_header" >&5
6560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6561if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563fi
6564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566else
6567 # Is the header compilable?
6568echo "$as_me:$LINENO: checking $ac_header usability" >&5
6569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6570cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h. */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h. */
6576$ac_includes_default
6577#include <$ac_header>
6578_ACEOF
6579rm -f conftest.$ac_objext
6580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest.$ac_objext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_header_compiler=yes
6602else
6603 echo "$as_me: failed program was:" >&5
6604sed 's/^/| /' conftest.$ac_ext >&5
6605
6606ac_header_compiler=no
6607fi
6608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6610echo "${ECHO_T}$ac_header_compiler" >&6
6611
6612# Is the header present?
6613echo "$as_me:$LINENO: checking $ac_header presence" >&5
6614echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6615cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
6621#include <$ac_header>
6622_ACEOF
6623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } >/dev/null; then
6631 if test -s conftest.err; then
6632 ac_cpp_err=$ac_c_preproc_warn_flag
6633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6634 else
6635 ac_cpp_err=
6636 fi
6637else
6638 ac_cpp_err=yes
6639fi
6640if test -z "$ac_cpp_err"; then
6641 ac_header_preproc=yes
6642else
6643 echo "$as_me: failed program was:" >&5
6644sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 ac_header_preproc=no
6647fi
6648rm -f conftest.err conftest.$ac_ext
6649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650echo "${ECHO_T}$ac_header_preproc" >&6
6651
6652# So? What about this header?
6653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6654 yes:no: )
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6659 ac_header_preproc=yes
6660 ;;
6661 no:yes:* )
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6674 (
6675 cat <<\_ASBOX
6676## ------------------------------------------ ##
6677## Report this to the AC_PACKAGE_NAME lists. ##
6678## ------------------------------------------ ##
6679_ASBOX
6680 ) |
6681 sed "s/^/$as_me: WARNING: /" >&2
6682 ;;
6683esac
6684echo "$as_me:$LINENO: checking for $ac_header" >&5
6685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689 eval "$as_ac_Header=\$ac_header_preproc"
6690fi
6691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6693
6694fi
6695if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698_ACEOF
6699
6700fi
6701
6702done
6703
60ca704f
SE
6704
6705cat >>confdefs.h <<\_ACEOF
bec39cab
AC
6706#define HAVE_LIBUNWIND 1
6707_ACEOF
6708
6709 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6710 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6711 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6712fi
6713
6714# Profiling support.
6715# Check whether --enable-profiling or --disable-profiling was given.
6716if test "${enable_profiling+set}" = set; then
6717 enableval="$enable_profiling"
6718 case $enableval in
6719 yes | no)
6720 ;;
6721 *)
6722 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6723echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6724 { (exit 1); exit 1; }; } ;;
6725 esac
6726else
6727 enable_profiling=no
6728fi;
6729
6730
6731
6732for ac_func in monstartup _mcleanup
6733do
6734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6735echo "$as_me:$LINENO: checking for $ac_func" >&5
6736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6737if eval "test \"\${$as_ac_var+set}\" = set"; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740 cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h. */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h. */
6746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6748#define $ac_func innocuous_$ac_func
6749
6750/* System header to define __stub macros and hopefully few prototypes,
6751 which can conflict with char $ac_func (); below.
6752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6753 <limits.h> exists even on freestanding compilers. */
6754
6755#ifdef __STDC__
6756# include <limits.h>
6757#else
6758# include <assert.h>
6759#endif
6760
6761#undef $ac_func
6762
6763/* Override any gcc2 internal prototype to avoid an error. */
6764#ifdef __cplusplus
6765extern "C"
6766{
6767#endif
6768/* We use char because int might match the return type of a gcc2
6769 builtin and then its argument prototype would still apply. */
6770char $ac_func ();
6771/* The GNU C library defines this for functions which it implements
6772 to always fail with ENOSYS. Some functions are actually named
6773 something starting with __ and the normal name is an alias. */
6774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6775choke me
6776#else
6777char (*f) () = $ac_func;
6778#endif
6779#ifdef __cplusplus
6780}
6781#endif
6782
6783int
6784main ()
6785{
6786return f != $ac_func;
6787 ;
6788 return 0;
6789}
6790_ACEOF
6791rm -f conftest.$ac_objext conftest$ac_exeext
6792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6793 (eval $ac_link) 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } &&
6800 { ac_try='test -z "$ac_c_werror_flag"
6801 || test ! -s conftest.err'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; } &&
6807 { ac_try='test -s conftest$ac_exeext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 eval "$as_ac_var=yes"
6814else
6815 echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818eval "$as_ac_var=no"
6819fi
6820rm -f conftest.err conftest.$ac_objext \
6821 conftest$ac_exeext conftest.$ac_ext
6822fi
6823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6825if test `eval echo '${'$as_ac_var'}'` = yes; then
6826 cat >>confdefs.h <<_ACEOF
6827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6828_ACEOF
6829
6830fi
6831done
6832
6833echo "$as_me:$LINENO: checking for _etext" >&5
6834echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6835if test "${ac_cv_var__etext+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838 cat >conftest.$ac_ext <<_ACEOF
6839/* confdefs.h. */
6840_ACEOF
6841cat confdefs.h >>conftest.$ac_ext
6842cat >>conftest.$ac_ext <<_ACEOF
6843/* end confdefs.h. */
6844#include <stdlib.h>
6845extern char _etext;
6846
6847int
6848main ()
6849{
6850free (&_etext);
6851 ;
6852 return 0;
6853}
6854_ACEOF
6855rm -f conftest.$ac_objext conftest$ac_exeext
6856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6857 (eval $ac_link) 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest$ac_exeext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_cv_var__etext=yes
6878else
6879 echo "$as_me: failed program was:" >&5
6880sed 's/^/| /' conftest.$ac_ext >&5
6881
6882ac_cv_var__etext=no
6883fi
6884rm -f conftest.err conftest.$ac_objext \
6885 conftest$ac_exeext conftest.$ac_ext
6886fi
6887echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6888echo "${ECHO_T}$ac_cv_var__etext" >&6
6889if test $ac_cv_var__etext = yes; then
6890
6891cat >>confdefs.h <<\_ACEOF
6892#define HAVE__ETEXT 1
6893_ACEOF
6894
6895fi
6896if test "$enable_profiling" = yes ; then
6897 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6898 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6899echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6900 { (exit 1); exit 1; }; }
6901 fi
6902 PROFILE_CFLAGS=-pg
6903 OLD_CFLAGS="$CFLAGS"
6904 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6905
6906 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6907echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6908if test "${ac_cv_cc_supports_pg+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6910else
bec39cab
AC
6911 cat >conftest.$ac_ext <<_ACEOF
6912/* confdefs.h. */
6913_ACEOF
6914cat confdefs.h >>conftest.$ac_ext
6915cat >>conftest.$ac_ext <<_ACEOF
6916/* end confdefs.h. */
6917
6918int
6919main ()
6920{
6921int x;
6922 ;
6923 return 0;
6924}
6925_ACEOF
6926rm -f conftest.$ac_objext
6927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6928 (eval $ac_compile) 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try='test -z "$ac_c_werror_flag"
6936 || test ! -s conftest.err'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; } &&
6942 { ac_try='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_cc_supports_pg=yes
6949else
6950 echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
6953ac_cv_cc_supports_pg=no
6954fi
6955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956fi
6957echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6958echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6959
6960 if test $ac_cv_cc_supports_pg = no; then
6961 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6962echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6963 { (exit 1); exit 1; }; }
6964 fi
6965
6966 CFLAGS="$OLD_CFLAGS"
6967fi
6968
6969# --------------------- #
6970# Checks for programs. #
6971# --------------------- #
6972
6973for ac_prog in gawk mawk nawk awk
6974do
6975 # Extract the first word of "$ac_prog", so it can be a program name with args.
6976set dummy $ac_prog; ac_word=$2
6977echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6979if test "${ac_cv_prog_AWK+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982 if test -n "$AWK"; then
6983 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6984else
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_AWK="$ac_prog"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996done
6997done
6998
6999fi
7000fi
7001AWK=$ac_cv_prog_AWK
7002if test -n "$AWK"; then
7003 echo "$as_me:$LINENO: result: $AWK" >&5
7004echo "${ECHO_T}$AWK" >&6
7005else
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
7008fi
7009
7010 test -n "$AWK" && break
7011done
7012
7013# Find a good install program. We prefer a C program (faster),
7014# so one script is as good as another. But avoid the broken or
7015# incompatible versions:
7016# SysV /etc/install, /usr/sbin/install
7017# SunOS /usr/etc/install
7018# IRIX /sbin/install
7019# AIX /bin/install
7020# AmigaOS /C/install, which installs bootblocks on floppy discs
7021# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7022# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7023# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7024# OS/2's system install, which has a completely different semantic
7025# ./install, which can be erroneously created by make from ./install.sh.
7026echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7027echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7028if test -z "$INSTALL"; then
7029if test "${ac_cv_path_install+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 # Account for people who put trailing slashes in PATH elements.
7038case $as_dir/ in
7039 ./ | .// | /cC/* | \
7040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7042 /usr/ucb/* ) ;;
c906108c 7043 *)
bec39cab
AC
7044 # OSF1 and SCO ODT 3.0 have their own names for install.
7045 # Don't use installbsd from OSF since it installs stuff as root
7046 # by default.
7047 for ac_prog in ginstall scoinst install; do
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7050 if test $ac_prog = install &&
7051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052 # AIX install. It has an incompatible calling convention.
7053 :
7054 elif test $ac_prog = install &&
7055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056 # program-specific install script used by HP pwplus--don't use.
7057 :
7058 else
7059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7060 break 3
7061 fi
7062 fi
7063 done
7064 done
7065 ;;
c906108c 7066esac
bec39cab
AC
7067done
7068
7069
7070fi
7071 if test "${ac_cv_path_install+set}" = set; then
7072 INSTALL=$ac_cv_path_install
7073 else
7074 # As a last resort, use the slow shell script. We don't cache a
7075 # path for INSTALL within a source directory, because that will
7076 # break other packages using the cache if that directory is
7077 # removed, or if the path is relative.
7078 INSTALL=$ac_install_sh
7079 fi
7080fi
7081echo "$as_me:$LINENO: result: $INSTALL" >&5
7082echo "${ECHO_T}$INSTALL" >&6
7083
7084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7085# It thinks the first close brace ends the variable substitution.
7086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7087
7088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7089
7090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7091
7092echo "$as_me:$LINENO: checking whether ln -s works" >&5
7093echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7094LN_S=$as_ln_s
7095if test "$LN_S" = "ln -s"; then
7096 echo "$as_me:$LINENO: result: yes" >&5
7097echo "${ECHO_T}yes" >&6
7098else
7099 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7100echo "${ECHO_T}no, using $LN_S" >&6
7101fi
7102
7103if test -n "$ac_tool_prefix"; then
7104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7105set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7106echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7108if test "${ac_cv_prog_RANLIB+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111 if test -n "$RANLIB"; then
7112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125done
7126done
7127
7128fi
7129fi
7130RANLIB=$ac_cv_prog_RANLIB
7131if test -n "$RANLIB"; then
7132 echo "$as_me:$LINENO: result: $RANLIB" >&5
7133echo "${ECHO_T}$RANLIB" >&6
7134else
7135 echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6
7137fi
7138
7139fi
7140if test -z "$ac_cv_prog_RANLIB"; then
7141 ac_ct_RANLIB=$RANLIB
7142 # Extract the first word of "ranlib", so it can be a program name with args.
7143set dummy ranlib; ac_word=$2
7144echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7146if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149 if test -n "$ac_ct_RANLIB"; then
7150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7151else
7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_RANLIB="ranlib"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163done
7164done
7165
7166 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7167fi
7168fi
7169ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7170if test -n "$ac_ct_RANLIB"; then
7171 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7172echo "${ECHO_T}$ac_ct_RANLIB" >&6
7173else
7174 echo "$as_me:$LINENO: result: no" >&5
7175echo "${ECHO_T}no" >&6
7176fi
7177
7178 RANLIB=$ac_ct_RANLIB
7179else
7180 RANLIB="$ac_cv_prog_RANLIB"
7181fi
7182
7183for ac_prog in 'bison -y' byacc
7184do
7185 # Extract the first word of "$ac_prog", so it can be a program name with args.
7186set dummy $ac_prog; ac_word=$2
7187echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7189if test "${ac_cv_prog_YACC+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 if test -n "$YACC"; then
7193 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7194else
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_YACC="$ac_prog"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207done
7208
7209fi
7210fi
7211YACC=$ac_cv_prog_YACC
7212if test -n "$YACC"; then
7213 echo "$as_me:$LINENO: result: $YACC" >&5
7214echo "${ECHO_T}$YACC" >&6
7215else
7216 echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6
7218fi
7219
7220 test -n "$YACC" && break
7221done
7222test -n "$YACC" || YACC="yacc"
7223
7224
7225if test -n "$ac_tool_prefix"; then
7226 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7227set dummy ${ac_tool_prefix}ar; ac_word=$2
7228echo "$as_me:$LINENO: checking for $ac_word" >&5
7229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7230if test "${ac_cv_prog_AR+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 if test -n "$AR"; then
7234 ac_cv_prog_AR="$AR" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_AR="${ac_tool_prefix}ar"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247done
7248done
7249
7250fi
7251fi
7252AR=$ac_cv_prog_AR
7253if test -n "$AR"; then
7254 echo "$as_me:$LINENO: result: $AR" >&5
7255echo "${ECHO_T}$AR" >&6
7256else
7257 echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6
7259fi
7260
7261fi
7262if test -z "$ac_cv_prog_AR"; then
7263 ac_ct_AR=$AR
7264 # Extract the first word of "ar", so it can be a program name with args.
7265set dummy ar; ac_word=$2
7266echo "$as_me:$LINENO: checking for $ac_word" >&5
7267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7268if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271 if test -n "$ac_ct_AR"; then
7272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_AR="ar"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286done
7287
7288fi
7289fi
7290ac_ct_AR=$ac_cv_prog_ac_ct_AR
7291if test -n "$ac_ct_AR"; then
7292 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7293echo "${ECHO_T}$ac_ct_AR" >&6
7294else
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297fi
7298
7299 AR=$ac_ct_AR
7300else
7301 AR="$ac_cv_prog_AR"
7302fi
7303
7304if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7306set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7307echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 if test -n "$DLLTOOL"; then
7313 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327done
7328
7329fi
7330fi
7331DLLTOOL=$ac_cv_prog_DLLTOOL
7332if test -n "$DLLTOOL"; then
7333 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7334echo "${ECHO_T}$DLLTOOL" >&6
7335else
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338fi
7339
7340fi
7341if test -z "$ac_cv_prog_DLLTOOL"; then
7342 ac_ct_DLLTOOL=$DLLTOOL
7343 # Extract the first word of "dlltool", so it can be a program name with args.
7344set dummy dlltool; ac_word=$2
7345echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 if test -n "$ac_ct_DLLTOOL"; then
7351 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365done
7366
7367fi
7368fi
7369ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7370if test -n "$ac_ct_DLLTOOL"; then
7371 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7372echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7373else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376fi
7377
7378 DLLTOOL=$ac_ct_DLLTOOL
7379else
7380 DLLTOOL="$ac_cv_prog_DLLTOOL"
7381fi
7382
7383if test -n "$ac_tool_prefix"; then
7384 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7385set dummy ${ac_tool_prefix}windres; ac_word=$2
7386echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7388if test "${ac_cv_prog_WINDRES+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391 if test -n "$WINDRES"; then
7392 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405done
7406done
7407
7408fi
7409fi
7410WINDRES=$ac_cv_prog_WINDRES
7411if test -n "$WINDRES"; then
7412 echo "$as_me:$LINENO: result: $WINDRES" >&5
7413echo "${ECHO_T}$WINDRES" >&6
7414else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417fi
7418
7419fi
7420if test -z "$ac_cv_prog_WINDRES"; then
7421 ac_ct_WINDRES=$WINDRES
7422 # Extract the first word of "windres", so it can be a program name with args.
7423set dummy windres; ac_word=$2
7424echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7426if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428else
7429 if test -n "$ac_ct_WINDRES"; then
7430 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7431else
7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_ac_ct_WINDRES="windres"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443done
7444done
7445
7446fi
7447fi
7448ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7449if test -n "$ac_ct_WINDRES"; then
7450 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7451echo "${ECHO_T}$ac_ct_WINDRES" >&6
7452else
7453 echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6
c906108c 7455fi
bec39cab
AC
7456
7457 WINDRES=$ac_ct_WINDRES
c906108c 7458else
bec39cab 7459 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7460fi
7461
bec39cab
AC
7462
7463# Needed for GNU/Hurd.
7464if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7466set dummy ${ac_tool_prefix}mig; ac_word=$2
7467echo "$as_me:$LINENO: checking for $ac_word" >&5
7468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7469if test "${ac_cv_prog_MIG+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7471else
bec39cab
AC
7472 if test -n "$MIG"; then
7473 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486done
7487done
7488
c906108c 7489fi
bec39cab
AC
7490fi
7491MIG=$ac_cv_prog_MIG
7492if test -n "$MIG"; then
7493 echo "$as_me:$LINENO: result: $MIG" >&5
7494echo "${ECHO_T}$MIG" >&6
c906108c 7495else
bec39cab
AC
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
c906108c
SS
7498fi
7499
bec39cab
AC
7500fi
7501if test -z "$ac_cv_prog_MIG"; then
7502 ac_ct_MIG=$MIG
7503 # Extract the first word of "mig", so it can be a program name with args.
7504set dummy mig; ac_word=$2
7505echo "$as_me:$LINENO: checking for $ac_word" >&5
7506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7507if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 if test -n "$ac_ct_MIG"; then
7511 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_ac_ct_MIG="mig"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524done
7525done
c906108c 7526
bec39cab
AC
7527fi
7528fi
7529ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7530if test -n "$ac_ct_MIG"; then
7531 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7532echo "${ECHO_T}$ac_ct_MIG" >&6
7533else
7534 echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6
7536fi
c906108c 7537
bec39cab
AC
7538 MIG=$ac_ct_MIG
7539else
7540 MIG="$ac_cv_prog_MIG"
7541fi
c906108c 7542
c906108c 7543
bec39cab
AC
7544# ---------------------- #
7545# Checks for libraries. #
7546# ---------------------- #
c906108c 7547
bec39cab 7548# We might need to link with -lm; most simulators need it.
c906108c 7549
bec39cab
AC
7550echo "$as_me:$LINENO: checking for main in -lm" >&5
7551echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7552if test "${ac_cv_lib_m_main+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 ac_check_lib_save_LIBS=$LIBS
7556LIBS="-lm $LIBS"
7557cat >conftest.$ac_ext <<_ACEOF
7558/* confdefs.h. */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */
c906108c 7563
c906108c 7564
bec39cab
AC
7565int
7566main ()
7567{
7568main ();
7569 ;
7570 return 0;
7571}
7572_ACEOF
7573rm -f conftest.$ac_objext conftest$ac_exeext
7574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7575 (eval $ac_link) 2>conftest.er1
7576 ac_status=$?
7577 grep -v '^ *+' conftest.er1 >conftest.err
7578 rm -f conftest.er1
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } &&
7582 { ac_try='test -z "$ac_c_werror_flag"
7583 || test ! -s conftest.err'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 (eval $ac_try) 2>&5
7586 ac_status=$?
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; } &&
7589 { ac_try='test -s conftest$ac_exeext'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 (eval $ac_try) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7595 ac_cv_lib_m_main=yes
7596else
7597 echo "$as_me: failed program was:" >&5
7598sed 's/^/| /' conftest.$ac_ext >&5
7599
7600ac_cv_lib_m_main=no
7601fi
7602rm -f conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
7604LIBS=$ac_check_lib_save_LIBS
7605fi
7606echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7607echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7608if test $ac_cv_lib_m_main = yes; then
7609 cat >>confdefs.h <<_ACEOF
7610#define HAVE_LIBM 1
7611_ACEOF
7612
7613 LIBS="-lm $LIBS"
c906108c 7614
c906108c 7615fi
bec39cab
AC
7616
7617
7618# We need to link with -lw to get `wctype' on Solaris before Solaris
7619# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7620# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7621# is known to have this problem). Therefore we avoid libw if we can.
7622echo "$as_me:$LINENO: checking for wctype" >&5
7623echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7624if test "${ac_cv_func_wctype+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 cat >conftest.$ac_ext <<_ACEOF
7628/* confdefs.h. */
7629_ACEOF
7630cat confdefs.h >>conftest.$ac_ext
7631cat >>conftest.$ac_ext <<_ACEOF
7632/* end confdefs.h. */
7633/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7635#define wctype innocuous_wctype
7636
7637/* System header to define __stub macros and hopefully few prototypes,
7638 which can conflict with char wctype (); below.
7639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7640 <limits.h> exists even on freestanding compilers. */
7641
7642#ifdef __STDC__
7643# include <limits.h>
7644#else
7645# include <assert.h>
7646#endif
7647
7648#undef wctype
7649
7650/* Override any gcc2 internal prototype to avoid an error. */
7651#ifdef __cplusplus
7652extern "C"
7653{
7654#endif
7655/* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657char wctype ();
7658/* The GNU C library defines this for functions which it implements
7659 to always fail with ENOSYS. Some functions are actually named
7660 something starting with __ and the normal name is an alias. */
7661#if defined (__stub_wctype) || defined (__stub___wctype)
7662choke me
7663#else
7664char (*f) () = wctype;
7665#endif
7666#ifdef __cplusplus
7667}
7668#endif
7669
7670int
7671main ()
7672{
7673return f != wctype;
7674 ;
7675 return 0;
7676}
7677_ACEOF
7678rm -f conftest.$ac_objext conftest$ac_exeext
7679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7680 (eval $ac_link) 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -z "$ac_c_werror_flag"
7688 || test ! -s conftest.err'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 ac_cv_func_wctype=yes
7701else
7702 echo "$as_me: failed program was:" >&5
7703sed 's/^/| /' conftest.$ac_ext >&5
7704
7705ac_cv_func_wctype=no
7706fi
7707rm -f conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7709fi
7710echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7711echo "${ECHO_T}$ac_cv_func_wctype" >&6
7712if test $ac_cv_func_wctype = yes; then
7713 :
c906108c 7714else
c906108c 7715
bec39cab
AC
7716echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7717echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7718if test "${ac_cv_lib_w_wctype+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721 ac_check_lib_save_LIBS=$LIBS
7722LIBS="-lw $LIBS"
7723cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
c906108c 7729
bec39cab
AC
7730/* Override any gcc2 internal prototype to avoid an error. */
7731#ifdef __cplusplus
7732extern "C"
7733#endif
7734/* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7736char wctype ();
7737int
7738main ()
7739{
7740wctype ();
7741 ;
7742 return 0;
7743}
7744_ACEOF
7745rm -f conftest.$ac_objext conftest$ac_exeext
7746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>conftest.er1
7748 ac_status=$?
7749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_c_werror_flag"
7755 || test ! -s conftest.err'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; } &&
7761 { ac_try='test -s conftest$ac_exeext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 ac_cv_lib_w_wctype=yes
7768else
7769 echo "$as_me: failed program was:" >&5
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7772ac_cv_lib_w_wctype=no
7773fi
7774rm -f conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776LIBS=$ac_check_lib_save_LIBS
7777fi
7778echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7779echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7780if test $ac_cv_lib_w_wctype = yes; then
7781 cat >>confdefs.h <<_ACEOF
7782#define HAVE_LIBW 1
7783_ACEOF
c906108c 7784
bec39cab 7785 LIBS="-lw $LIBS"
c906108c 7786
bec39cab 7787fi
c906108c 7788
bec39cab 7789fi
c906108c 7790
ddc9cd0f 7791
bec39cab
AC
7792# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7793echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7794echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7795if test "${ac_cv_search_gethostbyname+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798 ac_func_search_save_LIBS=$LIBS
7799ac_cv_search_gethostbyname=no
7800cat >conftest.$ac_ext <<_ACEOF
7801/* confdefs.h. */
7802_ACEOF
7803cat confdefs.h >>conftest.$ac_ext
7804cat >>conftest.$ac_ext <<_ACEOF
7805/* end confdefs.h. */
ddc9cd0f 7806
bec39cab
AC
7807/* Override any gcc2 internal prototype to avoid an error. */
7808#ifdef __cplusplus
7809extern "C"
7810#endif
7811/* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7813char gethostbyname ();
7814int
7815main ()
7816{
7817gethostbyname ();
7818 ;
7819 return 0;
7820}
7821_ACEOF
7822rm -f conftest.$ac_objext conftest$ac_exeext
7823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7824 (eval $ac_link) 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -z "$ac_c_werror_flag"
7832 || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_search_gethostbyname="none required"
7845else
7846 echo "$as_me: failed program was:" >&5
7847sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7848
bec39cab
AC
7849fi
7850rm -f conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852if test "$ac_cv_search_gethostbyname" = no; then
7853 for ac_lib in nsl; do
7854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7855 cat >conftest.$ac_ext <<_ACEOF
7856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
ddc9cd0f 7861
bec39cab
AC
7862/* Override any gcc2 internal prototype to avoid an error. */
7863#ifdef __cplusplus
7864extern "C"
7865#endif
7866/* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7868char gethostbyname ();
7869int
7870main ()
7871{
7872gethostbyname ();
7873 ;
7874 return 0;
7875}
7876_ACEOF
7877rm -f conftest.$ac_objext conftest$ac_exeext
7878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879 (eval $ac_link) 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag"
7887 || test ! -s conftest.err'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest$ac_exeext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 ac_cv_search_gethostbyname="-l$ac_lib"
7900break
7901else
7902 echo "$as_me: failed program was:" >&5
7903sed 's/^/| /' conftest.$ac_ext >&5
7904
7905fi
7906rm -f conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7908 done
bec39cab
AC
7909fi
7910LIBS=$ac_func_search_save_LIBS
7911fi
7912echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7913echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7914if test "$ac_cv_search_gethostbyname" != no; then
7915 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7916
ddc9cd0f
AC
7917fi
7918
0fbb3da7 7919
bec39cab
AC
7920# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7921echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7922echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7923if test "${ac_cv_search_socketpair+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925else
7926 ac_func_search_save_LIBS=$LIBS
7927ac_cv_search_socketpair=no
7928cat >conftest.$ac_ext <<_ACEOF
7929/* confdefs.h. */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h. */
0fbb3da7 7934
bec39cab
AC
7935/* Override any gcc2 internal prototype to avoid an error. */
7936#ifdef __cplusplus
7937extern "C"
7938#endif
7939/* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7941char socketpair ();
7942int
7943main ()
7944{
7945socketpair ();
7946 ;
7947 return 0;
7948}
7949_ACEOF
7950rm -f conftest.$ac_objext conftest$ac_exeext
7951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7952 (eval $ac_link) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_search_socketpair="none required"
7973else
7974 echo "$as_me: failed program was:" >&5
7975sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7976
5b5d99cf 7977fi
bec39cab
AC
7978rm -f conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7980if test "$ac_cv_search_socketpair" = no; then
7981 for ac_lib in socket; do
7982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7983 cat >conftest.$ac_ext <<_ACEOF
7984/* confdefs.h. */
7985_ACEOF
7986cat confdefs.h >>conftest.$ac_ext
7987cat >>conftest.$ac_ext <<_ACEOF
7988/* end confdefs.h. */
5b5d99cf 7989
bec39cab
AC
7990/* Override any gcc2 internal prototype to avoid an error. */
7991#ifdef __cplusplus
7992extern "C"
7993#endif
7994/* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
7996char socketpair ();
7997int
7998main ()
7999{
8000socketpair ();
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext conftest$ac_exeext
8006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -z "$ac_c_werror_flag"
8015 || test ! -s conftest.err'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest$ac_exeext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 ac_cv_search_socketpair="-l$ac_lib"
8028break
8029else
8030 echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8032
bec39cab
AC
8033fi
8034rm -f conftest.err conftest.$ac_objext \
8035 conftest$ac_exeext conftest.$ac_ext
8036 done
8037fi
8038LIBS=$ac_func_search_save_LIBS
8039fi
8040echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8041echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8042if test "$ac_cv_search_socketpair" != no; then
8043 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8044
bec39cab 8045fi
96baa820 8046
c906108c 8047
bec39cab
AC
8048# For the TUI, we need enhanced curses functionality.
8049#
8050# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8051# curses library because the latter might not provide all the
8052# functionality we need. However, this leads to problems on systems
8053# where the linker searches /usr/local/lib, but the compiler doesn't
8054# search /usr/local/include, if ncurses is installed in /usr/local. A
8055# default installation of ncurses on alpha*-dec-osf* will lead to such
8056# a situation.
8057echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8058echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8059if test "${ac_cv_search_waddstr+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062 ac_func_search_save_LIBS=$LIBS
8063ac_cv_search_waddstr=no
8064cat >conftest.$ac_ext <<_ACEOF
8065/* confdefs.h. */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
8069/* end confdefs.h. */
c906108c 8070
bec39cab
AC
8071/* Override any gcc2 internal prototype to avoid an error. */
8072#ifdef __cplusplus
8073extern "C"
8074#endif
8075/* We use char because int might match the return type of a gcc2
8076 builtin and then its argument prototype would still apply. */
8077char waddstr ();
8078int
8079main ()
8080{
8081waddstr ();
8082 ;
8083 return 0;
8084}
8085_ACEOF
8086rm -f conftest.$ac_objext conftest$ac_exeext
8087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 (eval $ac_try) 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_cv_search_waddstr="none required"
8109else
8110 echo "$as_me: failed program was:" >&5
8111sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8112
bec39cab
AC
8113fi
8114rm -f conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116if test "$ac_cv_search_waddstr" = no; then
8117 for ac_lib in ncurses cursesX curses; do
8118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8119 cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
1ba607ad 8125
bec39cab
AC
8126/* Override any gcc2 internal prototype to avoid an error. */
8127#ifdef __cplusplus
8128extern "C"
8129#endif
8130/* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8132char waddstr ();
8133int
8134main ()
8135{
8136waddstr ();
8137 ;
8138 return 0;
8139}
8140_ACEOF
8141rm -f conftest.$ac_objext conftest$ac_exeext
8142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143 (eval $ac_link) 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -z "$ac_c_werror_flag"
8151 || test ! -s conftest.err'
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 (eval $ac_try) 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 (eval $ac_try) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 ac_cv_search_waddstr="-l$ac_lib"
8164break
8165else
8166 echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8168
8169fi
bec39cab
AC
8170rm -f conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172 done
1ba607ad 8173fi
bec39cab
AC
8174LIBS=$ac_func_search_save_LIBS
8175fi
8176echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8177echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8178if test "$ac_cv_search_waddstr" != no; then
8179 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8180
8bb2c122 8181fi
8bb2c122 8182
8bb2c122 8183
bec39cab
AC
8184# Since GDB uses Readline, we need termcap functionality. In many
8185# cases this will be provided by the curses library, but some systems
8186# have a seperate termcap library, or no curses library at all.
8bb2c122 8187
bec39cab
AC
8188case $host_os in
8189 cygwin*)
8190 if test -d $srcdir/libtermcap; then
8191 LIBS="../libtermcap/libtermcap.a $LIBS"
8192 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8193 fi ;;
8194 go32* | *djgpp*)
8195 ac_cv_search_tgetent="none required"
8196 ;;
7ef34f2c
MM
8197 *mingw32*)
8198 ac_cv_search_tgetent="none required"
8199 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8200 ;;
bec39cab 8201esac
627af7ea 8202
bec39cab
AC
8203# These are the libraries checked by Readline.
8204echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8205echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8206if test "${ac_cv_search_tgetent+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209 ac_func_search_save_LIBS=$LIBS
8210ac_cv_search_tgetent=no
8211cat >conftest.$ac_ext <<_ACEOF
8212/* confdefs.h. */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h. */
8217
8218/* Override any gcc2 internal prototype to avoid an error. */
8219#ifdef __cplusplus
8220extern "C"
8221#endif
8222/* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8224char tgetent ();
8225int
8226main ()
8227{
8228tgetent ();
8229 ;
8230 return 0;
8231}
8232_ACEOF
8233rm -f conftest.$ac_objext conftest$ac_exeext
8234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -z "$ac_c_werror_flag"
8243 || test ! -s conftest.err'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; } &&
8249 { ac_try='test -s conftest$ac_exeext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_cv_search_tgetent="none required"
627af7ea 8256else
bec39cab
AC
8257 echo "$as_me: failed program was:" >&5
8258sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8259
627af7ea 8260fi
bec39cab
AC
8261rm -f conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263if test "$ac_cv_search_tgetent" = no; then
8264 for ac_lib in termcap tinfo curses ncurses; do
8265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8266 cat >conftest.$ac_ext <<_ACEOF
8267/* confdefs.h. */
8268_ACEOF
8269cat confdefs.h >>conftest.$ac_ext
8270cat >>conftest.$ac_ext <<_ACEOF
8271/* end confdefs.h. */
627af7ea 8272
bec39cab
AC
8273/* Override any gcc2 internal prototype to avoid an error. */
8274#ifdef __cplusplus
8275extern "C"
8276#endif
8277/* We use char because int might match the return type of a gcc2
8278 builtin and then its argument prototype would still apply. */
8279char tgetent ();
8280int
8281main ()
8282{
8283tgetent ();
8284 ;
8285 return 0;
8286}
8287_ACEOF
8288rm -f conftest.$ac_objext conftest$ac_exeext
8289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8290 (eval $ac_link) 2>conftest.er1
8291 ac_status=$?
8292 grep -v '^ *+' conftest.er1 >conftest.err
8293 rm -f conftest.er1
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
8297 { ac_try='test -z "$ac_c_werror_flag"
8298 || test ! -s conftest.err'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest$ac_exeext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 (eval $ac_try) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 ac_cv_search_tgetent="-l$ac_lib"
8311break
627af7ea 8312else
bec39cab
AC
8313 echo "$as_me: failed program was:" >&5
8314sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8315
627af7ea 8316fi
bec39cab
AC
8317rm -f conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 done
8320fi
8321LIBS=$ac_func_search_save_LIBS
8322fi
8323echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8324echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8325if test "$ac_cv_search_tgetent" != no; then
8326 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8327
06825bd1
MK
8328fi
8329
06825bd1 8330
bec39cab
AC
8331if test "$ac_cv_search_tgetent" = no; then
8332 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8333echo "$as_me: error: no termcap library found" >&2;}
8334 { (exit 1); exit 1; }; }
8ee53726
MK
8335fi
8336
bec39cab
AC
8337# ------------------------- #
8338# Checks for header files. #
8339# ------------------------- #
8ee53726 8340
0e5d83e3 8341
bec39cab
AC
8342
8343
8344
8345
8346ac_header_dirent=no
8347for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8348 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8349echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8350echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8351if eval "test \"\${$as_ac_Header+set}\" = set"; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353else
8354 cat >conftest.$ac_ext <<_ACEOF
8355/* confdefs.h. */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h. */
8360#include <sys/types.h>
0e5d83e3 8361#include <$ac_hdr>
bec39cab
AC
8362
8363int
8364main ()
8365{
8366if ((DIR *) 0)
8367return 0;
8368 ;
8369 return 0;
8370}
8371_ACEOF
8372rm -f conftest.$ac_objext
8373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>conftest.er1
8375 ac_status=$?
8376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest.$ac_objext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 eval "$as_ac_Header=yes"
8395else
8396 echo "$as_me: failed program was:" >&5
8397sed 's/^/| /' conftest.$ac_ext >&5
8398
8399eval "$as_ac_Header=no"
8400fi
8401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8402fi
8403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8405if test `eval echo '${'$as_ac_Header'}'` = yes; then
8406 cat >>confdefs.h <<_ACEOF
8407#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8408_ACEOF
8409
8410ac_header_dirent=$ac_hdr; break
0e5d83e3 8411fi
0e5d83e3 8412
bec39cab
AC
8413done
8414# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8415if test $ac_header_dirent = dirent.h; then
8416 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8417echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8418if test "${ac_cv_search_opendir+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420else
8421 ac_func_search_save_LIBS=$LIBS
8422ac_cv_search_opendir=no
8423cat >conftest.$ac_ext <<_ACEOF
8424/* confdefs.h. */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h. */
0e5d83e3 8429
bec39cab
AC
8430/* Override any gcc2 internal prototype to avoid an error. */
8431#ifdef __cplusplus
8432extern "C"
8433#endif
8434/* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8436char opendir ();
8437int
8438main ()
8439{
8440opendir ();
8441 ;
8442 return 0;
8443}
8444_ACEOF
8445rm -f conftest.$ac_objext conftest$ac_exeext
8446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447 (eval $ac_link) 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_search_opendir="none required"
8468else
8469 echo "$as_me: failed program was:" >&5
8470sed 's/^/| /' conftest.$ac_ext >&5
8471
8472fi
8473rm -f conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475if test "$ac_cv_search_opendir" = no; then
8476 for ac_lib in dir; do
8477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8478 cat >conftest.$ac_ext <<_ACEOF
8479/* confdefs.h. */
8480_ACEOF
8481cat confdefs.h >>conftest.$ac_ext
8482cat >>conftest.$ac_ext <<_ACEOF
8483/* end confdefs.h. */
0e5d83e3 8484
bec39cab
AC
8485/* Override any gcc2 internal prototype to avoid an error. */
8486#ifdef __cplusplus
8487extern "C"
8488#endif
8489/* We use char because int might match the return type of a gcc2
8490 builtin and then its argument prototype would still apply. */
8491char opendir ();
8492int
8493main ()
8494{
8495opendir ();
8496 ;
8497 return 0;
8498}
8499_ACEOF
8500rm -f conftest.$ac_objext conftest$ac_exeext
8501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502 (eval $ac_link) 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try='test -z "$ac_c_werror_flag"
8510 || test ! -s conftest.err'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 (eval $ac_try) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 ac_cv_search_opendir="-l$ac_lib"
8523break
0e5d83e3 8524else
bec39cab
AC
8525 echo "$as_me: failed program was:" >&5
8526sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8527
0e5d83e3 8528fi
bec39cab
AC
8529rm -f conftest.err conftest.$ac_objext \
8530 conftest$ac_exeext conftest.$ac_ext
8531 done
0e5d83e3 8532fi
bec39cab 8533LIBS=$ac_func_search_save_LIBS
0e5d83e3 8534fi
bec39cab
AC
8535echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8536echo "${ECHO_T}$ac_cv_search_opendir" >&6
8537if test "$ac_cv_search_opendir" != no; then
8538 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8539
0e5d83e3
JJ
8540fi
8541
d28f9cdf 8542else
bec39cab
AC
8543 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8544echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8545if test "${ac_cv_search_opendir+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548 ac_func_search_save_LIBS=$LIBS
8549ac_cv_search_opendir=no
8550cat >conftest.$ac_ext <<_ACEOF
8551/* confdefs.h. */
8552_ACEOF
8553cat confdefs.h >>conftest.$ac_ext
8554cat >>conftest.$ac_ext <<_ACEOF
8555/* end confdefs.h. */
d28f9cdf 8556
d28f9cdf 8557/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8558#ifdef __cplusplus
8559extern "C"
8560#endif
d28f9cdf 8561/* We use char because int might match the return type of a gcc2
bec39cab
AC
8562 builtin and then its argument prototype would still apply. */
8563char opendir ();
8564int
8565main ()
8566{
8567opendir ();
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext conftest$ac_exeext
8573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574 (eval $ac_link) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_search_opendir="none required"
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599fi
8600rm -f conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8602if test "$ac_cv_search_opendir" = no; then
8603 for ac_lib in x; do
8604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8605 cat >conftest.$ac_ext <<_ACEOF
8606/* confdefs.h. */
8607_ACEOF
8608cat confdefs.h >>conftest.$ac_ext
8609cat >>conftest.$ac_ext <<_ACEOF
8610/* end confdefs.h. */
d28f9cdf 8611
bec39cab
AC
8612/* Override any gcc2 internal prototype to avoid an error. */
8613#ifdef __cplusplus
8614extern "C"
d28f9cdf 8615#endif
bec39cab
AC
8616/* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8618char opendir ();
8619int
8620main ()
8621{
8622opendir ();
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext conftest$ac_exeext
8628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629 (eval $ac_link) 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag"
8637 || test ! -s conftest.err'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 ac_cv_search_opendir="-l$ac_lib"
8650break
d28f9cdf 8651else
bec39cab
AC
8652 echo "$as_me: failed program was:" >&5
8653sed 's/^/| /' conftest.$ac_ext >&5
8654
d28f9cdf 8655fi
bec39cab
AC
8656rm -f conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8658 done
8659fi
8660LIBS=$ac_func_search_save_LIBS
d28f9cdf 8661fi
bec39cab
AC
8662echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8663echo "${ECHO_T}$ac_cv_search_opendir" >&6
8664if test "$ac_cv_search_opendir" != no; then
8665 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8666
d28f9cdf
DJ
8667fi
8668
bec39cab 8669fi
b0b1c2c0 8670
bec39cab
AC
8671echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8672echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8673if test "${ac_cv_header_stat_broken+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8675else
bec39cab
AC
8676 cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h. */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h. */
8682#include <sys/types.h>
8683#include <sys/stat.h>
b0b1c2c0 8684
bec39cab
AC
8685#if defined(S_ISBLK) && defined(S_IFDIR)
8686# if S_ISBLK (S_IFDIR)
8687You lose.
8688# endif
8689#endif
b0b1c2c0 8690
bec39cab
AC
8691#if defined(S_ISBLK) && defined(S_IFCHR)
8692# if S_ISBLK (S_IFCHR)
8693You lose.
8694# endif
8695#endif
d28f9cdf 8696
bec39cab
AC
8697#if defined(S_ISLNK) && defined(S_IFREG)
8698# if S_ISLNK (S_IFREG)
8699You lose.
8700# endif
8701#endif
d28f9cdf 8702
bec39cab
AC
8703#if defined(S_ISSOCK) && defined(S_IFREG)
8704# if S_ISSOCK (S_IFREG)
8705You lose.
8706# endif
8707#endif
8708
8709_ACEOF
8710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8711 $EGREP "You lose" >/dev/null 2>&1; then
8712 ac_cv_header_stat_broken=yes
d28f9cdf 8713else
bec39cab 8714 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8715fi
8716rm -f conftest*
d28f9cdf 8717
d28f9cdf 8718fi
bec39cab
AC
8719echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8720echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8721if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8722
bec39cab
AC
8723cat >>confdefs.h <<\_ACEOF
8724#define STAT_MACROS_BROKEN 1
8725_ACEOF
8bb2c122 8726
7a292a7a 8727fi
bec39cab
AC
8728
8729echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8730echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8731if test "${ac_cv_header_stdc+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8733else
bec39cab
AC
8734 cat >conftest.$ac_ext <<_ACEOF
8735/* confdefs.h. */
8736_ACEOF
8737cat confdefs.h >>conftest.$ac_ext
8738cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h. */
8740#include <stdlib.h>
8741#include <stdarg.h>
8742#include <string.h>
8743#include <float.h>
7a292a7a 8744
bec39cab
AC
8745int
8746main ()
8747{
7a292a7a 8748
bec39cab
AC
8749 ;
8750 return 0;
8751}
8752_ACEOF
8753rm -f conftest.$ac_objext
8754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -z "$ac_c_werror_flag"
8763 || test ! -s conftest.err'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest.$ac_objext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_cv_header_stdc=yes
c906108c 8776else
bec39cab
AC
8777 echo "$as_me: failed program was:" >&5
8778sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8779
bec39cab 8780ac_cv_header_stdc=no
c906108c 8781fi
bec39cab 8782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8783
bec39cab
AC
8784if test $ac_cv_header_stdc = yes; then
8785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8786 cat >conftest.$ac_ext <<_ACEOF
8787/* confdefs.h. */
8788_ACEOF
8789cat confdefs.h >>conftest.$ac_ext
8790cat >>conftest.$ac_ext <<_ACEOF
8791/* end confdefs.h. */
8792#include <string.h>
c906108c 8793
bec39cab
AC
8794_ACEOF
8795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8796 $EGREP "memchr" >/dev/null 2>&1; then
8797 :
8bb2c122 8798else
bec39cab 8799 ac_cv_header_stdc=no
8bb2c122 8800fi
bec39cab
AC
8801rm -f conftest*
8802
c906108c
SS
8803fi
8804
bec39cab
AC
8805if test $ac_cv_header_stdc = yes; then
8806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8807 cat >conftest.$ac_ext <<_ACEOF
8808/* confdefs.h. */
8809_ACEOF
8810cat confdefs.h >>conftest.$ac_ext
8811cat >>conftest.$ac_ext <<_ACEOF
8812/* end confdefs.h. */
8813#include <stdlib.h>
8814
8815_ACEOF
8816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817 $EGREP "free" >/dev/null 2>&1; then
8818 :
c906108c 8819else
bec39cab 8820 ac_cv_header_stdc=no
c906108c 8821fi
bec39cab
AC
8822rm -f conftest*
8823
c906108c
SS
8824fi
8825
bec39cab
AC
8826if test $ac_cv_header_stdc = yes; then
8827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8828 if test "$cross_compiling" = yes; then
8829 :
c906108c 8830else
bec39cab
AC
8831 cat >conftest.$ac_ext <<_ACEOF
8832/* confdefs.h. */
8833_ACEOF
8834cat confdefs.h >>conftest.$ac_ext
8835cat >>conftest.$ac_ext <<_ACEOF
8836/* end confdefs.h. */
8837#include <ctype.h>
8838#if ((' ' & 0x0FF) == 0x020)
8839# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8840# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8841#else
8842# define ISLOWER(c) \
8843 (('a' <= (c) && (c) <= 'i') \
8844 || ('j' <= (c) && (c) <= 'r') \
8845 || ('s' <= (c) && (c) <= 'z'))
8846# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8847#endif
8848
8849#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8850int
8851main ()
8852{
8853 int i;
8854 for (i = 0; i < 256; i++)
8855 if (XOR (islower (i), ISLOWER (i))
8856 || toupper (i) != TOUPPER (i))
8857 exit(2);
8858 exit (0);
8859}
8860_ACEOF
8861rm -f conftest$ac_exeext
8862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 :
8873else
8874 echo "$as_me: program exited with status $ac_status" >&5
8875echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878( exit $ac_status )
8879ac_cv_header_stdc=no
c906108c 8880fi
bec39cab 8881rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8882fi
c906108c 8883fi
bec39cab
AC
8884fi
8885echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8886echo "${ECHO_T}$ac_cv_header_stdc" >&6
8887if test $ac_cv_header_stdc = yes; then
c906108c 8888
bec39cab
AC
8889cat >>confdefs.h <<\_ACEOF
8890#define STDC_HEADERS 1
8891_ACEOF
c906108c 8892
bec39cab 8893fi
8bb2c122 8894
bec39cab 8895
7cb9022a 8896for ac_header in nlist.h
bec39cab
AC
8897do
8898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899if eval "test \"\${$as_ac_Header+set}\" = set"; then
8900 echo "$as_me:$LINENO: checking for $ac_header" >&5
8901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8902if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904fi
8905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8907else
8908 # Is the header compilable?
8909echo "$as_me:$LINENO: checking $ac_header usability" >&5
8910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8911cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h. */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
8916/* end confdefs.h. */
8917$ac_includes_default
8918#include <$ac_header>
8919_ACEOF
8920rm -f conftest.$ac_objext
8921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922 (eval $ac_compile) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest.$ac_objext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_header_compiler=yes
8943else
8944 echo "$as_me: failed program was:" >&5
8945sed 's/^/| /' conftest.$ac_ext >&5
8946
8947ac_header_compiler=no
8948fi
8949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8951echo "${ECHO_T}$ac_header_compiler" >&6
8952
8953# Is the header present?
8954echo "$as_me:$LINENO: checking $ac_header presence" >&5
8955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8956cat >conftest.$ac_ext <<_ACEOF
8957/* confdefs.h. */
8958_ACEOF
8959cat confdefs.h >>conftest.$ac_ext
8960cat >>conftest.$ac_ext <<_ACEOF
8961/* end confdefs.h. */
8962#include <$ac_header>
8963_ACEOF
8964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } >/dev/null; then
8972 if test -s conftest.err; then
8973 ac_cpp_err=$ac_c_preproc_warn_flag
8974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8975 else
8976 ac_cpp_err=
8977 fi
c906108c 8978else
bec39cab 8979 ac_cpp_err=yes
c906108c 8980fi
bec39cab
AC
8981if test -z "$ac_cpp_err"; then
8982 ac_header_preproc=yes
c906108c 8983else
bec39cab
AC
8984 echo "$as_me: failed program was:" >&5
8985sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 8986
bec39cab
AC
8987 ac_header_preproc=no
8988fi
8989rm -f conftest.err conftest.$ac_ext
8990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8991echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8992
bec39cab
AC
8993# So? What about this header?
8994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8995 yes:no: )
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9000 ac_header_preproc=yes
9001 ;;
9002 no:yes:* )
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9015 (
9016 cat <<\_ASBOX
9017## ------------------------------------------ ##
9018## Report this to the AC_PACKAGE_NAME lists. ##
9019## ------------------------------------------ ##
9020_ASBOX
9021 ) |
9022 sed "s/^/$as_me: WARNING: /" >&2
9023 ;;
9024esac
9025echo "$as_me:$LINENO: checking for $ac_header" >&5
9026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9027if eval "test \"\${$as_ac_Header+set}\" = set"; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9029else
bec39cab 9030 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9031fi
bec39cab
AC
9032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9034
95ca63c4 9035fi
bec39cab
AC
9036if test `eval echo '${'$as_ac_Header'}'` = yes; then
9037 cat >>confdefs.h <<_ACEOF
9038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9039_ACEOF
9040
95ca63c4
CF
9041fi
9042
bec39cab 9043done
95ca63c4
CF
9044
9045
7cb9022a 9046for ac_header in link.h
bec39cab
AC
9047do
9048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 9049echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
9050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9051if eval "test \"\${$as_ac_Header+set}\" = set"; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9053else
7cb9022a 9054 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9055/* confdefs.h. */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h. */
7cb9022a
MK
9060#if HAVE_SYS_TYPES_H
9061# include <sys/types.h>
9062#endif
9063#if HAVE_NLIST_H
9064# include <nlist.h>
9065#endif
9066
9067
bec39cab
AC
9068#include <$ac_header>
9069_ACEOF
9070rm -f conftest.$ac_objext
9071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
7cb9022a 9092 eval "$as_ac_Header=yes"
bec39cab
AC
9093else
9094 echo "$as_me: failed program was:" >&5
9095sed 's/^/| /' conftest.$ac_ext >&5
9096
7cb9022a 9097eval "$as_ac_Header=no"
bec39cab
AC
9098fi
9099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9100fi
9101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9103if test `eval echo '${'$as_ac_Header'}'` = yes; then
9104 cat >>confdefs.h <<_ACEOF
9105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9106_ACEOF
95ca63c4 9107
bec39cab 9108fi
95ca63c4 9109
bec39cab 9110done
95ca63c4 9111
c906108c 9112
7cb9022a 9113for ac_header in machine/reg.h
bec39cab
AC
9114do
9115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9116if eval "test \"\${$as_ac_Header+set}\" = set"; then
9117 echo "$as_me:$LINENO: checking for $ac_header" >&5
9118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9119if eval "test \"\${$as_ac_Header+set}\" = set"; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121fi
9122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9124else
9125 # Is the header compilable?
9126echo "$as_me:$LINENO: checking $ac_header usability" >&5
9127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9128cat >conftest.$ac_ext <<_ACEOF
9129/* confdefs.h. */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h. */
9134$ac_includes_default
9135#include <$ac_header>
9136_ACEOF
9137rm -f conftest.$ac_objext
9138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139 (eval $ac_compile) 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag"
9147 || test ! -s conftest.err'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; } &&
9153 { ac_try='test -s conftest.$ac_objext'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 ac_header_compiler=yes
9160else
9161 echo "$as_me: failed program was:" >&5
9162sed 's/^/| /' conftest.$ac_ext >&5
9163
9164ac_header_compiler=no
9165fi
9166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9168echo "${ECHO_T}$ac_header_compiler" >&6
9169
9170# Is the header present?
9171echo "$as_me:$LINENO: checking $ac_header presence" >&5
9172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9173cat >conftest.$ac_ext <<_ACEOF
9174/* confdefs.h. */
9175_ACEOF
9176cat confdefs.h >>conftest.$ac_ext
9177cat >>conftest.$ac_ext <<_ACEOF
9178/* end confdefs.h. */
9179#include <$ac_header>
9180_ACEOF
9181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9183 ac_status=$?
9184 grep -v '^ *+' conftest.er1 >conftest.err
9185 rm -f conftest.er1
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } >/dev/null; then
9189 if test -s conftest.err; then
9190 ac_cpp_err=$ac_c_preproc_warn_flag
9191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9192 else
9193 ac_cpp_err=
9194 fi
75c6e08a 9195else
bec39cab 9196 ac_cpp_err=yes
75c6e08a 9197fi
bec39cab
AC
9198if test -z "$ac_cpp_err"; then
9199 ac_header_preproc=yes
9200else
9201 echo "$as_me: failed program was:" >&5
9202sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 ac_header_preproc=no
75c6e08a 9205fi
bec39cab
AC
9206rm -f conftest.err conftest.$ac_ext
9207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9208echo "${ECHO_T}$ac_header_preproc" >&6
9209
9210# So? What about this header?
9211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9212 yes:no: )
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9217 ac_header_preproc=yes
9218 ;;
9219 no:yes:* )
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9232 (
9233 cat <<\_ASBOX
9234## ------------------------------------------ ##
9235## Report this to the AC_PACKAGE_NAME lists. ##
9236## ------------------------------------------ ##
9237_ASBOX
9238 ) |
9239 sed "s/^/$as_me: WARNING: /" >&2
9240 ;;
9241esac
9242echo "$as_me:$LINENO: checking for $ac_header" >&5
9243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9244if eval "test \"\${$as_ac_Header+set}\" = set"; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9246else
bec39cab
AC
9247 eval "$as_ac_Header=\$ac_header_preproc"
9248fi
9249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9251
75c6e08a 9252fi
bec39cab
AC
9253if test `eval echo '${'$as_ac_Header'}'` = yes; then
9254 cat >>confdefs.h <<_ACEOF
9255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9256_ACEOF
75c6e08a 9257
bec39cab 9258fi
75c6e08a 9259
bec39cab 9260done
75c6e08a
MK
9261
9262
9a156167 9263
bec39cab
AC
9264for ac_header in poll.h sys/poll.h
9265do
9266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9267if eval "test \"\${$as_ac_Header+set}\" = set"; then
9268 echo "$as_me:$LINENO: checking for $ac_header" >&5
9269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9270if eval "test \"\${$as_ac_Header+set}\" = set"; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272fi
9273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9275else
9276 # Is the header compilable?
9277echo "$as_me:$LINENO: checking $ac_header usability" >&5
9278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9279cat >conftest.$ac_ext <<_ACEOF
9280/* confdefs.h. */
9281_ACEOF
9282cat confdefs.h >>conftest.$ac_ext
9283cat >>conftest.$ac_ext <<_ACEOF
9284/* end confdefs.h. */
9285$ac_includes_default
9286#include <$ac_header>
9287_ACEOF
9288rm -f conftest.$ac_objext
9289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>conftest.er1
9291 ac_status=$?
9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -z "$ac_c_werror_flag"
9298 || test ! -s conftest.err'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; } &&
9304 { ac_try='test -s conftest.$ac_objext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 (eval $ac_try) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 ac_header_compiler=yes
9311else
9312 echo "$as_me: failed program was:" >&5
9313sed 's/^/| /' conftest.$ac_ext >&5
9314
9315ac_header_compiler=no
9316fi
9317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9319echo "${ECHO_T}$ac_header_compiler" >&6
9320
9321# Is the header present?
9322echo "$as_me:$LINENO: checking $ac_header presence" >&5
9323echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9324cat >conftest.$ac_ext <<_ACEOF
9325/* confdefs.h. */
9326_ACEOF
9327cat confdefs.h >>conftest.$ac_ext
9328cat >>conftest.$ac_ext <<_ACEOF
9329/* end confdefs.h. */
9330#include <$ac_header>
9331_ACEOF
9332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9334 ac_status=$?
9335 grep -v '^ *+' conftest.er1 >conftest.err
9336 rm -f conftest.er1
9337 cat conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } >/dev/null; then
9340 if test -s conftest.err; then
9341 ac_cpp_err=$ac_c_preproc_warn_flag
9342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9343 else
9344 ac_cpp_err=
9345 fi
9a156167 9346else
bec39cab 9347 ac_cpp_err=yes
9a156167 9348fi
bec39cab
AC
9349if test -z "$ac_cpp_err"; then
9350 ac_header_preproc=yes
9351else
9352 echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9354
bec39cab 9355 ac_header_preproc=no
9a156167 9356fi
bec39cab
AC
9357rm -f conftest.err conftest.$ac_ext
9358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9359echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9360
bec39cab
AC
9361# So? What about this header?
9362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9363 yes:no: )
9364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9365echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9367echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9368 ac_header_preproc=yes
9369 ;;
9370 no:yes:* )
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9372echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9374echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9376echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9378echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9382echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9383 (
9384 cat <<\_ASBOX
9385## ------------------------------------------ ##
9386## Report this to the AC_PACKAGE_NAME lists. ##
9387## ------------------------------------------ ##
9388_ASBOX
9389 ) |
9390 sed "s/^/$as_me: WARNING: /" >&2
9391 ;;
9392esac
9393echo "$as_me:$LINENO: checking for $ac_header" >&5
9394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9395if eval "test \"\${$as_ac_Header+set}\" = set"; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9397else
bec39cab 9398 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9399fi
bec39cab
AC
9400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9402
bec39cab
AC
9403fi
9404if test `eval echo '${'$as_ac_Header'}'` = yes; then
9405 cat >>confdefs.h <<_ACEOF
9406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9407_ACEOF
9a156167 9408
bec39cab 9409fi
9a156167 9410
bec39cab 9411done
9a156167 9412
9a156167 9413
9a156167 9414
bec39cab
AC
9415
9416for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9417do
9418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419if eval "test \"\${$as_ac_Header+set}\" = set"; then
9420 echo "$as_me:$LINENO: checking for $ac_header" >&5
9421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9422if eval "test \"\${$as_ac_Header+set}\" = set"; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424fi
9425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9427else
9428 # Is the header compilable?
9429echo "$as_me:$LINENO: checking $ac_header usability" >&5
9430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9431cat >conftest.$ac_ext <<_ACEOF
9432/* confdefs.h. */
9433_ACEOF
9434cat confdefs.h >>conftest.$ac_ext
9435cat >>conftest.$ac_ext <<_ACEOF
9436/* end confdefs.h. */
9437$ac_includes_default
9438#include <$ac_header>
9439_ACEOF
9440rm -f conftest.$ac_objext
9441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>conftest.er1
9443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -z "$ac_c_werror_flag"
9450 || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_header_compiler=yes
9463else
9464 echo "$as_me: failed program was:" >&5
9465sed 's/^/| /' conftest.$ac_ext >&5
9466
9467ac_header_compiler=no
9468fi
9469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9471echo "${ECHO_T}$ac_header_compiler" >&6
9472
9473# Is the header present?
9474echo "$as_me:$LINENO: checking $ac_header presence" >&5
9475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9476cat >conftest.$ac_ext <<_ACEOF
9477/* confdefs.h. */
9478_ACEOF
9479cat confdefs.h >>conftest.$ac_ext
9480cat >>conftest.$ac_ext <<_ACEOF
9481/* end confdefs.h. */
9482#include <$ac_header>
9483_ACEOF
9484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } >/dev/null; then
9492 if test -s conftest.err; then
9493 ac_cpp_err=$ac_c_preproc_warn_flag
9494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9495 else
9496 ac_cpp_err=
9497 fi
9a156167 9498else
bec39cab 9499 ac_cpp_err=yes
9a156167 9500fi
bec39cab
AC
9501if test -z "$ac_cpp_err"; then
9502 ac_header_preproc=yes
9503else
9504 echo "$as_me: failed program was:" >&5
9505sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9506
bec39cab 9507 ac_header_preproc=no
9a156167 9508fi
bec39cab
AC
9509rm -f conftest.err conftest.$ac_ext
9510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9511echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9512
bec39cab
AC
9513# So? What about this header?
9514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9515 yes:no: )
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9520 ac_header_preproc=yes
9521 ;;
9522 no:yes:* )
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9535 (
9536 cat <<\_ASBOX
9537## ------------------------------------------ ##
9538## Report this to the AC_PACKAGE_NAME lists. ##
9539## ------------------------------------------ ##
9540_ASBOX
9541 ) |
9542 sed "s/^/$as_me: WARNING: /" >&2
9543 ;;
9544esac
9545echo "$as_me:$LINENO: checking for $ac_header" >&5
9546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9547if eval "test \"\${$as_ac_Header+set}\" = set"; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9549else
bec39cab 9550 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9551fi
bec39cab
AC
9552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9554
9555fi
bec39cab
AC
9556if test `eval echo '${'$as_ac_Header'}'` = yes; then
9557 cat >>confdefs.h <<_ACEOF
9558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9559_ACEOF
9a156167 9560
bec39cab
AC
9561fi
9562
9563done
9a156167 9564
c890192f 9565
bec39cab
AC
9566for ac_header in stddef.h
9567do
9568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9569if eval "test \"\${$as_ac_Header+set}\" = set"; then
9570 echo "$as_me:$LINENO: checking for $ac_header" >&5
9571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9572if eval "test \"\${$as_ac_Header+set}\" = set"; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574fi
9575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9577else
9578 # Is the header compilable?
9579echo "$as_me:$LINENO: checking $ac_header usability" >&5
9580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9581cat >conftest.$ac_ext <<_ACEOF
9582/* confdefs.h. */
9583_ACEOF
9584cat confdefs.h >>conftest.$ac_ext
9585cat >>conftest.$ac_ext <<_ACEOF
9586/* end confdefs.h. */
9587$ac_includes_default
9588#include <$ac_header>
9589_ACEOF
9590rm -f conftest.$ac_objext
9591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -z "$ac_c_werror_flag"
9600 || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest.$ac_objext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_header_compiler=yes
9613else
9614 echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
9617ac_header_compiler=no
9618fi
9619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9621echo "${ECHO_T}$ac_header_compiler" >&6
9622
9623# Is the header present?
9624echo "$as_me:$LINENO: checking $ac_header presence" >&5
9625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9626cat >conftest.$ac_ext <<_ACEOF
9627/* confdefs.h. */
9628_ACEOF
9629cat confdefs.h >>conftest.$ac_ext
9630cat >>conftest.$ac_ext <<_ACEOF
9631/* end confdefs.h. */
9632#include <$ac_header>
9633_ACEOF
9634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } >/dev/null; then
9642 if test -s conftest.err; then
9643 ac_cpp_err=$ac_c_preproc_warn_flag
9644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9645 else
9646 ac_cpp_err=
9647 fi
c890192f 9648else
bec39cab
AC
9649 ac_cpp_err=yes
9650fi
9651if test -z "$ac_cpp_err"; then
9652 ac_header_preproc=yes
c890192f 9653else
bec39cab
AC
9654 echo "$as_me: failed program was:" >&5
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
9657 ac_header_preproc=no
c890192f 9658fi
bec39cab
AC
9659rm -f conftest.err conftest.$ac_ext
9660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9661echo "${ECHO_T}$ac_header_preproc" >&6
9662
9663# So? What about this header?
9664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9665 yes:no: )
9666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9670 ac_header_preproc=yes
9671 ;;
9672 no:yes:* )
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9676echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9680echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9685 (
9686 cat <<\_ASBOX
9687## ------------------------------------------ ##
9688## Report this to the AC_PACKAGE_NAME lists. ##
9689## ------------------------------------------ ##
9690_ASBOX
9691 ) |
9692 sed "s/^/$as_me: WARNING: /" >&2
9693 ;;
9694esac
9695echo "$as_me:$LINENO: checking for $ac_header" >&5
9696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9697if eval "test \"\${$as_ac_Header+set}\" = set"; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9699else
bec39cab 9700 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9701fi
bec39cab
AC
9702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9704
c890192f 9705fi
bec39cab
AC
9706if test `eval echo '${'$as_ac_Header'}'` = yes; then
9707 cat >>confdefs.h <<_ACEOF
9708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9709_ACEOF
c890192f 9710
c890192f
MK
9711fi
9712
bec39cab 9713done
9a156167 9714
bec39cab
AC
9715
9716for ac_header in stdlib.h
9717do
9718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9719if eval "test \"\${$as_ac_Header+set}\" = set"; then
9720 echo "$as_me:$LINENO: checking for $ac_header" >&5
9721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9722if eval "test \"\${$as_ac_Header+set}\" = set"; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724fi
9725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9727else
9728 # Is the header compilable?
9729echo "$as_me:$LINENO: checking $ac_header usability" >&5
9730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9731cat >conftest.$ac_ext <<_ACEOF
9732/* confdefs.h. */
9733_ACEOF
9734cat confdefs.h >>conftest.$ac_ext
9735cat >>conftest.$ac_ext <<_ACEOF
9736/* end confdefs.h. */
9737$ac_includes_default
9738#include <$ac_header>
9739_ACEOF
9740rm -f conftest.$ac_objext
9741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9742 (eval $ac_compile) 2>conftest.er1
9743 ac_status=$?
9744 grep -v '^ *+' conftest.er1 >conftest.err
9745 rm -f conftest.er1
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -z "$ac_c_werror_flag"
9750 || test ! -s conftest.err'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 (eval $ac_try) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest.$ac_objext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 (eval $ac_try) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_header_compiler=yes
9763else
9764 echo "$as_me: failed program was:" >&5
9765sed 's/^/| /' conftest.$ac_ext >&5
9766
9767ac_header_compiler=no
9768fi
9769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9771echo "${ECHO_T}$ac_header_compiler" >&6
9772
9773# Is the header present?
9774echo "$as_me:$LINENO: checking $ac_header presence" >&5
9775echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9776cat >conftest.$ac_ext <<_ACEOF
9777/* confdefs.h. */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h. */
9782#include <$ac_header>
9783_ACEOF
9784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } >/dev/null; then
9792 if test -s conftest.err; then
9793 ac_cpp_err=$ac_c_preproc_warn_flag
9794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9795 else
9796 ac_cpp_err=
9797 fi
9a156167 9798else
bec39cab
AC
9799 ac_cpp_err=yes
9800fi
9801if test -z "$ac_cpp_err"; then
9802 ac_header_preproc=yes
9a156167 9803else
bec39cab
AC
9804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
9807 ac_header_preproc=no
9a156167 9808fi
bec39cab
AC
9809rm -f conftest.err conftest.$ac_ext
9810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9811echo "${ECHO_T}$ac_header_preproc" >&6
9812
9813# So? What about this header?
9814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9815 yes:no: )
9816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9820 ac_header_preproc=yes
9821 ;;
9822 no:yes:* )
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9826echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9830echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9835 (
9836 cat <<\_ASBOX
9837## ------------------------------------------ ##
9838## Report this to the AC_PACKAGE_NAME lists. ##
9839## ------------------------------------------ ##
9840_ASBOX
9841 ) |
9842 sed "s/^/$as_me: WARNING: /" >&2
9843 ;;
9844esac
9845echo "$as_me:$LINENO: checking for $ac_header" >&5
9846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9847if eval "test \"\${$as_ac_Header+set}\" = set"; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9849else
bec39cab 9850 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9851fi
bec39cab
AC
9852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9854
9a156167 9855fi
bec39cab
AC
9856if test `eval echo '${'$as_ac_Header'}'` = yes; then
9857 cat >>confdefs.h <<_ACEOF
9858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9859_ACEOF
9a156167 9860
9a156167
MK
9861fi
9862
bec39cab
AC
9863done
9864
06825bd1 9865
bec39cab
AC
9866for ac_header in stdint.h
9867do
9868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9869if eval "test \"\${$as_ac_Header+set}\" = set"; then
9870 echo "$as_me:$LINENO: checking for $ac_header" >&5
9871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9872if eval "test \"\${$as_ac_Header+set}\" = set"; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874fi
9875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9877else
9878 # Is the header compilable?
9879echo "$as_me:$LINENO: checking $ac_header usability" >&5
9880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9881cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h. */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h. */
9887$ac_includes_default
9888#include <$ac_header>
9889_ACEOF
9890rm -f conftest.$ac_objext
9891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9892 (eval $ac_compile) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest.$ac_objext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_header_compiler=yes
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917ac_header_compiler=no
9918fi
9919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9920echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9921echo "${ECHO_T}$ac_header_compiler" >&6
9922
9923# Is the header present?
9924echo "$as_me:$LINENO: checking $ac_header presence" >&5
9925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9926cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h. */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h. */
9932#include <$ac_header>
9933_ACEOF
9934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } >/dev/null; then
9942 if test -s conftest.err; then
9943 ac_cpp_err=$ac_c_preproc_warn_flag
9944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9945 else
9946 ac_cpp_err=
9947 fi
06825bd1 9948else
bec39cab
AC
9949 ac_cpp_err=yes
9950fi
9951if test -z "$ac_cpp_err"; then
9952 ac_header_preproc=yes
06825bd1 9953else
bec39cab
AC
9954 echo "$as_me: failed program was:" >&5
9955sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 ac_header_preproc=no
06825bd1 9958fi
bec39cab
AC
9959rm -f conftest.err conftest.$ac_ext
9960echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9961echo "${ECHO_T}$ac_header_preproc" >&6
9962
9963# So? What about this header?
9964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9965 yes:no: )
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9967echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9969echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9970 ac_header_preproc=yes
9971 ;;
9972 no:yes:* )
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9978echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9980echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9982echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9984echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9985 (
9986 cat <<\_ASBOX
9987## ------------------------------------------ ##
9988## Report this to the AC_PACKAGE_NAME lists. ##
9989## ------------------------------------------ ##
9990_ASBOX
9991 ) |
9992 sed "s/^/$as_me: WARNING: /" >&2
9993 ;;
9994esac
9995echo "$as_me:$LINENO: checking for $ac_header" >&5
9996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9997if eval "test \"\${$as_ac_Header+set}\" = set"; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 9999else
bec39cab 10000 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10001fi
bec39cab
AC
10002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10004
06825bd1 10005fi
bec39cab
AC
10006if test `eval echo '${'$as_ac_Header'}'` = yes; then
10007 cat >>confdefs.h <<_ACEOF
10008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10009_ACEOF
06825bd1 10010
06825bd1 10011fi
4f0be353 10012
bec39cab 10013done
4f0be353 10014
06825bd1 10015
06825bd1 10016
bec39cab
AC
10017
10018for ac_header in string.h memory.h strings.h
10019do
10020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10021if eval "test \"\${$as_ac_Header+set}\" = set"; then
10022 echo "$as_me:$LINENO: checking for $ac_header" >&5
10023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10024if eval "test \"\${$as_ac_Header+set}\" = set"; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10026fi
10027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10028echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10029else
10030 # Is the header compilable?
10031echo "$as_me:$LINENO: checking $ac_header usability" >&5
10032echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10033cat >conftest.$ac_ext <<_ACEOF
10034/* confdefs.h. */
10035_ACEOF
10036cat confdefs.h >>conftest.$ac_ext
10037cat >>conftest.$ac_ext <<_ACEOF
10038/* end confdefs.h. */
10039$ac_includes_default
10040#include <$ac_header>
10041_ACEOF
10042rm -f conftest.$ac_objext
10043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10044 (eval $ac_compile) 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -z "$ac_c_werror_flag"
10052 || test ! -s conftest.err'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest.$ac_objext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_header_compiler=yes
10065else
10066 echo "$as_me: failed program was:" >&5
10067sed 's/^/| /' conftest.$ac_ext >&5
10068
10069ac_header_compiler=no
10070fi
10071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10072echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10073echo "${ECHO_T}$ac_header_compiler" >&6
10074
10075# Is the header present?
10076echo "$as_me:$LINENO: checking $ac_header presence" >&5
10077echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10078cat >conftest.$ac_ext <<_ACEOF
10079/* confdefs.h. */
10080_ACEOF
10081cat confdefs.h >>conftest.$ac_ext
10082cat >>conftest.$ac_ext <<_ACEOF
10083/* end confdefs.h. */
10084#include <$ac_header>
10085_ACEOF
10086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10088 ac_status=$?
10089 grep -v '^ *+' conftest.er1 >conftest.err
10090 rm -f conftest.er1
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } >/dev/null; then
10094 if test -s conftest.err; then
10095 ac_cpp_err=$ac_c_preproc_warn_flag
10096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10097 else
10098 ac_cpp_err=
10099 fi
06825bd1 10100else
bec39cab
AC
10101 ac_cpp_err=yes
10102fi
10103if test -z "$ac_cpp_err"; then
10104 ac_header_preproc=yes
06825bd1 10105else
bec39cab
AC
10106 echo "$as_me: failed program was:" >&5
10107sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_header_preproc=no
06825bd1 10110fi
bec39cab
AC
10111rm -f conftest.err conftest.$ac_ext
10112echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10113echo "${ECHO_T}$ac_header_preproc" >&6
10114
10115# So? What about this header?
10116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10117 yes:no: )
10118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10119echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10121echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10122 ac_header_preproc=yes
10123 ;;
10124 no:yes:* )
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10128echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10130echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10132echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10136echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10137 (
10138 cat <<\_ASBOX
10139## ------------------------------------------ ##
10140## Report this to the AC_PACKAGE_NAME lists. ##
10141## ------------------------------------------ ##
10142_ASBOX
10143 ) |
10144 sed "s/^/$as_me: WARNING: /" >&2
10145 ;;
10146esac
10147echo "$as_me:$LINENO: checking for $ac_header" >&5
10148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10149if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151else
10152 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10153fi
bec39cab
AC
10154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10156
06825bd1 10157fi
bec39cab
AC
10158if test `eval echo '${'$as_ac_Header'}'` = yes; then
10159 cat >>confdefs.h <<_ACEOF
10160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10161_ACEOF
06825bd1 10162
06825bd1
MK
10163fi
10164
bec39cab 10165done
5ee754fc 10166
bec39cab
AC
10167
10168for ac_header in sys/fault.h
5ee754fc 10169do
bec39cab
AC
10170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10171if eval "test \"\${$as_ac_Header+set}\" = set"; then
10172 echo "$as_me:$LINENO: checking for $ac_header" >&5
10173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10174if eval "test \"\${$as_ac_Header+set}\" = set"; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10176fi
10177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10179else
10180 # Is the header compilable?
10181echo "$as_me:$LINENO: checking $ac_header usability" >&5
10182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10183cat >conftest.$ac_ext <<_ACEOF
10184/* confdefs.h. */
10185_ACEOF
10186cat confdefs.h >>conftest.$ac_ext
10187cat >>conftest.$ac_ext <<_ACEOF
10188/* end confdefs.h. */
10189$ac_includes_default
10190#include <$ac_header>
10191_ACEOF
10192rm -f conftest.$ac_objext
10193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_header_compiler=yes
10215else
10216 echo "$as_me: failed program was:" >&5
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
10219ac_header_compiler=no
10220fi
10221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10222echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10223echo "${ECHO_T}$ac_header_compiler" >&6
10224
10225# Is the header present?
10226echo "$as_me:$LINENO: checking $ac_header presence" >&5
10227echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10228cat >conftest.$ac_ext <<_ACEOF
10229/* confdefs.h. */
10230_ACEOF
10231cat confdefs.h >>conftest.$ac_ext
10232cat >>conftest.$ac_ext <<_ACEOF
10233/* end confdefs.h. */
10234#include <$ac_header>
10235_ACEOF
10236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } >/dev/null; then
10244 if test -s conftest.err; then
10245 ac_cpp_err=$ac_c_preproc_warn_flag
10246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10247 else
10248 ac_cpp_err=
10249 fi
5ee754fc 10250else
bec39cab 10251 ac_cpp_err=yes
5ee754fc 10252fi
bec39cab
AC
10253if test -z "$ac_cpp_err"; then
10254 ac_header_preproc=yes
10255else
10256 echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10258
bec39cab 10259 ac_header_preproc=no
5ee754fc 10260fi
bec39cab
AC
10261rm -f conftest.err conftest.$ac_ext
10262echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10263echo "${ECHO_T}$ac_header_preproc" >&6
10264
10265# So? What about this header?
10266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10267 yes:no: )
10268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10269echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10271echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10272 ac_header_preproc=yes
10273 ;;
10274 no:yes:* )
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10276echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10278echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10280echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10282echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10284echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10286echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10287 (
10288 cat <<\_ASBOX
10289## ------------------------------------------ ##
10290## Report this to the AC_PACKAGE_NAME lists. ##
10291## ------------------------------------------ ##
10292_ASBOX
10293 ) |
10294 sed "s/^/$as_me: WARNING: /" >&2
10295 ;;
10296esac
10297echo "$as_me:$LINENO: checking for $ac_header" >&5
10298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10299if eval "test \"\${$as_ac_Header+set}\" = set"; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10301else
bec39cab 10302 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10303fi
bec39cab
AC
10304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10306
5ee754fc 10307fi
bec39cab
AC
10308if test `eval echo '${'$as_ac_Header'}'` = yes; then
10309 cat >>confdefs.h <<_ACEOF
10310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10311_ACEOF
c906108c 10312
5ee754fc 10313fi
bec39cab
AC
10314
10315done
10316
10317
10318for ac_header in sys/file.h
10319do
10320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10321if eval "test \"\${$as_ac_Header+set}\" = set"; then
10322 echo "$as_me:$LINENO: checking for $ac_header" >&5
10323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10324if eval "test \"\${$as_ac_Header+set}\" = set"; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326fi
10327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10329else
10330 # Is the header compilable?
10331echo "$as_me:$LINENO: checking $ac_header usability" >&5
10332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10333cat >conftest.$ac_ext <<_ACEOF
10334/* confdefs.h. */
10335_ACEOF
10336cat confdefs.h >>conftest.$ac_ext
10337cat >>conftest.$ac_ext <<_ACEOF
10338/* end confdefs.h. */
10339$ac_includes_default
10340#include <$ac_header>
10341_ACEOF
10342rm -f conftest.$ac_objext
10343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest.$ac_objext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 ac_header_compiler=yes
10365else
10366 echo "$as_me: failed program was:" >&5
10367sed 's/^/| /' conftest.$ac_ext >&5
10368
10369ac_header_compiler=no
10370fi
10371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10372echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10373echo "${ECHO_T}$ac_header_compiler" >&6
10374
10375# Is the header present?
10376echo "$as_me:$LINENO: checking $ac_header presence" >&5
10377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10378cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h. */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h. */
10384#include <$ac_header>
10385_ACEOF
10386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10388 ac_status=$?
10389 grep -v '^ *+' conftest.er1 >conftest.err
10390 rm -f conftest.er1
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } >/dev/null; then
10394 if test -s conftest.err; then
10395 ac_cpp_err=$ac_c_preproc_warn_flag
10396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10397 else
10398 ac_cpp_err=
10399 fi
5ee754fc 10400else
bec39cab 10401 ac_cpp_err=yes
5ee754fc 10402fi
bec39cab
AC
10403if test -z "$ac_cpp_err"; then
10404 ac_header_preproc=yes
10405else
10406 echo "$as_me: failed program was:" >&5
10407sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10408
bec39cab 10409 ac_header_preproc=no
5ee754fc 10410fi
bec39cab
AC
10411rm -f conftest.err conftest.$ac_ext
10412echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10413echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10414
bec39cab
AC
10415# So? What about this header?
10416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10417 yes:no: )
10418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10422 ac_header_preproc=yes
10423 ;;
10424 no:yes:* )
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10432echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10437 (
10438 cat <<\_ASBOX
10439## ------------------------------------------ ##
10440## Report this to the AC_PACKAGE_NAME lists. ##
10441## ------------------------------------------ ##
10442_ASBOX
10443 ) |
10444 sed "s/^/$as_me: WARNING: /" >&2
10445 ;;
10446esac
10447echo "$as_me:$LINENO: checking for $ac_header" >&5
10448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10449if eval "test \"\${$as_ac_Header+set}\" = set"; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10451else
bec39cab
AC
10452 eval "$as_ac_Header=\$ac_header_preproc"
10453fi
10454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10456
bec39cab
AC
10457fi
10458if test `eval echo '${'$as_ac_Header'}'` = yes; then
10459 cat >>confdefs.h <<_ACEOF
10460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10461_ACEOF
5ee754fc 10462
bec39cab 10463fi
5ee754fc 10464
bec39cab 10465done
5ee754fc 10466
5ee754fc 10467
bec39cab
AC
10468for ac_header in sys/filio.h
10469do
10470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10471if eval "test \"\${$as_ac_Header+set}\" = set"; then
10472 echo "$as_me:$LINENO: checking for $ac_header" >&5
10473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10474if eval "test \"\${$as_ac_Header+set}\" = set"; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10476fi
10477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10479else
10480 # Is the header compilable?
10481echo "$as_me:$LINENO: checking $ac_header usability" >&5
10482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10483cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h. */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h. */
10489$ac_includes_default
10490#include <$ac_header>
10491_ACEOF
10492rm -f conftest.$ac_objext
10493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10494 (eval $ac_compile) 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_c_werror_flag"
10502 || test ! -s conftest.err'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; } &&
10508 { ac_try='test -s conftest.$ac_objext'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 ac_header_compiler=yes
10515else
10516 echo "$as_me: failed program was:" >&5
10517sed 's/^/| /' conftest.$ac_ext >&5
10518
10519ac_header_compiler=no
10520fi
10521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10522echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10523echo "${ECHO_T}$ac_header_compiler" >&6
10524
10525# Is the header present?
10526echo "$as_me:$LINENO: checking $ac_header presence" >&5
10527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10528cat >conftest.$ac_ext <<_ACEOF
10529/* confdefs.h. */
10530_ACEOF
10531cat confdefs.h >>conftest.$ac_ext
10532cat >>conftest.$ac_ext <<_ACEOF
10533/* end confdefs.h. */
10534#include <$ac_header>
10535_ACEOF
10536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } >/dev/null; then
10544 if test -s conftest.err; then
10545 ac_cpp_err=$ac_c_preproc_warn_flag
10546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10547 else
10548 ac_cpp_err=
10549 fi
5ee754fc 10550else
bec39cab 10551 ac_cpp_err=yes
5ee754fc 10552fi
bec39cab
AC
10553if test -z "$ac_cpp_err"; then
10554 ac_header_preproc=yes
10555else
10556 echo "$as_me: failed program was:" >&5
10557sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10558
bec39cab 10559 ac_header_preproc=no
5ee754fc 10560fi
bec39cab
AC
10561rm -f conftest.err conftest.$ac_ext
10562echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10563echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10564
bec39cab
AC
10565# So? What about this header?
10566case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10567 yes:no: )
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10572 ac_header_preproc=yes
10573 ;;
10574 no:yes:* )
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10587 (
10588 cat <<\_ASBOX
10589## ------------------------------------------ ##
10590## Report this to the AC_PACKAGE_NAME lists. ##
10591## ------------------------------------------ ##
10592_ASBOX
10593 ) |
10594 sed "s/^/$as_me: WARNING: /" >&2
10595 ;;
10596esac
10597echo "$as_me:$LINENO: checking for $ac_header" >&5
10598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10599if eval "test \"\${$as_ac_Header+set}\" = set"; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10601else
bec39cab 10602 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10603fi
bec39cab
AC
10604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10606
5ee754fc 10607fi
bec39cab
AC
10608if test `eval echo '${'$as_ac_Header'}'` = yes; then
10609 cat >>confdefs.h <<_ACEOF
10610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10611_ACEOF
5ee754fc
MK
10612
10613fi
10614
bec39cab
AC
10615done
10616
10617
10618for ac_header in sys/ioctl.h
10619do
10620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10621if eval "test \"\${$as_ac_Header+set}\" = set"; then
10622 echo "$as_me:$LINENO: checking for $ac_header" >&5
10623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10624if eval "test \"\${$as_ac_Header+set}\" = set"; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626fi
10627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10629else
10630 # Is the header compilable?
10631echo "$as_me:$LINENO: checking $ac_header usability" >&5
10632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10633cat >conftest.$ac_ext <<_ACEOF
10634/* confdefs.h. */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h. */
10639$ac_includes_default
10640#include <$ac_header>
10641_ACEOF
10642rm -f conftest.$ac_objext
10643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10644 (eval $ac_compile) 2>conftest.er1
10645 ac_status=$?
10646 grep -v '^ *+' conftest.er1 >conftest.err
10647 rm -f conftest.er1
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
10651 { ac_try='test -z "$ac_c_werror_flag"
10652 || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest.$ac_objext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_header_compiler=yes
10665else
10666 echo "$as_me: failed program was:" >&5
10667sed 's/^/| /' conftest.$ac_ext >&5
10668
10669ac_header_compiler=no
10670fi
10671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10672echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10673echo "${ECHO_T}$ac_header_compiler" >&6
10674
10675# Is the header present?
10676echo "$as_me:$LINENO: checking $ac_header presence" >&5
10677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10678cat >conftest.$ac_ext <<_ACEOF
10679/* confdefs.h. */
10680_ACEOF
10681cat confdefs.h >>conftest.$ac_ext
10682cat >>conftest.$ac_ext <<_ACEOF
10683/* end confdefs.h. */
10684#include <$ac_header>
10685_ACEOF
10686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10688 ac_status=$?
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } >/dev/null; then
10694 if test -s conftest.err; then
10695 ac_cpp_err=$ac_c_preproc_warn_flag
10696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10697 else
10698 ac_cpp_err=
10699 fi
5ee754fc 10700else
bec39cab 10701 ac_cpp_err=yes
5ee754fc 10702fi
bec39cab
AC
10703if test -z "$ac_cpp_err"; then
10704 ac_header_preproc=yes
10705else
10706 echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10708
bec39cab 10709 ac_header_preproc=no
5ee754fc 10710fi
bec39cab
AC
10711rm -f conftest.err conftest.$ac_ext
10712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10713echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10714
bec39cab
AC
10715# So? What about this header?
10716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10717 yes:no: )
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10722 ac_header_preproc=yes
10723 ;;
10724 no:yes:* )
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10732echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10737 (
10738 cat <<\_ASBOX
10739## ------------------------------------------ ##
10740## Report this to the AC_PACKAGE_NAME lists. ##
10741## ------------------------------------------ ##
10742_ASBOX
10743 ) |
10744 sed "s/^/$as_me: WARNING: /" >&2
10745 ;;
10746esac
10747echo "$as_me:$LINENO: checking for $ac_header" >&5
10748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10749if eval "test \"\${$as_ac_Header+set}\" = set"; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10751else
bec39cab 10752 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10753fi
bec39cab
AC
10754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10756
10757fi
bec39cab
AC
10758if test `eval echo '${'$as_ac_Header'}'` = yes; then
10759 cat >>confdefs.h <<_ACEOF
10760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10761_ACEOF
10762
5ee754fc
MK
10763fi
10764
bec39cab 10765done
5ee754fc 10766
5ee754fc 10767
bec39cab 10768for ac_header in sys/param.h
5ee754fc 10769do
bec39cab
AC
10770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10771if eval "test \"\${$as_ac_Header+set}\" = set"; then
10772 echo "$as_me:$LINENO: checking for $ac_header" >&5
10773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10774if eval "test \"\${$as_ac_Header+set}\" = set"; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776fi
10777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10779else
10780 # Is the header compilable?
10781echo "$as_me:$LINENO: checking $ac_header usability" >&5
10782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10783cat >conftest.$ac_ext <<_ACEOF
10784/* confdefs.h. */
10785_ACEOF
10786cat confdefs.h >>conftest.$ac_ext
10787cat >>conftest.$ac_ext <<_ACEOF
10788/* end confdefs.h. */
10789$ac_includes_default
10790#include <$ac_header>
10791_ACEOF
10792rm -f conftest.$ac_objext
10793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794 (eval $ac_compile) 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_c_werror_flag"
10802 || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_header_compiler=yes
10815else
10816 echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
10819ac_header_compiler=no
10820fi
10821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10823echo "${ECHO_T}$ac_header_compiler" >&6
10824
10825# Is the header present?
10826echo "$as_me:$LINENO: checking $ac_header presence" >&5
10827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10828cat >conftest.$ac_ext <<_ACEOF
10829/* confdefs.h. */
10830_ACEOF
10831cat confdefs.h >>conftest.$ac_ext
10832cat >>conftest.$ac_ext <<_ACEOF
10833/* end confdefs.h. */
10834#include <$ac_header>
10835_ACEOF
10836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } >/dev/null; then
10844 if test -s conftest.err; then
10845 ac_cpp_err=$ac_c_preproc_warn_flag
10846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10847 else
10848 ac_cpp_err=
10849 fi
5ee754fc 10850else
bec39cab 10851 ac_cpp_err=yes
5ee754fc 10852fi
bec39cab
AC
10853if test -z "$ac_cpp_err"; then
10854 ac_header_preproc=yes
10855else
10856 echo "$as_me: failed program was:" >&5
10857sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10858
bec39cab 10859 ac_header_preproc=no
5ee754fc 10860fi
bec39cab
AC
10861rm -f conftest.err conftest.$ac_ext
10862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10863echo "${ECHO_T}$ac_header_preproc" >&6
10864
10865# So? What about this header?
10866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10867 yes:no: )
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10871echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10872 ac_header_preproc=yes
10873 ;;
10874 no:yes:* )
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10876echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10878echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10880echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10882echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10886echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10887 (
10888 cat <<\_ASBOX
10889## ------------------------------------------ ##
10890## Report this to the AC_PACKAGE_NAME lists. ##
10891## ------------------------------------------ ##
10892_ASBOX
10893 ) |
10894 sed "s/^/$as_me: WARNING: /" >&2
10895 ;;
10896esac
10897echo "$as_me:$LINENO: checking for $ac_header" >&5
10898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10899if eval "test \"\${$as_ac_Header+set}\" = set"; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10901else
bec39cab 10902 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10903fi
bec39cab
AC
10904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10906
5ee754fc 10907fi
bec39cab
AC
10908if test `eval echo '${'$as_ac_Header'}'` = yes; then
10909 cat >>confdefs.h <<_ACEOF
10910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10911_ACEOF
10912
5ee754fc 10913fi
bec39cab 10914
5ee754fc
MK
10915done
10916
bec39cab
AC
10917
10918for ac_header in sys/proc.h
5ee754fc 10919do
bec39cab 10920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 10921echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
10922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10923if eval "test \"\${$as_ac_Header+set}\" = set"; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10925else
7cb9022a 10926 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
7cb9022a
MK
10932#if HAVE_SYS_PARAM_H
10933# include <sys/param.h>
10934#endif
10935
10936
bec39cab
AC
10937#include <$ac_header>
10938_ACEOF
10939rm -f conftest.$ac_objext
10940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941 (eval $ac_compile) 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag"
10949 || test ! -s conftest.err'
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
7cb9022a 10961 eval "$as_ac_Header=yes"
bec39cab
AC
10962else
10963 echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
7cb9022a 10966eval "$as_ac_Header=no"
bec39cab
AC
10967fi
10968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10969fi
bec39cab
AC
10970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10972if test `eval echo '${'$as_ac_Header'}'` = yes; then
10973 cat >>confdefs.h <<_ACEOF
10974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10975_ACEOF
10976
5ee754fc 10977fi
bec39cab 10978
5ee754fc
MK
10979done
10980
bec39cab
AC
10981
10982for ac_header in sys/procfs.h
5ee754fc 10983do
bec39cab
AC
10984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10985if eval "test \"\${$as_ac_Header+set}\" = set"; then
10986 echo "$as_me:$LINENO: checking for $ac_header" >&5
10987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10988if eval "test \"\${$as_ac_Header+set}\" = set"; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990fi
10991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10993else
10994 # Is the header compilable?
10995echo "$as_me:$LINENO: checking $ac_header usability" >&5
10996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10997cat >conftest.$ac_ext <<_ACEOF
10998/* confdefs.h. */
10999_ACEOF
11000cat confdefs.h >>conftest.$ac_ext
11001cat >>conftest.$ac_ext <<_ACEOF
11002/* end confdefs.h. */
11003$ac_includes_default
11004#include <$ac_header>
11005_ACEOF
11006rm -f conftest.$ac_objext
11007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag"
11016 || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest.$ac_objext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 ac_header_compiler=yes
11029else
11030 echo "$as_me: failed program was:" >&5
11031sed 's/^/| /' conftest.$ac_ext >&5
11032
11033ac_header_compiler=no
11034fi
11035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11037echo "${ECHO_T}$ac_header_compiler" >&6
11038
11039# Is the header present?
11040echo "$as_me:$LINENO: checking $ac_header presence" >&5
11041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11042cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048#include <$ac_header>
11049_ACEOF
11050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null; then
11058 if test -s conftest.err; then
11059 ac_cpp_err=$ac_c_preproc_warn_flag
11060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11061 else
11062 ac_cpp_err=
11063 fi
11064else
11065 ac_cpp_err=yes
5ee754fc 11066fi
bec39cab
AC
11067if test -z "$ac_cpp_err"; then
11068 ac_header_preproc=yes
5ee754fc 11069else
bec39cab
AC
11070 echo "$as_me: failed program was:" >&5
11071sed 's/^/| /' conftest.$ac_ext >&5
11072
11073 ac_header_preproc=no
5ee754fc 11074fi
bec39cab
AC
11075rm -f conftest.err conftest.$ac_ext
11076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11077echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11078
bec39cab
AC
11079# So? What about this header?
11080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11081 yes:no: )
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11086 ac_header_preproc=yes
11087 ;;
11088 no:yes:* )
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11101 (
11102 cat <<\_ASBOX
11103## ------------------------------------------ ##
11104## Report this to the AC_PACKAGE_NAME lists. ##
11105## ------------------------------------------ ##
11106_ASBOX
11107 ) |
11108 sed "s/^/$as_me: WARNING: /" >&2
11109 ;;
11110esac
11111echo "$as_me:$LINENO: checking for $ac_header" >&5
11112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11113if eval "test \"\${$as_ac_Header+set}\" = set"; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115else
11116 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11117fi
bec39cab
AC
11118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11120
5ee754fc 11121fi
bec39cab
AC
11122if test `eval echo '${'$as_ac_Header'}'` = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11125_ACEOF
11126
5ee754fc 11127fi
bec39cab 11128
5ee754fc
MK
11129done
11130
bec39cab
AC
11131
11132
11133for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11134do
bec39cab
AC
11135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11136if eval "test \"\${$as_ac_Header+set}\" = set"; then
11137 echo "$as_me:$LINENO: checking for $ac_header" >&5
11138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11139if eval "test \"\${$as_ac_Header+set}\" = set"; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141fi
11142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11144else
11145 # Is the header compilable?
11146echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11148cat >conftest.$ac_ext <<_ACEOF
11149/* confdefs.h. */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h. */
11154$ac_includes_default
11155#include <$ac_header>
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -z "$ac_c_werror_flag"
11167 || test ! -s conftest.err'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest.$ac_objext'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_header_compiler=yes
11180else
11181 echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184ac_header_compiler=no
11185fi
11186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11187echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11188echo "${ECHO_T}$ac_header_compiler" >&6
11189
11190# Is the header present?
11191echo "$as_me:$LINENO: checking $ac_header presence" >&5
11192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11193cat >conftest.$ac_ext <<_ACEOF
11194/* confdefs.h. */
11195_ACEOF
11196cat confdefs.h >>conftest.$ac_ext
11197cat >>conftest.$ac_ext <<_ACEOF
11198/* end confdefs.h. */
11199#include <$ac_header>
11200_ACEOF
11201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } >/dev/null; then
11209 if test -s conftest.err; then
11210 ac_cpp_err=$ac_c_preproc_warn_flag
11211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11212 else
11213 ac_cpp_err=
11214 fi
11215else
11216 ac_cpp_err=yes
5ee754fc 11217fi
bec39cab
AC
11218if test -z "$ac_cpp_err"; then
11219 ac_header_preproc=yes
5ee754fc 11220else
bec39cab
AC
11221 echo "$as_me: failed program was:" >&5
11222sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 ac_header_preproc=no
5ee754fc 11225fi
bec39cab
AC
11226rm -f conftest.err conftest.$ac_ext
11227echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11228echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11229
bec39cab
AC
11230# So? What about this header?
11231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11232 yes:no: )
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11234echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11236echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11237 ac_header_preproc=yes
11238 ;;
11239 no:yes:* )
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11241echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11243echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11245echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11247echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11251echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11252 (
11253 cat <<\_ASBOX
11254## ------------------------------------------ ##
11255## Report this to the AC_PACKAGE_NAME lists. ##
11256## ------------------------------------------ ##
11257_ASBOX
11258 ) |
11259 sed "s/^/$as_me: WARNING: /" >&2
11260 ;;
11261esac
11262echo "$as_me:$LINENO: checking for $ac_header" >&5
11263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11264if eval "test \"\${$as_ac_Header+set}\" = set"; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11268fi
bec39cab
AC
11269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11271
5ee754fc 11272fi
bec39cab
AC
11273if test `eval echo '${'$as_ac_Header'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11276_ACEOF
11277
5ee754fc 11278fi
bec39cab 11279
5ee754fc
MK
11280done
11281
bec39cab
AC
11282
11283
11284for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11285do
bec39cab
AC
11286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287if eval "test \"\${$as_ac_Header+set}\" = set"; then
11288 echo "$as_me:$LINENO: checking for $ac_header" >&5
11289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11290if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292fi
11293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11295else
11296 # Is the header compilable?
11297echo "$as_me:$LINENO: checking $ac_header usability" >&5
11298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11299cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
11305$ac_includes_default
11306#include <$ac_header>
11307_ACEOF
11308rm -f conftest.$ac_objext
11309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11310 (eval $ac_compile) 2>conftest.er1
11311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
11317 { ac_try='test -z "$ac_c_werror_flag"
11318 || test ! -s conftest.err'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; } &&
11324 { ac_try='test -s conftest.$ac_objext'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; }; then
11330 ac_header_compiler=yes
11331else
11332 echo "$as_me: failed program was:" >&5
11333sed 's/^/| /' conftest.$ac_ext >&5
11334
11335ac_header_compiler=no
11336fi
11337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11339echo "${ECHO_T}$ac_header_compiler" >&6
11340
11341# Is the header present?
11342echo "$as_me:$LINENO: checking $ac_header presence" >&5
11343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11344cat >conftest.$ac_ext <<_ACEOF
11345/* confdefs.h. */
11346_ACEOF
11347cat confdefs.h >>conftest.$ac_ext
11348cat >>conftest.$ac_ext <<_ACEOF
11349/* end confdefs.h. */
11350#include <$ac_header>
11351_ACEOF
11352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } >/dev/null; then
11360 if test -s conftest.err; then
11361 ac_cpp_err=$ac_c_preproc_warn_flag
11362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11363 else
11364 ac_cpp_err=
11365 fi
11366else
11367 ac_cpp_err=yes
5ee754fc 11368fi
bec39cab
AC
11369if test -z "$ac_cpp_err"; then
11370 ac_header_preproc=yes
5ee754fc 11371else
bec39cab
AC
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_header_preproc=no
5ee754fc 11376fi
bec39cab
AC
11377rm -f conftest.err conftest.$ac_ext
11378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11379echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11380
bec39cab
AC
11381# So? What about this header?
11382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 yes:no: )
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11387echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11388 ac_header_preproc=yes
11389 ;;
11390 no:yes:* )
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11394echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11396echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11398echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11402echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403 (
11404 cat <<\_ASBOX
11405## ------------------------------------------ ##
11406## Report this to the AC_PACKAGE_NAME lists. ##
11407## ------------------------------------------ ##
11408_ASBOX
11409 ) |
11410 sed "s/^/$as_me: WARNING: /" >&2
11411 ;;
11412esac
11413echo "$as_me:$LINENO: checking for $ac_header" >&5
11414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11415if eval "test \"\${$as_ac_Header+set}\" = set"; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11417else
11418 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11419fi
bec39cab
AC
11420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11422
5ee754fc 11423fi
bec39cab
AC
11424if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427_ACEOF
11428
5ee754fc 11429fi
bec39cab 11430
5ee754fc
MK
11431done
11432
bec39cab
AC
11433
11434for ac_header in sys/select.h
5ee754fc 11435do
bec39cab
AC
11436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11437if eval "test \"\${$as_ac_Header+set}\" = set"; then
11438 echo "$as_me:$LINENO: checking for $ac_header" >&5
11439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11440if eval "test \"\${$as_ac_Header+set}\" = set"; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442fi
11443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11445else
11446 # Is the header compilable?
11447echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11449cat >conftest.$ac_ext <<_ACEOF
11450/* confdefs.h. */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h. */
11455$ac_includes_default
11456#include <$ac_header>
11457_ACEOF
11458rm -f conftest.$ac_objext
11459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460 (eval $ac_compile) 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } &&
11467 { ac_try='test -z "$ac_c_werror_flag"
11468 || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_header_compiler=yes
11481else
11482 echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
11485ac_header_compiler=no
11486fi
11487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11489echo "${ECHO_T}$ac_header_compiler" >&6
11490
11491# Is the header present?
11492echo "$as_me:$LINENO: checking $ac_header presence" >&5
11493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11494cat >conftest.$ac_ext <<_ACEOF
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
11500#include <$ac_header>
11501_ACEOF
11502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11504 ac_status=$?
11505 grep -v '^ *+' conftest.er1 >conftest.err
11506 rm -f conftest.er1
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } >/dev/null; then
11510 if test -s conftest.err; then
11511 ac_cpp_err=$ac_c_preproc_warn_flag
11512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11513 else
11514 ac_cpp_err=
11515 fi
11516else
11517 ac_cpp_err=yes
5ee754fc 11518fi
bec39cab
AC
11519if test -z "$ac_cpp_err"; then
11520 ac_header_preproc=yes
5ee754fc 11521else
bec39cab
AC
11522 echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 ac_header_preproc=no
5ee754fc 11526fi
bec39cab
AC
11527rm -f conftest.err conftest.$ac_ext
11528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11529echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11530
bec39cab
AC
11531# So? What about this header?
11532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11533 yes:no: )
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11538 ac_header_preproc=yes
11539 ;;
11540 no:yes:* )
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11544echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11548echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11553 (
11554 cat <<\_ASBOX
11555## ------------------------------------------ ##
11556## Report this to the AC_PACKAGE_NAME lists. ##
11557## ------------------------------------------ ##
11558_ASBOX
11559 ) |
11560 sed "s/^/$as_me: WARNING: /" >&2
11561 ;;
11562esac
11563echo "$as_me:$LINENO: checking for $ac_header" >&5
11564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11565if eval "test \"\${$as_ac_Header+set}\" = set"; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11569fi
bec39cab
AC
11570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11572
5ee754fc 11573fi
bec39cab
AC
11574if test `eval echo '${'$as_ac_Header'}'` = yes; then
11575 cat >>confdefs.h <<_ACEOF
11576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11577_ACEOF
11578
5ee754fc 11579fi
bec39cab 11580
5ee754fc
MK
11581done
11582
bec39cab
AC
11583
11584for ac_header in sys/syscall.h
5ee754fc 11585do
bec39cab
AC
11586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11587if eval "test \"\${$as_ac_Header+set}\" = set"; then
11588 echo "$as_me:$LINENO: checking for $ac_header" >&5
11589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11590if eval "test \"\${$as_ac_Header+set}\" = set"; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592fi
11593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11595else
11596 # Is the header compilable?
11597echo "$as_me:$LINENO: checking $ac_header usability" >&5
11598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11599cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
11605$ac_includes_default
11606#include <$ac_header>
11607_ACEOF
11608rm -f conftest.$ac_objext
11609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11610 (eval $ac_compile) 2>conftest.er1
11611 ac_status=$?
11612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try='test -z "$ac_c_werror_flag"
11618 || test ! -s conftest.err'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; } &&
11624 { ac_try='test -s conftest.$ac_objext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 ac_header_compiler=yes
11631else
11632 echo "$as_me: failed program was:" >&5
11633sed 's/^/| /' conftest.$ac_ext >&5
11634
11635ac_header_compiler=no
11636fi
11637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11639echo "${ECHO_T}$ac_header_compiler" >&6
11640
11641# Is the header present?
11642echo "$as_me:$LINENO: checking $ac_header presence" >&5
11643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11644cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
11650#include <$ac_header>
11651_ACEOF
11652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } >/dev/null; then
11660 if test -s conftest.err; then
11661 ac_cpp_err=$ac_c_preproc_warn_flag
11662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11663 else
11664 ac_cpp_err=
11665 fi
11666else
11667 ac_cpp_err=yes
5ee754fc 11668fi
bec39cab
AC
11669if test -z "$ac_cpp_err"; then
11670 ac_header_preproc=yes
5ee754fc 11671else
bec39cab
AC
11672 echo "$as_me: failed program was:" >&5
11673sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 ac_header_preproc=no
5ee754fc 11676fi
bec39cab
AC
11677rm -f conftest.err conftest.$ac_ext
11678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11679echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11680
bec39cab
AC
11681# So? What about this header?
11682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11683 yes:no: )
11684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11685echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11687echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11688 ac_header_preproc=yes
11689 ;;
11690 no:yes:* )
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11692echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11694echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11696echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11698echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11700echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11702echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11703 (
11704 cat <<\_ASBOX
11705## ------------------------------------------ ##
11706## Report this to the AC_PACKAGE_NAME lists. ##
11707## ------------------------------------------ ##
11708_ASBOX
11709 ) |
11710 sed "s/^/$as_me: WARNING: /" >&2
11711 ;;
11712esac
11713echo "$as_me:$LINENO: checking for $ac_header" >&5
11714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11715if eval "test \"\${$as_ac_Header+set}\" = set"; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11719fi
bec39cab
AC
11720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11722
5ee754fc 11723fi
bec39cab
AC
11724if test `eval echo '${'$as_ac_Header'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11727_ACEOF
11728
5ee754fc 11729fi
bec39cab 11730
5ee754fc
MK
11731done
11732
bec39cab
AC
11733
11734for ac_header in sys/types.h
5ee754fc 11735do
bec39cab
AC
11736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11737if eval "test \"\${$as_ac_Header+set}\" = set"; then
11738 echo "$as_me:$LINENO: checking for $ac_header" >&5
11739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11740if eval "test \"\${$as_ac_Header+set}\" = set"; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742fi
11743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11745else
11746 # Is the header compilable?
11747echo "$as_me:$LINENO: checking $ac_header usability" >&5
11748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11749cat >conftest.$ac_ext <<_ACEOF
11750/* confdefs.h. */
11751_ACEOF
11752cat confdefs.h >>conftest.$ac_ext
11753cat >>conftest.$ac_ext <<_ACEOF
11754/* end confdefs.h. */
11755$ac_includes_default
11756#include <$ac_header>
11757_ACEOF
11758rm -f conftest.$ac_objext
11759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11760 (eval $ac_compile) 2>conftest.er1
11761 ac_status=$?
11762 grep -v '^ *+' conftest.er1 >conftest.err
11763 rm -f conftest.er1
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -z "$ac_c_werror_flag"
11768 || test ! -s conftest.err'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11771 ac_status=$?
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; } &&
11774 { ac_try='test -s conftest.$ac_objext'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; }; then
11780 ac_header_compiler=yes
11781else
11782 echo "$as_me: failed program was:" >&5
11783sed 's/^/| /' conftest.$ac_ext >&5
11784
11785ac_header_compiler=no
11786fi
11787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11788echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11789echo "${ECHO_T}$ac_header_compiler" >&6
11790
11791# Is the header present?
11792echo "$as_me:$LINENO: checking $ac_header presence" >&5
11793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11794cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h. */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h. */
11800#include <$ac_header>
11801_ACEOF
11802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11804 ac_status=$?
11805 grep -v '^ *+' conftest.er1 >conftest.err
11806 rm -f conftest.er1
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } >/dev/null; then
11810 if test -s conftest.err; then
11811 ac_cpp_err=$ac_c_preproc_warn_flag
11812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11813 else
11814 ac_cpp_err=
11815 fi
11816else
11817 ac_cpp_err=yes
5ee754fc 11818fi
bec39cab
AC
11819if test -z "$ac_cpp_err"; then
11820 ac_header_preproc=yes
5ee754fc 11821else
bec39cab
AC
11822 echo "$as_me: failed program was:" >&5
11823sed 's/^/| /' conftest.$ac_ext >&5
11824
11825 ac_header_preproc=no
5ee754fc 11826fi
bec39cab
AC
11827rm -f conftest.err conftest.$ac_ext
11828echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11829echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11830
bec39cab
AC
11831# So? What about this header?
11832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11833 yes:no: )
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11838 ac_header_preproc=yes
11839 ;;
11840 no:yes:* )
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11848echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11853 (
11854 cat <<\_ASBOX
11855## ------------------------------------------ ##
11856## Report this to the AC_PACKAGE_NAME lists. ##
11857## ------------------------------------------ ##
11858_ASBOX
11859 ) |
11860 sed "s/^/$as_me: WARNING: /" >&2
11861 ;;
11862esac
11863echo "$as_me:$LINENO: checking for $ac_header" >&5
11864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11865if eval "test \"\${$as_ac_Header+set}\" = set"; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867else
11868 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11869fi
bec39cab
AC
11870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11872
5ee754fc 11873fi
bec39cab
AC
11874if test `eval echo '${'$as_ac_Header'}'` = yes; then
11875 cat >>confdefs.h <<_ACEOF
11876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11877_ACEOF
11878
5ee754fc 11879fi
bec39cab 11880
5ee754fc
MK
11881done
11882
bec39cab
AC
11883
11884for ac_header in sys/user.h
5ee754fc 11885do
bec39cab 11886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11887echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11889if eval "test \"\${$as_ac_Header+set}\" = set"; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11891else
7cb9022a 11892 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
7cb9022a
MK
11898#if HAVE_SYS_PARAM_H
11899# include <sys/param.h>
11900#endif
11901
11902
bec39cab
AC
11903#include <$ac_header>
11904_ACEOF
11905rm -f conftest.$ac_objext
11906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11907 (eval $ac_compile) 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } &&
11914 { ac_try='test -z "$ac_c_werror_flag"
11915 || test ! -s conftest.err'
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); }; } &&
11921 { ac_try='test -s conftest.$ac_objext'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
7cb9022a 11927 eval "$as_ac_Header=yes"
bec39cab
AC
11928else
11929 echo "$as_me: failed program was:" >&5
11930sed 's/^/| /' conftest.$ac_ext >&5
11931
7cb9022a 11932eval "$as_ac_Header=no"
bec39cab
AC
11933fi
11934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11935fi
bec39cab
AC
11936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11938if test `eval echo '${'$as_ac_Header'}'` = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11941_ACEOF
11942
5ee754fc 11943fi
bec39cab 11944
5ee754fc
MK
11945done
11946
bec39cab
AC
11947
11948
11949for ac_header in sys/wait.h wait.h
5ee754fc 11950do
bec39cab
AC
11951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11952if eval "test \"\${$as_ac_Header+set}\" = set"; then
11953 echo "$as_me:$LINENO: checking for $ac_header" >&5
11954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11955if eval "test \"\${$as_ac_Header+set}\" = set"; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957fi
11958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11960else
11961 # Is the header compilable?
11962echo "$as_me:$LINENO: checking $ac_header usability" >&5
11963echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11964cat >conftest.$ac_ext <<_ACEOF
11965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
11970$ac_includes_default
11971#include <$ac_header>
11972_ACEOF
11973rm -f conftest.$ac_objext
11974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11975 (eval $ac_compile) 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag"
11983 || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_header_compiler=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000ac_header_compiler=no
12001fi
12002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12004echo "${ECHO_T}$ac_header_compiler" >&6
12005
12006# Is the header present?
12007echo "$as_me:$LINENO: checking $ac_header presence" >&5
12008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12009cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h. */
12015#include <$ac_header>
12016_ACEOF
12017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } >/dev/null; then
12025 if test -s conftest.err; then
12026 ac_cpp_err=$ac_c_preproc_warn_flag
12027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12028 else
12029 ac_cpp_err=
12030 fi
12031else
12032 ac_cpp_err=yes
5ee754fc 12033fi
bec39cab
AC
12034if test -z "$ac_cpp_err"; then
12035 ac_header_preproc=yes
5ee754fc 12036else
bec39cab
AC
12037 echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_header_preproc=no
5ee754fc 12041fi
bec39cab
AC
12042rm -f conftest.err conftest.$ac_ext
12043echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12044echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 12045
bec39cab
AC
12046# So? What about this header?
12047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12048 yes:no: )
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12053 ac_header_preproc=yes
12054 ;;
12055 no:yes:* )
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12068 (
12069 cat <<\_ASBOX
12070## ------------------------------------------ ##
12071## Report this to the AC_PACKAGE_NAME lists. ##
12072## ------------------------------------------ ##
12073_ASBOX
12074 ) |
12075 sed "s/^/$as_me: WARNING: /" >&2
12076 ;;
12077esac
12078echo "$as_me:$LINENO: checking for $ac_header" >&5
12079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12080if eval "test \"\${$as_ac_Header+set}\" = set"; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082else
12083 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12084fi
bec39cab
AC
12085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12087
9608ab8b 12088fi
bec39cab
AC
12089if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090 cat >>confdefs.h <<_ACEOF
12091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092_ACEOF
12093
9608ab8b 12094fi
bec39cab 12095
9608ab8b 12096done
5ee754fc 12097
bec39cab
AC
12098
12099
12100
12101for ac_header in termios.h termio.h sgtty.h
5ee754fc 12102do
bec39cab
AC
12103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12104if eval "test \"\${$as_ac_Header+set}\" = set"; then
12105 echo "$as_me:$LINENO: checking for $ac_header" >&5
12106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12107if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109fi
12110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12112else
12113 # Is the header compilable?
12114echo "$as_me:$LINENO: checking $ac_header usability" >&5
12115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12116cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
12122$ac_includes_default
12123#include <$ac_header>
12124_ACEOF
12125rm -f conftest.$ac_objext
12126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127 (eval $ac_compile) 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_c_werror_flag"
12135 || test ! -s conftest.err'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_header_compiler=yes
12148else
12149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
12152ac_header_compiler=no
12153fi
12154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12155echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12156echo "${ECHO_T}$ac_header_compiler" >&6
12157
12158# Is the header present?
12159echo "$as_me:$LINENO: checking $ac_header presence" >&5
12160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12161cat >conftest.$ac_ext <<_ACEOF
12162/* confdefs.h. */
12163_ACEOF
12164cat confdefs.h >>conftest.$ac_ext
12165cat >>conftest.$ac_ext <<_ACEOF
12166/* end confdefs.h. */
12167#include <$ac_header>
12168_ACEOF
12169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } >/dev/null; then
12177 if test -s conftest.err; then
12178 ac_cpp_err=$ac_c_preproc_warn_flag
12179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12180 else
12181 ac_cpp_err=
12182 fi
12183else
12184 ac_cpp_err=yes
9608ab8b 12185fi
bec39cab
AC
12186if test -z "$ac_cpp_err"; then
12187 ac_header_preproc=yes
9608ab8b 12188else
bec39cab
AC
12189 echo "$as_me: failed program was:" >&5
12190sed 's/^/| /' conftest.$ac_ext >&5
12191
12192 ac_header_preproc=no
9608ab8b 12193fi
bec39cab
AC
12194rm -f conftest.err conftest.$ac_ext
12195echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12196echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12197
bec39cab
AC
12198# So? What about this header?
12199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12200 yes:no: )
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12205 ac_header_preproc=yes
12206 ;;
12207 no:yes:* )
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12215echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12220 (
12221 cat <<\_ASBOX
12222## ------------------------------------------ ##
12223## Report this to the AC_PACKAGE_NAME lists. ##
12224## ------------------------------------------ ##
12225_ASBOX
12226 ) |
12227 sed "s/^/$as_me: WARNING: /" >&2
12228 ;;
12229esac
12230echo "$as_me:$LINENO: checking for $ac_header" >&5
12231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12232if eval "test \"\${$as_ac_Header+set}\" = set"; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234else
12235 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12236fi
bec39cab
AC
12237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12239
9608ab8b 12240fi
bec39cab
AC
12241if test `eval echo '${'$as_ac_Header'}'` = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12244_ACEOF
12245
9608ab8b 12246fi
bec39cab 12247
5ee754fc 12248done
9608ab8b 12249
bec39cab
AC
12250
12251for ac_header in unistd.h
78434e59 12252do
bec39cab
AC
12253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12254if eval "test \"\${$as_ac_Header+set}\" = set"; then
12255 echo "$as_me:$LINENO: checking for $ac_header" >&5
12256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12257if eval "test \"\${$as_ac_Header+set}\" = set"; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12259fi
12260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12262else
12263 # Is the header compilable?
12264echo "$as_me:$LINENO: checking $ac_header usability" >&5
12265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12266cat >conftest.$ac_ext <<_ACEOF
12267/* confdefs.h. */
12268_ACEOF
12269cat confdefs.h >>conftest.$ac_ext
12270cat >>conftest.$ac_ext <<_ACEOF
12271/* end confdefs.h. */
12272$ac_includes_default
12273#include <$ac_header>
12274_ACEOF
12275rm -f conftest.$ac_objext
12276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag"
12285 || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_header_compiler=yes
12298else
12299 echo "$as_me: failed program was:" >&5
12300sed 's/^/| /' conftest.$ac_ext >&5
12301
12302ac_header_compiler=no
12303fi
12304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12305echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12306echo "${ECHO_T}$ac_header_compiler" >&6
12307
12308# Is the header present?
12309echo "$as_me:$LINENO: checking $ac_header presence" >&5
12310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12311cat >conftest.$ac_ext <<_ACEOF
12312/* confdefs.h. */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h. */
12317#include <$ac_header>
12318_ACEOF
12319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } >/dev/null; then
12327 if test -s conftest.err; then
12328 ac_cpp_err=$ac_c_preproc_warn_flag
12329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12330 else
12331 ac_cpp_err=
12332 fi
12333else
12334 ac_cpp_err=yes
78434e59 12335fi
bec39cab
AC
12336if test -z "$ac_cpp_err"; then
12337 ac_header_preproc=yes
78434e59 12338else
bec39cab
AC
12339 echo "$as_me: failed program was:" >&5
12340sed 's/^/| /' conftest.$ac_ext >&5
12341
12342 ac_header_preproc=no
78434e59 12343fi
bec39cab
AC
12344rm -f conftest.err conftest.$ac_ext
12345echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12346echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12347
bec39cab
AC
12348# So? What about this header?
12349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12350 yes:no: )
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12355 ac_header_preproc=yes
12356 ;;
12357 no:yes:* )
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12370 (
12371 cat <<\_ASBOX
12372## ------------------------------------------ ##
12373## Report this to the AC_PACKAGE_NAME lists. ##
12374## ------------------------------------------ ##
12375_ASBOX
12376 ) |
12377 sed "s/^/$as_me: WARNING: /" >&2
12378 ;;
12379esac
12380echo "$as_me:$LINENO: checking for $ac_header" >&5
12381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12382if eval "test \"\${$as_ac_Header+set}\" = set"; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384else
12385 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12386fi
bec39cab
AC
12387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12389
086ec9eb 12390fi
bec39cab
AC
12391if test `eval echo '${'$as_ac_Header'}'` = yes; then
12392 cat >>confdefs.h <<_ACEOF
12393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12394_ACEOF
12395
086ec9eb 12396fi
bec39cab 12397
086ec9eb
MK
12398done
12399
9608ab8b 12400
b1d19a62 12401# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12402# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12403# think that we don't have <curses.h> if we're using GCC.
12404case $host_os in
b1d19a62 12405 solaris2.[789])
5ee754fc 12406 if test "$GCC" = yes; then
bec39cab
AC
12407
12408cat >>confdefs.h <<\_ACEOF
5ee754fc 12409#define _MSE_INT_H 1
bec39cab 12410_ACEOF
5ee754fc
MK
12411
12412 fi ;;
12413esac
bec39cab
AC
12414
12415
12416
12417
12418for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12419do
bec39cab
AC
12420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12421if eval "test \"\${$as_ac_Header+set}\" = set"; then
12422 echo "$as_me:$LINENO: checking for $ac_header" >&5
12423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12424if eval "test \"\${$as_ac_Header+set}\" = set"; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12426fi
12427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12429else
12430 # Is the header compilable?
12431echo "$as_me:$LINENO: checking $ac_header usability" >&5
12432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12433cat >conftest.$ac_ext <<_ACEOF
12434/* confdefs.h. */
12435_ACEOF
12436cat confdefs.h >>conftest.$ac_ext
12437cat >>conftest.$ac_ext <<_ACEOF
12438/* end confdefs.h. */
12439$ac_includes_default
12440#include <$ac_header>
12441_ACEOF
12442rm -f conftest.$ac_objext
12443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444 (eval $ac_compile) 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_c_werror_flag"
12452 || test ! -s conftest.err'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_header_compiler=yes
12465else
12466 echo "$as_me: failed program was:" >&5
12467sed 's/^/| /' conftest.$ac_ext >&5
12468
12469ac_header_compiler=no
12470fi
12471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12473echo "${ECHO_T}$ac_header_compiler" >&6
12474
12475# Is the header present?
12476echo "$as_me:$LINENO: checking $ac_header presence" >&5
12477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12478cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h. */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */
12484#include <$ac_header>
12485_ACEOF
12486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } >/dev/null; then
12494 if test -s conftest.err; then
12495 ac_cpp_err=$ac_c_preproc_warn_flag
12496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12497 else
12498 ac_cpp_err=
12499 fi
12500else
12501 ac_cpp_err=yes
c906108c 12502fi
bec39cab
AC
12503if test -z "$ac_cpp_err"; then
12504 ac_header_preproc=yes
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509 ac_header_preproc=no
c906108c 12510fi
bec39cab
AC
12511rm -f conftest.err conftest.$ac_ext
12512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12513echo "${ECHO_T}$ac_header_preproc" >&6
12514
12515# So? What about this header?
12516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12517 yes:no: )
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12522 ac_header_preproc=yes
12523 ;;
12524 no:yes:* )
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12532echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12537 (
12538 cat <<\_ASBOX
12539## ------------------------------------------ ##
12540## Report this to the AC_PACKAGE_NAME lists. ##
12541## ------------------------------------------ ##
12542_ASBOX
12543 ) |
12544 sed "s/^/$as_me: WARNING: /" >&2
12545 ;;
12546esac
12547echo "$as_me:$LINENO: checking for $ac_header" >&5
12548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12549if eval "test \"\${$as_ac_Header+set}\" = set"; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12551else
bec39cab 12552 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12553fi
bec39cab
AC
12554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12556
12557fi
12558if test `eval echo '${'$as_ac_Header'}'` = yes; then
12559 cat >>confdefs.h <<_ACEOF
12560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12561_ACEOF
12562
12563fi
12564
5ee754fc 12565done
c906108c 12566
bec39cab 12567
065a1afc 12568for ac_header in ncurses/term.h
3b78cdbb 12569do
bec39cab
AC
12570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12571if eval "test \"\${$as_ac_Header+set}\" = set"; then
12572 echo "$as_me:$LINENO: checking for $ac_header" >&5
12573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12574if eval "test \"\${$as_ac_Header+set}\" = set"; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576fi
12577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12579else
12580 # Is the header compilable?
12581echo "$as_me:$LINENO: checking $ac_header usability" >&5
12582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12583cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
12589$ac_includes_default
12590#include <$ac_header>
12591_ACEOF
12592rm -f conftest.$ac_objext
12593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594 (eval $ac_compile) 2>conftest.er1
12595 ac_status=$?
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_header_compiler=yes
12615else
12616 echo "$as_me: failed program was:" >&5
12617sed 's/^/| /' conftest.$ac_ext >&5
12618
12619ac_header_compiler=no
12620fi
12621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12623echo "${ECHO_T}$ac_header_compiler" >&6
12624
12625# Is the header present?
12626echo "$as_me:$LINENO: checking $ac_header presence" >&5
12627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12628cat >conftest.$ac_ext <<_ACEOF
12629/* confdefs.h. */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h. */
12634#include <$ac_header>
12635_ACEOF
12636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } >/dev/null; then
12644 if test -s conftest.err; then
12645 ac_cpp_err=$ac_c_preproc_warn_flag
12646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12647 else
12648 ac_cpp_err=
12649 fi
12650else
12651 ac_cpp_err=yes
3b78cdbb 12652fi
bec39cab
AC
12653if test -z "$ac_cpp_err"; then
12654 ac_header_preproc=yes
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 ac_header_preproc=no
3b78cdbb 12660fi
bec39cab
AC
12661rm -f conftest.err conftest.$ac_ext
12662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663echo "${ECHO_T}$ac_header_preproc" >&6
12664
12665# So? What about this header?
12666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12667 yes:no: )
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12672 ac_header_preproc=yes
12673 ;;
12674 no:yes:* )
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12687 (
12688 cat <<\_ASBOX
12689## ------------------------------------------ ##
12690## Report this to the AC_PACKAGE_NAME lists. ##
12691## ------------------------------------------ ##
12692_ASBOX
12693 ) |
12694 sed "s/^/$as_me: WARNING: /" >&2
12695 ;;
12696esac
12697echo "$as_me:$LINENO: checking for $ac_header" >&5
12698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12699if eval "test \"\${$as_ac_Header+set}\" = set"; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12701else
bec39cab
AC
12702 eval "$as_ac_Header=\$ac_header_preproc"
12703fi
12704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12706
3b78cdbb 12707fi
bec39cab
AC
12708if test `eval echo '${'$as_ac_Header'}'` = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12711_ACEOF
12712
12713fi
12714
3b78cdbb
DA
12715done
12716
c906108c 12717
065a1afc
JB
12718for ac_header in term.h
12719do
12720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12721echo "$as_me:$LINENO: checking for $ac_header" >&5
12722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12723if eval "test \"\${$as_ac_Header+set}\" = set"; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725else
12726 cat >conftest.$ac_ext <<_ACEOF
12727/* confdefs.h. */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h. */
12732#if HAVE_CURSES_H
12733# include <curses.h>
12734#endif
12735
12736
12737#include <$ac_header>
12738_ACEOF
12739rm -f conftest.$ac_objext
12740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741 (eval $ac_compile) 2>conftest.er1
12742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try='test -z "$ac_c_werror_flag"
12749 || test ! -s conftest.err'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest.$ac_objext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 eval "$as_ac_Header=yes"
12762else
12763 echo "$as_me: failed program was:" >&5
12764sed 's/^/| /' conftest.$ac_ext >&5
12765
12766eval "$as_ac_Header=no"
12767fi
12768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12769fi
12770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12772if test `eval echo '${'$as_ac_Header'}'` = yes; then
12773 cat >>confdefs.h <<_ACEOF
12774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12775_ACEOF
12776
12777fi
12778
12779done
12780
12781
5ee754fc
MK
12782# FIXME: kettenis/20030102: In most cases we include these
12783# unconditionally, so what's the point in checking these?
bec39cab
AC
12784
12785
12786for ac_header in ctype.h time.h
c906108c 12787do
bec39cab
AC
12788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12789if eval "test \"\${$as_ac_Header+set}\" = set"; then
12790 echo "$as_me:$LINENO: checking for $ac_header" >&5
12791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12792if eval "test \"\${$as_ac_Header+set}\" = set"; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12794fi
12795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12797else
12798 # Is the header compilable?
12799echo "$as_me:$LINENO: checking $ac_header usability" >&5
12800echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12801cat >conftest.$ac_ext <<_ACEOF
12802/* confdefs.h. */
12803_ACEOF
12804cat confdefs.h >>conftest.$ac_ext
12805cat >>conftest.$ac_ext <<_ACEOF
12806/* end confdefs.h. */
12807$ac_includes_default
12808#include <$ac_header>
12809_ACEOF
12810rm -f conftest.$ac_objext
12811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 (eval $ac_compile) 2>conftest.er1
12813 ac_status=$?
12814 grep -v '^ *+' conftest.er1 >conftest.err
12815 rm -f conftest.er1
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -z "$ac_c_werror_flag"
12820 || test ! -s conftest.err'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } &&
12826 { ac_try='test -s conftest.$ac_objext'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ac_header_compiler=yes
12833else
12834 echo "$as_me: failed program was:" >&5
12835sed 's/^/| /' conftest.$ac_ext >&5
12836
12837ac_header_compiler=no
12838fi
12839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12840echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12841echo "${ECHO_T}$ac_header_compiler" >&6
12842
12843# Is the header present?
12844echo "$as_me:$LINENO: checking $ac_header presence" >&5
12845echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12846cat >conftest.$ac_ext <<_ACEOF
12847/* confdefs.h. */
12848_ACEOF
12849cat confdefs.h >>conftest.$ac_ext
12850cat >>conftest.$ac_ext <<_ACEOF
12851/* end confdefs.h. */
12852#include <$ac_header>
12853_ACEOF
12854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } >/dev/null; then
12862 if test -s conftest.err; then
12863 ac_cpp_err=$ac_c_preproc_warn_flag
12864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12865 else
12866 ac_cpp_err=
12867 fi
12868else
12869 ac_cpp_err=yes
c906108c 12870fi
bec39cab
AC
12871if test -z "$ac_cpp_err"; then
12872 ac_header_preproc=yes
12873else
12874 echo "$as_me: failed program was:" >&5
12875sed 's/^/| /' conftest.$ac_ext >&5
12876
12877 ac_header_preproc=no
c906108c 12878fi
bec39cab
AC
12879rm -f conftest.err conftest.$ac_ext
12880echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881echo "${ECHO_T}$ac_header_preproc" >&6
12882
12883# So? What about this header?
12884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12885 yes:no: )
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12887echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12889echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12890 ac_header_preproc=yes
12891 ;;
12892 no:yes:* )
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12896echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12898echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12900echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12904echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12905 (
12906 cat <<\_ASBOX
12907## ------------------------------------------ ##
12908## Report this to the AC_PACKAGE_NAME lists. ##
12909## ------------------------------------------ ##
12910_ASBOX
12911 ) |
12912 sed "s/^/$as_me: WARNING: /" >&2
12913 ;;
12914esac
12915echo "$as_me:$LINENO: checking for $ac_header" >&5
12916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12917if eval "test \"\${$as_ac_Header+set}\" = set"; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12919else
bec39cab
AC
12920 eval "$as_ac_Header=\$ac_header_preproc"
12921fi
12922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12924
12925fi
12926if test `eval echo '${'$as_ac_Header'}'` = yes; then
12927 cat >>confdefs.h <<_ACEOF
12928#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12929_ACEOF
12930
c906108c 12931fi
bec39cab 12932
c906108c
SS
12933done
12934
5ee754fc 12935
666ec76f
MK
12936# ------------------------- #
12937# Checks for declarations. #
12938# ------------------------- #
12939
a3828db0
MK
12940echo "$as_me:$LINENO: checking whether free is declared" >&5
12941echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12942if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 12943 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12944else
bec39cab
AC
12945 cat >conftest.$ac_ext <<_ACEOF
12946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
a3828db0 12951$ac_includes_default
bec39cab
AC
12952int
12953main ()
12954{
a3828db0
MK
12955#ifndef free
12956 char *p = (char *) free;
666ec76f 12957#endif
a3828db0 12958
bec39cab
AC
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963rm -f conftest.$ac_objext
12964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965 (eval $ac_compile) 2>conftest.er1
12966 ac_status=$?
12967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest.$ac_objext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
a3828db0 12985 ac_cv_have_decl_free=yes
40a7debc 12986else
bec39cab
AC
12987 echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
a3828db0 12990ac_cv_have_decl_free=no
40a7debc 12991fi
bec39cab 12992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 12993fi
a3828db0
MK
12994echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12995echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12996if test $ac_cv_have_decl_free = yes; then
40a7debc 12997
a3828db0
MK
12998cat >>confdefs.h <<_ACEOF
12999#define HAVE_DECL_FREE 1
666ec76f
MK
13000_ACEOF
13001
a3828db0 13002
666ec76f 13003else
a3828db0
MK
13004 cat >>confdefs.h <<_ACEOF
13005#define HAVE_DECL_FREE 0
bec39cab 13006_ACEOF
40a7debc 13007
b9362cc7 13008
666ec76f 13009fi
a3828db0
MK
13010echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13011echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13012if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13014else
13015 cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
666ec76f
MK
13021$ac_includes_default
13022int
13023main ()
13024{
a3828db0
MK
13025#ifndef malloc
13026 char *p = (char *) malloc;
13027#endif
13028
666ec76f
MK
13029 ;
13030 return 0;
13031}
13032_ACEOF
13033rm -f conftest.$ac_objext
13034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13035 (eval $ac_compile) 2>conftest.er1
13036 ac_status=$?
13037 grep -v '^ *+' conftest.er1 >conftest.err
13038 rm -f conftest.er1
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_c_werror_flag"
13043 || test ! -s conftest.err'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try='test -s conftest.$ac_objext'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
a3828db0 13055 ac_cv_have_decl_malloc=yes
666ec76f
MK
13056else
13057 echo "$as_me: failed program was:" >&5
13058sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 13059
a3828db0
MK
13060ac_cv_have_decl_malloc=no
13061fi
13062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13063fi
13064echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13065echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13066if test $ac_cv_have_decl_malloc = yes; then
13067
13068cat >>confdefs.h <<_ACEOF
13069#define HAVE_DECL_MALLOC 1
13070_ACEOF
13071
13072
13073else
13074 cat >>confdefs.h <<_ACEOF
13075#define HAVE_DECL_MALLOC 0
13076_ACEOF
13077
13078
13079fi
13080echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13081echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13082if test "${ac_cv_have_decl_realloc+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13084else
13085 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
13090/* end confdefs.h. */
13091$ac_includes_default
bec39cab
AC
13092int
13093main ()
13094{
a3828db0
MK
13095#ifndef realloc
13096 char *p = (char *) realloc;
13097#endif
13098
bec39cab
AC
13099 ;
13100 return 0;
13101}
13102_ACEOF
13103rm -f conftest.$ac_objext
13104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105 (eval $ac_compile) 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try='test -z "$ac_c_werror_flag"
13113 || test ! -s conftest.err'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } &&
13119 { ac_try='test -s conftest.$ac_objext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
a3828db0 13125 ac_cv_have_decl_realloc=yes
b9362cc7 13126else
bec39cab
AC
13127 echo "$as_me: failed program was:" >&5
13128sed 's/^/| /' conftest.$ac_ext >&5
13129
a3828db0 13130ac_cv_have_decl_realloc=no
b9362cc7 13131fi
bec39cab 13132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13133fi
a3828db0
MK
13134echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13135echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13136if test $ac_cv_have_decl_realloc = yes; then
b9362cc7 13137
666ec76f 13138cat >>confdefs.h <<_ACEOF
a3828db0 13139#define HAVE_DECL_REALLOC 1
bec39cab
AC
13140_ACEOF
13141
bec39cab 13142
a3828db0
MK
13143else
13144 cat >>confdefs.h <<_ACEOF
13145#define HAVE_DECL_REALLOC 0
13146_ACEOF
b9362cc7
AC
13147
13148
a3828db0 13149fi
5ee754fc 13150
a3828db0
MK
13151
13152echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13153echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13154if test "${ac_cv_have_decl_strerror+set}" = set; then
bec39cab
AC
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156else
13157 cat >conftest.$ac_ext <<_ACEOF
13158/* confdefs.h. */
13159_ACEOF
13160cat confdefs.h >>conftest.$ac_ext
13161cat >>conftest.$ac_ext <<_ACEOF
13162/* end confdefs.h. */
a3828db0 13163$ac_includes_default
bec39cab
AC
13164int
13165main ()
13166{
a3828db0
MK
13167#ifndef strerror
13168 char *p = (char *) strerror;
13169#endif
13170
bec39cab
AC
13171 ;
13172 return 0;
13173}
13174_ACEOF
13175rm -f conftest.$ac_objext
13176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13177 (eval $ac_compile) 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try='test -z "$ac_c_werror_flag"
13185 || test ! -s conftest.err'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest.$ac_objext'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
a3828db0 13197 ac_cv_have_decl_strerror=yes
c906108c 13198else
bec39cab
AC
13199 echo "$as_me: failed program was:" >&5
13200sed 's/^/| /' conftest.$ac_ext >&5
13201
a3828db0 13202ac_cv_have_decl_strerror=no
c906108c 13203fi
bec39cab 13204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13205fi
a3828db0
MK
13206echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13207echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13208if test $ac_cv_have_decl_strerror = yes; then
c906108c 13209
bec39cab 13210cat >>confdefs.h <<_ACEOF
a3828db0 13211#define HAVE_DECL_STRERROR 1
bec39cab 13212_ACEOF
c906108c 13213
c906108c 13214
a3828db0
MK
13215else
13216 cat >>confdefs.h <<_ACEOF
13217#define HAVE_DECL_STRERROR 0
13218_ACEOF
c906108c 13219
5ee754fc 13220
a3828db0
MK
13221fi
13222echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13223echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13224if test "${ac_cv_have_decl_strstr+set}" = set; then
bec39cab
AC
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13226else
13227 cat >conftest.$ac_ext <<_ACEOF
13228/* confdefs.h. */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
13232/* end confdefs.h. */
a3828db0 13233$ac_includes_default
bec39cab
AC
13234int
13235main ()
13236{
a3828db0
MK
13237#ifndef strstr
13238 char *p = (char *) strstr;
bec39cab
AC
13239#endif
13240
13241 ;
13242 return 0;
13243}
13244_ACEOF
13245rm -f conftest.$ac_objext
13246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 (eval $ac_compile) 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -z "$ac_c_werror_flag"
13255 || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
a3828db0 13267 ac_cv_have_decl_strstr=yes
c906108c 13268else
bec39cab
AC
13269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
a3828db0 13272ac_cv_have_decl_strstr=no
c906108c 13273fi
bec39cab 13274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13275fi
a3828db0
MK
13276echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13277echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13278if test $ac_cv_have_decl_strstr = yes; then
bec39cab 13279
a3828db0
MK
13280cat >>confdefs.h <<_ACEOF
13281#define HAVE_DECL_STRSTR 1
13282_ACEOF
13283
13284
13285else
13286 cat >>confdefs.h <<_ACEOF
13287#define HAVE_DECL_STRSTR 0
bec39cab 13288_ACEOF
c906108c 13289
a3828db0 13290
c906108c
SS
13291fi
13292
a3828db0
MK
13293
13294echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13295echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13296if test "${ac_cv_have_decl_getopt+set}" = set; then
bec39cab 13297 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13298else
bec39cab
AC
13299 cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h. */
a3828db0
MK
13305$ac_includes_default
13306int
13307main ()
13308{
13309#ifndef getopt
13310 char *p = (char *) getopt;
bec39cab
AC
13311#endif
13312
a3828db0
MK
13313 ;
13314 return 0;
13315}
bec39cab
AC
13316_ACEOF
13317rm -f conftest.$ac_objext
13318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13319 (eval $ac_compile) 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag"
13327 || test ! -s conftest.err'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest.$ac_objext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
a3828db0 13339 ac_cv_have_decl_getopt=yes
bce58c09 13340else
bec39cab
AC
13341 echo "$as_me: failed program was:" >&5
13342sed 's/^/| /' conftest.$ac_ext >&5
13343
a3828db0 13344ac_cv_have_decl_getopt=no
bce58c09 13345fi
bec39cab 13346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13347fi
a3828db0
MK
13348echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13349echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13350if test $ac_cv_have_decl_getopt = yes; then
bec39cab 13351
a3828db0
MK
13352cat >>confdefs.h <<_ACEOF
13353#define HAVE_DECL_GETOPT 1
13354_ACEOF
bce58c09 13355
a3828db0
MK
13356
13357else
13358 cat >>confdefs.h <<_ACEOF
13359#define HAVE_DECL_GETOPT 0
bec39cab 13360_ACEOF
bce58c09 13361
c906108c 13362
e5a7de23
EZ
13363fi
13364echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13365echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13366if test "${ac_cv_have_decl_snprintf+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13368else
13369 cat >conftest.$ac_ext <<_ACEOF
13370/* confdefs.h. */
13371_ACEOF
13372cat confdefs.h >>conftest.$ac_ext
13373cat >>conftest.$ac_ext <<_ACEOF
13374/* end confdefs.h. */
13375$ac_includes_default
13376int
13377main ()
13378{
13379#ifndef snprintf
13380 char *p = (char *) snprintf;
13381#endif
13382
13383 ;
13384 return 0;
13385}
13386_ACEOF
13387rm -f conftest.$ac_objext
13388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13389 (eval $ac_compile) 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -z "$ac_c_werror_flag"
13397 || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest.$ac_objext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_cv_have_decl_snprintf=yes
13410else
13411 echo "$as_me: failed program was:" >&5
13412sed 's/^/| /' conftest.$ac_ext >&5
13413
13414ac_cv_have_decl_snprintf=no
13415fi
13416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13417fi
13418echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13419echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13420if test $ac_cv_have_decl_snprintf = yes; then
13421
13422cat >>confdefs.h <<_ACEOF
13423#define HAVE_DECL_SNPRINTF 1
13424_ACEOF
13425
13426
13427else
13428 cat >>confdefs.h <<_ACEOF
13429#define HAVE_DECL_SNPRINTF 0
13430_ACEOF
13431
13432
13433fi
13434echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13435echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13436if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438else
13439 cat >conftest.$ac_ext <<_ACEOF
13440/* confdefs.h. */
13441_ACEOF
13442cat confdefs.h >>conftest.$ac_ext
13443cat >>conftest.$ac_ext <<_ACEOF
13444/* end confdefs.h. */
13445$ac_includes_default
13446int
13447main ()
13448{
13449#ifndef vsnprintf
13450 char *p = (char *) vsnprintf;
13451#endif
13452
13453 ;
13454 return 0;
13455}
13456_ACEOF
13457rm -f conftest.$ac_objext
13458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13459 (eval $ac_compile) 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag"
13467 || test ! -s conftest.err'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; } &&
13473 { ac_try='test -s conftest.$ac_objext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_cv_have_decl_vsnprintf=yes
13480else
13481 echo "$as_me: failed program was:" >&5
13482sed 's/^/| /' conftest.$ac_ext >&5
13483
13484ac_cv_have_decl_vsnprintf=no
13485fi
13486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13487fi
13488echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13489echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13490if test $ac_cv_have_decl_vsnprintf = yes; then
13491
13492cat >>confdefs.h <<_ACEOF
13493#define HAVE_DECL_VSNPRINTF 1
13494_ACEOF
13495
13496
13497else
13498 cat >>confdefs.h <<_ACEOF
13499#define HAVE_DECL_VSNPRINTF 0
13500_ACEOF
13501
13502
a3828db0 13503fi
5ee754fc 13504
a3828db0
MK
13505
13506
13507# ----------------------- #
13508# Checks for structures. #
13509# ----------------------- #
13510
13511echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13512echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13513if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
bec39cab
AC
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515else
13516 cat >conftest.$ac_ext <<_ACEOF
13517/* confdefs.h. */
13518_ACEOF
13519cat confdefs.h >>conftest.$ac_ext
13520cat >>conftest.$ac_ext <<_ACEOF
13521/* end confdefs.h. */
a3828db0 13522$ac_includes_default
bec39cab
AC
13523int
13524main ()
13525{
a3828db0
MK
13526static struct stat ac_aggr;
13527if (ac_aggr.st_blocks)
13528return 0;
bec39cab
AC
13529 ;
13530 return 0;
13531}
13532_ACEOF
a3828db0
MK
13533rm -f conftest.$ac_objext
13534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
a3828db0 13549 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
a3828db0 13555 ac_cv_member_struct_stat_st_blocks=yes
bec39cab
AC
13556else
13557 echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
a3828db0
MK
13560cat >conftest.$ac_ext <<_ACEOF
13561/* confdefs.h. */
bec39cab
AC
13562_ACEOF
13563cat confdefs.h >>conftest.$ac_ext
13564cat >>conftest.$ac_ext <<_ACEOF
13565/* end confdefs.h. */
a3828db0 13566$ac_includes_default
bec39cab
AC
13567int
13568main ()
13569{
a3828db0
MK
13570static struct stat ac_aggr;
13571if (sizeof ac_aggr.st_blocks)
13572return 0;
bec39cab
AC
13573 ;
13574 return 0;
13575}
13576_ACEOF
a3828db0
MK
13577rm -f conftest.$ac_objext
13578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -z "$ac_c_werror_flag"
13587 || test ! -s conftest.err'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
a3828db0 13593 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
a3828db0 13599 ac_cv_member_struct_stat_st_blocks=yes
46711df8 13600else
bec39cab
AC
13601 echo "$as_me: failed program was:" >&5
13602sed 's/^/| /' conftest.$ac_ext >&5
13603
a3828db0 13604ac_cv_member_struct_stat_st_blocks=no
46711df8 13605fi
a3828db0 13606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13607fi
a3828db0
MK
13608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13609fi
13610echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13611echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13612if test $ac_cv_member_struct_stat_st_blocks = yes; then
46711df8 13613
a3828db0
MK
13614cat >>confdefs.h <<_ACEOF
13615#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab 13616_ACEOF
46711df8 13617
46711df8 13618
d3ea6809
MM
13619fi
13620
13621echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13622echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13623if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625else
13626 cat >conftest.$ac_ext <<_ACEOF
13627/* confdefs.h. */
13628_ACEOF
13629cat confdefs.h >>conftest.$ac_ext
13630cat >>conftest.$ac_ext <<_ACEOF
13631/* end confdefs.h. */
13632$ac_includes_default
13633int
13634main ()
13635{
13636static struct stat ac_aggr;
13637if (ac_aggr.st_blksize)
13638return 0;
13639 ;
13640 return 0;
13641}
13642_ACEOF
13643rm -f conftest.$ac_objext
13644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag"
13653 || test ! -s conftest.err'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_cv_member_struct_stat_st_blksize=yes
13666else
13667 echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
13670cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h. */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h. */
13676$ac_includes_default
13677int
13678main ()
13679{
13680static struct stat ac_aggr;
13681if (sizeof ac_aggr.st_blksize)
13682return 0;
13683 ;
13684 return 0;
13685}
13686_ACEOF
13687rm -f conftest.$ac_objext
13688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>conftest.er1
13690 ac_status=$?
13691 grep -v '^ *+' conftest.er1 >conftest.err
13692 rm -f conftest.er1
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try='test -z "$ac_c_werror_flag"
13697 || test ! -s conftest.err'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_member_struct_stat_st_blksize=yes
13710else
13711 echo "$as_me: failed program was:" >&5
13712sed 's/^/| /' conftest.$ac_ext >&5
13713
13714ac_cv_member_struct_stat_st_blksize=no
13715fi
13716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13717fi
13718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13719fi
13720echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13721echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13722if test $ac_cv_member_struct_stat_st_blksize = yes; then
13723
13724cat >>confdefs.h <<_ACEOF
13725#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13726_ACEOF
13727
13728
a3828db0 13729fi
46711df8 13730
46711df8 13731
a3828db0
MK
13732# ------------------ #
13733# Checks for types. #
13734# ------------------ #
46711df8 13735
a3828db0
MK
13736echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13737echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13738if test "${ac_cv_type_signal+set}" = set; then
bec39cab
AC
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740else
13741 cat >conftest.$ac_ext <<_ACEOF
13742/* confdefs.h. */
13743_ACEOF
13744cat confdefs.h >>conftest.$ac_ext
13745cat >>conftest.$ac_ext <<_ACEOF
13746/* end confdefs.h. */
a3828db0
MK
13747#include <sys/types.h>
13748#include <signal.h>
13749#ifdef signal
13750# undef signal
bec39cab 13751#endif
bec39cab 13752#ifdef __cplusplus
a3828db0 13753extern "C" void (*signal (int, void (*)(int)))(int);
46711df8 13754#else
a3828db0 13755void (*signal ()) ();
46711df8
MK
13756#endif
13757
bec39cab
AC
13758int
13759main ()
13760{
a3828db0 13761int i;
bec39cab
AC
13762 ;
13763 return 0;
13764}
13765_ACEOF
a3828db0
MK
13766rm -f conftest.$ac_objext
13767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try='test -z "$ac_c_werror_flag"
13776 || test ! -s conftest.err'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
a3828db0 13782 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
a3828db0 13788 ac_cv_type_signal=void
bec39cab
AC
13789else
13790 echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
a3828db0 13793ac_cv_type_signal=int
bec39cab 13794fi
a3828db0 13795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 13796fi
a3828db0
MK
13797echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13798echo "${ECHO_T}$ac_cv_type_signal" >&6
bec39cab
AC
13799
13800cat >>confdefs.h <<_ACEOF
a3828db0 13801#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13802_ACEOF
46711df8 13803
46711df8 13804
f9f87d2c
MK
13805echo "$as_me:$LINENO: checking for socklen_t" >&5
13806echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13807if test "${ac_cv_type_socklen_t+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 cat >conftest.$ac_ext <<_ACEOF
13811/* confdefs.h. */
13812_ACEOF
13813cat confdefs.h >>conftest.$ac_ext
13814cat >>conftest.$ac_ext <<_ACEOF
13815/* end confdefs.h. */
13816#include <sys/types.h>
13817#include <sys/socket.h>
13818
13819
13820int
13821main ()
13822{
13823if ((socklen_t *) 0)
13824 return 0;
13825if (sizeof (socklen_t))
13826 return 0;
13827 ;
13828 return 0;
13829}
13830_ACEOF
13831rm -f conftest.$ac_objext
13832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833 (eval $ac_compile) 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_type_socklen_t=yes
13854else
13855 echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
13858ac_cv_type_socklen_t=no
13859fi
13860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13861fi
13862echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13863echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13864if test $ac_cv_type_socklen_t = yes; then
13865
13866cat >>confdefs.h <<_ACEOF
13867#define HAVE_SOCKLEN_T 1
13868_ACEOF
13869
13870
3be60c3d
MK
13871fi
13872
13873echo "$as_me:$LINENO: checking for uintptr_t" >&5
13874echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13875if test "${ac_cv_type_uintptr_t+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877else
13878 cat >conftest.$ac_ext <<_ACEOF
13879/* confdefs.h. */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h. */
13884#include <stdint.h>
13885
13886int
13887main ()
13888{
13889if ((uintptr_t *) 0)
13890 return 0;
13891if (sizeof (uintptr_t))
13892 return 0;
13893 ;
13894 return 0;
13895}
13896_ACEOF
13897rm -f conftest.$ac_objext
13898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899 (eval $ac_compile) 2>conftest.er1
13900 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
13906 { ac_try='test -z "$ac_c_werror_flag"
13907 || test ! -s conftest.err'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest.$ac_objext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_type_uintptr_t=yes
13920else
13921 echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
13924ac_cv_type_uintptr_t=no
13925fi
13926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13927fi
13928echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13929echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13930if test $ac_cv_type_uintptr_t = yes; then
13931
13932cat >>confdefs.h <<_ACEOF
13933#define HAVE_UINTPTR_T 1
13934_ACEOF
13935
13936
f9f87d2c
MK
13937fi
13938
46711df8 13939
a3828db0
MK
13940# ------------------------------------- #
13941# Checks for compiler characteristics. #
13942# ------------------------------------- #
13943
13944echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13945echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13946if test "${ac_cv_c_const+set}" = set; then
bec39cab 13947 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13948else
bec39cab
AC
13949 cat >conftest.$ac_ext <<_ACEOF
13950/* confdefs.h. */
13951_ACEOF
13952cat confdefs.h >>conftest.$ac_ext
13953cat >>conftest.$ac_ext <<_ACEOF
13954/* end confdefs.h. */
bec39cab
AC
13955
13956int
46711df8
MK
13957main ()
13958{
a3828db0
MK
13959/* FIXME: Include the comments suggested by Paul. */
13960#ifndef __cplusplus
13961 /* Ultrix mips cc rejects this. */
13962 typedef int charset[2];
13963 const charset x;
13964 /* SunOS 4.1.1 cc rejects this. */
13965 char const *const *ccp;
13966 char **p;
13967 /* NEC SVR4.0.2 mips cc rejects this. */
13968 struct point {int x, y;};
13969 static struct point const zero = {0,0};
13970 /* AIX XL C 1.02.0.0 rejects this.
13971 It does not let you subtract one const X* pointer from another in
13972 an arm of an if-expression whose if-part is not a constant
13973 expression */
13974 const char *g = "string";
13975 ccp = &g + (g ? g-g : 0);
13976 /* HPUX 7.0 cc rejects these. */
13977 ++ccp;
13978 p = (char**) ccp;
13979 ccp = (char const *const *) p;
13980 { /* SCO 3.2v4 cc rejects this. */
13981 char *t;
13982 char const *s = 0 ? (char *) 0 : (char const *) 0;
13983
13984 *t++ = 0;
13985 }
13986 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13987 int x[] = {25, 17};
13988 const int *foo = &x[0];
13989 ++foo;
13990 }
13991 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13992 typedef const int *iptr;
13993 iptr p = 0;
13994 ++p;
13995 }
13996 { /* AIX XL C 1.02.0.0 rejects this saying
13997 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13998 struct s { int j; const int *ap[3]; };
13999 struct s *b; b->j = 5;
14000 }
14001 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14002 const int foo = 10;
14003 }
14004#endif
14005
14006 ;
14007 return 0;
46711df8 14008}
bec39cab 14009_ACEOF
a3828db0
MK
14010rm -f conftest.$ac_objext
14011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012 (eval $ac_compile) 2>conftest.er1
14013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -z "$ac_c_werror_flag"
14020 || test ! -s conftest.err'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
bec39cab
AC
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
14025 (exit $ac_status); }; } &&
14026 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
a3828db0 14032 ac_cv_c_const=yes
46711df8 14033else
a3828db0 14034 echo "$as_me: failed program was:" >&5
bec39cab
AC
14035sed 's/^/| /' conftest.$ac_ext >&5
14036
a3828db0 14037ac_cv_c_const=no
46711df8 14038fi
a3828db0 14039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 14040fi
a3828db0
MK
14041echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14042echo "${ECHO_T}$ac_cv_c_const" >&6
14043if test $ac_cv_c_const = no; then
46711df8 14044
a3828db0
MK
14045cat >>confdefs.h <<\_ACEOF
14046#define const
bec39cab
AC
14047_ACEOF
14048
46711df8
MK
14049fi
14050
a3828db0
MK
14051echo "$as_me:$LINENO: checking for inline" >&5
14052echo $ECHO_N "checking for inline... $ECHO_C" >&6
14053if test "${ac_cv_c_inline+set}" = set; then
bec39cab 14054 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14055else
a3828db0
MK
14056 ac_cv_c_inline=no
14057for ac_kw in inline __inline__ __inline; do
14058 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14059/* confdefs.h. */
14060_ACEOF
14061cat confdefs.h >>conftest.$ac_ext
14062cat >>conftest.$ac_ext <<_ACEOF
14063/* end confdefs.h. */
a3828db0
MK
14064#ifndef __cplusplus
14065typedef int foo_t;
14066static $ac_kw foo_t static_foo () {return 0; }
14067$ac_kw foo_t foo () {return 0; }
14068#endif
14069
bec39cab
AC
14070_ACEOF
14071rm -f conftest.$ac_objext
14072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073 (eval $ac_compile) 2>conftest.er1
14074 ac_status=$?
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -z "$ac_c_werror_flag"
14081 || test ! -s conftest.err'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; } &&
14087 { ac_try='test -s conftest.$ac_objext'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
a3828db0 14093 ac_cv_c_inline=$ac_kw; break
bec39cab
AC
14094else
14095 echo "$as_me: failed program was:" >&5
14096sed 's/^/| /' conftest.$ac_ext >&5
14097
bec39cab
AC
14098fi
14099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0 14100done
bec39cab 14101
74c1b268 14102fi
a3828db0
MK
14103echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14104echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 14105
bec39cab 14106
a3828db0
MK
14107case $ac_cv_c_inline in
14108 inline | yes) ;;
14109 *)
14110 case $ac_cv_c_inline in
14111 no) ac_val=;;
14112 *) ac_val=$ac_cv_c_inline;;
14113 esac
14114 cat >>confdefs.h <<_ACEOF
14115#ifndef __cplusplus
14116#define inline $ac_val
14117#endif
14118_ACEOF
bec39cab
AC
14119 ;;
14120esac
bec39cab 14121
74c1b268 14122
a3828db0
MK
14123# ------------------------------ #
14124# Checks for library functions. #
14125# ------------------------------ #
bec39cab 14126
a3828db0
MK
14127# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14128# for constant arguments. Useless!
14129echo "$as_me:$LINENO: checking for working alloca.h" >&5
14130echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14131if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133else
14134 cat >conftest.$ac_ext <<_ACEOF
14135/* confdefs.h. */
14136_ACEOF
14137cat confdefs.h >>conftest.$ac_ext
14138cat >>conftest.$ac_ext <<_ACEOF
14139/* end confdefs.h. */
a3828db0 14140#include <alloca.h>
bec39cab
AC
14141int
14142main ()
14143{
a3828db0 14144char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
14145 ;
14146 return 0;
14147}
14148_ACEOF
14149rm -f conftest.$ac_objext conftest$ac_exeext
14150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14151 (eval $ac_link) 2>conftest.er1
14152 ac_status=$?
14153 grep -v '^ *+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -z "$ac_c_werror_flag"
14159 || test ! -s conftest.err'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; } &&
14165 { ac_try='test -s conftest$ac_exeext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
a3828db0 14171 ac_cv_working_alloca_h=yes
bec39cab
AC
14172else
14173 echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
a3828db0 14176ac_cv_working_alloca_h=no
bec39cab
AC
14177fi
14178rm -f conftest.err conftest.$ac_objext \
14179 conftest$ac_exeext conftest.$ac_ext
14180fi
a3828db0
MK
14181echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14182echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14183if test $ac_cv_working_alloca_h = yes; then
14184
14185cat >>confdefs.h <<\_ACEOF
14186#define HAVE_ALLOCA_H 1
bec39cab 14187_ACEOF
74c1b268 14188
74c1b268
AC
14189fi
14190
a3828db0
MK
14191echo "$as_me:$LINENO: checking for alloca" >&5
14192echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14193if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 14194 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 14195else
bec39cab
AC
14196 cat >conftest.$ac_ext <<_ACEOF
14197/* confdefs.h. */
14198_ACEOF
14199cat confdefs.h >>conftest.$ac_ext
14200cat >>conftest.$ac_ext <<_ACEOF
14201/* end confdefs.h. */
a3828db0
MK
14202#ifdef __GNUC__
14203# define alloca __builtin_alloca
14204#else
14205# ifdef _MSC_VER
14206# include <malloc.h>
14207# define alloca _alloca
14208# else
14209# if HAVE_ALLOCA_H
14210# include <alloca.h>
14211# else
14212# ifdef _AIX
14213 #pragma alloca
14214# else
14215# ifndef alloca /* predefined by HP cc +Olibcalls */
14216char *alloca ();
14217# endif
14218# endif
14219# endif
97bf5e38 14220# endif
a3828db0 14221#endif
97bf5e38 14222
bec39cab
AC
14223int
14224main ()
14225{
a3828db0 14226char *p = (char *) alloca (1);
bec39cab
AC
14227 ;
14228 return 0;
14229}
14230_ACEOF
a3828db0
MK
14231rm -f conftest.$ac_objext conftest$ac_exeext
14232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14233 (eval $ac_link) 2>conftest.er1
bec39cab
AC
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
14240 { ac_try='test -z "$ac_c_werror_flag"
14241 || test ! -s conftest.err'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
a3828db0 14247 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
a3828db0 14253 ac_cv_func_alloca_works=yes
0200359f 14254else
bec39cab
AC
14255 echo "$as_me: failed program was:" >&5
14256sed 's/^/| /' conftest.$ac_ext >&5
0200359f 14257
a3828db0 14258ac_cv_func_alloca_works=no
0200359f 14259fi
a3828db0
MK
14260rm -f conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
72473524 14262fi
a3828db0
MK
14263echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14264echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 14265
a3828db0
MK
14266if test $ac_cv_func_alloca_works = yes; then
14267
14268cat >>confdefs.h <<\_ACEOF
14269#define HAVE_ALLOCA 1
bec39cab
AC
14270_ACEOF
14271
a3828db0
MK
14272else
14273 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14274# that cause trouble. Some versions do not even contain alloca or
14275# contain a buggy version. If you still want to use their alloca,
14276# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 14277
a3828db0 14278ALLOCA=alloca.$ac_objext
bec39cab 14279
a3828db0
MK
14280cat >>confdefs.h <<\_ACEOF
14281#define C_ALLOCA 1
14282_ACEOF
bec39cab 14283
a3828db0
MK
14284
14285echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14286echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14287if test "${ac_cv_os_cray+set}" = set; then
bec39cab 14288 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14289else
a3828db0 14290 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
14295/* end confdefs.h. */
a3828db0
MK
14296#if defined(CRAY) && ! defined(CRAY2)
14297webecray
14298#else
14299wenotbecray
14300#endif
14301
14302_ACEOF
14303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14304 $EGREP "webecray" >/dev/null 2>&1; then
14305 ac_cv_os_cray=yes
14306else
14307 ac_cv_os_cray=no
14308fi
14309rm -f conftest*
14310
14311fi
14312echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14313echo "${ECHO_T}$ac_cv_os_cray" >&6
14314if test $ac_cv_os_cray = yes; then
14315 for ac_func in _getb67 GETB67 getb67; do
14316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14317echo "$as_me:$LINENO: checking for $ac_func" >&5
14318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14319if eval "test \"\${$as_ac_var+set}\" = set"; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14321else
14322 cat >conftest.$ac_ext <<_ACEOF
14323/* confdefs.h. */
14324_ACEOF
14325cat confdefs.h >>conftest.$ac_ext
14326cat >>conftest.$ac_ext <<_ACEOF
14327/* end confdefs.h. */
14328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14330#define $ac_func innocuous_$ac_func
14331
14332/* System header to define __stub macros and hopefully few prototypes,
14333 which can conflict with char $ac_func (); below.
14334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14335 <limits.h> exists even on freestanding compilers. */
14336
14337#ifdef __STDC__
14338# include <limits.h>
14339#else
14340# include <assert.h>
14341#endif
14342
14343#undef $ac_func
14344
14345/* Override any gcc2 internal prototype to avoid an error. */
14346#ifdef __cplusplus
14347extern "C"
14348{
14349#endif
14350/* We use char because int might match the return type of a gcc2
14351 builtin and then its argument prototype would still apply. */
14352char $ac_func ();
14353/* The GNU C library defines this for functions which it implements
14354 to always fail with ENOSYS. Some functions are actually named
14355 something starting with __ and the normal name is an alias. */
14356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14357choke me
14358#else
14359char (*f) () = $ac_func;
14360#endif
14361#ifdef __cplusplus
14362}
14363#endif
14364
14365int
14366main ()
14367{
14368return f != $ac_func;
14369 ;
14370 return 0;
14371}
14372_ACEOF
14373rm -f conftest.$ac_objext conftest$ac_exeext
14374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14375 (eval $ac_link) 2>conftest.er1
14376 ac_status=$?
14377 grep -v '^ *+' conftest.er1 >conftest.err
14378 rm -f conftest.er1
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag"
14383 || test ! -s conftest.err'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest$ac_exeext'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395 eval "$as_ac_var=yes"
14396else
14397 echo "$as_me: failed program was:" >&5
14398sed 's/^/| /' conftest.$ac_ext >&5
14399
14400eval "$as_ac_var=no"
14401fi
14402rm -f conftest.err conftest.$ac_objext \
14403 conftest$ac_exeext conftest.$ac_ext
14404fi
14405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14406echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14407if test `eval echo '${'$as_ac_var'}'` = yes; then
14408
14409cat >>confdefs.h <<_ACEOF
14410#define CRAY_STACKSEG_END $ac_func
14411_ACEOF
14412
14413 break
14414fi
14415
14416 done
14417fi
14418
14419echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14420echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14421if test "${ac_cv_c_stack_direction+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423else
14424 if test "$cross_compiling" = yes; then
14425 ac_cv_c_stack_direction=0
14426else
14427 cat >conftest.$ac_ext <<_ACEOF
14428/* confdefs.h. */
14429_ACEOF
14430cat confdefs.h >>conftest.$ac_ext
14431cat >>conftest.$ac_ext <<_ACEOF
14432/* end confdefs.h. */
14433int
14434find_stack_direction ()
14435{
14436 static char *addr = 0;
14437 auto char dummy;
14438 if (addr == 0)
14439 {
14440 addr = &dummy;
14441 return find_stack_direction ();
14442 }
14443 else
14444 return (&dummy > addr) ? 1 : -1;
14445}
14446
14447int
14448main ()
14449{
14450 exit (find_stack_direction () < 0);
14451}
14452_ACEOF
14453rm -f conftest$ac_exeext
14454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14455 (eval $ac_link) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_cv_c_stack_direction=1
14465else
14466 echo "$as_me: program exited with status $ac_status" >&5
14467echo "$as_me: failed program was:" >&5
14468sed 's/^/| /' conftest.$ac_ext >&5
14469
14470( exit $ac_status )
14471ac_cv_c_stack_direction=-1
14472fi
14473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14474fi
14475fi
14476echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14477echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14478
14479cat >>confdefs.h <<_ACEOF
14480#define STACK_DIRECTION $ac_cv_c_stack_direction
14481_ACEOF
14482
14483
14484fi
14485
14486
14487
14488for ac_header in stdlib.h unistd.h
14489do
14490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14491if eval "test \"\${$as_ac_Header+set}\" = set"; then
14492 echo "$as_me:$LINENO: checking for $ac_header" >&5
14493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14494if eval "test \"\${$as_ac_Header+set}\" = set"; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14496fi
14497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14499else
14500 # Is the header compilable?
14501echo "$as_me:$LINENO: checking $ac_header usability" >&5
14502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14503cat >conftest.$ac_ext <<_ACEOF
14504/* confdefs.h. */
14505_ACEOF
14506cat confdefs.h >>conftest.$ac_ext
14507cat >>conftest.$ac_ext <<_ACEOF
14508/* end confdefs.h. */
14509$ac_includes_default
14510#include <$ac_header>
14511_ACEOF
14512rm -f conftest.$ac_objext
14513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514 (eval $ac_compile) 2>conftest.er1
14515 ac_status=$?
bec39cab
AC
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
14521 { ac_try='test -z "$ac_c_werror_flag"
14522 || test ! -s conftest.err'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; } &&
14528 { ac_try='test -s conftest.$ac_objext'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_header_compiler=yes
14535else
14536 echo "$as_me: failed program was:" >&5
14537sed 's/^/| /' conftest.$ac_ext >&5
14538
14539ac_header_compiler=no
14540fi
14541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14543echo "${ECHO_T}$ac_header_compiler" >&6
14544
14545# Is the header present?
14546echo "$as_me:$LINENO: checking $ac_header presence" >&5
14547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14548cat >conftest.$ac_ext <<_ACEOF
14549/* confdefs.h. */
14550_ACEOF
14551cat confdefs.h >>conftest.$ac_ext
14552cat >>conftest.$ac_ext <<_ACEOF
14553/* end confdefs.h. */
14554#include <$ac_header>
14555_ACEOF
14556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14558 ac_status=$?
14559 grep -v '^ *+' conftest.er1 >conftest.err
14560 rm -f conftest.er1
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } >/dev/null; then
14564 if test -s conftest.err; then
14565 ac_cpp_err=$ac_c_preproc_warn_flag
14566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14567 else
14568 ac_cpp_err=
14569 fi
14570else
14571 ac_cpp_err=yes
14572fi
14573if test -z "$ac_cpp_err"; then
14574 ac_header_preproc=yes
97bf5e38 14575else
bec39cab
AC
14576 echo "$as_me: failed program was:" >&5
14577sed 's/^/| /' conftest.$ac_ext >&5
14578
14579 ac_header_preproc=no
72473524 14580fi
bec39cab
AC
14581rm -f conftest.err conftest.$ac_ext
14582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14583echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14584
bec39cab
AC
14585# So? What about this header?
14586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14587 yes:no: )
14588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14592 ac_header_preproc=yes
14593 ;;
14594 no:yes:* )
14595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14598echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14602echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14607 (
14608 cat <<\_ASBOX
14609## ------------------------------------------ ##
14610## Report this to the AC_PACKAGE_NAME lists. ##
14611## ------------------------------------------ ##
14612_ASBOX
14613 ) |
14614 sed "s/^/$as_me: WARNING: /" >&2
14615 ;;
14616esac
14617echo "$as_me:$LINENO: checking for $ac_header" >&5
14618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14619if eval "test \"\${$as_ac_Header+set}\" = set"; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14621else
bec39cab
AC
14622 eval "$as_ac_Header=\$ac_header_preproc"
14623fi
14624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14626
14627fi
14628if test `eval echo '${'$as_ac_Header'}'` = yes; then
14629 cat >>confdefs.h <<_ACEOF
14630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14631_ACEOF
14632
14633fi
14634
14635done
14636
14637
a3828db0 14638for ac_func in getpagesize
bec39cab
AC
14639do
14640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14641echo "$as_me:$LINENO: checking for $ac_func" >&5
14642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14643if eval "test \"\${$as_ac_var+set}\" = set"; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else
14646 cat >conftest.$ac_ext <<_ACEOF
14647/* confdefs.h. */
14648_ACEOF
14649cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h. */
14652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14654#define $ac_func innocuous_$ac_func
14655
97bf5e38 14656/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14657 which can conflict with char $ac_func (); below.
14658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14659 <limits.h> exists even on freestanding compilers. */
2b2d558c 14660
bec39cab
AC
14661#ifdef __STDC__
14662# include <limits.h>
14663#else
14664# include <assert.h>
14665#endif
97bf5e38 14666
bec39cab
AC
14667#undef $ac_func
14668
14669/* Override any gcc2 internal prototype to avoid an error. */
14670#ifdef __cplusplus
14671extern "C"
14672{
14673#endif
14674/* We use char because int might match the return type of a gcc2
14675 builtin and then its argument prototype would still apply. */
14676char $ac_func ();
97bf5e38
MK
14677/* The GNU C library defines this for functions which it implements
14678 to always fail with ENOSYS. Some functions are actually named
14679 something starting with __ and the normal name is an alias. */
bec39cab 14680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14681choke me
14682#else
bec39cab
AC
14683char (*f) () = $ac_func;
14684#endif
14685#ifdef __cplusplus
14686}
97bf5e38
MK
14687#endif
14688
bec39cab
AC
14689int
14690main ()
14691{
14692return f != $ac_func;
14693 ;
14694 return 0;
14695}
14696_ACEOF
14697rm -f conftest.$ac_objext conftest$ac_exeext
14698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14699 (eval $ac_link) 2>conftest.er1
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag"
14707 || test ! -s conftest.err'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest$ac_exeext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 eval "$as_ac_var=yes"
14720else
14721 echo "$as_me: failed program was:" >&5
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
14724eval "$as_ac_var=no"
14725fi
14726rm -f conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14728fi
14729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14731if test `eval echo '${'$as_ac_var'}'` = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14734_ACEOF
14735
2b2d558c 14736fi
bec39cab 14737done
2b2d558c 14738
a3828db0
MK
14739echo "$as_me:$LINENO: checking for working mmap" >&5
14740echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14741if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 14742 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14743else
bec39cab 14744 if test "$cross_compiling" = yes; then
a3828db0 14745 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
14746else
14747 cat >conftest.$ac_ext <<_ACEOF
a3828db0 14748/* confdefs.h. */
bec39cab
AC
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h. */
a3828db0
MK
14753$ac_includes_default
14754/* malloc might have been renamed as rpl_malloc. */
14755#undef malloc
bec39cab 14756
a3828db0
MK
14757/* Thanks to Mike Haertel and Jim Avera for this test.
14758 Here is a matrix of mmap possibilities:
14759 mmap private not fixed
14760 mmap private fixed at somewhere currently unmapped
14761 mmap private fixed at somewhere already mapped
14762 mmap shared not fixed
14763 mmap shared fixed at somewhere currently unmapped
14764 mmap shared fixed at somewhere already mapped
14765 For private mappings, we should verify that changes cannot be read()
14766 back from the file, nor mmap's back from the file at a different
14767 address. (There have been systems where private was not correctly
14768 implemented like the infamous i386 svr4.0, and systems where the
14769 VM page cache was not coherent with the file system buffer cache
14770 like early versions of FreeBSD and possibly contemporary NetBSD.)
14771 For shared mappings, we should conversely verify that changes get
14772 propagated back to all the places they're supposed to be.
7dfa765c 14773
a3828db0
MK
14774 Grep wants private fixed already mapped.
14775 The main things grep needs to know about mmap are:
14776 * does it exist and is it safe to write into the mmap'd area
14777 * how to use it (BSD variants) */
7dfa765c 14778
a3828db0
MK
14779#include <fcntl.h>
14780#include <sys/mman.h>
7dfa765c 14781
a3828db0
MK
14782#if !STDC_HEADERS && !HAVE_STDLIB_H
14783char *malloc ();
14784#endif
7dfa765c 14785
a3828db0
MK
14786/* This mess was copied from the GNU getpagesize.h. */
14787#if !HAVE_GETPAGESIZE
14788/* Assume that all systems that can run configure have sys/param.h. */
14789# if !HAVE_SYS_PARAM_H
14790# define HAVE_SYS_PARAM_H 1
14791# endif
64bb1671 14792
a3828db0
MK
14793# ifdef _SC_PAGESIZE
14794# define getpagesize() sysconf(_SC_PAGESIZE)
14795# else /* no _SC_PAGESIZE */
14796# if HAVE_SYS_PARAM_H
14797# include <sys/param.h>
14798# ifdef EXEC_PAGESIZE
14799# define getpagesize() EXEC_PAGESIZE
14800# else /* no EXEC_PAGESIZE */
14801# ifdef NBPG
14802# define getpagesize() NBPG * CLSIZE
14803# ifndef CLSIZE
14804# define CLSIZE 1
14805# endif /* no CLSIZE */
14806# else /* no NBPG */
14807# ifdef NBPC
14808# define getpagesize() NBPC
14809# else /* no NBPC */
14810# ifdef PAGESIZE
14811# define getpagesize() PAGESIZE
14812# endif /* PAGESIZE */
14813# endif /* no NBPC */
14814# endif /* no NBPG */
14815# endif /* no EXEC_PAGESIZE */
14816# else /* no HAVE_SYS_PARAM_H */
14817# define getpagesize() 8192 /* punt totally */
14818# endif /* no HAVE_SYS_PARAM_H */
14819# endif /* no _SC_PAGESIZE */
64bb1671 14820
a3828db0 14821#endif /* no HAVE_GETPAGESIZE */
64bb1671 14822
a3828db0
MK
14823int
14824main ()
14825{
14826 char *data, *data2, *data3;
14827 int i, pagesize;
14828 int fd;
97bf5e38 14829
a3828db0
MK
14830 pagesize = getpagesize ();
14831
14832 /* First, make a file with some known garbage in it. */
14833 data = (char *) malloc (pagesize);
14834 if (!data)
14835 exit (1);
14836 for (i = 0; i < pagesize; ++i)
14837 *(data + i) = rand ();
14838 umask (0);
14839 fd = creat ("conftest.mmap", 0600);
14840 if (fd < 0)
14841 exit (1);
14842 if (write (fd, data, pagesize) != pagesize)
14843 exit (1);
14844 close (fd);
14845
14846 /* Next, try to mmap the file at a fixed address which already has
14847 something else allocated at it. If we can, also make sure that
14848 we see the same garbage. */
14849 fd = open ("conftest.mmap", O_RDWR);
14850 if (fd < 0)
14851 exit (1);
14852 data2 = (char *) malloc (2 * pagesize);
14853 if (!data2)
14854 exit (1);
14855 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14856 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14857 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14858 exit (1);
14859 for (i = 0; i < pagesize; ++i)
14860 if (*(data + i) != *(data2 + i))
14861 exit (1);
14862
14863 /* Finally, make sure that changes to the mapped area do not
14864 percolate back to the file as seen by read(). (This is a bug on
14865 some variants of i386 svr4.0.) */
14866 for (i = 0; i < pagesize; ++i)
14867 *(data2 + i) = *(data2 + i) + 1;
14868 data3 = (char *) malloc (pagesize);
14869 if (!data3)
14870 exit (1);
14871 if (read (fd, data3, pagesize) != pagesize)
14872 exit (1);
14873 for (i = 0; i < pagesize; ++i)
14874 if (*(data + i) != *(data3 + i))
14875 exit (1);
14876 close (fd);
14877 exit (0);
97bf5e38 14878}
bec39cab
AC
14879_ACEOF
14880rm -f conftest$ac_exeext
14881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14882 (eval $ac_link) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
a3828db0 14891 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 14892else
bec39cab
AC
14893 echo "$as_me: program exited with status $ac_status" >&5
14894echo "$as_me: failed program was:" >&5
14895sed 's/^/| /' conftest.$ac_ext >&5
14896
14897( exit $ac_status )
a3828db0 14898ac_cv_func_mmap_fixed_mapped=no
0afdd437 14899fi
a3828db0 14900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 14901fi
a3828db0
MK
14902fi
14903echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14904echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14905if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14906
14907cat >>confdefs.h <<\_ACEOF
a3828db0 14908#define HAVE_MMAP 1
bec39cab 14909_ACEOF
0afdd437
MK
14910
14911fi
a3828db0 14912rm -f conftest.mmap
0afdd437 14913
a3828db0
MK
14914echo "$as_me:$LINENO: checking for pid_t" >&5
14915echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14916if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918else
14919 cat >conftest.$ac_ext <<_ACEOF
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
a3828db0 14925$ac_includes_default
bec39cab
AC
14926int
14927main ()
14928{
a3828db0
MK
14929if ((pid_t *) 0)
14930 return 0;
14931if (sizeof (pid_t))
14932 return 0;
bec39cab
AC
14933 ;
14934 return 0;
14935}
14936_ACEOF
a3828db0
MK
14937rm -f conftest.$ac_objext
14938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14940 ac_status=$?
14941 grep -v '^ *+' conftest.er1 >conftest.err
14942 rm -f conftest.er1
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try='test -z "$ac_c_werror_flag"
14947 || test ! -s conftest.err'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; } &&
a3828db0 14953 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
a3828db0 14959 ac_cv_type_pid_t=yes
bec39cab
AC
14960else
14961 echo "$as_me: failed program was:" >&5
14962sed 's/^/| /' conftest.$ac_ext >&5
14963
a3828db0 14964ac_cv_type_pid_t=no
bec39cab 14965fi
a3828db0 14966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 14967fi
a3828db0
MK
14968echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14969echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14970if test $ac_cv_type_pid_t = yes; then
14971 :
14972else
14973
14974cat >>confdefs.h <<_ACEOF
14975#define pid_t int
bec39cab 14976_ACEOF
7e89e357 14977
7e89e357
JT
14978fi
14979
bec39cab 14980
a3828db0
MK
14981
14982for ac_header in unistd.h vfork.h
7be570e7 14983do
a3828db0
MK
14984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14985if eval "test \"\${$as_ac_Header+set}\" = set"; then
14986 echo "$as_me:$LINENO: checking for $ac_header" >&5
14987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14988if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14989 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
14990fi
14991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14993else
a3828db0
MK
14994 # Is the header compilable?
14995echo "$as_me:$LINENO: checking $ac_header usability" >&5
14996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14997cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14998/* confdefs.h. */
14999_ACEOF
15000cat confdefs.h >>conftest.$ac_ext
15001cat >>conftest.$ac_ext <<_ACEOF
15002/* end confdefs.h. */
a3828db0
MK
15003$ac_includes_default
15004#include <$ac_header>
bec39cab 15005_ACEOF
a3828db0
MK
15006rm -f conftest.$ac_objext
15007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15008 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15009 ac_status=$?
15010 grep -v '^ *+' conftest.er1 >conftest.err
15011 rm -f conftest.er1
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } &&
15015 { ac_try='test -z "$ac_c_werror_flag"
15016 || test ! -s conftest.err'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; } &&
a3828db0 15022 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
a3828db0 15028 ac_header_compiler=yes
bec39cab
AC
15029else
15030 echo "$as_me: failed program was:" >&5
15031sed 's/^/| /' conftest.$ac_ext >&5
15032
a3828db0 15033ac_header_compiler=no
bec39cab 15034fi
a3828db0
MK
15035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15037echo "${ECHO_T}$ac_header_compiler" >&6
15038
15039# Is the header present?
15040echo "$as_me:$LINENO: checking $ac_header presence" >&5
15041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15042cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
15047/* end confdefs.h. */
15048#include <$ac_header>
15049_ACEOF
15050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } >/dev/null; then
15058 if test -s conftest.err; then
15059 ac_cpp_err=$ac_c_preproc_warn_flag
15060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15061 else
15062 ac_cpp_err=
15063 fi
15064else
15065 ac_cpp_err=yes
15066fi
15067if test -z "$ac_cpp_err"; then
15068 ac_header_preproc=yes
15069else
15070 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 ac_header_preproc=no
15074fi
15075rm -f conftest.err conftest.$ac_ext
15076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15077echo "${ECHO_T}$ac_header_preproc" >&6
15078
15079# So? What about this header?
15080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15081 yes:no: )
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15086 ac_header_preproc=yes
15087 ;;
15088 no:yes:* )
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15101 (
15102 cat <<\_ASBOX
15103## ------------------------------------------ ##
15104## Report this to the AC_PACKAGE_NAME lists. ##
15105## ------------------------------------------ ##
15106_ASBOX
15107 ) |
15108 sed "s/^/$as_me: WARNING: /" >&2
15109 ;;
15110esac
15111echo "$as_me:$LINENO: checking for $ac_header" >&5
15112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15113if eval "test \"\${$as_ac_Header+set}\" = set"; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115else
15116 eval "$as_ac_Header=\$ac_header_preproc"
15117fi
15118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15120
bec39cab 15121fi
a3828db0 15122if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 15123 cat >>confdefs.h <<_ACEOF
a3828db0 15124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 15125_ACEOF
14abd0fb 15126
14abd0fb 15127fi
a3828db0 15128
14abd0fb
MK
15129done
15130
bec39cab 15131
a3828db0
MK
15132
15133for ac_func in fork vfork
14abd0fb 15134do
bec39cab
AC
15135as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15136echo "$as_me:$LINENO: checking for $ac_func" >&5
15137echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15138if eval "test \"\${$as_ac_var+set}\" = set"; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15140else
15141 cat >conftest.$ac_ext <<_ACEOF
15142/* confdefs.h. */
15143_ACEOF
15144cat confdefs.h >>conftest.$ac_ext
15145cat >>conftest.$ac_ext <<_ACEOF
15146/* end confdefs.h. */
15147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15149#define $ac_func innocuous_$ac_func
15150
14abd0fb 15151/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15152 which can conflict with char $ac_func (); below.
15153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15154 <limits.h> exists even on freestanding compilers. */
15155
15156#ifdef __STDC__
15157# include <limits.h>
15158#else
15159# include <assert.h>
15160#endif
14abd0fb 15161
bec39cab 15162#undef $ac_func
14abd0fb 15163
bec39cab
AC
15164/* Override any gcc2 internal prototype to avoid an error. */
15165#ifdef __cplusplus
15166extern "C"
15167{
15168#endif
15169/* We use char because int might match the return type of a gcc2
15170 builtin and then its argument prototype would still apply. */
15171char $ac_func ();
14abd0fb
MK
15172/* The GNU C library defines this for functions which it implements
15173 to always fail with ENOSYS. Some functions are actually named
15174 something starting with __ and the normal name is an alias. */
15175#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15176choke me
15177#else
bec39cab
AC
15178char (*f) () = $ac_func;
15179#endif
15180#ifdef __cplusplus
15181}
14abd0fb
MK
15182#endif
15183
bec39cab
AC
15184int
15185main ()
15186{
15187return f != $ac_func;
15188 ;
15189 return 0;
15190}
15191_ACEOF
15192rm -f conftest.$ac_objext conftest$ac_exeext
15193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15194 (eval $ac_link) 2>conftest.er1
15195 ac_status=$?
15196 grep -v '^ *+' conftest.er1 >conftest.err
15197 rm -f conftest.er1
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try='test -z "$ac_c_werror_flag"
15202 || test ! -s conftest.err'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; } &&
15208 { ac_try='test -s conftest$ac_exeext'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 eval "$as_ac_var=yes"
15215else
15216 echo "$as_me: failed program was:" >&5
15217sed 's/^/| /' conftest.$ac_ext >&5
15218
15219eval "$as_ac_var=no"
15220fi
15221rm -f conftest.err conftest.$ac_objext \
15222 conftest$ac_exeext conftest.$ac_ext
15223fi
15224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15225echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15226if test `eval echo '${'$as_ac_var'}'` = yes; then
15227 cat >>confdefs.h <<_ACEOF
15228#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15229_ACEOF
7be570e7 15230
7be570e7
JM
15231fi
15232done
15233
a3828db0
MK
15234if test "x$ac_cv_func_fork" = xyes; then
15235 echo "$as_me:$LINENO: checking for working fork" >&5
15236echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15237if test "${ac_cv_func_fork_works+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239else
15240 if test "$cross_compiling" = yes; then
15241 ac_cv_func_fork_works=cross
15242else
15243 cat >conftest.$ac_ext <<_ACEOF
15244/* By Ruediger Kuhlmann. */
15245 #include <sys/types.h>
15246 #if HAVE_UNISTD_H
15247 # include <unistd.h>
15248 #endif
15249 /* Some systems only have a dummy stub for fork() */
15250 int main ()
15251 {
15252 if (fork() < 0)
15253 exit (1);
15254 exit (0);
15255 }
15256_ACEOF
15257rm -f conftest$ac_exeext
15258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259 (eval $ac_link) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_cv_func_fork_works=yes
15269else
15270 echo "$as_me: program exited with status $ac_status" >&5
15271echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 15273
a3828db0
MK
15274( exit $ac_status )
15275ac_cv_func_fork_works=no
15276fi
15277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15278fi
15279fi
15280echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15281echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15282
15283else
15284 ac_cv_func_fork_works=$ac_cv_func_fork
15285fi
15286if test "x$ac_cv_func_fork_works" = xcross; then
15287 case $host in
15288 *-*-amigaos* | *-*-msdosdjgpp*)
15289 # Override, as these systems have only a dummy fork() stub
15290 ac_cv_func_fork_works=no
15291 ;;
15292 *)
15293 ac_cv_func_fork_works=yes
15294 ;;
15295 esac
15296 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15297echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15298fi
15299ac_cv_func_vfork_works=$ac_cv_func_vfork
15300if test "x$ac_cv_func_vfork" = xyes; then
15301 echo "$as_me:$LINENO: checking for working vfork" >&5
15302echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15303if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 15304 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
15305else
15306 if test "$cross_compiling" = yes; then
15307 ac_cv_func_vfork_works=cross
bec39cab
AC
15308else
15309 cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
a3828db0
MK
15315/* Thanks to Paul Eggert for this test. */
15316#include <stdio.h>
15317#include <stdlib.h>
15318#include <sys/types.h>
15319#include <sys/stat.h>
15320#include <sys/wait.h>
15321#if HAVE_UNISTD_H
15322# include <unistd.h>
bec39cab 15323#endif
a3828db0
MK
15324#if HAVE_VFORK_H
15325# include <vfork.h>
bec39cab 15326#endif
a3828db0
MK
15327/* On some sparc systems, changes by the child to local and incoming
15328 argument registers are propagated back to the parent. The compiler
15329 is told about this with #include <vfork.h>, but some compilers
15330 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15331 static variable whose address is put into a register that is
15332 clobbered by the vfork. */
15333static void
bec39cab 15334#ifdef __cplusplus
a3828db0
MK
15335sparc_address_test (int arg)
15336# else
15337sparc_address_test (arg) int arg;
c906108c 15338#endif
a3828db0
MK
15339{
15340 static pid_t child;
15341 if (!child) {
15342 child = vfork ();
15343 if (child < 0) {
15344 perror ("vfork");
15345 _exit(2);
15346 }
15347 if (!child) {
15348 arg = getpid();
15349 write(-1, "", 0);
15350 _exit (arg);
15351 }
15352 }
15353}
97bf5e38 15354
bec39cab
AC
15355int
15356main ()
15357{
a3828db0
MK
15358 pid_t parent = getpid ();
15359 pid_t child;
15360
15361 sparc_address_test (0);
15362
15363 child = vfork ();
15364
15365 if (child == 0) {
15366 /* Here is another test for sparc vfork register problems. This
15367 test uses lots of local variables, at least as many local
15368 variables as main has allocated so far including compiler
15369 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15370 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15371 reuse the register of parent for one of the local variables,
15372 since it will think that parent can't possibly be used any more
15373 in this routine. Assigning to the local variable will thus
15374 munge parent in the parent process. */
15375 pid_t
15376 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15377 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15378 /* Convince the compiler that p..p7 are live; otherwise, it might
15379 use the same hardware register for all 8 local variables. */
15380 if (p != p1 || p != p2 || p != p3 || p != p4
15381 || p != p5 || p != p6 || p != p7)
15382 _exit(1);
15383
15384 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15385 from child file descriptors. If the child closes a descriptor
15386 before it execs or exits, this munges the parent's descriptor
15387 as well. Test for this by closing stdout in the child. */
15388 _exit(close(fileno(stdout)) != 0);
15389 } else {
15390 int status;
15391 struct stat st;
15392
15393 while (wait(&status) != child)
15394 ;
15395 exit(
15396 /* Was there some problem with vforking? */
15397 child < 0
15398
15399 /* Did the child fail? (This shouldn't happen.) */
15400 || status
15401
15402 /* Did the vfork/compiler bug occur? */
15403 || parent != getpid()
15404
15405 /* Did the file descriptor bug occur? */
15406 || fstat(fileno(stdout), &st) != 0
15407 );
15408 }
bec39cab
AC
15409}
15410_ACEOF
a3828db0 15411rm -f conftest$ac_exeext
bec39cab 15412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 15413 (eval $ac_link) 2>&5
bec39cab
AC
15414 ac_status=$?
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 15416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
a3828db0
MK
15422 ac_cv_func_vfork_works=yes
15423else
15424 echo "$as_me: program exited with status $ac_status" >&5
15425echo "$as_me: failed program was:" >&5
15426sed 's/^/| /' conftest.$ac_ext >&5
15427
15428( exit $ac_status )
15429ac_cv_func_vfork_works=no
15430fi
15431rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15432fi
15433fi
15434echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15435echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15436
15437fi;
15438if test "x$ac_cv_func_fork_works" = xcross; then
15439 ac_cv_func_vfork_works=$ac_cv_func_vfork
15440 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15441echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15442fi
15443
15444if test "x$ac_cv_func_vfork_works" = xyes; then
15445
15446cat >>confdefs.h <<\_ACEOF
15447#define HAVE_WORKING_VFORK 1
15448_ACEOF
15449
bec39cab 15450else
bec39cab 15451
a3828db0
MK
15452cat >>confdefs.h <<\_ACEOF
15453#define vfork fork
15454_ACEOF
15455
bec39cab 15456fi
a3828db0
MK
15457if test "x$ac_cv_func_fork_works" = xyes; then
15458
15459cat >>confdefs.h <<\_ACEOF
15460#define HAVE_WORKING_FORK 1
bec39cab 15461_ACEOF
c906108c 15462
c906108c
SS
15463fi
15464
bec39cab
AC
15465
15466
a3828db0 15467for ac_func in canonicalize_file_name realpath
97bf5e38 15468do
bec39cab
AC
15469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15470echo "$as_me:$LINENO: checking for $ac_func" >&5
15471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15472if eval "test \"\${$as_ac_var+set}\" = set"; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474else
15475 cat >conftest.$ac_ext <<_ACEOF
15476/* confdefs.h. */
15477_ACEOF
15478cat confdefs.h >>conftest.$ac_ext
15479cat >>conftest.$ac_ext <<_ACEOF
15480/* end confdefs.h. */
15481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15483#define $ac_func innocuous_$ac_func
15484
d3ea6809
MM
15485/* System header to define __stub macros and hopefully few prototypes,
15486 which can conflict with char $ac_func (); below.
15487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15488 <limits.h> exists even on freestanding compilers. */
15489
15490#ifdef __STDC__
15491# include <limits.h>
15492#else
15493# include <assert.h>
15494#endif
15495
15496#undef $ac_func
15497
15498/* Override any gcc2 internal prototype to avoid an error. */
15499#ifdef __cplusplus
15500extern "C"
15501{
15502#endif
15503/* We use char because int might match the return type of a gcc2
15504 builtin and then its argument prototype would still apply. */
15505char $ac_func ();
15506/* The GNU C library defines this for functions which it implements
15507 to always fail with ENOSYS. Some functions are actually named
15508 something starting with __ and the normal name is an alias. */
15509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15510choke me
15511#else
15512char (*f) () = $ac_func;
15513#endif
15514#ifdef __cplusplus
15515}
15516#endif
15517
15518int
15519main ()
15520{
15521return f != $ac_func;
15522 ;
15523 return 0;
15524}
15525_ACEOF
15526rm -f conftest.$ac_objext conftest$ac_exeext
15527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest$ac_exeext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 eval "$as_ac_var=yes"
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553eval "$as_ac_var=no"
15554fi
15555rm -f conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
15557fi
15558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15559echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15560if test `eval echo '${'$as_ac_var'}'` = yes; then
15561 cat >>confdefs.h <<_ACEOF
15562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15563_ACEOF
15564
15565fi
15566done
15567
15568
15569
15570for ac_func in getuid getgid
15571do
15572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15573echo "$as_me:$LINENO: checking for $ac_func" >&5
15574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15575if eval "test \"\${$as_ac_var+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15577else
15578 cat >conftest.$ac_ext <<_ACEOF
15579/* confdefs.h. */
15580_ACEOF
15581cat confdefs.h >>conftest.$ac_ext
15582cat >>conftest.$ac_ext <<_ACEOF
15583/* end confdefs.h. */
15584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15586#define $ac_func innocuous_$ac_func
15587
97bf5e38 15588/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15589 which can conflict with char $ac_func (); below.
15590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15591 <limits.h> exists even on freestanding compilers. */
c906108c 15592
bec39cab
AC
15593#ifdef __STDC__
15594# include <limits.h>
15595#else
15596# include <assert.h>
15597#endif
97bf5e38 15598
bec39cab
AC
15599#undef $ac_func
15600
15601/* Override any gcc2 internal prototype to avoid an error. */
15602#ifdef __cplusplus
15603extern "C"
15604{
15605#endif
15606/* We use char because int might match the return type of a gcc2
15607 builtin and then its argument prototype would still apply. */
15608char $ac_func ();
97bf5e38
MK
15609/* The GNU C library defines this for functions which it implements
15610 to always fail with ENOSYS. Some functions are actually named
15611 something starting with __ and the normal name is an alias. */
15612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15613choke me
c906108c 15614#else
bec39cab
AC
15615char (*f) () = $ac_func;
15616#endif
15617#ifdef __cplusplus
15618}
c906108c 15619#endif
97bf5e38 15620
bec39cab
AC
15621int
15622main ()
15623{
15624return f != $ac_func;
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629rm -f conftest.$ac_objext conftest$ac_exeext
15630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631 (eval $ac_link) 2>conftest.er1
15632 ac_status=$?
15633 grep -v '^ *+' conftest.er1 >conftest.err
15634 rm -f conftest.er1
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
15638 { ac_try='test -z "$ac_c_werror_flag"
15639 || test ! -s conftest.err'
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 poll
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); } &&
15740 { ac_try='test -z "$ac_c_werror_flag"
15741 || test ! -s conftest.err'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest$ac_exeext'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 eval "$as_ac_var=yes"
15754else
15755 echo "$as_me: failed program was:" >&5
15756sed 's/^/| /' conftest.$ac_ext >&5
15757
15758eval "$as_ac_var=no"
15759fi
15760rm -f conftest.err conftest.$ac_objext \
15761 conftest$ac_exeext conftest.$ac_ext
15762fi
15763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15765if test `eval echo '${'$as_ac_var'}'` = yes; then
15766 cat >>confdefs.h <<_ACEOF
15767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15768_ACEOF
c906108c 15769
c906108c 15770fi
97bf5e38 15771done
c906108c 15772
bec39cab 15773
a3828db0 15774for ac_func in pread64
97bf5e38 15775do
bec39cab
AC
15776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15777echo "$as_me:$LINENO: checking for $ac_func" >&5
15778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15779if eval "test \"\${$as_ac_var+set}\" = set"; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15781else
15782 cat >conftest.$ac_ext <<_ACEOF
15783/* confdefs.h. */
15784_ACEOF
15785cat confdefs.h >>conftest.$ac_ext
15786cat >>conftest.$ac_ext <<_ACEOF
15787/* end confdefs.h. */
15788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15790#define $ac_func innocuous_$ac_func
15791
97bf5e38 15792/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15793 which can conflict with char $ac_func (); below.
15794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15795 <limits.h> exists even on freestanding compilers. */
15796
15797#ifdef __STDC__
15798# include <limits.h>
15799#else
15800# include <assert.h>
15801#endif
c906108c 15802
bec39cab 15803#undef $ac_func
97bf5e38 15804
bec39cab
AC
15805/* Override any gcc2 internal prototype to avoid an error. */
15806#ifdef __cplusplus
15807extern "C"
15808{
15809#endif
15810/* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15812char $ac_func ();
97bf5e38
MK
15813/* The GNU C library defines this for functions which it implements
15814 to always fail with ENOSYS. Some functions are actually named
15815 something starting with __ and the normal name is an alias. */
15816#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15817choke me
c906108c 15818#else
bec39cab
AC
15819char (*f) () = $ac_func;
15820#endif
15821#ifdef __cplusplus
15822}
c906108c 15823#endif
97bf5e38 15824
bec39cab
AC
15825int
15826main ()
15827{
15828return f != $ac_func;
15829 ;
15830 return 0;
15831}
15832_ACEOF
15833rm -f conftest.$ac_objext conftest$ac_exeext
15834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15835 (eval $ac_link) 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -z "$ac_c_werror_flag"
15843 || test ! -s conftest.err'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest$ac_exeext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 eval "$as_ac_var=yes"
15856else
15857 echo "$as_me: failed program was:" >&5
15858sed 's/^/| /' conftest.$ac_ext >&5
15859
15860eval "$as_ac_var=no"
15861fi
15862rm -f conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864fi
15865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15866echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15867if test `eval echo '${'$as_ac_var'}'` = yes; then
15868 cat >>confdefs.h <<_ACEOF
15869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15870_ACEOF
c906108c 15871
c906108c 15872fi
97bf5e38 15873done
c906108c 15874
bec39cab 15875
a3828db0 15876for ac_func in sbrk
b757528f 15877do
bec39cab
AC
15878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15879echo "$as_me:$LINENO: checking for $ac_func" >&5
15880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15881if eval "test \"\${$as_ac_var+set}\" = set"; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15883else
15884 cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
15890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15892#define $ac_func innocuous_$ac_func
15893
b757528f 15894/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15895 which can conflict with char $ac_func (); below.
15896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15897 <limits.h> exists even on freestanding compilers. */
15898
15899#ifdef __STDC__
15900# include <limits.h>
15901#else
15902# include <assert.h>
15903#endif
b757528f 15904
bec39cab 15905#undef $ac_func
b757528f 15906
bec39cab
AC
15907/* Override any gcc2 internal prototype to avoid an error. */
15908#ifdef __cplusplus
15909extern "C"
15910{
15911#endif
15912/* We use char because int might match the return type of a gcc2
15913 builtin and then its argument prototype would still apply. */
15914char $ac_func ();
b757528f
JJ
15915/* The GNU C library defines this for functions which it implements
15916 to always fail with ENOSYS. Some functions are actually named
15917 something starting with __ and the normal name is an alias. */
15918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15919choke me
15920#else
bec39cab
AC
15921char (*f) () = $ac_func;
15922#endif
15923#ifdef __cplusplus
15924}
b757528f
JJ
15925#endif
15926
bec39cab
AC
15927int
15928main ()
15929{
15930return f != $ac_func;
15931 ;
15932 return 0;
15933}
15934_ACEOF
15935rm -f conftest.$ac_objext conftest$ac_exeext
15936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15937 (eval $ac_link) 2>conftest.er1
15938 ac_status=$?
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag"
15945 || test ! -s conftest.err'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; } &&
15951 { ac_try='test -s conftest$ac_exeext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15957 eval "$as_ac_var=yes"
15958else
15959 echo "$as_me: failed program was:" >&5
15960sed 's/^/| /' conftest.$ac_ext >&5
15961
15962eval "$as_ac_var=no"
15963fi
15964rm -f conftest.err conftest.$ac_objext \
15965 conftest$ac_exeext conftest.$ac_ext
15966fi
15967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15969if test `eval echo '${'$as_ac_var'}'` = yes; then
15970 cat >>confdefs.h <<_ACEOF
15971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15972_ACEOF
b757528f 15973
b757528f
JJ
15974fi
15975done
15976
bec39cab 15977
a3828db0
MK
15978
15979for ac_func in setpgid setpgrp
bcb3dc3d 15980do
bec39cab
AC
15981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15982echo "$as_me:$LINENO: checking for $ac_func" >&5
15983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15984if eval "test \"\${$as_ac_var+set}\" = set"; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986else
15987 cat >conftest.$ac_ext <<_ACEOF
15988/* confdefs.h. */
15989_ACEOF
15990cat confdefs.h >>conftest.$ac_ext
15991cat >>conftest.$ac_ext <<_ACEOF
15992/* end confdefs.h. */
15993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15995#define $ac_func innocuous_$ac_func
15996
bcb3dc3d 15997/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15998 which can conflict with char $ac_func (); below.
15999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16000 <limits.h> exists even on freestanding compilers. */
16001
16002#ifdef __STDC__
16003# include <limits.h>
16004#else
16005# include <assert.h>
16006#endif
bcb3dc3d 16007
bec39cab 16008#undef $ac_func
bcb3dc3d 16009
bec39cab
AC
16010/* Override any gcc2 internal prototype to avoid an error. */
16011#ifdef __cplusplus
16012extern "C"
16013{
16014#endif
16015/* We use char because int might match the return type of a gcc2
16016 builtin and then its argument prototype would still apply. */
16017char $ac_func ();
bcb3dc3d
MK
16018/* The GNU C library defines this for functions which it implements
16019 to always fail with ENOSYS. Some functions are actually named
16020 something starting with __ and the normal name is an alias. */
16021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16022choke me
16023#else
bec39cab
AC
16024char (*f) () = $ac_func;
16025#endif
16026#ifdef __cplusplus
16027}
bcb3dc3d
MK
16028#endif
16029
bec39cab
AC
16030int
16031main ()
16032{
16033return f != $ac_func;
16034 ;
16035 return 0;
16036}
16037_ACEOF
16038rm -f conftest.$ac_objext conftest$ac_exeext
16039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_c_werror_flag"
16048 || test ! -s conftest.err'
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; } &&
16054 { ac_try='test -s conftest$ac_exeext'
16055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16056 (eval $ac_try) 2>&5
16057 ac_status=$?
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; }; then
16060 eval "$as_ac_var=yes"
16061else
16062 echo "$as_me: failed program was:" >&5
16063sed 's/^/| /' conftest.$ac_ext >&5
16064
16065eval "$as_ac_var=no"
16066fi
16067rm -f conftest.err conftest.$ac_objext \
16068 conftest$ac_exeext conftest.$ac_ext
16069fi
16070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16072if test `eval echo '${'$as_ac_var'}'` = yes; then
16073 cat >>confdefs.h <<_ACEOF
16074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16075_ACEOF
bcb3dc3d 16076
bcb3dc3d
MK
16077fi
16078done
16079
bec39cab 16080
a3828db0
MK
16081
16082
16083for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 16084do
bec39cab
AC
16085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16086echo "$as_me:$LINENO: checking for $ac_func" >&5
16087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16088if eval "test \"\${$as_ac_var+set}\" = set"; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090else
16091 cat >conftest.$ac_ext <<_ACEOF
16092/* confdefs.h. */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h. */
16097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16099#define $ac_func innocuous_$ac_func
16100
8b9cf735 16101/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16102 which can conflict with char $ac_func (); below.
16103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104 <limits.h> exists even on freestanding compilers. */
16105
16106#ifdef __STDC__
16107# include <limits.h>
16108#else
16109# include <assert.h>
16110#endif
8b9cf735 16111
bec39cab 16112#undef $ac_func
8b9cf735 16113
a3828db0
MK
16114/* Override any gcc2 internal prototype to avoid an error. */
16115#ifdef __cplusplus
16116extern "C"
16117{
16118#endif
16119/* We use char because int might match the return type of a gcc2
16120 builtin and then its argument prototype would still apply. */
16121char $ac_func ();
16122/* The GNU C library defines this for functions which it implements
16123 to always fail with ENOSYS. Some functions are actually named
16124 something starting with __ and the normal name is an alias. */
16125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16126choke me
16127#else
16128char (*f) () = $ac_func;
16129#endif
16130#ifdef __cplusplus
16131}
16132#endif
16133
bec39cab
AC
16134int
16135main ()
16136{
a3828db0 16137return f != $ac_func;
bec39cab
AC
16138 ;
16139 return 0;
16140}
16141_ACEOF
a3828db0
MK
16142rm -f conftest.$ac_objext conftest$ac_exeext
16143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16144 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16145 ac_status=$?
16146 grep -v '^ *+' conftest.er1 >conftest.err
16147 rm -f conftest.er1
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -z "$ac_c_werror_flag"
16152 || test ! -s conftest.err'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; } &&
a3828db0 16158 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
a3828db0 16164 eval "$as_ac_var=yes"
086ec9eb 16165else
bec39cab
AC
16166 echo "$as_me: failed program was:" >&5
16167sed 's/^/| /' conftest.$ac_ext >&5
16168
a3828db0
MK
16169eval "$as_ac_var=no"
16170fi
16171rm -f conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
16173fi
16174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16175echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16176if test `eval echo '${'$as_ac_var'}'` = yes; then
16177 cat >>confdefs.h <<_ACEOF
16178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16179_ACEOF
16180
086ec9eb 16181fi
a3828db0
MK
16182done
16183
16184
16185for ac_func in socketpair
16186do
16187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16188echo "$as_me:$LINENO: checking for $ac_func" >&5
16189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16190if eval "test \"\${$as_ac_var+set}\" = set"; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192else
16193 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16194/* confdefs.h. */
16195_ACEOF
16196cat confdefs.h >>conftest.$ac_ext
16197cat >>conftest.$ac_ext <<_ACEOF
16198/* end confdefs.h. */
a3828db0
MK
16199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16201#define $ac_func innocuous_$ac_func
16202
16203/* System header to define __stub macros and hopefully few prototypes,
16204 which can conflict with char $ac_func (); below.
16205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16206 <limits.h> exists even on freestanding compilers. */
16207
16208#ifdef __STDC__
16209# include <limits.h>
16210#else
16211# include <assert.h>
16212#endif
16213
16214#undef $ac_func
16215
16216/* Override any gcc2 internal prototype to avoid an error. */
16217#ifdef __cplusplus
16218extern "C"
16219{
16220#endif
16221/* We use char because int might match the return type of a gcc2
16222 builtin and then its argument prototype would still apply. */
16223char $ac_func ();
16224/* The GNU C library defines this for functions which it implements
16225 to always fail with ENOSYS. Some functions are actually named
16226 something starting with __ and the normal name is an alias. */
16227#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16228choke me
16229#else
16230char (*f) () = $ac_func;
16231#endif
16232#ifdef __cplusplus
16233}
16234#endif
16235
bec39cab
AC
16236int
16237main ()
16238{
a3828db0 16239return f != $ac_func;
bec39cab
AC
16240 ;
16241 return 0;
16242}
16243_ACEOF
a3828db0
MK
16244rm -f conftest.$ac_objext conftest$ac_exeext
16245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16246 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16247 ac_status=$?
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
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); }; } &&
a3828db0 16260 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
a3828db0 16266 eval "$as_ac_var=yes"
086ec9eb 16267else
bec39cab
AC
16268 echo "$as_me: failed program was:" >&5
16269sed 's/^/| /' conftest.$ac_ext >&5
16270
a3828db0 16271eval "$as_ac_var=no"
086ec9eb 16272fi
a3828db0
MK
16273rm -f conftest.err conftest.$ac_objext \
16274 conftest$ac_exeext conftest.$ac_ext
086ec9eb 16275fi
a3828db0
MK
16276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16277echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16278if test `eval echo '${'$as_ac_var'}'` = yes; then
16279 cat >>confdefs.h <<_ACEOF
16280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16281_ACEOF
086ec9eb
MK
16282
16283fi
a3828db0 16284done
086ec9eb 16285
a3828db0
MK
16286
16287for ac_func in syscall
16288do
16289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16290echo "$as_me:$LINENO: checking for $ac_func" >&5
16291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16292if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16293 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
16294else
16295 cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
a3828db0
MK
16301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16303#define $ac_func innocuous_$ac_func
16304
16305/* System header to define __stub macros and hopefully few prototypes,
16306 which can conflict with char $ac_func (); below.
16307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16308 <limits.h> exists even on freestanding compilers. */
16309
16310#ifdef __STDC__
16311# include <limits.h>
16312#else
16313# include <assert.h>
16314#endif
16315
16316#undef $ac_func
16317
16318/* Override any gcc2 internal prototype to avoid an error. */
16319#ifdef __cplusplus
16320extern "C"
16321{
16322#endif
16323/* We use char because int might match the return type of a gcc2
16324 builtin and then its argument prototype would still apply. */
16325char $ac_func ();
16326/* The GNU C library defines this for functions which it implements
16327 to always fail with ENOSYS. Some functions are actually named
16328 something starting with __ and the normal name is an alias. */
16329#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16330choke me
16331#else
16332char (*f) () = $ac_func;
16333#endif
16334#ifdef __cplusplus
16335}
c906108c 16336#endif
97bf5e38 16337
bec39cab
AC
16338int
16339main ()
97bf5e38 16340{
a3828db0 16341return f != $ac_func;
bec39cab
AC
16342 ;
16343 return 0;
97bf5e38 16344}
bec39cab 16345_ACEOF
a3828db0 16346rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 16347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16348 (eval $ac_link) 2>conftest.er1
bec39cab 16349 ac_status=$?
a3828db0
MK
16350 grep -v '^ *+' conftest.er1 >conftest.err
16351 rm -f conftest.er1
16352 cat conftest.err >&5
bec39cab 16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
16354 (exit $ac_status); } &&
16355 { ac_try='test -z "$ac_c_werror_flag"
16356 || test ! -s conftest.err'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
a3828db0 16368 eval "$as_ac_var=yes"
c906108c 16369else
a3828db0 16370 echo "$as_me: failed program was:" >&5
bec39cab
AC
16371sed 's/^/| /' conftest.$ac_ext >&5
16372
a3828db0 16373eval "$as_ac_var=no"
97bf5e38 16374fi
a3828db0
MK
16375rm -f conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377fi
16378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16380if test `eval echo '${'$as_ac_var'}'` = yes; then
16381 cat >>confdefs.h <<_ACEOF
16382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16383_ACEOF
c906108c
SS
16384
16385fi
a3828db0 16386done
c906108c 16387
a3828db0
MK
16388
16389for ac_func in ttrace
16390do
16391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16392echo "$as_me:$LINENO: checking for $ac_func" >&5
16393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16394if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16395 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 16396else
bec39cab
AC
16397 cat >conftest.$ac_ext <<_ACEOF
16398/* confdefs.h. */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
16402/* end confdefs.h. */
a3828db0
MK
16403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16405#define $ac_func innocuous_$ac_func
b83266a0 16406
a3828db0
MK
16407/* System header to define __stub macros and hopefully few prototypes,
16408 which can conflict with char $ac_func (); below.
16409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16410 <limits.h> exists even on freestanding compilers. */
16411
16412#ifdef __STDC__
16413# include <limits.h>
16414#else
16415# include <assert.h>
16416#endif
16417
16418#undef $ac_func
16419
16420/* Override any gcc2 internal prototype to avoid an error. */
16421#ifdef __cplusplus
16422extern "C"
16423{
16424#endif
16425/* We use char because int might match the return type of a gcc2
16426 builtin and then its argument prototype would still apply. */
16427char $ac_func ();
16428/* The GNU C library defines this for functions which it implements
16429 to always fail with ENOSYS. Some functions are actually named
16430 something starting with __ and the normal name is an alias. */
16431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16432choke me
16433#else
16434char (*f) () = $ac_func;
16435#endif
16436#ifdef __cplusplus
16437}
16438#endif
97bf5e38 16439
bec39cab
AC
16440int
16441main ()
16442{
a3828db0 16443return f != $ac_func;
bec39cab
AC
16444 ;
16445 return 0;
16446}
16447_ACEOF
a3828db0
MK
16448rm -f conftest.$ac_objext conftest$ac_exeext
16449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16450 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16451 ac_status=$?
16452 grep -v '^ *+' conftest.er1 >conftest.err
16453 rm -f conftest.er1
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
16457 { ac_try='test -z "$ac_c_werror_flag"
16458 || test ! -s conftest.err'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
a3828db0 16464 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
a3828db0 16470 eval "$as_ac_var=yes"
b83266a0 16471else
bec39cab
AC
16472 echo "$as_me: failed program was:" >&5
16473sed 's/^/| /' conftest.$ac_ext >&5
16474
a3828db0 16475eval "$as_ac_var=no"
b83266a0 16476fi
a3828db0
MK
16477rm -f conftest.err conftest.$ac_objext \
16478 conftest$ac_exeext conftest.$ac_ext
b83266a0 16479fi
a3828db0
MK
16480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16481echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16482if test `eval echo '${'$as_ac_var'}'` = yes; then
16483 cat >>confdefs.h <<_ACEOF
16484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16485_ACEOF
b83266a0 16486
97bf5e38 16487fi
a3828db0 16488done
b83266a0 16489
a3828db0
MK
16490
16491for ac_func in wborder
16492do
16493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16494echo "$as_me:$LINENO: checking for $ac_func" >&5
16495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16496if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498else
16499 cat >conftest.$ac_ext <<_ACEOF
16500/* confdefs.h. */
16501_ACEOF
16502cat confdefs.h >>conftest.$ac_ext
16503cat >>conftest.$ac_ext <<_ACEOF
16504/* end confdefs.h. */
a3828db0
MK
16505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16507#define $ac_func innocuous_$ac_func
a4db0f07 16508
a3828db0
MK
16509/* System header to define __stub macros and hopefully few prototypes,
16510 which can conflict with char $ac_func (); below.
16511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16512 <limits.h> exists even on freestanding compilers. */
16513
16514#ifdef __STDC__
16515# include <limits.h>
16516#else
16517# include <assert.h>
16518#endif
16519
16520#undef $ac_func
16521
16522/* Override any gcc2 internal prototype to avoid an error. */
16523#ifdef __cplusplus
16524extern "C"
16525{
16526#endif
16527/* We use char because int might match the return type of a gcc2
16528 builtin and then its argument prototype would still apply. */
16529char $ac_func ();
16530/* The GNU C library defines this for functions which it implements
16531 to always fail with ENOSYS. Some functions are actually named
16532 something starting with __ and the normal name is an alias. */
16533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16534choke me
16535#else
16536char (*f) () = $ac_func;
16537#endif
16538#ifdef __cplusplus
16539}
16540#endif
97bf5e38 16541
bec39cab
AC
16542int
16543main ()
16544{
a3828db0 16545return f != $ac_func;
bec39cab
AC
16546 ;
16547 return 0;
16548}
16549_ACEOF
a3828db0
MK
16550rm -f conftest.$ac_objext conftest$ac_exeext
16551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16553 ac_status=$?
16554 grep -v '^ *+' conftest.er1 >conftest.err
16555 rm -f conftest.er1
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag"
16560 || test ! -s conftest.err'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
a3828db0 16566 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
a3828db0 16572 eval "$as_ac_var=yes"
a4db0f07 16573else
bec39cab
AC
16574 echo "$as_me: failed program was:" >&5
16575sed 's/^/| /' conftest.$ac_ext >&5
16576
a3828db0 16577eval "$as_ac_var=no"
a4db0f07 16578fi
a3828db0
MK
16579rm -f conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
a4db0f07 16581fi
a3828db0
MK
16582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16584if test `eval echo '${'$as_ac_var'}'` = yes; then
16585 cat >>confdefs.h <<_ACEOF
16586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16587_ACEOF
a4db0f07
RH
16588
16589fi
a3828db0 16590done
c906108c 16591
06825bd1 16592
a3828db0
MK
16593# Check the return and argument types of ptrace. No canned test for
16594# this, so roll our own.
16595gdb_ptrace_headers='
16596#if HAVE_SYS_TYPES_H
16597# include <sys/types.h>
16598#endif
16599#if HAVE_SYS_PTRACE_H
16600# include <sys/ptrace.h>
16601#endif
16602#if HAVE_UNISTD_H
16603# include <unistd.h>
16604#endif
16605'
16606# There is no point in checking if we don't have a prototype.
16607echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16608echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16609if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611else
16612 cat >conftest.$ac_ext <<_ACEOF
16613/* confdefs.h. */
16614_ACEOF
16615cat confdefs.h >>conftest.$ac_ext
16616cat >>conftest.$ac_ext <<_ACEOF
16617/* end confdefs.h. */
a3828db0
MK
16618$gdb_ptrace_headers
16619
bec39cab
AC
16620int
16621main ()
16622{
a3828db0
MK
16623#ifndef ptrace
16624 char *p = (char *) ptrace;
06825bd1 16625#endif
a3828db0 16626
bec39cab
AC
16627 ;
16628 return 0;
16629}
16630_ACEOF
16631rm -f conftest.$ac_objext
16632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16633 (eval $ac_compile) 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
16640 { ac_try='test -z "$ac_c_werror_flag"
16641 || test ! -s conftest.err'
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16644 ac_status=$?
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest.$ac_objext'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
a3828db0 16653 ac_cv_have_decl_ptrace=yes
06825bd1 16654else
bec39cab
AC
16655 echo "$as_me: failed program was:" >&5
16656sed 's/^/| /' conftest.$ac_ext >&5
16657
a3828db0 16658ac_cv_have_decl_ptrace=no
06825bd1 16659fi
bec39cab 16660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16661fi
a3828db0
MK
16662echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16663echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16664if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 16665
a3828db0
MK
16666cat >>confdefs.h <<_ACEOF
16667#define HAVE_DECL_PTRACE 1
16668_ACEOF
bec39cab 16669
bec39cab 16670
a3828db0
MK
16671else
16672 cat >>confdefs.h <<_ACEOF
16673#define HAVE_DECL_PTRACE 0
bec39cab 16674_ACEOF
06825bd1 16675
a3828db0
MK
16676
16677 : ${gdb_cv_func_ptrace_ret='int'}
16678 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16679
06825bd1
MK
16680fi
16681
a3828db0
MK
16682
16683# Check return type.
16684echo "$as_me:$LINENO: checking return type of ptrace" >&5
16685echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16686if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688else
16689 cat >conftest.$ac_ext <<_ACEOF
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 16699extern int ptrace ();
bec39cab
AC
16700 ;
16701 return 0;
16702}
16703_ACEOF
16704rm -f conftest.$ac_objext
16705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706 (eval $ac_compile) 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag"
16714 || test ! -s conftest.err'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; } &&
16720 { ac_try='test -s conftest.$ac_objext'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
a3828db0 16726 gdb_cv_func_ptrace_ret='int'
70f9f479 16727else
bec39cab
AC
16728 echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
a3828db0 16731gdb_cv_func_ptrace_ret='long'
70f9f479 16732fi
bec39cab 16733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16734fi
a3828db0
MK
16735echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16736echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 16737
a3828db0
MK
16738cat >>confdefs.h <<_ACEOF
16739#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 16740_ACEOF
70f9f479 16741
a3828db0
MK
16742# Check argument types.
16743echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16744echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16745if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16747else
a3828db0
MK
16748
16749for gdb_arg1 in 'int' 'long'; do
16750 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16751 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16752 for gdb_arg4 in 'int' 'long'; do
16753 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16754/* confdefs.h. */
16755_ACEOF
16756cat confdefs.h >>conftest.$ac_ext
16757cat >>conftest.$ac_ext <<_ACEOF
16758/* end confdefs.h. */
a3828db0 16759$gdb_ptrace_headers
bec39cab
AC
16760int
16761main ()
16762{
a3828db0
MK
16763
16764extern $gdb_cv_func_ptrace_ret
16765 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16766
bec39cab
AC
16767 ;
16768 return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext
16772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16773 (eval $ac_compile) 2>conftest.er1
16774 ac_status=$?
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag"
16781 || test ! -s conftest.err'
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; } &&
16787 { ac_try='test -s conftest.$ac_objext'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
a3828db0
MK
16793 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16794 break 4;
5c7f2947 16795else
bec39cab
AC
16796 echo "$as_me: failed program was:" >&5
16797sed 's/^/| /' conftest.$ac_ext >&5
16798
5c7f2947 16799fi
bec39cab 16800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16801 for gdb_arg5 in 'int *' 'int' 'long'; do
16802 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16803/* confdefs.h. */
16804_ACEOF
16805cat confdefs.h >>conftest.$ac_ext
16806cat >>conftest.$ac_ext <<_ACEOF
16807/* end confdefs.h. */
a3828db0 16808$gdb_ptrace_headers
bec39cab
AC
16809int
16810main ()
16811{
a3828db0
MK
16812
16813extern $gdb_cv_func_ptrace_ret
16814 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16815
bec39cab
AC
16816 ;
16817 return 0;
16818}
16819_ACEOF
16820rm -f conftest.$ac_objext
16821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16822 (eval $ac_compile) 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag"
16830 || test ! -s conftest.err'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; } &&
16836 { ac_try='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
a3828db0
MK
16842
16843gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16844 break 5;
78434e59 16845else
bec39cab
AC
16846 echo "$as_me: failed program was:" >&5
16847sed 's/^/| /' conftest.$ac_ext >&5
16848
78434e59 16849fi
bec39cab 16850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16851 done
16852 done
16853 done
16854 done
16855done
16856# Provide a safe default value.
16857: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16858
78434e59 16859fi
a3828db0
MK
16860echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16861echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16862ac_save_IFS=$IFS; IFS=','
16863set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16864IFS=$ac_save_IFS
16865shift
bec39cab 16866
a3828db0
MK
16867cat >>confdefs.h <<_ACEOF
16868#define PTRACE_TYPE_ARG3 $3
16869_ACEOF
16870
16871if test -n "$5"; then
16872
16873cat >>confdefs.h <<_ACEOF
16874#define PTRACE_TYPE_ARG5 $5
bec39cab 16875_ACEOF
78434e59
MK
16876
16877fi
16878
a3828db0
MK
16879if test "$cross_compiling" = no; then
16880 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16881echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16882if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16883 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16884else
16885 if test "$cross_compiling" = yes; then
16886 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16887echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16888 { (exit 1); exit 1; }; }
bec39cab
AC
16889else
16890 cat >conftest.$ac_ext <<_ACEOF
16891/* confdefs.h. */
16892_ACEOF
16893cat confdefs.h >>conftest.$ac_ext
16894cat >>conftest.$ac_ext <<_ACEOF
16895/* end confdefs.h. */
a3828db0
MK
16896#if HAVE_UNISTD_H
16897# include <unistd.h>
16898#endif
16899
bec39cab
AC
16900int
16901main ()
16902{
a3828db0
MK
16903/* If this system has a BSD-style setpgrp which takes arguments,
16904 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16905 exit successfully. */
16906 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
16907 ;
16908 return 0;
16909}
16910_ACEOF
a3828db0
MK
16911rm -f conftest$ac_exeext
16912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>&5
bec39cab
AC
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
a3828db0 16922 ac_cv_func_setpgrp_void=no
c906108c 16923else
a3828db0
MK
16924 echo "$as_me: program exited with status $ac_status" >&5
16925echo "$as_me: failed program was:" >&5
bec39cab
AC
16926sed 's/^/| /' conftest.$ac_ext >&5
16927
a3828db0
MK
16928( exit $ac_status )
16929ac_cv_func_setpgrp_void=yes
c906108c 16930fi
a3828db0 16931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 16932fi
a3828db0
MK
16933fi
16934echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16935echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16936if test $ac_cv_func_setpgrp_void = yes; then
16937
16938cat >>confdefs.h <<\_ACEOF
16939#define SETPGRP_VOID 1
bec39cab 16940_ACEOF
97bf5e38
MK
16941
16942fi
a3828db0
MK
16943
16944else
16945 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16946echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16947if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16948 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16949else
bec39cab
AC
16950 cat >conftest.$ac_ext <<_ACEOF
16951/* confdefs.h. */
16952_ACEOF
16953cat confdefs.h >>conftest.$ac_ext
16954cat >>conftest.$ac_ext <<_ACEOF
16955/* end confdefs.h. */
a3828db0
MK
16956
16957#include <unistd.h>
16958
bec39cab
AC
16959int
16960main ()
16961{
a3828db0
MK
16962
16963 if (setpgrp(1,1) == -1)
16964 exit (0);
16965 else
16966 exit (1);
16967
bec39cab
AC
16968 ;
16969 return 0;
16970}
16971_ACEOF
16972rm -f conftest.$ac_objext
16973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16974 (eval $ac_compile) 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try='test -z "$ac_c_werror_flag"
16982 || test ! -s conftest.err'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; } &&
16988 { ac_try='test -s conftest.$ac_objext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
a3828db0 16994 ac_cv_func_setpgrp_void=no
c906108c 16995else
bec39cab
AC
16996 echo "$as_me: failed program was:" >&5
16997sed 's/^/| /' conftest.$ac_ext >&5
16998
a3828db0 16999ac_cv_func_setpgrp_void=yes
c906108c 17000fi
bec39cab 17001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17002fi
a3828db0
MK
17003echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17004echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17005if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 17006 cat >>confdefs.h <<\_ACEOF
a3828db0 17007#define SETPGRP_VOID 1
bec39cab 17008_ACEOF
c3f6f71d 17009
a3828db0 17010fi
c906108c
SS
17011fi
17012
a3828db0
MK
17013# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17014# since sigsetjmp might only be defined as a macro.
17015echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17016echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17017if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019else
17020 cat >conftest.$ac_ext <<_ACEOF
17021/* confdefs.h. */
17022_ACEOF
17023cat confdefs.h >>conftest.$ac_ext
17024cat >>conftest.$ac_ext <<_ACEOF
17025/* end confdefs.h. */
a3828db0
MK
17026
17027#include <setjmp.h>
17028
bec39cab
AC
17029int
17030main ()
17031{
a3828db0 17032sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
17033 ;
17034 return 0;
17035}
17036_ACEOF
17037rm -f conftest.$ac_objext
17038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17039 (eval $ac_compile) 2>conftest.er1
17040 ac_status=$?
17041 grep -v '^ *+' conftest.er1 >conftest.err
17042 rm -f conftest.er1
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -z "$ac_c_werror_flag"
17047 || test ! -s conftest.err'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest.$ac_objext'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
a3828db0 17059 gdb_cv_func_sigsetjmp=yes
c906108c 17060else
bec39cab
AC
17061 echo "$as_me: failed program was:" >&5
17062sed 's/^/| /' conftest.$ac_ext >&5
17063
a3828db0 17064gdb_cv_func_sigsetjmp=no
c906108c 17065fi
bec39cab 17066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17067fi
a3828db0
MK
17068echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17069echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
17070if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 17071
a3828db0
MK
17072cat >>confdefs.h <<\_ACEOF
17073#define HAVE_SIGSETJMP 1
bec39cab 17074_ACEOF
c906108c 17075
97bf5e38 17076fi
c906108c 17077
a3828db0
MK
17078# Assume we'll default to using the included libiberty regex.
17079gdb_use_included_regex=yes
17080
17081# However, if the system regex is GNU regex, then default to *not*
17082# using the included regex.
17083echo "$as_me:$LINENO: checking for GNU regex" >&5
17084echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
17085if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087else
17088 cat >conftest.$ac_ext <<_ACEOF
17089/* confdefs.h. */
17090_ACEOF
17091cat confdefs.h >>conftest.$ac_ext
17092cat >>conftest.$ac_ext <<_ACEOF
17093/* end confdefs.h. */
a3828db0 17094#include <gnu-versions.h>
bec39cab
AC
17095int
17096main ()
17097{
a3828db0
MK
17098#define REGEX_INTERFACE_VERSION 1
17099#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17100# error "Version mismatch"
17101#endif
bec39cab
AC
17102 ;
17103 return 0;
17104}
17105_ACEOF
17106rm -f conftest.$ac_objext
17107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108 (eval $ac_compile) 2>conftest.er1
17109 ac_status=$?
17110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
17115 { ac_try='test -z "$ac_c_werror_flag"
17116 || test ! -s conftest.err'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest.$ac_objext'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
a3828db0 17128 gdb_cv_have_gnu_regex=yes
c906108c 17129else
bec39cab
AC
17130 echo "$as_me: failed program was:" >&5
17131sed 's/^/| /' conftest.$ac_ext >&5
17132
a3828db0 17133gdb_cv_have_gnu_regex=no
c906108c 17134fi
bec39cab 17135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17136fi
a3828db0
MK
17137echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17138echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17139if test $gdb_cv_have_gnu_regex = yes; then
17140 gdb_use_included_regex=no
17141fi
c906108c 17142
a3828db0
MK
17143
17144# Check whether --with-included-regex or --without-included-regex was given.
17145if test "${with_included_regex+set}" = set; then
17146 withval="$with_included_regex"
17147 gdb_with_regex=$withval
17148else
17149 gdb_with_regex=$gdb_use_included_regex
17150fi;
17151if test "$gdb_with_regex" = yes; then
17152
17153cat >>confdefs.h <<\_ACEOF
17154#define USE_INCLUDED_REGEX 1
bec39cab 17155_ACEOF
c906108c 17156
97bf5e38 17157fi
c906108c 17158
5c45e068
MK
17159# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17160echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17161echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17162if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17164else
17165 cat >conftest.$ac_ext <<_ACEOF
17166/* confdefs.h. */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h. */
a3828db0
MK
17171#include <sys/param.h>
17172#include <sys/proc.h>
5c45e068
MK
17173
17174
bec39cab
AC
17175int
17176main ()
17177{
5c45e068
MK
17178static struct thread ac_aggr;
17179if (ac_aggr.td_pcb)
17180return 0;
bec39cab
AC
17181 ;
17182 return 0;
17183}
17184_ACEOF
17185rm -f conftest.$ac_objext
17186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17187 (eval $ac_compile) 2>conftest.er1
17188 ac_status=$?
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag"
17195 || test ! -s conftest.err'
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); }; } &&
17201 { ac_try='test -s conftest.$ac_objext'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
5c45e068 17207 ac_cv_member_struct_thread_td_pcb=yes
c906108c 17208else
bec39cab
AC
17209 echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
5c45e068
MK
17212cat >conftest.$ac_ext <<_ACEOF
17213/* confdefs.h. */
17214_ACEOF
17215cat confdefs.h >>conftest.$ac_ext
17216cat >>conftest.$ac_ext <<_ACEOF
17217/* end confdefs.h. */
17218#include <sys/param.h>
17219#include <sys/proc.h>
17220
17221
17222int
17223main ()
17224{
17225static struct thread ac_aggr;
17226if (sizeof ac_aggr.td_pcb)
17227return 0;
17228 ;
17229 return 0;
17230}
17231_ACEOF
17232rm -f conftest.$ac_objext
17233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17234 (eval $ac_compile) 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag"
17242 || test ! -s conftest.err'
17243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244 (eval $ac_try) 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest.$ac_objext'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
17254 ac_cv_member_struct_thread_td_pcb=yes
17255else
17256 echo "$as_me: failed program was:" >&5
17257sed 's/^/| /' conftest.$ac_ext >&5
17258
17259ac_cv_member_struct_thread_td_pcb=no
17260fi
17261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17262fi
bec39cab 17263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17264fi
5c45e068
MK
17265echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17266echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17267if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 17268
5c45e068 17269cat >>confdefs.h <<_ACEOF
a3828db0 17270#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 17271_ACEOF
c906108c 17272
5c45e068 17273
97bf5e38 17274fi
c906108c 17275
5c45e068 17276
a3828db0
MK
17277# See if <sys/lwp.h> defines `struct lwp`.
17278echo "$as_me:$LINENO: checking for struct lwp" >&5
17279echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17280if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282else
17283 cat >conftest.$ac_ext <<_ACEOF
17284/* confdefs.h. */
17285_ACEOF
17286cat confdefs.h >>conftest.$ac_ext
17287cat >>conftest.$ac_ext <<_ACEOF
17288/* end confdefs.h. */
a3828db0
MK
17289#include <sys/param.h>
17290#include <sys/lwp.h>
bec39cab
AC
17291int
17292main ()
17293{
a3828db0 17294struct lwp l;
bec39cab
AC
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext
17300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17301 (eval $ac_compile) 2>conftest.er1
17302 ac_status=$?
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -z "$ac_c_werror_flag"
17309 || test ! -s conftest.err'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest.$ac_objext'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17318 ac_status=$?
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
a3828db0 17321 gdb_cv_struct_lwp=yes
c906108c 17322else
bec39cab
AC
17323 echo "$as_me: failed program was:" >&5
17324sed 's/^/| /' conftest.$ac_ext >&5
17325
a3828db0 17326gdb_cv_struct_lwp=no
c906108c 17327fi
bec39cab 17328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17329fi
a3828db0
MK
17330echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17331echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17332if test $gdb_cv_struct_lwp = yes; then
c906108c 17333
a3828db0
MK
17334cat >>confdefs.h <<\_ACEOF
17335#define HAVE_STRUCT_LWP 1
bec39cab 17336_ACEOF
c906108c 17337
97bf5e38 17338fi
c906108c 17339
a3828db0
MK
17340# See if <machine/reg.h> degines `struct reg'.
17341echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17342echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17343if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17345else
17346 cat >conftest.$ac_ext <<_ACEOF
17347/* confdefs.h. */
17348_ACEOF
17349cat confdefs.h >>conftest.$ac_ext
17350cat >>conftest.$ac_ext <<_ACEOF
17351/* end confdefs.h. */
a3828db0
MK
17352#include <sys/types.h>
17353#include <machine/reg.h>
bec39cab
AC
17354int
17355main ()
17356{
a3828db0 17357struct reg r;
bec39cab
AC
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext
17363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17364 (eval $ac_compile) 2>conftest.er1
17365 ac_status=$?
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -z "$ac_c_werror_flag"
17372 || test ! -s conftest.err'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest.$ac_objext'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
a3828db0 17384 gdb_cv_struct_reg=yes
27ca5dad 17385else
bec39cab
AC
17386 echo "$as_me: failed program was:" >&5
17387sed 's/^/| /' conftest.$ac_ext >&5
17388
a3828db0 17389gdb_cv_struct_reg=no
27ca5dad 17390fi
bec39cab 17391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 17392fi
a3828db0
MK
17393echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17394echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17395if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
17396
17397cat >>confdefs.h <<\_ACEOF
a3828db0 17398#define HAVE_STRUCT_REG 1
bec39cab 17399_ACEOF
27ca5dad
MC
17400
17401fi
97bf5e38 17402
a3828db0
MK
17403# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17404# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
5c45e068
MK
17405echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17406echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17407if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 17408 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17409else
bec39cab
AC
17410 cat >conftest.$ac_ext <<_ACEOF
17411/* confdefs.h. */
17412_ACEOF
17413cat confdefs.h >>conftest.$ac_ext
17414cat >>conftest.$ac_ext <<_ACEOF
17415/* end confdefs.h. */
a3828db0 17416#include <machine/reg.h>
5c45e068
MK
17417
17418int
17419main ()
17420{
17421static struct reg ac_aggr;
17422if (ac_aggr.r_fs)
17423return 0;
17424 ;
17425 return 0;
17426}
17427_ACEOF
17428rm -f conftest.$ac_objext
17429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17430 (eval $ac_compile) 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag"
17438 || test ! -s conftest.err'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest.$ac_objext'
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 ac_cv_member_struct_reg_r_fs=yes
17451else
17452 echo "$as_me: failed program was:" >&5
17453sed 's/^/| /' conftest.$ac_ext >&5
17454
17455cat >conftest.$ac_ext <<_ACEOF
17456/* confdefs.h. */
17457_ACEOF
17458cat confdefs.h >>conftest.$ac_ext
17459cat >>conftest.$ac_ext <<_ACEOF
17460/* end confdefs.h. */
17461#include <machine/reg.h>
17462
bec39cab
AC
17463int
17464main ()
17465{
5c45e068
MK
17466static struct reg ac_aggr;
17467if (sizeof ac_aggr.r_fs)
17468return 0;
bec39cab
AC
17469 ;
17470 return 0;
17471}
17472_ACEOF
17473rm -f conftest.$ac_objext
17474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17475 (eval $ac_compile) 2>conftest.er1
17476 ac_status=$?
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -z "$ac_c_werror_flag"
17483 || test ! -s conftest.err'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest.$ac_objext'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
5c45e068 17495 ac_cv_member_struct_reg_r_fs=yes
3862412b 17496else
bec39cab
AC
17497 echo "$as_me: failed program was:" >&5
17498sed 's/^/| /' conftest.$ac_ext >&5
17499
5c45e068 17500ac_cv_member_struct_reg_r_fs=no
3862412b 17501fi
bec39cab 17502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17503fi
5c45e068
MK
17504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17505fi
17506echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17507echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17508if test $ac_cv_member_struct_reg_r_fs = yes; then
17509
17510cat >>confdefs.h <<_ACEOF
a3828db0 17511#define HAVE_STRUCT_REG_R_FS 1
bec39cab 17512_ACEOF
3862412b 17513
5c45e068 17514
97bf5e38 17515fi
5c45e068
MK
17516echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17517echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17518if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 17519 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17520else
bec39cab
AC
17521 cat >conftest.$ac_ext <<_ACEOF
17522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
a3828db0 17527#include <machine/reg.h>
5c45e068 17528
bec39cab
AC
17529int
17530main ()
17531{
5c45e068
MK
17532static struct reg ac_aggr;
17533if (ac_aggr.r_gs)
17534return 0;
bec39cab
AC
17535 ;
17536 return 0;
17537}
17538_ACEOF
17539rm -f conftest.$ac_objext
17540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17541 (eval $ac_compile) 2>conftest.er1
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag"
17549 || test ! -s conftest.err'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; } &&
17555 { ac_try='test -s conftest.$ac_objext'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
5c45e068 17561 ac_cv_member_struct_reg_r_gs=yes
3862412b 17562else
bec39cab
AC
17563 echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
5c45e068
MK
17566cat >conftest.$ac_ext <<_ACEOF
17567/* confdefs.h. */
17568_ACEOF
17569cat confdefs.h >>conftest.$ac_ext
17570cat >>conftest.$ac_ext <<_ACEOF
17571/* end confdefs.h. */
17572#include <machine/reg.h>
17573
17574int
17575main ()
17576{
17577static struct reg ac_aggr;
17578if (sizeof ac_aggr.r_gs)
17579return 0;
17580 ;
17581 return 0;
17582}
17583_ACEOF
17584rm -f conftest.$ac_objext
17585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17586 (eval $ac_compile) 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag"
17594 || test ! -s conftest.err'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest.$ac_objext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 ac_cv_member_struct_reg_r_gs=yes
17607else
17608 echo "$as_me: failed program was:" >&5
17609sed 's/^/| /' conftest.$ac_ext >&5
17610
17611ac_cv_member_struct_reg_r_gs=no
3862412b 17612fi
bec39cab 17613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17614fi
5c45e068
MK
17615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17616fi
17617echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17618echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17619if test $ac_cv_member_struct_reg_r_gs = yes; then
17620
17621cat >>confdefs.h <<_ACEOF
a3828db0 17622#define HAVE_STRUCT_REG_R_GS 1
bec39cab 17623_ACEOF
3862412b 17624
5c45e068 17625
97bf5e38 17626fi
3862412b 17627
5c45e068 17628
a3828db0
MK
17629# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17630echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17631echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17632if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 17633 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17634else
bec39cab
AC
17635 cat >conftest.$ac_ext <<_ACEOF
17636/* confdefs.h. */
17637_ACEOF
17638cat confdefs.h >>conftest.$ac_ext
17639cat >>conftest.$ac_ext <<_ACEOF
17640/* end confdefs.h. */
a3828db0 17641#include <sys/ptrace.h>
bec39cab
AC
17642int
17643main ()
17644{
a3828db0 17645PTRACE_GETREGS;
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); } &&
17659 { ac_try='test -z "$ac_c_werror_flag"
17660 || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
a3828db0 17672 gdb_cv_have_ptrace_getregs=yes
451928c5 17673else
bec39cab
AC
17674 echo "$as_me: failed program was:" >&5
17675sed 's/^/| /' conftest.$ac_ext >&5
17676
a3828db0 17677gdb_cv_have_ptrace_getregs=no
451928c5 17678fi
bec39cab 17679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17680fi
17681
a3828db0
MK
17682echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17683echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17684if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
17685
17686cat >>confdefs.h <<\_ACEOF
a3828db0 17687#define HAVE_PTRACE_GETREGS 1
bec39cab 17688_ACEOF
451928c5 17689
97bf5e38 17690fi
451928c5 17691
a3828db0
MK
17692# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17693echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17694echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17695if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 17696 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17697else
bec39cab
AC
17698 cat >conftest.$ac_ext <<_ACEOF
17699/* confdefs.h. */
17700_ACEOF
17701cat confdefs.h >>conftest.$ac_ext
17702cat >>conftest.$ac_ext <<_ACEOF
17703/* end confdefs.h. */
a3828db0 17704#include <sys/ptrace.h>
bec39cab
AC
17705int
17706main ()
17707{
a3828db0 17708PTRACE_GETFPXREGS;
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); } &&
17722 { ac_try='test -z "$ac_c_werror_flag"
17723 || test ! -s conftest.err'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; } &&
17729 { ac_try='test -s conftest.$ac_objext'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
a3828db0 17735 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 17736else
bec39cab
AC
17737 echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
17739
a3828db0 17740gdb_cv_have_ptrace_getfpxregs=no
451928c5 17741fi
bec39cab 17742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17743fi
17744
a3828db0
MK
17745echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17746echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17747if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
17748
17749cat >>confdefs.h <<\_ACEOF
a3828db0 17750#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 17751_ACEOF
451928c5 17752
97bf5e38 17753fi
451928c5 17754
a3828db0
MK
17755# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17756echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17757echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17758if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 17759 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17760else
bec39cab
AC
17761 cat >conftest.$ac_ext <<_ACEOF
17762/* confdefs.h. */
17763_ACEOF
17764cat confdefs.h >>conftest.$ac_ext
17765cat >>conftest.$ac_ext <<_ACEOF
17766/* end confdefs.h. */
a3828db0
MK
17767#include <sys/types.h>
17768#include <sys/ptrace.h>
bec39cab
AC
17769int
17770main ()
17771{
a3828db0 17772PT_GETDBREGS;
bec39cab
AC
17773 ;
17774 return 0;
17775}
17776_ACEOF
17777rm -f conftest.$ac_objext
17778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779 (eval $ac_compile) 2>conftest.er1
17780 ac_status=$?
17781 grep -v '^ *+' conftest.er1 >conftest.err
17782 rm -f conftest.er1
17783 cat conftest.err >&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } &&
17786 { ac_try='test -z "$ac_c_werror_flag"
17787 || test ! -s conftest.err'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try='test -s conftest.$ac_objext'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
a3828db0 17799 gdb_cv_have_pt_getdbregs=yes
3862412b 17800else
bec39cab
AC
17801 echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
17803
a3828db0 17804gdb_cv_have_pt_getdbregs=no
3862412b 17805fi
bec39cab 17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17807fi
17808
a3828db0
MK
17809echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17810echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17811if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
17812
17813cat >>confdefs.h <<\_ACEOF
a3828db0 17814#define HAVE_PT_GETDBREGS 1
bec39cab 17815_ACEOF
3862412b 17816
97bf5e38 17817fi
3862412b 17818
a3828db0
MK
17819# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17820echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17821echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17822if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 17823 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17824else
bec39cab
AC
17825 cat >conftest.$ac_ext <<_ACEOF
17826/* confdefs.h. */
17827_ACEOF
17828cat confdefs.h >>conftest.$ac_ext
17829cat >>conftest.$ac_ext <<_ACEOF
17830/* end confdefs.h. */
a3828db0
MK
17831#include <sys/types.h>
17832#include <sys/ptrace.h>
bec39cab
AC
17833int
17834main ()
17835{
a3828db0 17836PT_GETXMMREGS;
bec39cab
AC
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17843 (eval $ac_compile) 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag"
17851 || test ! -s conftest.err'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest.$ac_objext'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
a3828db0 17863 gdb_cv_have_pt_getxmmregs=yes
3862412b 17864else
bec39cab
AC
17865 echo "$as_me: failed program was:" >&5
17866sed 's/^/| /' conftest.$ac_ext >&5
17867
a3828db0 17868gdb_cv_have_pt_getxmmregs=no
3862412b 17869fi
bec39cab 17870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17871fi
17872
a3828db0
MK
17873echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17874echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17875if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
17876
17877cat >>confdefs.h <<\_ACEOF
a3828db0 17878#define HAVE_PT_GETXMMREGS 1
bec39cab 17879_ACEOF
3862412b 17880
97bf5e38 17881fi
3862412b 17882
97bf5e38
MK
17883# If we are configured native on GNU/Linux, work around problems with
17884# sys/procfs.h
17885# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17886
17887if test "${target}" = "${host}"; then
17888 case "${host}" in
17889 i[3456]86-*-linux*)
60ca704f
SE
17890
17891cat >>confdefs.h <<\_ACEOF
97bf5e38 17892#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17893_ACEOF
97bf5e38 17894
60ca704f
SE
17895
17896cat >>confdefs.h <<\_ACEOF
97bf5e38 17897#define sys_quotactl 1
bec39cab 17898_ACEOF
97bf5e38
MK
17899
17900 ;;
97bf5e38 17901 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
17902
17903cat >>confdefs.h <<\_ACEOF
97bf5e38 17904#define NEW_PROC_API 1
bec39cab 17905_ACEOF
97bf5e38
MK
17906
17907 ;;
0bbc026e 17908 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
17909
17910cat >>confdefs.h <<\_ACEOF
97bf5e38 17911#define NEW_PROC_API 1
bec39cab 17912_ACEOF
c960c18f
AC
17913
17914 ;;
17915 mips-sgi-irix5*)
17916 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
17917
17918cat >>confdefs.h <<\_ACEOF
c960c18f 17919#define _KMEMUSER 1
bec39cab 17920_ACEOF
97bf5e38
MK
17921
17922 ;;
17923 esac
17924fi
17925
17926if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17927 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17928echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17929 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931else
17932 cat >conftest.$ac_ext <<_ACEOF
17933/* confdefs.h. */
17934_ACEOF
17935cat confdefs.h >>conftest.$ac_ext
17936cat >>conftest.$ac_ext <<_ACEOF
17937/* end confdefs.h. */
596c9d4b
KB
17938
17939#define _SYSCALL32
17940#include <sys/procfs.h>
bec39cab
AC
17941int
17942main ()
17943{
97bf5e38 17944pstatus_t avar
bec39cab
AC
17945 ;
17946 return 0;
17947}
17948_ACEOF
17949rm -f conftest.$ac_objext
17950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17951 (eval $ac_compile) 2>conftest.er1
17952 ac_status=$?
17953 grep -v '^ *+' conftest.er1 >conftest.err
17954 rm -f conftest.er1
17955 cat conftest.err >&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try='test -z "$ac_c_werror_flag"
17959 || test ! -s conftest.err'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; } &&
17965 { ac_try='test -s conftest.$ac_objext'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
97bf5e38 17971 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17972else
bec39cab
AC
17973 echo "$as_me: failed program was:" >&5
17974sed 's/^/| /' conftest.$ac_ext >&5
17975
17976bfd_cv_have_sys_procfs_type_pstatus_t=no
17977
596c9d4b 17978fi
bec39cab 17979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17980fi
17981
97bf5e38 17982 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17983
17984cat >>confdefs.h <<\_ACEOF
97bf5e38 17985#define HAVE_PSTATUS_T 1
bec39cab 17986_ACEOF
596c9d4b
KB
17987
17988 fi
bec39cab
AC
17989 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17990echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17991
bec39cab
AC
17992 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17993echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17994 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17996else
bec39cab
AC
17997 cat >conftest.$ac_ext <<_ACEOF
17998/* confdefs.h. */
17999_ACEOF
18000cat confdefs.h >>conftest.$ac_ext
18001cat >>conftest.$ac_ext <<_ACEOF
18002/* end confdefs.h. */
596c9d4b
KB
18003
18004#define _SYSCALL32
18005#include <sys/procfs.h>
bec39cab
AC
18006int
18007main ()
18008{
97bf5e38 18009prrun_t avar
bec39cab
AC
18010 ;
18011 return 0;
18012}
18013_ACEOF
18014rm -f conftest.$ac_objext
18015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18016 (eval $ac_compile) 2>conftest.er1
18017 ac_status=$?
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag"
18024 || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest.$ac_objext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
97bf5e38 18036 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 18037else
bec39cab
AC
18038 echo "$as_me: failed program was:" >&5
18039sed 's/^/| /' conftest.$ac_ext >&5
18040
18041bfd_cv_have_sys_procfs_type_prrun_t=no
18042
596c9d4b 18043fi
bec39cab 18044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18045fi
18046
97bf5e38 18047 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
18048
18049cat >>confdefs.h <<\_ACEOF
97bf5e38 18050#define HAVE_PRRUN_T 1
bec39cab 18051_ACEOF
596c9d4b
KB
18052
18053 fi
bec39cab
AC
18054 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18055echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 18056
bec39cab
AC
18057 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18058echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
18059 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18061else
bec39cab
AC
18062 cat >conftest.$ac_ext <<_ACEOF
18063/* confdefs.h. */
18064_ACEOF
18065cat confdefs.h >>conftest.$ac_ext
18066cat >>conftest.$ac_ext <<_ACEOF
18067/* end confdefs.h. */
596c9d4b
KB
18068
18069#define _SYSCALL32
18070#include <sys/procfs.h>
bec39cab
AC
18071int
18072main ()
18073{
97bf5e38 18074gregset_t avar
bec39cab
AC
18075 ;
18076 return 0;
18077}
18078_ACEOF
18079rm -f conftest.$ac_objext
18080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>conftest.er1
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag"
18089 || test ! -s conftest.err'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; } &&
18095 { ac_try='test -s conftest.$ac_objext'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
97bf5e38 18101 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 18102else
bec39cab
AC
18103 echo "$as_me: failed program was:" >&5
18104sed 's/^/| /' conftest.$ac_ext >&5
18105
18106bfd_cv_have_sys_procfs_type_gregset_t=no
18107
596c9d4b 18108fi
bec39cab 18109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18110fi
18111
97bf5e38 18112 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
18113
18114cat >>confdefs.h <<\_ACEOF
97bf5e38 18115#define HAVE_GREGSET_T 1
bec39cab 18116_ACEOF
596c9d4b
KB
18117
18118 fi
bec39cab
AC
18119 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18120echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 18121
bec39cab
AC
18122 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18123echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18124 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 18126else
bec39cab
AC
18127 cat >conftest.$ac_ext <<_ACEOF
18128/* confdefs.h. */
18129_ACEOF
18130cat confdefs.h >>conftest.$ac_ext
18131cat >>conftest.$ac_ext <<_ACEOF
18132/* end confdefs.h. */
97bf5e38
MK
18133
18134#define _SYSCALL32
d84dd0c5 18135#include <sys/procfs.h>
bec39cab
AC
18136int
18137main ()
18138{
97bf5e38 18139fpregset_t avar
bec39cab
AC
18140 ;
18141 return 0;
18142}
18143_ACEOF
18144rm -f conftest.$ac_objext
18145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18146 (eval $ac_compile) 2>conftest.er1
18147 ac_status=$?
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag"
18154 || test ! -s conftest.err'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest.$ac_objext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
97bf5e38 18166 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 18167else
bec39cab
AC
18168 echo "$as_me: failed program was:" >&5
18169sed 's/^/| /' conftest.$ac_ext >&5
18170
18171bfd_cv_have_sys_procfs_type_fpregset_t=no
18172
d84dd0c5 18173fi
bec39cab 18174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
18175fi
18176
97bf5e38 18177 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
18178
18179cat >>confdefs.h <<\_ACEOF
97bf5e38 18180#define HAVE_FPREGSET_T 1
bec39cab 18181_ACEOF
d84dd0c5 18182
97bf5e38 18183 fi
bec39cab
AC
18184 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18185echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 18186
bec39cab
AC
18187 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18188echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18189 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18191else
bec39cab
AC
18192 cat >conftest.$ac_ext <<_ACEOF
18193/* confdefs.h. */
18194_ACEOF
18195cat confdefs.h >>conftest.$ac_ext
18196cat >>conftest.$ac_ext <<_ACEOF
18197/* end confdefs.h. */
c906108c 18198
97bf5e38
MK
18199#define _SYSCALL32
18200#include <sys/procfs.h>
bec39cab
AC
18201int
18202main ()
18203{
97bf5e38 18204prgregset_t avar
bec39cab
AC
18205 ;
18206 return 0;
18207}
18208_ACEOF
18209rm -f conftest.$ac_objext
18210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18211 (eval $ac_compile) 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag"
18219 || test ! -s conftest.err'
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); }; } &&
18225 { ac_try='test -s conftest.$ac_objext'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
97bf5e38 18231 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 18232else
bec39cab
AC
18233 echo "$as_me: failed program was:" >&5
18234sed 's/^/| /' conftest.$ac_ext >&5
18235
18236bfd_cv_have_sys_procfs_type_prgregset_t=no
18237
c906108c 18238fi
bec39cab 18239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18240fi
18241
97bf5e38 18242 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
18243
18244cat >>confdefs.h <<\_ACEOF
97bf5e38 18245#define HAVE_PRGREGSET_T 1
bec39cab 18246_ACEOF
c906108c 18247
97bf5e38 18248 fi
bec39cab
AC
18249 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18250echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 18251
bec39cab
AC
18252 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18253echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18254 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18256else
bec39cab
AC
18257 cat >conftest.$ac_ext <<_ACEOF
18258/* confdefs.h. */
18259_ACEOF
18260cat confdefs.h >>conftest.$ac_ext
18261cat >>conftest.$ac_ext <<_ACEOF
18262/* end confdefs.h. */
97bf5e38
MK
18263
18264#define _SYSCALL32
18265#include <sys/procfs.h>
bec39cab
AC
18266int
18267main ()
18268{
97bf5e38 18269prfpregset_t avar
bec39cab
AC
18270 ;
18271 return 0;
18272}
18273_ACEOF
18274rm -f conftest.$ac_objext
18275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276 (eval $ac_compile) 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -z "$ac_c_werror_flag"
18284 || test ! -s conftest.err'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest.$ac_objext'
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
97bf5e38 18296 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 18297else
bec39cab
AC
18298 echo "$as_me: failed program was:" >&5
18299sed 's/^/| /' conftest.$ac_ext >&5
18300
18301bfd_cv_have_sys_procfs_type_prfpregset_t=no
18302
d45fe813 18303fi
bec39cab 18304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18305fi
18306
97bf5e38 18307 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18308
18309cat >>confdefs.h <<\_ACEOF
97bf5e38 18310#define HAVE_PRFPREGSET_T 1
bec39cab 18311_ACEOF
d45fe813 18312
97bf5e38 18313 fi
bec39cab
AC
18314 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18315echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 18316
bec39cab
AC
18317 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18318echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18319 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18321else
bec39cab
AC
18322 cat >conftest.$ac_ext <<_ACEOF
18323/* confdefs.h. */
18324_ACEOF
18325cat confdefs.h >>conftest.$ac_ext
18326cat >>conftest.$ac_ext <<_ACEOF
18327/* end confdefs.h. */
97bf5e38
MK
18328
18329#define _SYSCALL32
18330#include <sys/procfs.h>
bec39cab
AC
18331int
18332main ()
18333{
97bf5e38 18334prgregset32_t avar
bec39cab
AC
18335 ;
18336 return 0;
18337}
18338_ACEOF
18339rm -f conftest.$ac_objext
18340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18341 (eval $ac_compile) 2>conftest.er1
18342 ac_status=$?
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
18348 { ac_try='test -z "$ac_c_werror_flag"
18349 || test ! -s conftest.err'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } &&
18355 { ac_try='test -s conftest.$ac_objext'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
97bf5e38 18361 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 18362else
bec39cab
AC
18363 echo "$as_me: failed program was:" >&5
18364sed 's/^/| /' conftest.$ac_ext >&5
18365
18366bfd_cv_have_sys_procfs_type_prgregset32_t=no
18367
d45fe813 18368fi
bec39cab 18369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18370fi
18371
97bf5e38 18372 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18373
18374cat >>confdefs.h <<\_ACEOF
97bf5e38 18375#define HAVE_PRGREGSET32_T 1
bec39cab 18376_ACEOF
d45fe813 18377
97bf5e38 18378 fi
bec39cab
AC
18379 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18380echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18381
bec39cab
AC
18382 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18383echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18384 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18386else
bec39cab
AC
18387 cat >conftest.$ac_ext <<_ACEOF
18388/* confdefs.h. */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h. */
97bf5e38
MK
18393
18394#define _SYSCALL32
18395#include <sys/procfs.h>
bec39cab
AC
18396int
18397main ()
18398{
97bf5e38 18399prfpregset32_t avar
bec39cab
AC
18400 ;
18401 return 0;
18402}
18403_ACEOF
18404rm -f conftest.$ac_objext
18405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18406 (eval $ac_compile) 2>conftest.er1
18407 ac_status=$?
18408 grep -v '^ *+' conftest.er1 >conftest.err
18409 rm -f conftest.er1
18410 cat conftest.err >&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } &&
18413 { ac_try='test -z "$ac_c_werror_flag"
18414 || test ! -s conftest.err'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest.$ac_objext'
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
97bf5e38 18426 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18427else
bec39cab
AC
18428 echo "$as_me: failed program was:" >&5
18429sed 's/^/| /' conftest.$ac_ext >&5
18430
18431bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18432
d45fe813 18433fi
bec39cab 18434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18435fi
18436
97bf5e38 18437 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18438
18439cat >>confdefs.h <<\_ACEOF
97bf5e38 18440#define HAVE_PRFPREGSET32_T 1
bec39cab 18441_ACEOF
d45fe813 18442
97bf5e38 18443 fi
bec39cab
AC
18444 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18445echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18446
bec39cab
AC
18447 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18448echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18449 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18451else
bec39cab
AC
18452 cat >conftest.$ac_ext <<_ACEOF
18453/* confdefs.h. */
18454_ACEOF
18455cat confdefs.h >>conftest.$ac_ext
18456cat >>conftest.$ac_ext <<_ACEOF
18457/* end confdefs.h. */
97bf5e38 18458
d45fe813 18459#define _SYSCALL32
97bf5e38 18460#include <sys/procfs.h>
bec39cab
AC
18461int
18462main ()
18463{
97bf5e38 18464lwpid_t avar
bec39cab
AC
18465 ;
18466 return 0;
18467}
18468_ACEOF
18469rm -f conftest.$ac_objext
18470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18471 (eval $ac_compile) 2>conftest.er1
18472 ac_status=$?
18473 grep -v '^ *+' conftest.er1 >conftest.err
18474 rm -f conftest.er1
18475 cat conftest.err >&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } &&
18478 { ac_try='test -z "$ac_c_werror_flag"
18479 || test ! -s conftest.err'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest.$ac_objext'
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
97bf5e38 18491 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18492else
bec39cab
AC
18493 echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496bfd_cv_have_sys_procfs_type_lwpid_t=no
18497
d45fe813 18498fi
bec39cab 18499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18500fi
18501
97bf5e38 18502 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18503
18504cat >>confdefs.h <<\_ACEOF
97bf5e38 18505#define HAVE_LWPID_T 1
bec39cab 18506_ACEOF
d45fe813 18507
97bf5e38 18508 fi
bec39cab
AC
18509 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18510echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18511
bec39cab
AC
18512 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18513echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18514 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18516else
bec39cab
AC
18517 cat >conftest.$ac_ext <<_ACEOF
18518/* confdefs.h. */
18519_ACEOF
18520cat confdefs.h >>conftest.$ac_ext
18521cat >>conftest.$ac_ext <<_ACEOF
18522/* end confdefs.h. */
c906108c 18523
97bf5e38
MK
18524#define _SYSCALL32
18525#include <sys/procfs.h>
bec39cab
AC
18526int
18527main ()
18528{
97bf5e38 18529psaddr_t avar
bec39cab
AC
18530 ;
18531 return 0;
18532}
18533_ACEOF
18534rm -f conftest.$ac_objext
18535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
97bf5e38 18556 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18557else
bec39cab
AC
18558 echo "$as_me: failed program was:" >&5
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
18561bfd_cv_have_sys_procfs_type_psaddr_t=no
18562
c906108c 18563fi
bec39cab 18564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18565fi
18566
97bf5e38 18567 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18568
18569cat >>confdefs.h <<\_ACEOF
97bf5e38 18570#define HAVE_PSADDR_T 1
bec39cab 18571_ACEOF
c906108c 18572
97bf5e38 18573 fi
bec39cab
AC
18574 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18575echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18576
bec39cab
AC
18577 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18578echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18579 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18581else
bec39cab
AC
18582 cat >conftest.$ac_ext <<_ACEOF
18583/* confdefs.h. */
18584_ACEOF
18585cat confdefs.h >>conftest.$ac_ext
18586cat >>conftest.$ac_ext <<_ACEOF
18587/* end confdefs.h. */
c906108c 18588
97bf5e38
MK
18589#define _SYSCALL32
18590#include <sys/procfs.h>
bec39cab
AC
18591int
18592main ()
18593{
97bf5e38 18594prsysent_t avar
bec39cab
AC
18595 ;
18596 return 0;
18597}
18598_ACEOF
18599rm -f conftest.$ac_objext
18600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18601 (eval $ac_compile) 2>conftest.er1
18602 ac_status=$?
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } &&
18608 { ac_try='test -z "$ac_c_werror_flag"
18609 || test ! -s conftest.err'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; } &&
18615 { ac_try='test -s conftest.$ac_objext'
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; }; then
97bf5e38 18621 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18622else
bec39cab
AC
18623 echo "$as_me: failed program was:" >&5
18624sed 's/^/| /' conftest.$ac_ext >&5
18625
18626bfd_cv_have_sys_procfs_type_prsysent_t=no
18627
c906108c 18628fi
bec39cab 18629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18630fi
18631
97bf5e38 18632 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18633
18634cat >>confdefs.h <<\_ACEOF
97bf5e38 18635#define HAVE_PRSYSENT_T 1
bec39cab 18636_ACEOF
c906108c 18637
97bf5e38 18638 fi
bec39cab
AC
18639 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18640echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18641
bec39cab
AC
18642 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18643echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18644 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18646else
bec39cab
AC
18647 cat >conftest.$ac_ext <<_ACEOF
18648/* confdefs.h. */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
18652/* end confdefs.h. */
c906108c 18653
97bf5e38
MK
18654#define _SYSCALL32
18655#include <sys/procfs.h>
bec39cab
AC
18656int
18657main ()
18658{
97bf5e38 18659pr_sigset_t avar
bec39cab
AC
18660 ;
18661 return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext
18665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18666 (eval $ac_compile) 2>conftest.er1
18667 ac_status=$?
18668 grep -v '^ *+' conftest.er1 >conftest.err
18669 rm -f conftest.er1
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } &&
18673 { ac_try='test -z "$ac_c_werror_flag"
18674 || test ! -s conftest.err'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; } &&
18680 { ac_try='test -s conftest.$ac_objext'
18681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682 (eval $ac_try) 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
97bf5e38 18686 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18687else
bec39cab
AC
18688 echo "$as_me: failed program was:" >&5
18689sed 's/^/| /' conftest.$ac_ext >&5
18690
18691bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18692
c906108c 18693fi
bec39cab 18694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18695fi
18696
97bf5e38 18697 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18698
18699cat >>confdefs.h <<\_ACEOF
97bf5e38 18700#define HAVE_PR_SIGSET_T 1
bec39cab 18701_ACEOF
c906108c 18702
97bf5e38 18703 fi
bec39cab
AC
18704 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18705echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18706
bec39cab
AC
18707 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18708echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18709 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18711else
bec39cab
AC
18712 cat >conftest.$ac_ext <<_ACEOF
18713/* confdefs.h. */
18714_ACEOF
18715cat confdefs.h >>conftest.$ac_ext
18716cat >>conftest.$ac_ext <<_ACEOF
18717/* end confdefs.h. */
c906108c 18718
97bf5e38
MK
18719#define _SYSCALL32
18720#include <sys/procfs.h>
bec39cab
AC
18721int
18722main ()
18723{
97bf5e38 18724pr_sigaction64_t avar
bec39cab
AC
18725 ;
18726 return 0;
18727}
18728_ACEOF
18729rm -f conftest.$ac_objext
18730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18731 (eval $ac_compile) 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -z "$ac_c_werror_flag"
18739 || test ! -s conftest.err'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; } &&
18745 { ac_try='test -s conftest.$ac_objext'
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
97bf5e38 18751 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18752else
bec39cab
AC
18753 echo "$as_me: failed program was:" >&5
18754sed 's/^/| /' conftest.$ac_ext >&5
18755
18756bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18757
c906108c 18758fi
bec39cab 18759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18760fi
18761
97bf5e38 18762 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18763
18764cat >>confdefs.h <<\_ACEOF
97bf5e38 18765#define HAVE_PR_SIGACTION64_T 1
bec39cab 18766_ACEOF
c906108c 18767
97bf5e38 18768 fi
bec39cab
AC
18769 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18770echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18771
bec39cab
AC
18772 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18773echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18774 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18776else
bec39cab
AC
18777 cat >conftest.$ac_ext <<_ACEOF
18778/* confdefs.h. */
18779_ACEOF
18780cat confdefs.h >>conftest.$ac_ext
18781cat >>conftest.$ac_ext <<_ACEOF
18782/* end confdefs.h. */
97bf5e38
MK
18783
18784#define _SYSCALL32
18785#include <sys/procfs.h>
bec39cab
AC
18786int
18787main ()
18788{
97bf5e38 18789pr_siginfo64_t avar
bec39cab
AC
18790 ;
18791 return 0;
18792}
18793_ACEOF
18794rm -f conftest.$ac_objext
18795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18796 (eval $ac_compile) 2>conftest.er1
18797 ac_status=$?
18798 grep -v '^ *+' conftest.er1 >conftest.err
18799 rm -f conftest.er1
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } &&
18803 { ac_try='test -z "$ac_c_werror_flag"
18804 || test ! -s conftest.err'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest.$ac_objext'
18811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18812 (eval $ac_try) 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; }; then
97bf5e38
MK
18816 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18817else
bec39cab
AC
18818 echo "$as_me: failed program was:" >&5
18819sed 's/^/| /' conftest.$ac_ext >&5
18820
18821bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18822
97bf5e38 18823fi
bec39cab 18824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18825fi
c906108c 18826
97bf5e38 18827 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18828
18829cat >>confdefs.h <<\_ACEOF
97bf5e38 18830#define HAVE_PR_SIGINFO64_T 1
bec39cab 18831_ACEOF
c906108c 18832
97bf5e38 18833 fi
bec39cab
AC
18834 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18835echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18836
18837
97bf5e38
MK
18838
18839
18840
97bf5e38 18841 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18842 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18843echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18844 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18846else
18847 if test "$cross_compiling" = yes; then
97bf5e38 18848 gdb_cv_prfpregset_t_broken=yes
c906108c 18849else
bec39cab
AC
18850 cat >conftest.$ac_ext <<_ACEOF
18851/* confdefs.h. */
18852_ACEOF
18853cat confdefs.h >>conftest.$ac_ext
18854cat >>conftest.$ac_ext <<_ACEOF
18855/* end confdefs.h. */
97bf5e38
MK
18856#include <sys/procfs.h>
18857 int main ()
18858 {
18859 if (sizeof (prfpregset_t) == sizeof (void *))
18860 return 1;
18861 return 0;
18862 }
bec39cab
AC
18863_ACEOF
18864rm -f conftest$ac_exeext
18865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18866 (eval $ac_link) 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
97bf5e38 18875 gdb_cv_prfpregset_t_broken=no
c906108c 18876else
bec39cab
AC
18877 echo "$as_me: program exited with status $ac_status" >&5
18878echo "$as_me: failed program was:" >&5
18879sed 's/^/| /' conftest.$ac_ext >&5
18880
18881( exit $ac_status )
18882gdb_cv_prfpregset_t_broken=yes
c906108c 18883fi
bec39cab 18884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18885fi
c906108c
SS
18886fi
18887
bec39cab
AC
18888 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18889echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18890 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
18891
18892cat >>confdefs.h <<\_ACEOF
97bf5e38 18893#define PRFPREGSET_T_BROKEN 1
bec39cab 18894_ACEOF
c906108c 18895
97bf5e38
MK
18896 fi
18897 fi
c906108c 18898
bec39cab
AC
18899
18900 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18901echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18902 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18904else
bec39cab
AC
18905 cat >conftest.$ac_ext <<_ACEOF
18906/* confdefs.h. */
18907_ACEOF
18908cat confdefs.h >>conftest.$ac_ext
18909cat >>conftest.$ac_ext <<_ACEOF
18910/* end confdefs.h. */
97bf5e38
MK
18911#include <unistd.h>
18912#include <sys/types.h>
18913#include <sys/procfs.h>
18914
bec39cab
AC
18915int
18916main ()
18917{
97bf5e38
MK
18918
18919 int dummy;;
18920 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18921
18922 ;
18923 return 0;
18924}
18925_ACEOF
18926rm -f conftest.$ac_objext
18927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18928 (eval $ac_compile) 2>conftest.er1
18929 ac_status=$?
18930 grep -v '^ *+' conftest.er1 >conftest.err
18931 rm -f conftest.er1
18932 cat conftest.err >&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
18935 { ac_try='test -z "$ac_c_werror_flag"
18936 || test ! -s conftest.err'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; } &&
18942 { ac_try='test -s conftest.$ac_objext'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
97bf5e38 18948 gdb_cv_have_procfs_piocset=yes
c906108c 18949else
bec39cab
AC
18950 echo "$as_me: failed program was:" >&5
18951sed 's/^/| /' conftest.$ac_ext >&5
18952
18953gdb_cv_have_procfs_piocset=no
c906108c 18954fi
bec39cab 18955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18956fi
97bf5e38 18957
bec39cab
AC
18958 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18959echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18960 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
18961
18962cat >>confdefs.h <<\_ACEOF
97bf5e38 18963#define HAVE_PROCFS_PIOCSET 1
bec39cab 18964_ACEOF
97bf5e38
MK
18965
18966 fi
c906108c 18967fi
c906108c 18968
97bf5e38 18969if test ${host} = ${target} ; then
bec39cab
AC
18970
18971 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18972echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18973 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975else
18976 cat >conftest.$ac_ext <<_ACEOF
18977/* confdefs.h. */
18978_ACEOF
18979cat confdefs.h >>conftest.$ac_ext
18980cat >>conftest.$ac_ext <<_ACEOF
18981/* end confdefs.h. */
97bf5e38 18982#include <link.h>
bec39cab
AC
18983int
18984main ()
18985{
97bf5e38 18986struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18987 ;
18988 return 0;
18989}
18990_ACEOF
18991rm -f conftest.$ac_objext
18992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18993 (eval $ac_compile) 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
19000 { ac_try='test -z "$ac_c_werror_flag"
19001 || test ! -s conftest.err'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest.$ac_objext'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
97bf5e38 19013 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 19014else
bec39cab
AC
19015 echo "$as_me: failed program was:" >&5
19016sed 's/^/| /' conftest.$ac_ext >&5
19017
19018gdb_cv_have_struct_link_map_with_l_members=no
c906108c 19019fi
bec39cab 19020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19021fi
19022
bec39cab
AC
19023 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19024echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 19025 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
19026
19027cat >>confdefs.h <<\_ACEOF
97bf5e38 19028#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 19029_ACEOF
97bf5e38
MK
19030
19031 fi
19032
bec39cab
AC
19033
19034 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19035echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
19036 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19038else
bec39cab
AC
19039 cat >conftest.$ac_ext <<_ACEOF
19040/* confdefs.h. */
19041_ACEOF
19042cat confdefs.h >>conftest.$ac_ext
19043cat >>conftest.$ac_ext <<_ACEOF
19044/* end confdefs.h. */
97bf5e38
MK
19045#include <sys/types.h>
19046#include <link.h>
bec39cab
AC
19047int
19048main ()
19049{
97bf5e38 19050struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
19051 ;
19052 return 0;
19053}
19054_ACEOF
19055rm -f conftest.$ac_objext
19056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19057 (eval $ac_compile) 2>conftest.er1
19058 ac_status=$?
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
19064 { ac_try='test -z "$ac_c_werror_flag"
19065 || test ! -s conftest.err'
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; } &&
19071 { ac_try='test -s conftest.$ac_objext'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
97bf5e38
MK
19077 gdb_cv_have_struct_link_map_with_lm_members=yes
19078else
bec39cab
AC
19079 echo "$as_me: failed program was:" >&5
19080sed 's/^/| /' conftest.$ac_ext >&5
19081
19082gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 19083fi
bec39cab 19084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19085fi
c906108c 19086
bec39cab
AC
19087 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19088echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 19089 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
19090
19091cat >>confdefs.h <<\_ACEOF
97bf5e38 19092#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 19093_ACEOF
97bf5e38
MK
19094
19095 fi
19096
bec39cab
AC
19097
19098 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19099echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19100 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19102else
bec39cab
AC
19103 cat >conftest.$ac_ext <<_ACEOF
19104/* confdefs.h. */
19105_ACEOF
19106cat confdefs.h >>conftest.$ac_ext
19107cat >>conftest.$ac_ext <<_ACEOF
19108/* end confdefs.h. */
97bf5e38
MK
19109#include <sys/types.h>
19110#ifdef HAVE_NLIST_H
19111#include <nlist.h>
19112#endif
19113#include <link.h>
bec39cab
AC
19114int
19115main ()
19116{
97bf5e38 19117struct so_map lm; (void) lm.som_addr;
bec39cab
AC
19118 ;
19119 return 0;
19120}
19121_ACEOF
19122rm -f conftest.$ac_objext
19123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19124 (eval $ac_compile) 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try='test -z "$ac_c_werror_flag"
19132 || test ! -s conftest.err'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest.$ac_objext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
97bf5e38
MK
19144 gdb_cv_have_struct_so_map_with_som_members=yes
19145else
bec39cab
AC
19146 echo "$as_me: failed program was:" >&5
19147sed 's/^/| /' conftest.$ac_ext >&5
19148
19149gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 19150fi
bec39cab 19151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19152fi
c906108c 19153
bec39cab
AC
19154 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19155echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 19156 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
19157
19158cat >>confdefs.h <<\_ACEOF
97bf5e38 19159#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 19160_ACEOF
c906108c 19161
97bf5e38 19162 fi
c906108c 19163
bec39cab
AC
19164
19165 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19166echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19167 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19169else
bec39cab
AC
19170 cat >conftest.$ac_ext <<_ACEOF
19171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
97bf5e38
MK
19176#define _SYSCALL32
19177#include <sys/link.h>
bec39cab
AC
19178int
19179main ()
19180{
97bf5e38 19181struct link_map32 l;
bec39cab
AC
19182 ;
19183 return 0;
19184}
19185_ACEOF
19186rm -f conftest.$ac_objext
19187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19188 (eval $ac_compile) 2>conftest.er1
19189 ac_status=$?
19190 grep -v '^ *+' conftest.er1 >conftest.err
19191 rm -f conftest.er1
19192 cat conftest.err >&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } &&
19195 { ac_try='test -z "$ac_c_werror_flag"
19196 || test ! -s conftest.err'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try='test -s conftest.$ac_objext'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
97bf5e38
MK
19208 gdb_cv_have_struct_link_map32=yes
19209else
bec39cab
AC
19210 echo "$as_me: failed program was:" >&5
19211sed 's/^/| /' conftest.$ac_ext >&5
19212
19213gdb_cv_have_struct_link_map32=no
97bf5e38 19214fi
bec39cab 19215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19216fi
c906108c 19217
bec39cab
AC
19218 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19219echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 19220 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
19221
19222cat >>confdefs.h <<\_ACEOF
97bf5e38 19223#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 19224_ACEOF
c906108c 19225
60ca704f
SE
19226
19227cat >>confdefs.h <<\_ACEOF
97bf5e38 19228#define _SYSCALL32 1
bec39cab 19229_ACEOF
c906108c 19230
97bf5e38
MK
19231 fi
19232fi
c906108c 19233
bc8bcb4b 19234# Check if the compiler supports the `long long' type.
c906108c 19235
bec39cab
AC
19236echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19237echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19238if test "${gdb_cv_c_long_long+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19240else
bec39cab
AC
19241 cat >conftest.$ac_ext <<_ACEOF
19242/* confdefs.h. */
19243_ACEOF
19244cat confdefs.h >>conftest.$ac_ext
19245cat >>conftest.$ac_ext <<_ACEOF
19246/* end confdefs.h. */
bc8bcb4b 19247extern long long foo;
bec39cab
AC
19248int
19249main ()
19250{
bc8bcb4b 19251switch (foo & 2) { case 0: return 1; }
bec39cab
AC
19252 ;
19253 return 0;
19254}
19255_ACEOF
19256rm -f conftest.$ac_objext
19257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19258 (eval $ac_compile) 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_c_werror_flag"
19266 || test ! -s conftest.err'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; } &&
19272 { ac_try='test -s conftest.$ac_objext'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
97bf5e38
MK
19278 gdb_cv_c_long_long=yes
19279else
bec39cab
AC
19280 echo "$as_me: failed program was:" >&5
19281sed 's/^/| /' conftest.$ac_ext >&5
19282
19283gdb_cv_c_long_long=no
97bf5e38 19284fi
bec39cab 19285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19286fi
bec39cab
AC
19287echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19288echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 19289if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
19290
19291cat >>confdefs.h <<\_ACEOF
97bf5e38 19292#define CC_HAS_LONG_LONG 1
bec39cab 19293_ACEOF
97bf5e38
MK
19294
19295fi
19296
bc8bcb4b 19297# Check if the compiler and runtime support printing long longs.
97bf5e38 19298
bec39cab
AC
19299echo "$as_me:$LINENO: checking for long long support in printf" >&5
19300echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19301if test "${gdb_cv_printf_has_long_long+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19303else
19304 if test "$cross_compiling" = yes; then
19305 gdb_cv_printf_has_long_long=no
19306else
bec39cab
AC
19307 cat >conftest.$ac_ext <<_ACEOF
19308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
bc8bcb4b
MK
19313$ac_includes_default
19314int
19315main ()
19316{
19317char buf[32];
97bf5e38
MK
19318 long long l = 0;
19319 l = (l << 16) + 0x0123;
19320 l = (l << 16) + 0x4567;
19321 l = (l << 16) + 0x89ab;
19322 l = (l << 16) + 0xcdef;
19323 sprintf (buf, "0x%016llx", l);
19324 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
19325 ;
19326 return 0;
c906108c 19327}
bec39cab
AC
19328_ACEOF
19329rm -f conftest$ac_exeext
19330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19331 (eval $ac_link) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; }; then
97bf5e38
MK
19340 gdb_cv_printf_has_long_long=yes
19341else
bec39cab
AC
19342 echo "$as_me: program exited with status $ac_status" >&5
19343echo "$as_me: failed program was:" >&5
19344sed 's/^/| /' conftest.$ac_ext >&5
19345
19346( exit $ac_status )
19347gdb_cv_printf_has_long_long=no
97bf5e38 19348fi
bec39cab 19349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19350fi
97bf5e38 19351fi
bc8bcb4b
MK
19352echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19353echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 19354if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
19355
19356cat >>confdefs.h <<\_ACEOF
97bf5e38 19357#define PRINTF_HAS_LONG_LONG 1
bec39cab 19358_ACEOF
97bf5e38
MK
19359
19360fi
97bf5e38 19361
bc8bcb4b
MK
19362# Check if the compiler supports the `long double' type. We can't use
19363# AC_C_LONG_DOUBLE because that one does additional checks on the
19364# constants defined in <float.h> that fail on some systems,
19365# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 19366
bec39cab
AC
19367echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19368echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 19369if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 19370 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19371else
bec39cab
AC
19372 cat >conftest.$ac_ext <<_ACEOF
19373/* confdefs.h. */
19374_ACEOF
19375cat confdefs.h >>conftest.$ac_ext
19376cat >>conftest.$ac_ext <<_ACEOF
19377/* end confdefs.h. */
97bf5e38 19378long double foo;
bec39cab
AC
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
bc8bcb4b 19402 gdb_cv_c_long_double=yes
97bf5e38 19403else
bec39cab
AC
19404 echo "$as_me: failed program was:" >&5
19405sed 's/^/| /' conftest.$ac_ext >&5
19406
bc8bcb4b 19407gdb_cv_c_long_double=no
97bf5e38 19408fi
bec39cab 19409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19410fi
bc8bcb4b
MK
19411echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19412echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19413if test $gdb_cv_c_long_double = yes; then
c906108c 19414
bc8bcb4b 19415cat >>confdefs.h <<\_ACEOF
97bf5e38 19416#define HAVE_LONG_DOUBLE 1
bec39cab 19417_ACEOF
97bf5e38
MK
19418
19419fi
19420
bc8bcb4b 19421# Check if the compiler and runtime support printing long doubles.
97bf5e38 19422
bec39cab
AC
19423echo "$as_me:$LINENO: checking for long double support in printf" >&5
19424echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19425if test "${gdb_cv_printf_has_long_double+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19427else
19428 if test "$cross_compiling" = yes; then
19429 gdb_cv_printf_has_long_double=no
19430else
bec39cab
AC
19431 cat >conftest.$ac_ext <<_ACEOF
19432/* confdefs.h. */
19433_ACEOF
19434cat confdefs.h >>conftest.$ac_ext
19435cat >>conftest.$ac_ext <<_ACEOF
19436/* end confdefs.h. */
bc8bcb4b
MK
19437$ac_includes_default
19438int
19439main ()
19440{
19441char buf[16];
97bf5e38
MK
19442 long double f = 3.141592653;
19443 sprintf (buf, "%Lg", f);
19444 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
19445 ;
19446 return 0;
97bf5e38 19447}
bec39cab
AC
19448_ACEOF
19449rm -f conftest$ac_exeext
19450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19451 (eval $ac_link) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
97bf5e38 19460 gdb_cv_printf_has_long_double=yes
c906108c 19461else
bec39cab
AC
19462 echo "$as_me: program exited with status $ac_status" >&5
19463echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466( exit $ac_status )
19467gdb_cv_printf_has_long_double=no
c906108c 19468fi
bec39cab 19469rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19470fi
c906108c 19471fi
bc8bcb4b
MK
19472echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19473echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 19474if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
19475
19476cat >>confdefs.h <<\_ACEOF
97bf5e38 19477#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19478_ACEOF
97bf5e38
MK
19479
19480fi
97bf5e38 19481
bc8bcb4b 19482# Check if the compiler and runtime support scanning long doubles.
97bf5e38 19483
bec39cab
AC
19484echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19485echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19486if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19488else
19489 if test "$cross_compiling" = yes; then
19490 gdb_cv_scanf_has_long_double=no
19491else
bec39cab
AC
19492 cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h. */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h. */
bc8bcb4b
MK
19498#include <stdio.h>
19499int
19500main ()
19501{
19502char *buf = "3.141592653";
97bf5e38
MK
19503 long double f = 0;
19504 sscanf (buf, "%Lg", &f);
19505 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
19506 ;
19507 return 0;
97bf5e38 19508}
bec39cab
AC
19509_ACEOF
19510rm -f conftest$ac_exeext
19511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19512 (eval $ac_link) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
97bf5e38
MK
19521 gdb_cv_scanf_has_long_double=yes
19522else
bec39cab
AC
19523 echo "$as_me: program exited with status $ac_status" >&5
19524echo "$as_me: failed program was:" >&5
19525sed 's/^/| /' conftest.$ac_ext >&5
19526
19527( exit $ac_status )
19528gdb_cv_scanf_has_long_double=no
97bf5e38 19529fi
bec39cab 19530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19531fi
c906108c 19532fi
bc8bcb4b
MK
19533echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19534echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 19535if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
19536
19537cat >>confdefs.h <<\_ACEOF
97bf5e38 19538#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19539_ACEOF
97bf5e38
MK
19540
19541fi
c906108c 19542
438013df
AO
19543case ${host_os} in
19544aix*)
bec39cab
AC
19545 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19546echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19547if test "${gdb_cv_bigtoc+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19549else
bec39cab 19550
438013df
AO
19551 SAVE_LDFLAGS=$LDFLAGS
19552
19553 case $GCC in
19554 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19555 *) gdb_cv_bigtoc=-bbigtoc ;;
19556 esac
19557
19558 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19559 cat >conftest.$ac_ext <<_ACEOF
19560/* confdefs.h. */
19561_ACEOF
19562cat confdefs.h >>conftest.$ac_ext
19563cat >>conftest.$ac_ext <<_ACEOF
19564/* end confdefs.h. */
438013df 19565
bec39cab
AC
19566int
19567main ()
19568{
438013df 19569int i;
bec39cab
AC
19570 ;
19571 return 0;
19572}
19573_ACEOF
19574rm -f conftest.$ac_objext conftest$ac_exeext
19575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest$ac_exeext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
438013df
AO
19596 :
19597else
bec39cab
AC
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601gdb_cv_bigtoc=
438013df 19602fi
bec39cab
AC
19603rm -f conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19605 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19606
bec39cab
AC
19607fi
19608echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19609echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19610 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19611 ;;
19612esac
19613
c906108c
SS
19614
19615
19616if test ${build} = ${host} -a ${host} = ${target} ; then
19617 case ${host_os} in
19618 hpux*)
bec39cab
AC
19619 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19620echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19621 if test -f /usr/include/dce/cma_config.h ; then
19622 if test "$GCC" = "yes" ; then
bec39cab
AC
19623 echo "$as_me:$LINENO: result: yes" >&5
19624echo "${ECHO_T}yes" >&6
60ca704f
SE
19625
19626cat >>confdefs.h <<\_ACEOF
c906108c 19627#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19628_ACEOF
c906108c 19629
3483b318 19630 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19631 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19632 else
bec39cab
AC
19633 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19634echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19635 fi
19636 else
bec39cab
AC
19637 echo "$as_me:$LINENO: result: no" >&5
19638echo "${ECHO_T}no" >&6
c906108c
SS
19639 fi
19640 ;;
19641 solaris*)
d92419e5
JB
19642 # See if thread_db library is around for Solaris thread debugging.
19643 # Note that we must explicitly test for version 1 of the library
19644 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19645 # the same API.
bec39cab
AC
19646 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19647echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19648 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19649 echo "$as_me:$LINENO: result: yes" >&5
19650echo "${ECHO_T}yes" >&6
60ca704f
SE
19651
19652cat >>confdefs.h <<\_ACEOF
c906108c 19653#define HAVE_THREAD_DB_LIB 1
bec39cab 19654_ACEOF
c906108c 19655
3483b318 19656 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19657 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19658
19659echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19660echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19661if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19663else
bec39cab 19664 ac_check_lib_save_LIBS=$LIBS
c906108c 19665LIBS="-ldl $LIBS"
bec39cab
AC
19666cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
19672
c906108c 19673/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19674#ifdef __cplusplus
19675extern "C"
19676#endif
c906108c 19677/* We use char because int might match the return type of a gcc2
bec39cab
AC
19678 builtin and then its argument prototype would still apply. */
19679char dlopen ();
19680int
19681main ()
19682{
19683dlopen ();
19684 ;
19685 return 0;
19686}
19687_ACEOF
19688rm -f conftest.$ac_objext conftest$ac_exeext
19689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19690 (eval $ac_link) 2>conftest.er1
19691 ac_status=$?
19692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -f conftest.er1
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
19697 { ac_try='test -z "$ac_c_werror_flag"
19698 || test ! -s conftest.err'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try='test -s conftest$ac_exeext'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 ac_cv_lib_dl_dlopen=yes
19711else
19712 echo "$as_me: failed program was:" >&5
19713sed 's/^/| /' conftest.$ac_ext >&5
19714
19715ac_cv_lib_dl_dlopen=no
19716fi
19717rm -f conftest.err conftest.$ac_objext \
19718 conftest$ac_exeext conftest.$ac_ext
19719LIBS=$ac_check_lib_save_LIBS
19720fi
19721echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19722echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19723if test $ac_cv_lib_dl_dlopen = yes; then
19724 cat >>confdefs.h <<_ACEOF
19725#define HAVE_LIBDL 1
19726_ACEOF
c906108c
SS
19727
19728 LIBS="-ldl $LIBS"
19729
c906108c
SS
19730fi
19731
19732 if test "$GCC" = "yes" ; then
19733 # The GNU linker requires the -export-dynamic option to make
19734 # all symbols visible in the dynamic symbol table.
19735 hold_ldflags=$LDFLAGS
bec39cab
AC
19736 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19737echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19738 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
19739 cat >conftest.$ac_ext <<_ACEOF
19740/* confdefs.h. */
19741_ACEOF
19742cat confdefs.h >>conftest.$ac_ext
19743cat >>conftest.$ac_ext <<_ACEOF
19744/* end confdefs.h. */
c906108c 19745
bec39cab
AC
19746int
19747main ()
19748{
c906108c 19749int i;
bec39cab
AC
19750 ;
19751 return 0;
19752}
19753_ACEOF
19754rm -f conftest.$ac_objext conftest$ac_exeext
19755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19756 (eval $ac_link) 2>conftest.er1
19757 ac_status=$?
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
19763 { ac_try='test -z "$ac_c_werror_flag"
19764 || test ! -s conftest.err'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; } &&
19770 { ac_try='test -s conftest$ac_exeext'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; }; then
c906108c
SS
19776 found=yes
19777else
bec39cab
AC
19778 echo "$as_me: failed program was:" >&5
19779sed 's/^/| /' conftest.$ac_ext >&5
19780
19781found=no
c906108c 19782fi
bec39cab
AC
19783rm -f conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
c906108c 19785 LDFLAGS=$hold_ldflags
bec39cab
AC
19786 echo "$as_me:$LINENO: result: $found" >&5
19787echo "${ECHO_T}$found" >&6
c906108c
SS
19788 if test $found = yes; then
19789 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19790 fi
19791 fi
19792 # Sun randomly tweaked the prototypes in <proc_service.h>
19793 # at one point.
bec39cab
AC
19794 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19795echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19796 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19798else
bec39cab
AC
19799
19800 cat >conftest.$ac_ext <<_ACEOF
19801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
c906108c
SS
19806
19807 #include <proc_service.h>
19808 ps_err_e ps_pdwrite
19809 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19810
bec39cab
AC
19811int
19812main ()
19813{
19814
19815 ;
19816 return 0;
19817}
19818_ACEOF
19819rm -f conftest.$ac_objext
19820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19821 (eval $ac_compile) 2>conftest.er1
19822 ac_status=$?
19823 grep -v '^ *+' conftest.er1 >conftest.err
19824 rm -f conftest.er1
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } &&
19828 { ac_try='test -z "$ac_c_werror_flag"
19829 || test ! -s conftest.err'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; } &&
19835 { ac_try='test -s conftest.$ac_objext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
c906108c
SS
19841 gdb_cv_proc_service_is_old=no
19842else
bec39cab
AC
19843 echo "$as_me: failed program was:" >&5
19844sed 's/^/| /' conftest.$ac_ext >&5
19845
19846gdb_cv_proc_service_is_old=yes
c906108c 19847fi
bec39cab
AC
19848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19849
c906108c
SS
19850fi
19851
bec39cab
AC
19852 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19853echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19854 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
19855
19856cat >>confdefs.h <<\_ACEOF
c906108c 19857#define PROC_SERVICE_IS_OLD 1
bec39cab 19858_ACEOF
c906108c
SS
19859
19860 fi
19861 else
bec39cab
AC
19862 echo "$as_me:$LINENO: result: no" >&5
19863echo "${ECHO_T}no" >&6
c906108c
SS
19864 fi
19865 ;;
d92419e5 19866 aix*)
bec39cab
AC
19867 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19868echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19869 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871else
19872 cat >conftest.$ac_ext <<_ACEOF
19873/* confdefs.h. */
19874_ACEOF
19875cat confdefs.h >>conftest.$ac_ext
19876cat >>conftest.$ac_ext <<_ACEOF
19877/* end confdefs.h. */
d92419e5 19878#include <sys/pthdebug.h>
bec39cab
AC
19879int
19880main ()
19881{
d92419e5
JB
19882#ifndef PTHDB_VERSION_3
19883 #error
19884 #endif
bec39cab
AC
19885 ;
19886 return 0;
19887}
19888_ACEOF
19889rm -f conftest.$ac_objext
19890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891 (eval $ac_compile) 2>conftest.er1
19892 ac_status=$?
19893 grep -v '^ *+' conftest.er1 >conftest.err
19894 rm -f conftest.er1
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } &&
19898 { ac_try='test -z "$ac_c_werror_flag"
19899 || test ! -s conftest.err'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; } &&
19905 { ac_try='test -s conftest.$ac_objext'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
d92419e5
JB
19911 gdb_cv_have_aix_thread_debug=yes
19912else
bec39cab
AC
19913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
19916gdb_cv_have_aix_thread_debug=no
d92419e5 19917fi
bec39cab 19918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19919fi
19920
bec39cab
AC
19921 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19922echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19923 if test $gdb_cv_have_aix_thread_debug = yes; then
19924 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19925 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19926 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19927 fi
19928 ;;
c906108c 19929 esac
bec39cab 19930
c906108c
SS
19931fi
19932
3f47be5c 19933if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19934 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19935echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19936if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19938else
19939 cat >conftest.$ac_ext <<_ACEOF
19940/* confdefs.h. */
19941_ACEOF
19942cat confdefs.h >>conftest.$ac_ext
19943cat >>conftest.$ac_ext <<_ACEOF
19944/* end confdefs.h. */
3f47be5c 19945#include <thread_db.h>
bec39cab
AC
19946int
19947main ()
19948{
3f47be5c 19949int i = TD_NOTALLOC;
bec39cab
AC
19950 ;
19951 return 0;
19952}
19953_ACEOF
19954rm -f conftest.$ac_objext
19955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19956 (eval $ac_compile) 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
19963 { ac_try='test -z "$ac_c_werror_flag"
19964 || test ! -s conftest.err'
19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966 (eval $ac_try) 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; } &&
19970 { ac_try='test -s conftest.$ac_objext'
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19973 ac_status=$?
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; }; then
3f47be5c
EZ
19976 gdb_cv_thread_db_h_has_td_notalloc=yes
19977else
bec39cab
AC
19978 echo "$as_me: failed program was:" >&5
19979sed 's/^/| /' conftest.$ac_ext >&5
19980
19981gdb_cv_thread_db_h_has_td_notalloc=no
19982
3f47be5c 19983fi
bec39cab 19984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19985
bec39cab
AC
19986fi
19987echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19988echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19989fi
19990if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19991
19992cat >>confdefs.h <<\_ACEOF
3f47be5c 19993#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19994_ACEOF
3f47be5c
EZ
19995
19996fi
19997
b757528f 19998if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19999 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
20000echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
20001if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003else
20004 cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
b757528f 20010#include <sys/syscall.h>
bec39cab
AC
20011int
20012main ()
20013{
b757528f 20014int i = __NR_tkill;
bec39cab
AC
20015 ;
20016 return 0;
20017}
20018_ACEOF
20019rm -f conftest.$ac_objext
20020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20021 (eval $ac_compile) 2>conftest.er1
20022 ac_status=$?
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } &&
20028 { ac_try='test -z "$ac_c_werror_flag"
20029 || test ! -s conftest.err'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try='test -s conftest.$ac_objext'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
b757528f
JJ
20041 gdb_cv_sys_syscall_h_has_tkill=yes
20042else
bec39cab
AC
20043 echo "$as_me: failed program was:" >&5
20044sed 's/^/| /' conftest.$ac_ext >&5
20045
20046gdb_cv_sys_syscall_h_has_tkill=no
20047
b757528f 20048fi
bec39cab 20049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 20050
bec39cab
AC
20051fi
20052echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20053echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
20054fi
20055if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
20056
20057cat >>confdefs.h <<\_ACEOF
b757528f 20058#define HAVE_TKILL_SYSCALL 1
bec39cab 20059_ACEOF
b757528f
JJ
20060
20061fi
20062
fb40c209 20063
bec39cab 20064
030292b7
DJ
20065# Check whether --with-sysroot or --without-sysroot was given.
20066if test "${with_sysroot+set}" = set; then
20067 withval="$with_sysroot"
bec39cab 20068
030292b7 20069 case ${with_sysroot} in
715d1656 20070 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
20071 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
20072 esac
20073
20074 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20075
20076 if test "x$exec_prefix" = xNONE; then
20077 if test "x$prefix" = xNONE; then
20078 test_prefix=/usr/local
20079 else
20080 test_prefix=$prefix
20081 fi
20082 else
20083 test_prefix=$exec_prefix
20084 fi
20085 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
20086 "${test_prefix}"|"${test_prefix}/"*|\
20087 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
20088 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20089 TARGET_SYSTEM_ROOT_DEFINE="$t"
20090 ;;
20091 esac
20092
20093else
bec39cab 20094
030292b7
DJ
20095 TARGET_SYSTEM_ROOT=
20096 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20097
bec39cab 20098fi;
030292b7
DJ
20099
20100
20101
3b851bce
AC
20102# NOTE: Don't add -Wall or -Wunused, they both include
20103# -Wunused-parameter which reports bogus warnings.
20104# NOTE: If you add to this list, remember to update
20105# gdb/doc/gdbint.texinfo.
1decb323 20106build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 20107-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
4566dfcf 20108-Wunused-label -Wunused-function"
a3b362c4
JB
20109
20110# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 20111if test x${CFLAGS+set} = xset; then
a3b362c4
JB
20112 case "${CFLAGS}" in
20113 *"-O0"* ) ;;
20114 *"-O"* )
20115 build_warnings="${build_warnings} -Wuninitialized"
20116 ;;
20117 esac
20118else
20119 build_warnings="${build_warnings} -Wuninitialized"
20120fi
20121
d8038014 20122# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 20123# -Wunused-function -Wunused-variable -Wunused-value
93d56215 20124# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
20125# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
20126# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
20127# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
20128# Check whether --enable-build-warnings or --disable-build-warnings was given.
20129if test "${enable_build_warnings+set}" = set; then
20130 enableval="$enable_build_warnings"
1decb323 20131 case "${enableval}" in
c906108c
SS
20132 yes) ;;
20133 no) build_warnings="-w";;
20134 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20135 build_warnings="${build_warnings} ${t}";;
20136 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20137 build_warnings="${t} ${build_warnings}";;
20138 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20139esac
d4f3574e 20140if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 20141 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 20142fi
bec39cab 20143fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
20144if test "${enable_gdb_build_warnings+set}" = set; then
20145 enableval="$enable_gdb_build_warnings"
20146 case "${enableval}" in
20147 yes) ;;
20148 no) build_warnings="-w";;
20149 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20150 build_warnings="${build_warnings} ${t}";;
20151 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20152 build_warnings="${t} ${build_warnings}";;
20153 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20154esac
20155if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20156 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20157fi
bec39cab 20158fi; WARN_CFLAGS=""
104c1213 20159WERROR_CFLAGS=""
c906108c
SS
20160if test "x${build_warnings}" != x -a "x$GCC" = xyes
20161then
bec39cab
AC
20162 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20163echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
20164 # Separate out the -Werror flag as some files just cannot be
20165 # compiled with it enabled.
20166 for w in ${build_warnings}; do
20167 case $w in
20168 -Werr*) WERROR_CFLAGS=-Werror ;;
20169 *) # Check that GCC accepts it
4536bbc6
AC
20170 saved_CFLAGS="$CFLAGS"
20171 CFLAGS="$CFLAGS $w"
bec39cab
AC
20172 cat >conftest.$ac_ext <<_ACEOF
20173/* confdefs.h. */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
20177/* end confdefs.h. */
4536bbc6 20178
bec39cab
AC
20179int
20180main ()
20181{
4536bbc6 20182
bec39cab
AC
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
20196 { ac_try='test -z "$ac_c_werror_flag"
20197 || test ! -s conftest.err'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest.$ac_objext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
4536bbc6
AC
20209 WARN_CFLAGS="${WARN_CFLAGS} $w"
20210else
bec39cab
AC
20211 echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
4536bbc6 20214fi
bec39cab 20215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 20216 CFLAGS="$saved_CFLAGS"
746a987d
AC
20217 esac
20218 done
bec39cab
AC
20219 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20220echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
20221fi
20222
20223
104c1213 20224
7a292a7a 20225# In the Cygwin environment, we need some additional flags.
bec39cab
AC
20226echo "$as_me:$LINENO: checking for cygwin" >&5
20227echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20228if test "${gdb_cv_os_cygwin+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20230else
20231 cat >conftest.$ac_ext <<_ACEOF
20232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
7a292a7a
SS
20237
20238#if defined (__CYGWIN__) || defined (__CYGWIN32__)
20239lose
20240#endif
bec39cab 20241_ACEOF
7a292a7a 20242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 20243 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
20244 gdb_cv_os_cygwin=yes
20245else
7a292a7a
SS
20246 gdb_cv_os_cygwin=no
20247fi
20248rm -f conftest*
20249
20250fi
bec39cab
AC
20251echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20252echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 20253
aff38e61 20254
3eb25fda 20255SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 20256case ${host} in
95cbc983
AC
20257 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20258 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
3eb25fda 20259 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o" ;;
aff38e61
AC
20260esac
20261
20262
cd0fc7c3
SS
20263# libreadline needs libuser32.a in a cygwin environment
20264WIN32LIBS=
20265if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
20266 WIN32LIBS="-luser32"
20267 case "${target}" in
20268 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20269 ;;
20270 esac
cd0fc7c3 20271fi
c906108c 20272
b4505029
MM
20273# The ser-tcp.c module requires sockets.
20274case ${host} in
20275 *mingw32*)
20276
20277cat >>confdefs.h <<\_ACEOF
20278#define USE_WIN32API 1
20279_ACEOF
20280
20281 WIN32LIBS="$WIN32LIBS -lws2_32"
20282 ;;
20283esac
20284
7a292a7a 20285
3fc11d3e
JM
20286LIBGUI="../libgui/src/libgui.a"
20287GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20288
20289
7a292a7a 20290
3fc11d3e
JM
20291WIN32LDAPP=
20292
20293
20294
d91670b9
CV
20295case "${host}" in
20296*-*-cygwin*)
20297 configdir="win"
20298 ;;
20299*)
20300 configdir="unix"
20301 ;;
20302esac
3fc11d3e
JM
20303
20304GDBTKLIBS=
20305if test "${enable_gdbtk}" = "yes"; then
20306
d1c3b63a
KS
20307 # Gdbtk must have an absolute path to srcdir in order to run
20308 # properly when not installed.
20309 here=`pwd`
20310 cd ${srcdir}
20311 GDBTK_SRC_DIR=`pwd`
20312 cd $here
20313
bec39cab 20314
3fc11d3e
JM
20315#
20316# Ok, lets find the tcl configuration
bec39cab 20317# First, look for one uninstalled.
3fc11d3e
JM
20318# the alternative search directory is invoked by --with-tclconfig
20319#
20320
20321if test x"${no_tcl}" = x ; then
20322 # we reset no_tcl in case something fails here
20323 no_tcl=true
bec39cab
AC
20324
20325# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
20326if test "${with_tclconfig+set}" = set; then
20327 withval="$with_tclconfig"
20328 with_tclconfig=${withval}
bec39cab
AC
20329fi;
20330 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20331echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20332 if test "${ac_cv_c_tclconfig+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20334else
bec39cab 20335
3fc11d3e
JM
20336
20337 # First check to see if --with-tclconfig was specified.
20338 if test x"${with_tclconfig}" != x ; then
20339 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20340 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20341 else
bec39cab
AC
20342 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20343echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20344 { (exit 1); exit 1; }; }
3fc11d3e
JM
20345 fi
20346 fi
20347
20348 # then check for a private Tcl installation
20349 if test x"${ac_cv_c_tclconfig}" = x ; then
20350 for i in \
20351 ../tcl \
20352 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20353 ../../tcl \
20354 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20355 ../../../tcl \
20356 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20357 if test -f "$i/${configdir}/tclConfig.sh" ; then
20358 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20359 break
20360 fi
20361 done
20362 fi
20363 # check in a few common install locations
20364 if test x"${ac_cv_c_tclconfig}" = x ; then
20365 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20366 if test -f "$i/tclConfig.sh" ; then
20367 ac_cv_c_tclconfig=`(cd $i; pwd)`
20368 break
20369 fi
20370 done
20371 fi
20372 # check in a few other private locations
20373 if test x"${ac_cv_c_tclconfig}" = x ; then
20374 for i in \
20375 ${srcdir}/../tcl \
20376 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20377 if test -f "$i/${configdir}/tclConfig.sh" ; then
20378 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20379 break
20380 fi
20381 done
20382 fi
bec39cab 20383
3fc11d3e
JM
20384fi
20385
20386 if test x"${ac_cv_c_tclconfig}" = x ; then
20387 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
20388 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20389echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
20390 else
20391 no_tcl=
20392 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
20393 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20394echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
20395 fi
20396fi
20397
20398 if test -z "${no_tcl}"; then
bec39cab 20399
3fc11d3e
JM
20400 . $TCLCONFIG
20401
3fc11d3e
JM
20402
20403
20404
20405
3fc11d3e
JM
20406
20407
20408
bec39cab
AC
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
3fc11d3e
JM
20428#
20429# Ok, lets find the tk configuration
bec39cab 20430# First, look for one uninstalled.
3fc11d3e
JM
20431# the alternative search directory is invoked by --with-tkconfig
20432#
20433
20434if test x"${no_tk}" = x ; then
20435 # we reset no_tk in case something fails here
20436 no_tk=true
bec39cab
AC
20437
20438# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20439if test "${with_tkconfig+set}" = set; then
20440 withval="$with_tkconfig"
20441 with_tkconfig=${withval}
bec39cab
AC
20442fi;
20443 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20444echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20445 if test "${ac_cv_c_tkconfig+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20447else
bec39cab 20448
3fc11d3e
JM
20449
20450 # First check to see if --with-tkconfig was specified.
20451 if test x"${with_tkconfig}" != x ; then
20452 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20453 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20454 else
bec39cab
AC
20455 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20456echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20457 { (exit 1); exit 1; }; }
3fc11d3e
JM
20458 fi
20459 fi
20460
20461 # then check for a private Tk library
20462 if test x"${ac_cv_c_tkconfig}" = x ; then
20463 for i in \
20464 ../tk \
20465 `ls -dr ../tk[4-9]* 2>/dev/null` \
20466 ../../tk \
20467 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20468 ../../../tk \
20469 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20470 if test -f "$i/${configdir}/tkConfig.sh" ; then
20471 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20472 break
20473 fi
20474 done
20475 fi
20476 # check in a few common install locations
20477 if test x"${ac_cv_c_tkconfig}" = x ; then
20478 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20479 if test -f "$i/tkConfig.sh" ; then
20480 ac_cv_c_tkconfig=`(cd $i; pwd)`
20481 break
20482 fi
20483 done
20484 fi
20485 # check in a few other private locations
20486 if test x"${ac_cv_c_tkconfig}" = x ; then
20487 for i in \
20488 ${srcdir}/../tk \
20489 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20490 if test -f "$i/${configdir}/tkConfig.sh" ; then
20491 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20492 break
20493 fi
20494 done
20495 fi
bec39cab 20496
3fc11d3e
JM
20497fi
20498
20499 if test x"${ac_cv_c_tkconfig}" = x ; then
20500 TKCONFIG="# no Tk configs found"
bec39cab
AC
20501 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20502echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20503 else
20504 no_tk=
20505 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20506 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20507echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20508 fi
20509fi
20510
20511
20512
dd2504ab
JM
20513 # now look for Tcl library stuff
20514
d91670b9 20515 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20516
20517 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20518
3fc11d3e
JM
20519 # If $no_tk is nonempty, then we can't do Tk, and there is no
20520 # point to doing Tcl.
20521 if test -z "${no_tk}"; then
bec39cab 20522
3fc11d3e
JM
20523 if test -f "$TKCONFIG" ; then
20524 . $TKCONFIG
20525 fi
20526
3fc11d3e 20527
3fc11d3e
JM
20528
20529
3fc11d3e 20530
bec39cab
AC
20531
20532
20533
20534
20535
20536
20537
20538
20539
3fc11d3e
JM
20540#
20541# Ok, lets find the tcl source trees so we can use the headers
20542# Warning: transition of version 9 to 10 will break this algorithm
20543# because 10 sorts before 9. We also look for just tcl. We have to
20544# be careful that we don't match stuff like tclX by accident.
20545# the alternative search directory is involked by --with-tclinclude
20546#
20547
20548no_tcl=true
bec39cab
AC
20549echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20550echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20551
3fc11d3e
JM
20552# Check whether --with-tclinclude or --without-tclinclude was given.
20553if test "${with_tclinclude+set}" = set; then
20554 withval="$with_tclinclude"
20555 with_tclinclude=${withval}
bec39cab
AC
20556fi;
20557if test "${ac_cv_c_tclh+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20559else
bec39cab 20560
3fc11d3e
JM
20561# first check to see if --with-tclinclude was specified
20562if test x"${with_tclinclude}" != x ; then
20563 if test -f ${with_tclinclude}/tclInt.h ; then
20564 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20565 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20566 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20567 else
bec39cab
AC
20568 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20569echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20570 { (exit 1); exit 1; }; }
3fc11d3e
JM
20571 fi
20572fi
20573
20574# next check if it came with Tcl configuration file
20575if test x"${ac_cv_c_tclconfig}" = x ; then
20576 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20577 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20578 fi
20579fi
20580
20581# next check in private source directory
20582#
20583# since ls returns lowest version numbers first, reverse its output
20584if test x"${ac_cv_c_tclh}" = x ; then
20585 for i in \
20586 ${srcdir}/../tcl \
20587 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20588 ${srcdir}/../../tcl \
20589 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20590 ${srcdir}/../../../tcl \
20591 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20592 if test -f $i/generic/tclInt.h ; then
20593 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20594 break
20595 fi
20596 done
20597fi
20598# finally check in a few common install locations
20599#
20600# since ls returns lowest version numbers first, reverse its output
20601if test x"${ac_cv_c_tclh}" = x ; then
20602 for i in \
20603 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20604 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20605 /usr/local/src/tcl \
20606 /usr/local/lib/tcl \
20607 ${prefix}/include ; do
20608 if test -f $i/generic/tclInt.h ; then
20609 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20610 break
20611 fi
20612 done
20613fi
20614# see if one is installed
20615if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20616 if test "${ac_cv_header_tclInt_h+set}" = set; then
20617 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20618echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20619if test "${ac_cv_header_tclInt_h+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621fi
20622echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20623echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20624else
20625 # Is the header compilable?
20626echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20627echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20628cat >conftest.$ac_ext <<_ACEOF
20629/* confdefs.h. */
20630_ACEOF
20631cat confdefs.h >>conftest.$ac_ext
20632cat >>conftest.$ac_ext <<_ACEOF
20633/* end confdefs.h. */
20634$ac_includes_default
20635#include <tclInt.h>
20636_ACEOF
20637rm -f conftest.$ac_objext
20638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639 (eval $ac_compile) 2>conftest.er1
20640 ac_status=$?
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
20646 { ac_try='test -z "$ac_c_werror_flag"
20647 || test ! -s conftest.err'
20648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649 (eval $ac_try) 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; } &&
20653 { ac_try='test -s conftest.$ac_objext'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; }; then
20659 ac_header_compiler=yes
20660else
20661 echo "$as_me: failed program was:" >&5
20662sed 's/^/| /' conftest.$ac_ext >&5
20663
20664ac_header_compiler=no
20665fi
20666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20668echo "${ECHO_T}$ac_header_compiler" >&6
20669
20670# Is the header present?
20671echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20672echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20673cat >conftest.$ac_ext <<_ACEOF
20674/* confdefs.h. */
20675_ACEOF
20676cat confdefs.h >>conftest.$ac_ext
20677cat >>conftest.$ac_ext <<_ACEOF
20678/* end confdefs.h. */
3fc11d3e 20679#include <tclInt.h>
bec39cab
AC
20680_ACEOF
20681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20683 ac_status=$?
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } >/dev/null; then
20689 if test -s conftest.err; then
20690 ac_cpp_err=$ac_c_preproc_warn_flag
20691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20692 else
20693 ac_cpp_err=
20694 fi
20695else
20696 ac_cpp_err=yes
3fc11d3e 20697fi
bec39cab
AC
20698if test -z "$ac_cpp_err"; then
20699 ac_header_preproc=yes
20700else
20701 echo "$as_me: failed program was:" >&5
20702sed 's/^/| /' conftest.$ac_ext >&5
20703
20704 ac_header_preproc=no
3fc11d3e 20705fi
bec39cab
AC
20706rm -f conftest.err conftest.$ac_ext
20707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20708echo "${ECHO_T}$ac_header_preproc" >&6
20709
20710# So? What about this header?
20711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20712 yes:no: )
20713 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20714echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20715 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20716echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20717 ac_header_preproc=yes
20718 ;;
20719 no:yes:* )
20720 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20721echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20723echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20725echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20727echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20729echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20731echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20732 (
20733 cat <<\_ASBOX
20734## ------------------------------------------ ##
20735## Report this to the AC_PACKAGE_NAME lists. ##
20736## ------------------------------------------ ##
20737_ASBOX
20738 ) |
20739 sed "s/^/$as_me: WARNING: /" >&2
20740 ;;
20741esac
20742echo "$as_me:$LINENO: checking for tclInt.h" >&5
20743echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20744if test "${ac_cv_header_tclInt_h+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20746else
20747 ac_cv_header_tclInt_h=$ac_header_preproc
20748fi
20749echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20750echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20751
20752fi
20753if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20754 ac_cv_c_tclh=installed
20755else
bec39cab 20756 ac_cv_c_tclh=""
3fc11d3e
JM
20757fi
20758
bec39cab 20759
3fc11d3e
JM
20760fi
20761
20762fi
20763
20764if test x"${ac_cv_c_tclh}" = x ; then
20765 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20766 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20767echo "$as_me: error: Can't find Tcl private headers" >&2;}
20768 { (exit 1); exit 1; }; }
3fc11d3e
JM
20769fi
20770if test x"${ac_cv_c_tclh}" != x ; then
20771 no_tcl=""
20772 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20773 echo "$as_me:$LINENO: result: is installed" >&5
20774echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20775 TCLHDIR=""
20776 else
bec39cab
AC
20777 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20778echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20779 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20780 TCLHDIR="-I${ac_cv_c_tclh}"
20781 fi
20782fi
20783
20784
20785
bec39cab 20786
3fc11d3e
JM
20787#
20788# Ok, lets find the tk source trees so we can use the headers
20789# If the directory (presumably symlink) named "tk" exists, use that one
20790# in preference to any others. Same logic is used when choosing library
20791# and again with Tcl. The search order is the best place to look first, then in
20792# decreasing significance. The loop breaks if the trigger file is found.
20793# Note the gross little conversion here of srcdir by cd'ing to the found
20794# directory. This converts the path from a relative to an absolute, so
20795# recursive cache variables for the path will work right. We check all
20796# the possible paths in one loop rather than many seperate loops to speed
20797# things up.
20798# the alternative search directory is involked by --with-tkinclude
20799#
20800no_tk=true
bec39cab
AC
20801echo "$as_me:$LINENO: checking for Tk private headers" >&5
20802echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20803
3fc11d3e
JM
20804# Check whether --with-tkinclude or --without-tkinclude was given.
20805if test "${with_tkinclude+set}" = set; then
20806 withval="$with_tkinclude"
20807 with_tkinclude=${withval}
bec39cab
AC
20808fi;
20809if test "${ac_cv_c_tkh+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20811else
bec39cab 20812
3fc11d3e
JM
20813# first check to see if --with-tkinclude was specified
20814if test x"${with_tkinclude}" != x ; then
20815 if test -f ${with_tkinclude}/tk.h ; then
20816 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20817 elif test -f ${with_tkinclude}/generic/tk.h ; then
20818 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20819 else
bec39cab
AC
20820 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20821echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20822 { (exit 1); exit 1; }; }
3fc11d3e
JM
20823 fi
20824fi
20825
20826# next check if it came with Tk configuration file
20827if test x"${ac_cv_c_tkconfig}" = x ; then
20828 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20829 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20830 fi
20831fi
20832
20833# next check in private source directory
20834#
20835# since ls returns lowest version numbers first, reverse its output
20836if test x"${ac_cv_c_tkh}" = x ; then
20837 for i in \
20838 ${srcdir}/../tk \
20839 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20840 ${srcdir}/../../tk \
20841 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20842 ${srcdir}/../../../tk \
20843 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20844 if test -f $i/generic/tk.h ; then
20845 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20846 break
20847 fi
20848 done
20849fi
20850# finally check in a few common install locations
20851#
20852# since ls returns lowest version numbers first, reverse its output
20853if test x"${ac_cv_c_tkh}" = x ; then
20854 for i in \
20855 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20856 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20857 /usr/local/src/tk \
20858 /usr/local/lib/tk \
20859 ${prefix}/include ; do
20860 if test -f $i/generic/tk.h ; then
20861 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20862 break
20863 fi
20864 done
20865fi
20866# see if one is installed
20867if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20868 if test "${ac_cv_header_tk_h+set}" = set; then
20869 echo "$as_me:$LINENO: checking for tk.h" >&5
20870echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20871if test "${ac_cv_header_tk_h+set}" = set; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
20873fi
20874echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20875echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20876else
20877 # Is the header compilable?
20878echo "$as_me:$LINENO: checking tk.h usability" >&5
20879echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20880cat >conftest.$ac_ext <<_ACEOF
20881/* confdefs.h. */
20882_ACEOF
20883cat confdefs.h >>conftest.$ac_ext
20884cat >>conftest.$ac_ext <<_ACEOF
20885/* end confdefs.h. */
20886$ac_includes_default
3fc11d3e 20887#include <tk.h>
bec39cab
AC
20888_ACEOF
20889rm -f conftest.$ac_objext
20890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20891 (eval $ac_compile) 2>conftest.er1
20892 ac_status=$?
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } &&
20898 { ac_try='test -z "$ac_c_werror_flag"
20899 || test ! -s conftest.err'
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; } &&
20905 { ac_try='test -s conftest.$ac_objext'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911 ac_header_compiler=yes
20912else
20913 echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916ac_header_compiler=no
20917fi
20918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20920echo "${ECHO_T}$ac_header_compiler" >&6
20921
20922# Is the header present?
20923echo "$as_me:$LINENO: checking tk.h presence" >&5
20924echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20925cat >conftest.$ac_ext <<_ACEOF
20926/* confdefs.h. */
20927_ACEOF
20928cat confdefs.h >>conftest.$ac_ext
20929cat >>conftest.$ac_ext <<_ACEOF
20930/* end confdefs.h. */
20931#include <tk.h>
20932_ACEOF
20933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20935 ac_status=$?
20936 grep -v '^ *+' conftest.er1 >conftest.err
20937 rm -f conftest.er1
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } >/dev/null; then
20941 if test -s conftest.err; then
20942 ac_cpp_err=$ac_c_preproc_warn_flag
20943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20944 else
20945 ac_cpp_err=
20946 fi
20947else
20948 ac_cpp_err=yes
3fc11d3e 20949fi
bec39cab
AC
20950if test -z "$ac_cpp_err"; then
20951 ac_header_preproc=yes
20952else
20953 echo "$as_me: failed program was:" >&5
20954sed 's/^/| /' conftest.$ac_ext >&5
20955
20956 ac_header_preproc=no
20957fi
20958rm -f conftest.err conftest.$ac_ext
20959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20960echo "${ECHO_T}$ac_header_preproc" >&6
20961
20962# So? What about this header?
20963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20964 yes:no: )
20965 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20966echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20967 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20968echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20969 ac_header_preproc=yes
20970 ;;
20971 no:yes:* )
20972 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20973echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20974 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20975echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20976 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20977echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20979echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20981echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20983echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20984 (
20985 cat <<\_ASBOX
20986## ------------------------------------------ ##
20987## Report this to the AC_PACKAGE_NAME lists. ##
20988## ------------------------------------------ ##
20989_ASBOX
20990 ) |
20991 sed "s/^/$as_me: WARNING: /" >&2
20992 ;;
20993esac
20994echo "$as_me:$LINENO: checking for tk.h" >&5
20995echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20996if test "${ac_cv_header_tk_h+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20998else
20999 ac_cv_header_tk_h=$ac_header_preproc
21000fi
21001echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21002echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21003
3fc11d3e 21004fi
bec39cab 21005if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
21006 ac_cv_c_tkh=installed
21007else
bec39cab 21008 ac_cv_c_tkh=""
3fc11d3e
JM
21009fi
21010
bec39cab 21011
3fc11d3e
JM
21012fi
21013
21014fi
21015
21016if test x"${ac_cv_c_tkh}" != x ; then
21017 no_tk=""
21018 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
21019 echo "$as_me:$LINENO: result: is installed" >&5
21020echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
21021 TKHDIR=""
21022 else
bec39cab
AC
21023 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
21024echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
21025 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
21026 TKHDIR="-I${ac_cv_c_tkh}"
21027 fi
21028else
21029 TKHDIR="# no Tk directory found"
bec39cab
AC
21030 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21031echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
21032 no_tk=true
21033fi
21034
21035
21036
bec39cab
AC
21037
21038echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21039echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21040if test x"${ac_cv_c_itclh}" = x ; then
21041 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
21042 if test -f $i/generic/itcl.h ; then
21043 ac_cv_c_itclh=`(cd $i/generic; pwd)`
21044 break
21045 fi
21046 done
21047fi
21048if test x"${ac_cv_c_itclh}" = x ; then
21049 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
21050 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21051echo "$as_me: error: Can't find Itcl private headers" >&2;}
21052 { (exit 1); exit 1; }; }
3fc11d3e
JM
21053fi
21054if test x"${ac_cv_c_itclh}" != x ; then
21055 ITCLHDIR="-I${ac_cv_c_itclh}"
21056fi
21057# should always be here
21058# ITCLLIB="../itcl/itcl/unix/libitcl.a"
21059
21060#AC_SUBST(ITCLLIB)
21061
bec39cab
AC
21062
21063echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21064echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21065if test x"${ac_cv_c_itkh}" = x ; then
21066 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
21067 if test -f $i/generic/itk.h ; then
21068 ac_cv_c_itkh=`(cd $i/generic; pwd)`
21069 break
21070 fi
21071 done
21072fi
21073if test x"${ac_cv_c_itkh}" = x ; then
21074 ITKHDIR="# no Itk private headers found"
bec39cab
AC
21075 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21076echo "$as_me: error: Can't find Itk private headers" >&2;}
21077 { (exit 1); exit 1; }; }
3fc11d3e
JM
21078fi
21079if test x"${ac_cv_c_itkh}" != x ; then
21080 ITKHDIR="-I${ac_cv_c_itkh}"
21081fi
21082# should always be here
21083# ITKLIB="../itcl/itk/unix/libitk.a"
21084
21085#AC_SUBST(ITKLIB)
21086
3fc11d3e 21087
dd2504ab
JM
21088
21089 # now look for Tk library stuff
21090
d91670b9 21091 tkdir="../tk/${configdir}/"
dd2504ab
JM
21092
21093 TK_DEPS="${tkdir}${TK_LIB_FILE}"
21094
3fc11d3e
JM
21095 # now look for Itcl library stuff
21096
bec39cab 21097
3fc11d3e
JM
21098#
21099# Ok, lets find the itcl configuration
bec39cab 21100# First, look for one uninstalled.
3fc11d3e
JM
21101# the alternative search directory is invoked by --with-itclconfig
21102#
21103
21104if test x"${no_itcl}" = x ; then
21105 # we reset no_itcl in case something fails here
21106 no_itcl=true
bec39cab
AC
21107
21108# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
21109if test "${with_itclconfig+set}" = set; then
21110 withval="$with_itclconfig"
21111 with_itclconfig=${withval}
bec39cab
AC
21112fi;
21113 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
21114echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
21115 if test "${ac_cv_c_itclconfig+set}" = set; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21117else
bec39cab 21118
3fc11d3e
JM
21119
21120 # First check to see if --with-itclconfig was specified.
21121 if test x"${with_itclconfig}" != x ; then
21122 if test -f "${with_itclconfig}/itclConfig.sh" ; then
21123 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
21124 else
bec39cab
AC
21125 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
21126echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
21127 { (exit 1); exit 1; }; }
3fc11d3e
JM
21128 fi
21129 fi
21130
21131 # then check for a private Itcl library
21132 if test x"${ac_cv_c_itclconfig}" = x ; then
21133 for i in \
21134 ../itcl/itcl \
21135 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21136 ../../itcl \
21137 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21138 ../../../itcl \
21139 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21140 if test -f "$i/itclConfig.sh" ; then
21141 ac_cv_c_itclconfig=`(cd $i; pwd)`
21142 break
21143 fi
21144 done
21145 fi
21146 # check in a few common install locations
21147 if test x"${ac_cv_c_itclconfig}" = x ; then
21148 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21149 if test -f "$i/itclConfig.sh" ; then
21150 ac_cv_c_itclconfig=`(cd $i; pwd)`
21151 break
21152 fi
21153 done
21154 fi
21155 # check in a few other private locations
21156 if test x"${ac_cv_c_itclconfig}" = x ; then
21157 for i in \
21158 ${srcdir}/../itcl/itcl \
21159 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21160 if test -f "$i/itclConfig.sh" ; then
21161 ac_cv_c_itclconfig=`(cd $i; pwd)`
21162 break
21163 fi
21164 done
21165 fi
bec39cab 21166
3fc11d3e
JM
21167fi
21168
21169 if test x"${ac_cv_c_itclconfig}" = x ; then
21170 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
21171 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21172echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
21173 else
21174 no_itcl=
21175 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
21176 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21177echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
21178 fi
21179fi
21180
21181 if test -z "${no_itcl}"; then
bec39cab 21182
3fc11d3e
JM
21183 if test -f "$ITCLCONFIG" ; then
21184 . $ITCLCONFIG
21185 fi
21186
3fc11d3e 21187
3fc11d3e
JM
21188
21189
bec39cab
AC
21190
21191
21192
21193
21194
21195
21196
3fc11d3e
JM
21197
21198 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 21199 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
21200 fi
21201
bec39cab 21202
3fc11d3e 21203 # now look for Itk library stuff
bec39cab 21204
3fc11d3e
JM
21205#
21206# Ok, lets find the itk configuration
bec39cab 21207# First, look for one uninstalled.
3fc11d3e
JM
21208# the alternative search directory is invoked by --with-itkconfig
21209#
21210
21211if test x"${no_itk}" = x ; then
21212 # we reset no_itk in case something fails here
21213 no_itk=true
bec39cab
AC
21214
21215# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
21216if test "${with_itkconfig+set}" = set; then
21217 withval="$with_itkconfig"
21218 with_itkconfig=${withval}
bec39cab
AC
21219fi;
21220 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21221echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21222 if test "${ac_cv_c_itkconfig+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21224else
bec39cab 21225
3fc11d3e
JM
21226
21227 # First check to see if --with-itkconfig was specified.
21228 if test x"${with_itkconfig}" != x ; then
21229 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21230 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21231 else
bec39cab
AC
21232 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21233echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21234 { (exit 1); exit 1; }; }
3fc11d3e
JM
21235 fi
21236 fi
21237
21238 # then check for a private Itk library
21239 if test x"${ac_cv_c_itkconfig}" = x ; then
21240 for i in \
21241 ../itcl/itk \
21242 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21243 ../../itk \
21244 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21245 ../../../itk \
21246 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21247 if test -f "$i/itkConfig.sh" ; then
21248 ac_cv_c_itkconfig=`(cd $i; pwd)`
21249 break
21250 fi
21251 done
21252 fi
21253 # check in a few common install locations
21254 if test x"${ac_cv_c_itkconfig}" = x ; then
21255 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21256 if test -f "$i/itkConfig.sh" ; then
21257 ac_cv_c_itkconfig=`(cd $i; pwd)`
21258 break
21259 fi
21260 done
21261 fi
21262 # check in a few other private locations
21263 if test x"${ac_cv_c_itkconfig}" = x ; then
21264 for i in \
21265 ${srcdir}/../itcl/itk \
21266 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21267 if test -f "$i/itkConfig.sh" ; then
21268 ac_cv_c_itkconfig=`(cd $i; pwd)`
21269 break
21270 fi
21271 done
21272 fi
bec39cab 21273
3fc11d3e
JM
21274fi
21275
21276 if test x"${ac_cv_c_itkconfig}" = x ; then
21277 ITKCONFIG="# no Itk configs found"
bec39cab
AC
21278 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21279echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
21280 else
21281 no_itk=
21282 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
21283 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21284echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
21285 fi
21286fi
21287
21288
bec39cab
AC
21289 if test -z "${no_itcl}"; then
21290
21291 if test -f "$ITKCONFIG" ; then
21292 . $ITKCONFIG
21293 fi
21294
21295
21296
21297
21298
21299
3fc11d3e 21300
3fc11d3e 21301
3fc11d3e
JM
21302
21303
3fc11d3e
JM
21304
21305
3fc11d3e 21306 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 21307 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
21308 fi
21309
4226a5a5 21310 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
21311
21312 # Include some libraries that Tcl and Tk want.
b2a1bd4f 21313 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
21314 # Yes, the ordering seems wrong here. But it isn't.
21315 # TK_LIBS is the list of libraries that need to be linked
21316 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21317 # were in LIBS then any link tests after this point would
21318 # try to include things like `$(LIBGUI)', which wouldn't work.
21319 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
21320
21321 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21322 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21323 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
21324 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21325 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21326 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21327 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
21328
21329 if test x$gdb_cv_os_cygwin = xyes; then
21330 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21331 WIN32LDAPP="-Wl,--subsystem,console"
21332 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21333 fi
21334 fi
21335 fi
ffc6a242 21336
bec39cab
AC
21337
21338
21339subdirs="$subdirs gdbtk"
3ace7edb 21340
3fc11d3e
JM
21341fi
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
dd2504ab 21355
bec39cab
AC
21356echo "$as_me:$LINENO: checking for X" >&5
21357echo $ECHO_N "checking for X... $ECHO_C" >&6
21358
c906108c
SS
21359
21360# Check whether --with-x or --without-x was given.
21361if test "${with_x+set}" = set; then
21362 withval="$with_x"
c906108c 21363
bec39cab 21364fi;
c906108c
SS
21365# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21366if test "x$with_x" = xno; then
21367 # The user explicitly disabled X.
21368 have_x=disabled
21369else
21370 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21371 # Both variables are already set.
21372 have_x=yes
21373 else
bec39cab
AC
21374 if test "${ac_cv_have_x+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21376else
21377 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
21378ac_x_includes=no ac_x_libraries=no
21379rm -fr conftest.dir
21380if mkdir conftest.dir; then
21381 cd conftest.dir
c906108c 21382 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 21383 cat >Imakefile <<'_ACEOF'
c906108c
SS
21384acfindx:
21385 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 21386_ACEOF
c906108c
SS
21387 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21389 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21390 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21391 for ac_extension in a so sl; do
21392 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
21393 test -f $ac_im_libdir/libX11.$ac_extension; then
21394 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
21395 fi
21396 done
21397 # Screen out bogus values from the imake configuration. They are
21398 # bogus both because they are the default anyway, and because
21399 # using them would break gcc on systems where it needs fixed includes.
bec39cab 21400 case $ac_im_incroot in
c906108c 21401 /usr/include) ;;
bec39cab 21402 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 21403 esac
bec39cab 21404 case $ac_im_usrlibdir in
c906108c 21405 /usr/lib | /lib) ;;
bec39cab 21406 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
21407 esac
21408 fi
21409 cd ..
bec39cab 21410 rm -fr conftest.dir
c906108c
SS
21411fi
21412
bec39cab
AC
21413# Standard set of common directories for X headers.
21414# Check X11 before X11Rn because it is often a symlink to the current release.
21415ac_x_header_dirs='
21416/usr/X11/include
21417/usr/X11R6/include
21418/usr/X11R5/include
21419/usr/X11R4/include
21420
21421/usr/include/X11
21422/usr/include/X11R6
21423/usr/include/X11R5
21424/usr/include/X11R4
21425
21426/usr/local/X11/include
21427/usr/local/X11R6/include
21428/usr/local/X11R5/include
21429/usr/local/X11R4/include
21430
21431/usr/local/include/X11
21432/usr/local/include/X11R6
21433/usr/local/include/X11R5
21434/usr/local/include/X11R4
21435
21436/usr/X386/include
21437/usr/x386/include
21438/usr/XFree86/include/X11
21439
21440/usr/include
21441/usr/local/include
21442/usr/unsupported/include
21443/usr/athena/include
21444/usr/local/x11r5/include
21445/usr/lpp/Xamples/include
21446
21447/usr/openwin/include
21448/usr/openwin/share/include'
21449
21450if test "$ac_x_includes" = no; then
21451 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 21452 # First, try using that file with no special directory specified.
bec39cab
AC
21453 cat >conftest.$ac_ext <<_ACEOF
21454/* confdefs.h. */
21455_ACEOF
21456cat confdefs.h >>conftest.$ac_ext
21457cat >>conftest.$ac_ext <<_ACEOF
21458/* end confdefs.h. */
21459#include <X11/Intrinsic.h>
21460_ACEOF
21461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21463 ac_status=$?
21464 grep -v '^ *+' conftest.er1 >conftest.err
21465 rm -f conftest.er1
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } >/dev/null; then
21469 if test -s conftest.err; then
21470 ac_cpp_err=$ac_c_preproc_warn_flag
21471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21472 else
21473 ac_cpp_err=
21474 fi
21475else
21476 ac_cpp_err=yes
21477fi
21478if test -z "$ac_cpp_err"; then
c906108c
SS
21479 # We can compile using X headers with no special include directory.
21480ac_x_includes=
21481else
bec39cab
AC
21482 echo "$as_me: failed program was:" >&5
21483sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 for ac_dir in $ac_x_header_dirs; do
21486 if test -r "$ac_dir/X11/Intrinsic.h"; then
21487 ac_x_includes=$ac_dir
21488 break
21489 fi
21490done
c906108c 21491fi
bec39cab
AC
21492rm -f conftest.err conftest.$ac_ext
21493fi # $ac_x_includes = no
c906108c 21494
bec39cab 21495if test "$ac_x_libraries" = no; then
c906108c 21496 # Check for the libraries.
c906108c
SS
21497 # See if we find them without any special options.
21498 # Don't add to $LIBS permanently.
bec39cab
AC
21499 ac_save_LIBS=$LIBS
21500 LIBS="-lXt $LIBS"
21501 cat >conftest.$ac_ext <<_ACEOF
21502/* confdefs.h. */
21503_ACEOF
21504cat confdefs.h >>conftest.$ac_ext
21505cat >>conftest.$ac_ext <<_ACEOF
21506/* end confdefs.h. */
21507#include <X11/Intrinsic.h>
21508int
21509main ()
21510{
21511XtMalloc (0)
21512 ;
21513 return 0;
21514}
21515_ACEOF
21516rm -f conftest.$ac_objext conftest$ac_exeext
21517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21518 (eval $ac_link) 2>conftest.er1
21519 ac_status=$?
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } &&
21525 { ac_try='test -z "$ac_c_werror_flag"
21526 || test ! -s conftest.err'
21527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528 (eval $ac_try) 2>&5
21529 ac_status=$?
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; } &&
21532 { ac_try='test -s conftest$ac_exeext'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 LIBS=$ac_save_LIBS
c906108c
SS
21539# We can link X programs with no special library path.
21540ac_x_libraries=
21541else
bec39cab
AC
21542 echo "$as_me: failed program was:" >&5
21543sed 's/^/| /' conftest.$ac_ext >&5
21544
21545LIBS=$ac_save_LIBS
21546for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21547do
bec39cab 21548 # Don't even attempt the hair of trying to link an X program!
c906108c 21549 for ac_extension in a so sl; do
bec39cab 21550 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
21551 ac_x_libraries=$ac_dir
21552 break 2
21553 fi
21554 done
21555done
21556fi
bec39cab
AC
21557rm -f conftest.err conftest.$ac_objext \
21558 conftest$ac_exeext conftest.$ac_ext
21559fi # $ac_x_libraries = no
c906108c 21560
bec39cab 21561if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21562 # Didn't find X anywhere. Cache the known absence of X.
21563 ac_cv_have_x="have_x=no"
21564else
21565 # Record where we found X for the cache.
21566 ac_cv_have_x="have_x=yes \
bec39cab 21567 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21568fi
21569fi
bec39cab 21570
c906108c
SS
21571 fi
21572 eval "$ac_cv_have_x"
21573fi # $with_x != no
21574
21575if test "$have_x" != yes; then
bec39cab
AC
21576 echo "$as_me:$LINENO: result: $have_x" >&5
21577echo "${ECHO_T}$have_x" >&6
c906108c
SS
21578 no_x=yes
21579else
21580 # If each of the values was on the command line, it overrides each guess.
21581 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21582 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21583 # Update the cache value to reflect the command line values.
21584 ac_cv_have_x="have_x=yes \
21585 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bec39cab
AC
21586 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21587echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
21588fi
21589
21590
9cc52bde
MK
21591# Check whether we should enable the TUI, but only do so if we really
21592# can.
21593if test x"$enable_tui" = xyes; then
21594 if test -d $srcdir/tui; then
21595 if test "$ac_cv_search_waddstr" != no; then
21596 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21597 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21598 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21599 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21600 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21601 CONFIG_ALL="${CONFIG_ALL} all-tui"
21602 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21603 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21604 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21605 else
bec39cab
AC
21606 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21607echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21608 fi
21609 fi
21610fi
21611
bec39cab
AC
21612# Unlike the sim directory, whether a simulator is linked is controlled by
21613# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21614# This code just checks for a few cases where we'd like to ignore those
21615# definitions, even when they're present in the '.mt' file. These cases
21616# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21617# not part of the source tree.
7a292a7a
SS
21618#
21619# Check whether --enable-sim or --disable-sim was given.
21620if test "${enable_sim+set}" = set; then
21621 enableval="$enable_sim"
21622 echo "enable_sim = $enable_sim";
21623 echo "enableval = ${enableval}";
21624 case "${enableval}" in
21625 yes) ignore_sim=false ;;
21626 no) ignore_sim=true ;;
21627 *) ignore_sim=false ;;
21628 esac
21629else
21630 ignore_sim=false
bec39cab 21631fi;
7a292a7a
SS
21632
21633if test ! -d "${srcdir}/../sim"; then
21634 ignore_sim=true
21635fi
21636
21637if test "${ignore_sim}" = "true"; then
21638 IGNORE_SIM="SIM="
21639 IGNORE_SIM_OBS="SIM_OBS="
21640else
21641 IGNORE_SIM=""
21642 IGNORE_SIM_OBS=""
60ca704f
SE
21643
21644cat >>confdefs.h <<\_ACEOF
7a292a7a 21645#define WITH_SIM 1
bec39cab 21646_ACEOF
7a292a7a
SS
21647
21648fi
21649
21650
21651
c906108c
SS
21652
21653
21654
21655
21656
21657
dfcd3bfb 21658
e56ac5c3
AC
21659
21660
b3a90332
AC
21661
21662
c35f4ffc 21663# List of host floatformats.
bec39cab
AC
21664
21665cat >>confdefs.h <<_ACEOF
c35f4ffc 21666#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21667_ACEOF
c35f4ffc 21668
bec39cab
AC
21669
21670cat >>confdefs.h <<_ACEOF
c35f4ffc 21671#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21672_ACEOF
21673
c35f4ffc 21674
bec39cab 21675cat >>confdefs.h <<_ACEOF
c35f4ffc 21676#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21677_ACEOF
c35f4ffc
AC
21678
21679
c906108c
SS
21680# target_subdir is used by the testsuite to find the target libraries.
21681target_subdir=
21682if test "${host}" != "${target}"; then
21683 target_subdir="${target_alias}/"
21684fi
21685
21686
21687frags=
0dad8a66
MK
21688if test "${target}" = "${host}"; then
21689 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21690 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21691 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21692echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21693 { (exit 1); exit 1; }; }
0dad8a66
MK
21694 fi
21695 frags="$frags $host_makefile_frag"
21696else
21697 host_makefile_frag=/dev/null
c906108c 21698fi
c906108c
SS
21699
21700target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21701if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21702 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21703echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21704 { (exit 1); exit 1; }; }
c906108c
SS
21705fi
21706frags="$frags $target_makefile_frag"
21707
21708
21709
21710
21711
21712hostfile=`sed -n '
21713s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21714' ${host_makefile_frag}`
21715
21716targetfile=`sed -n '
2c0fc042 21717s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21718' ${target_makefile_frag}`
21719
c906108c 21720if test "${target}" = "${host}"; then
a85f51e7
DJ
21721# We pick this up from the host configuration file (.mh) because we
21722# do not have a native configuration Makefile fragment.
c906108c
SS
21723nativefile=`sed -n '
21724s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21725' ${host_makefile_frag}`
c906108c
SS
21726fi
21727
21728
b00a8037 21729if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21730
21731cat >>confdefs.h <<_ACEOF
b00a8037 21732#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21733_ACEOF
b00a8037
DJ
21734
21735fi
21736
8dcde887
MK
21737# Enable multi-ice-gdb-server.
21738# Check whether --enable-multi-ice or --disable-multi-ice was given.
21739if test "${enable_multi_ice+set}" = set; then
21740 enableval="$enable_multi_ice"
21741 case $enableval in
21742 yes | no)
21743 ;;
bec39cab
AC
21744 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21745echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21746 { (exit 1); exit 1; }; } ;;
8dcde887 21747 esac
bec39cab 21748fi;
8dcde887 21749if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21750
21751
21752subdirs="$subdirs multi-ice"
3ace7edb 21753
a85f51e7
DJ
21754fi
21755
8dcde887
MK
21756# We only build gdbserver automatically if host and target are the same.
21757if test "x$target" = "x$host"; then
bec39cab
AC
21758 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21759echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21760 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21761 echo "$as_me:$LINENO: result: yes" >&5
21762echo "${ECHO_T}yes" >&6
21763
21764
21765subdirs="$subdirs gdbserver"
3ace7edb 21766
8dcde887 21767 else
bec39cab
AC
21768 echo "$as_me:$LINENO: result: no" >&5
21769echo "${ECHO_T}no" >&6
8dcde887
MK
21770 fi
21771fi
21772
065a1afc
JB
21773# We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21774if test "x$build_rdi_share" = xyes; then
21775
21776
21777subdirs="$subdirs rdi-share"
21778
21779fi
21780
21781# We configure the nlm subdirectory on netware targets, as instructed
21782# by configure.tgt.
21783if test "x$build_nlm" = xyes; then
21784
21785
21786subdirs="$subdirs nlm"
21787
21788fi
21789
2c0fc042
AC
21790# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21791# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21792# to an empty version.
c906108c
SS
21793
21794files=
21795links=
5a2402b8 21796
c906108c 21797rm -f xm.h
5a2402b8 21798xm_h=""
c906108c 21799if test "${hostfile}" != ""; then
5a2402b8 21800 xm_h=xm.h
0f475e27
AC
21801 case "${hostfile}" in
21802 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21803 * ) GDB_XM_FILE="${hostfile}"
21804 esac
5a2402b8
AC
21805 files="${files} ${GDB_XM_FILE}"
21806 links="${links} xm.h"
60ca704f
SE
21807
21808cat >>confdefs.h <<_ACEOF
b78960be 21809#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21810_ACEOF
5a2402b8 21811
c906108c 21812fi
5a2402b8
AC
21813
21814
c906108c 21815rm -f tm.h
5a2402b8 21816tm_h=""
c906108c 21817if test "${targetfile}" != ""; then
5a2402b8 21818 tm_h=tm.h
0f475e27 21819 case "${targetfile}" in
b8c4aece 21820 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21821 * ) GDB_TM_FILE="${targetfile}"
21822 esac
5a2402b8
AC
21823 files="${files} ${GDB_TM_FILE}"
21824 links="${links} tm.h"
60ca704f
SE
21825
21826cat >>confdefs.h <<_ACEOF
b78960be 21827#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21828_ACEOF
5a2402b8 21829
c906108c 21830fi
5a2402b8
AC
21831
21832
c906108c 21833rm -f nm.h
5a2402b8 21834nm_h=""
c906108c 21835if test "${nativefile}" != ""; then
5a2402b8 21836 nm_h=nm.h
0f475e27
AC
21837 case "${nativefile}" in
21838 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21839 * ) GDB_NM_FILE="${nativefile}"
21840 esac
5a2402b8
AC
21841 files="${files} ${GDB_NM_FILE}"
21842 links="${links} nm.h"
60ca704f
SE
21843
21844cat >>confdefs.h <<_ACEOF
b78960be 21845#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21846_ACEOF
5a2402b8 21847
c906108c 21848fi
5a2402b8
AC
21849
21850
bec39cab
AC
21851ac_sources="$files"
21852ac_dests="$links"
21853while test -n "$ac_sources"; do
21854 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21855 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21856 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21857done
21858 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21859
21860
c906108c
SS
21861
21862
c906108c 21863
c906108c 21864
bec39cab
AC
21865cat >>confdefs.h <<\_ACEOF
21866#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21867_ACEOF
c906108c 21868
234b45d4 21869
234b45d4
KB
21870
21871
21872
bec39cab 21873# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21874if test "${with_libiconv_prefix+set}" = set; then
21875 withval="$with_libiconv_prefix"
bec39cab 21876
234b45d4
KB
21877 for dir in `echo "$withval" | tr : ' '`; do
21878 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21879 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21880 done
234b45d4 21881
bec39cab 21882fi;
234b45d4 21883
bec39cab
AC
21884 echo "$as_me:$LINENO: checking for iconv" >&5
21885echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21886if test "${am_cv_func_iconv+set}" = set; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21888else
bec39cab 21889
234b45d4
KB
21890 am_cv_func_iconv="no, consider installing GNU libiconv"
21891 am_cv_lib_iconv=no
bec39cab
AC
21892 cat >conftest.$ac_ext <<_ACEOF
21893/* confdefs.h. */
21894_ACEOF
21895cat confdefs.h >>conftest.$ac_ext
21896cat >>conftest.$ac_ext <<_ACEOF
21897/* end confdefs.h. */
234b45d4
KB
21898#include <stdlib.h>
21899#include <iconv.h>
bec39cab
AC
21900int
21901main ()
21902{
234b45d4
KB
21903iconv_t cd = iconv_open("","");
21904 iconv(cd,NULL,NULL,NULL,NULL);
21905 iconv_close(cd);
bec39cab
AC
21906 ;
21907 return 0;
21908}
21909_ACEOF
21910rm -f conftest.$ac_objext conftest$ac_exeext
21911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21912 (eval $ac_link) 2>conftest.er1
21913 ac_status=$?
21914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
21919 { ac_try='test -z "$ac_c_werror_flag"
21920 || test ! -s conftest.err'
21921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21923 ac_status=$?
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; } &&
21926 { ac_try='test -s conftest$ac_exeext'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
234b45d4
KB
21932 am_cv_func_iconv=yes
21933else
bec39cab
AC
21934 echo "$as_me: failed program was:" >&5
21935sed 's/^/| /' conftest.$ac_ext >&5
21936
234b45d4 21937fi
bec39cab
AC
21938rm -f conftest.err conftest.$ac_objext \
21939 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21940 if test "$am_cv_func_iconv" != yes; then
21941 am_save_LIBS="$LIBS"
21942 LIBS="$LIBS -liconv"
bec39cab
AC
21943 cat >conftest.$ac_ext <<_ACEOF
21944/* confdefs.h. */
21945_ACEOF
21946cat confdefs.h >>conftest.$ac_ext
21947cat >>conftest.$ac_ext <<_ACEOF
21948/* end confdefs.h. */
234b45d4
KB
21949#include <stdlib.h>
21950#include <iconv.h>
bec39cab
AC
21951int
21952main ()
21953{
234b45d4
KB
21954iconv_t cd = iconv_open("","");
21955 iconv(cd,NULL,NULL,NULL,NULL);
21956 iconv_close(cd);
bec39cab
AC
21957 ;
21958 return 0;
21959}
21960_ACEOF
21961rm -f conftest.$ac_objext conftest$ac_exeext
21962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21963 (eval $ac_link) 2>conftest.er1
21964 ac_status=$?
21965 grep -v '^ *+' conftest.er1 >conftest.err
21966 rm -f conftest.er1
21967 cat conftest.err >&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } &&
21970 { ac_try='test -z "$ac_c_werror_flag"
21971 || test ! -s conftest.err'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } &&
21977 { ac_try='test -s conftest$ac_exeext'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
234b45d4
KB
21983 am_cv_lib_iconv=yes
21984 am_cv_func_iconv=yes
21985else
bec39cab
AC
21986 echo "$as_me: failed program was:" >&5
21987sed 's/^/| /' conftest.$ac_ext >&5
21988
234b45d4 21989fi
bec39cab
AC
21990rm -f conftest.err conftest.$ac_objext \
21991 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21992 LIBS="$am_save_LIBS"
21993 fi
bec39cab
AC
21994
21995fi
21996echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21997echo "${ECHO_T}$am_cv_func_iconv" >&6
21998 if test "$am_cv_func_iconv" = yes; then
21999
22000cat >>confdefs.h <<\_ACEOF
22001#define HAVE_ICONV 1
22002_ACEOF
22003
22004 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22005echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22006 if test "${am_cv_proto_iconv+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22008else
22009
22010 cat >conftest.$ac_ext <<_ACEOF
22011/* confdefs.h. */
22012_ACEOF
22013cat confdefs.h >>conftest.$ac_ext
22014cat >>conftest.$ac_ext <<_ACEOF
22015/* end confdefs.h. */
22016
22017#include <stdlib.h>
22018#include <iconv.h>
22019extern
22020#ifdef __cplusplus
22021"C"
22022#endif
22023#if defined(__STDC__) || defined(__cplusplus)
22024size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22025#else
22026size_t iconv();
22027#endif
22028
22029int
22030main ()
22031{
22032
22033 ;
22034 return 0;
22035}
22036_ACEOF
22037rm -f conftest.$ac_objext
22038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22039 (eval $ac_compile) 2>conftest.er1
22040 ac_status=$?
22041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
22046 { ac_try='test -z "$ac_c_werror_flag"
22047 || test ! -s conftest.err'
22048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049 (eval $ac_try) 2>&5
22050 ac_status=$?
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); }; } &&
22053 { ac_try='test -s conftest.$ac_objext'
22054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22055 (eval $ac_try) 2>&5
22056 ac_status=$?
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; }; then
22059 am_cv_proto_iconv_arg1=""
22060else
22061 echo "$as_me: failed program was:" >&5
22062sed 's/^/| /' conftest.$ac_ext >&5
22063
22064am_cv_proto_iconv_arg1="const"
22065fi
22066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22067 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);"
22068fi
22069
22070 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22071 echo "$as_me:$LINENO: result: ${ac_t:-
22072 }$am_cv_proto_iconv" >&5
22073echo "${ECHO_T}${ac_t:-
22074 }$am_cv_proto_iconv" >&6
22075
22076cat >>confdefs.h <<_ACEOF
22077#define ICONV_CONST $am_cv_proto_iconv_arg1
22078_ACEOF
22079
22080 fi
22081 LIBICONV=
22082 if test "$am_cv_lib_iconv" = yes; then
22083 LIBICONV="-liconv"
22084 fi
22085
22086
22087
22088 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
22089 ac_config_commands="$ac_config_commands default"
22090cat >confcache <<\_ACEOF
22091# This file is a shell script that caches the results of configure
22092# tests run on this system so they can be shared between configure
22093# scripts and configure runs, see configure's option --config-cache.
22094# It is not useful on other systems. If it contains results you don't
22095# want to keep, you may remove or edit it.
22096#
22097# config.status only pays attention to the cache file if you give it
22098# the --recheck option to rerun configure.
22099#
22100# `ac_cv_env_foo' variables (set or unset) will be overridden when
22101# loading this file, other *unset* `ac_cv_foo' will be assigned the
22102# following values.
22103
22104_ACEOF
22105
22106# The following way of writing the cache mishandles newlines in values,
22107# but we know of no workaround that is simple, portable, and efficient.
22108# So, don't put newlines in cache variables' values.
22109# Ultrix sh set writes to stderr and can't be redirected directly,
22110# and sets the high bit in the cache file unless we assign to the vars.
22111{
22112 (set) 2>&1 |
22113 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22114 *ac_space=\ *)
22115 # `set' does not quote correctly, so add quotes (double-quote
22116 # substitution turns \\\\ into \\, and sed turns \\ into \).
22117 sed -n \
22118 "s/'/'\\\\''/g;
22119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22120 ;;
22121 *)
22122 # `set' quotes correctly as required by POSIX, so do not add quotes.
22123 sed -n \
22124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22125 ;;
22126 esac;
22127} |
22128 sed '
22129 t clear
22130 : clear
22131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22132 t end
22133 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22134 : end' >>confcache
22135if diff $cache_file confcache >/dev/null 2>&1; then :; else
22136 if test -w $cache_file; then
22137 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22138 cat confcache >$cache_file
22139 else
22140 echo "not updating unwritable cache $cache_file"
22141 fi
22142fi
22143rm -f confcache
22144
22145test "x$prefix" = xNONE && prefix=$ac_default_prefix
22146# Let make expand exec_prefix.
22147test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22148
22149# VPATH may cause trouble with some makes, so we remove $(srcdir),
22150# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22151# trailing colons and then remove the whole line if VPATH becomes empty
22152# (actually we leave an empty line to preserve line numbers).
22153if test "x$srcdir" = x.; then
22154 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22155s/:*\$(srcdir):*/:/;
22156s/:*\${srcdir}:*/:/;
22157s/:*@srcdir@:*/:/;
22158s/^\([^=]*=[ ]*\):*/\1/;
22159s/:*$//;
22160s/^[^=]*=[ ]*$//;
22161}'
22162fi
22163
22164DEFS=-DHAVE_CONFIG_H
22165
22166ac_libobjs=
22167ac_ltlibobjs=
22168for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22169 # 1. Remove the extension, and $U if already installed.
22170 ac_i=`echo "$ac_i" |
22171 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22172 # 2. Add them.
22173 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22174 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22175done
22176LIBOBJS=$ac_libobjs
22177
22178LTLIBOBJS=$ac_ltlibobjs
22179
22180
85981d60
AC
22181if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22182 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22183Usually this means the macro was only invoked conditionally." >&5
22184echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22185Usually this means the macro was only invoked conditionally." >&2;}
22186 { (exit 1); exit 1; }; }
22187fi
bec39cab
AC
22188
22189: ${CONFIG_STATUS=./config.status}
22190ac_clean_files_save=$ac_clean_files
22191ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22192{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22193echo "$as_me: creating $CONFIG_STATUS" >&6;}
22194cat >$CONFIG_STATUS <<_ACEOF
22195#! $SHELL
22196# Generated by $as_me.
22197# Run this file to recreate the current configuration.
22198# Compiler output produced by configure, useful for debugging
22199# configure, is in config.log if it exists.
22200
22201debug=false
22202ac_cs_recheck=false
22203ac_cs_silent=false
22204SHELL=\${CONFIG_SHELL-$SHELL}
22205_ACEOF
22206
22207cat >>$CONFIG_STATUS <<\_ACEOF
22208## --------------------- ##
22209## M4sh Initialization. ##
22210## --------------------- ##
22211
22212# Be Bourne compatible
22213if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22214 emulate sh
22215 NULLCMD=:
22216 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22217 # is contrary to our usage. Disable this feature.
22218 alias -g '${1+"$@"}'='"$@"'
22219elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22220 set -o posix
22221fi
22222DUALCASE=1; export DUALCASE # for MKS sh
22223
22224# Support unset when possible.
22225if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22226 as_unset=unset
22227else
22228 as_unset=false
22229fi
22230
22231
22232# Work around bugs in pre-3.0 UWIN ksh.
22233$as_unset ENV MAIL MAILPATH
22234PS1='$ '
22235PS2='> '
22236PS4='+ '
22237
22238# NLS nuisances.
22239for as_var in \
22240 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22241 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22242 LC_TELEPHONE LC_TIME
22243do
22244 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22245 eval $as_var=C; export $as_var
22246 else
22247 $as_unset $as_var
22248 fi
22249done
22250
22251# Required to use basename.
22252if expr a : '\(a\)' >/dev/null 2>&1; then
22253 as_expr=expr
22254else
22255 as_expr=false
22256fi
22257
22258if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22259 as_basename=basename
22260else
22261 as_basename=false
22262fi
22263
22264
22265# Name of the executable.
22266as_me=`$as_basename "$0" ||
22267$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22268 X"$0" : 'X\(//\)$' \| \
22269 X"$0" : 'X\(/\)$' \| \
22270 . : '\(.\)' 2>/dev/null ||
22271echo X/"$0" |
22272 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22273 /^X\/\(\/\/\)$/{ s//\1/; q; }
22274 /^X\/\(\/\).*/{ s//\1/; q; }
22275 s/.*/./; q'`
22276
22277
22278# PATH needs CR, and LINENO needs CR and PATH.
22279# Avoid depending upon Character Ranges.
22280as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22281as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22282as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22283as_cr_digits='0123456789'
22284as_cr_alnum=$as_cr_Letters$as_cr_digits
22285
22286# The user is always right.
22287if test "${PATH_SEPARATOR+set}" != set; then
22288 echo "#! /bin/sh" >conf$$.sh
22289 echo "exit 0" >>conf$$.sh
22290 chmod +x conf$$.sh
22291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22292 PATH_SEPARATOR=';'
22293 else
22294 PATH_SEPARATOR=:
22295 fi
22296 rm -f conf$$.sh
22297fi
22298
22299
22300 as_lineno_1=$LINENO
22301 as_lineno_2=$LINENO
22302 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22303 test "x$as_lineno_1" != "x$as_lineno_2" &&
22304 test "x$as_lineno_3" = "x$as_lineno_2" || {
22305 # Find who we are. Look in the path if we contain no path at all
22306 # relative or not.
22307 case $0 in
22308 *[\\/]* ) as_myself=$0 ;;
22309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22310for as_dir in $PATH
22311do
22312 IFS=$as_save_IFS
22313 test -z "$as_dir" && as_dir=.
22314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22315done
22316
22317 ;;
22318 esac
22319 # We did not find ourselves, most probably we were run as `sh COMMAND'
22320 # in which case we are not to be found in the path.
22321 if test "x$as_myself" = x; then
22322 as_myself=$0
22323 fi
22324 if test ! -f "$as_myself"; then
22325 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22326echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22327 { (exit 1); exit 1; }; }
22328 fi
22329 case $CONFIG_SHELL in
22330 '')
22331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22332for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22333do
22334 IFS=$as_save_IFS
22335 test -z "$as_dir" && as_dir=.
22336 for as_base in sh bash ksh sh5; do
22337 case $as_dir in
22338 /*)
22339 if ("$as_dir/$as_base" -c '
22340 as_lineno_1=$LINENO
22341 as_lineno_2=$LINENO
22342 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22343 test "x$as_lineno_1" != "x$as_lineno_2" &&
22344 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22345 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22346 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22347 CONFIG_SHELL=$as_dir/$as_base
22348 export CONFIG_SHELL
22349 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22350 fi;;
22351 esac
22352 done
22353done
22354;;
22355 esac
22356
22357 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22358 # uniformly replaced by the line number. The first 'sed' inserts a
22359 # line-number line before each line; the second 'sed' does the real
22360 # work. The second script uses 'N' to pair each line-number line
22361 # with the numbered line, and appends trailing '-' during
22362 # substitution so that $LINENO is not a special case at line end.
22363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22364 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22365 sed '=' <$as_myself |
22366 sed '
22367 N
22368 s,$,-,
22369 : loop
22370 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22371 t loop
22372 s,-$,,
22373 s,^['$as_cr_digits']*\n,,
22374 ' >$as_me.lineno &&
22375 chmod +x $as_me.lineno ||
22376 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22377echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22378 { (exit 1); exit 1; }; }
22379
22380 # Don't try to exec as it changes $[0], causing all sort of problems
22381 # (the dirname of $[0] is not the place where we might find the
22382 # original and so on. Autoconf is especially sensible to this).
22383 . ./$as_me.lineno
22384 # Exit status is that of the last command.
22385 exit
22386}
22387
22388
22389case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22390 *c*,-n*) ECHO_N= ECHO_C='
22391' ECHO_T=' ' ;;
22392 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22393 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22394esac
22395
22396if expr a : '\(a\)' >/dev/null 2>&1; then
22397 as_expr=expr
22398else
22399 as_expr=false
22400fi
22401
22402rm -f conf$$ conf$$.exe conf$$.file
22403echo >conf$$.file
22404if ln -s conf$$.file conf$$ 2>/dev/null; then
22405 # We could just check for DJGPP; but this test a) works b) is more generic
22406 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22407 if test -f conf$$.exe; then
22408 # Don't use ln at all; we don't have any links
22409 as_ln_s='cp -p'
22410 else
22411 as_ln_s='ln -s'
22412 fi
22413elif ln conf$$.file conf$$ 2>/dev/null; then
22414 as_ln_s=ln
22415else
22416 as_ln_s='cp -p'
22417fi
22418rm -f conf$$ conf$$.exe conf$$.file
22419
22420if mkdir -p . 2>/dev/null; then
22421 as_mkdir_p=:
22422else
22423 test -d ./-p && rmdir ./-p
22424 as_mkdir_p=false
22425fi
22426
22427as_executable_p="test -f"
22428
22429# Sed expression to map a string onto a valid CPP name.
22430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22431
22432# Sed expression to map a string onto a valid variable name.
22433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22434
22435
22436# IFS
22437# We need space, tab and new line, in precisely that order.
22438as_nl='
22439'
22440IFS=" $as_nl"
22441
22442# CDPATH.
22443$as_unset CDPATH
22444
22445exec 6>&1
22446
22447# Open the log real soon, to keep \$[0] and so on meaningful, and to
22448# report actual input values of CONFIG_FILES etc. instead of their
22449# values after options handling. Logging --version etc. is OK.
22450exec 5>>config.log
22451{
22452 echo
22453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22454## Running $as_me. ##
22455_ASBOX
22456} >&5
22457cat >&5 <<_CSEOF
22458
22459This file was extended by $as_me, which was
22460generated by GNU Autoconf 2.59. Invocation command line was
22461
22462 CONFIG_FILES = $CONFIG_FILES
22463 CONFIG_HEADERS = $CONFIG_HEADERS
22464 CONFIG_LINKS = $CONFIG_LINKS
22465 CONFIG_COMMANDS = $CONFIG_COMMANDS
22466 $ $0 $@
22467
22468_CSEOF
22469echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22470echo >&5
22471_ACEOF
22472
22473# Files that config.status was made for.
22474if test -n "$ac_config_files"; then
22475 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22476fi
22477
22478if test -n "$ac_config_headers"; then
22479 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22480fi
22481
22482if test -n "$ac_config_links"; then
22483 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22484fi
22485
bec39cab
AC
22486if test -n "$ac_config_commands"; then
22487 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22488fi
234b45d4 22489
bec39cab 22490cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22491
bec39cab
AC
22492ac_cs_usage="\
22493\`$as_me' instantiates files from templates according to the
22494current configuration.
234b45d4 22495
bec39cab 22496Usage: $0 [OPTIONS] [FILE]...
234b45d4 22497
bec39cab
AC
22498 -h, --help print this help, then exit
22499 -V, --version print version number, then exit
22500 -q, --quiet do not print progress messages
22501 -d, --debug don't remove temporary files
22502 --recheck update $as_me by reconfiguring in the same conditions
22503 --file=FILE[:TEMPLATE]
22504 instantiate the configuration file FILE
22505 --header=FILE[:TEMPLATE]
22506 instantiate the configuration header FILE
234b45d4 22507
bec39cab
AC
22508Configuration files:
22509$config_files
234b45d4 22510
bec39cab
AC
22511Configuration headers:
22512$config_headers
234b45d4 22513
bec39cab
AC
22514Configuration links:
22515$config_links
234b45d4 22516
bec39cab
AC
22517Configuration commands:
22518$config_commands
22519
22520Report bugs to <bug-autoconf@gnu.org>."
22521_ACEOF
22522
22523cat >>$CONFIG_STATUS <<_ACEOF
22524ac_cs_version="\\
22525config.status
22526configured by $0, generated by GNU Autoconf 2.59,
22527 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22528
22529Copyright (C) 2003 Free Software Foundation, Inc.
22530This config.status script is free software; the Free Software Foundation
22531gives unlimited permission to copy, distribute and modify it."
22532srcdir=$srcdir
22533INSTALL="$INSTALL"
22534_ACEOF
22535
22536cat >>$CONFIG_STATUS <<\_ACEOF
22537# If no file are specified by the user, then we need to provide default
22538# value. By we need to know if files were specified by the user.
22539ac_need_defaults=:
22540while test $# != 0
22541do
22542 case $1 in
22543 --*=*)
22544 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22545 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22546 ac_shift=:
c906108c 22547 ;;
bec39cab
AC
22548 -*)
22549 ac_option=$1
22550 ac_optarg=$2
22551 ac_shift=shift
c906108c 22552 ;;
bec39cab
AC
22553 *) # This is not an option, so the user has probably given explicit
22554 # arguments.
22555 ac_option=$1
22556 ac_need_defaults=false;;
22557 esac
c906108c 22558
bec39cab
AC
22559 case $ac_option in
22560 # Handling of the options.
22561_ACEOF
22562cat >>$CONFIG_STATUS <<\_ACEOF
22563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22564 ac_cs_recheck=: ;;
22565 --version | --vers* | -V )
22566 echo "$ac_cs_version"; exit 0 ;;
22567 --he | --h)
22568 # Conflict between --help and --header
22569 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22570Try \`$0 --help' for more information." >&5
22571echo "$as_me: error: ambiguous option: $1
22572Try \`$0 --help' for more information." >&2;}
22573 { (exit 1); exit 1; }; };;
22574 --help | --hel | -h )
22575 echo "$ac_cs_usage"; exit 0 ;;
22576 --debug | --d* | -d )
22577 debug=: ;;
22578 --file | --fil | --fi | --f )
22579 $ac_shift
22580 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22581 ac_need_defaults=false;;
22582 --header | --heade | --head | --hea )
22583 $ac_shift
22584 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22585 ac_need_defaults=false;;
22586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22587 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22588 ac_cs_silent=: ;;
c906108c 22589
bec39cab
AC
22590 # This is an error.
22591 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22592Try \`$0 --help' for more information." >&5
22593echo "$as_me: error: unrecognized option: $1
22594Try \`$0 --help' for more information." >&2;}
22595 { (exit 1); exit 1; }; } ;;
c906108c 22596
bec39cab 22597 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22598
bec39cab
AC
22599 esac
22600 shift
22601done
c906108c 22602
bec39cab 22603ac_configure_extra_args=
c906108c 22604
bec39cab
AC
22605if $ac_cs_silent; then
22606 exec 6>/dev/null
22607 ac_configure_extra_args="$ac_configure_extra_args --silent"
22608fi
c906108c 22609
bec39cab
AC
22610_ACEOF
22611cat >>$CONFIG_STATUS <<_ACEOF
22612if \$ac_cs_recheck; then
22613 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22614 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22615fi
22616
22617_ACEOF
22618
22619cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22620#
bec39cab 22621# INIT-COMMANDS section.
c906108c 22622#
c906108c 22623
bec39cab
AC
22624
22625gdb_host_cpu=$gdb_host_cpu
22626gdb_target_cpu=$gdb_target_cpu
22627nativefile=$nativefile
22628
22629
22630_ACEOF
22631
22632
22633
22634cat >>$CONFIG_STATUS <<\_ACEOF
22635for ac_config_target in $ac_config_targets
c906108c 22636do
bec39cab
AC
22637 case "$ac_config_target" in
22638 # Handling of arguments.
22639 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22640 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22641 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22642 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22643 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22644 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22645echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22646 { (exit 1); exit 1; }; };;
c906108c
SS
22647 esac
22648done
22649
bec39cab
AC
22650# If the user did not use the arguments to specify the items to instantiate,
22651# then the envvar interface is used. Set only those that are not.
22652# We use the long form for the default assignment because of an extremely
22653# bizarre bug on SunOS 4.1.3.
22654if $ac_need_defaults; then
22655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22657 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22659fi
22660
22661# Have a temporary directory for convenience. Make it in the build tree
22662# simply because there is no reason to put it here, and in addition,
22663# creating and moving files from /tmp can sometimes cause problems.
22664# Create a temporary directory, and hook for its removal unless debugging.
22665$debug ||
22666{
22667 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22668 trap '{ (exit 1); exit 1; }' 1 2 13 15
22669}
c906108c 22670
bec39cab 22671# Create a (secure) tmp directory for tmp files.
c906108c 22672
bec39cab
AC
22673{
22674 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22675 test -n "$tmp" && test -d "$tmp"
22676} ||
22677{
22678 tmp=./confstat$$-$RANDOM
22679 (umask 077 && mkdir $tmp)
22680} ||
22681{
22682 echo "$me: cannot create a temporary directory in ." >&2
22683 { (exit 1); exit 1; }
22684}
22685
22686_ACEOF
22687
22688cat >>$CONFIG_STATUS <<_ACEOF
22689
22690#
22691# CONFIG_FILES section.
22692#
22693
22694# No need to generate the scripts if there are no CONFIG_FILES.
22695# This happens for instance when ./config.status config.h
22696if test -n "\$CONFIG_FILES"; then
22697 # Protect against being on the right side of a sed subst in config.status.
22698 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22699 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22700s,@SHELL@,$SHELL,;t t
22701s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22702s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22703s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22704s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22705s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22706s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22707s,@exec_prefix@,$exec_prefix,;t t
22708s,@prefix@,$prefix,;t t
22709s,@program_transform_name@,$program_transform_name,;t t
22710s,@bindir@,$bindir,;t t
22711s,@sbindir@,$sbindir,;t t
22712s,@libexecdir@,$libexecdir,;t t
22713s,@datadir@,$datadir,;t t
22714s,@sysconfdir@,$sysconfdir,;t t
22715s,@sharedstatedir@,$sharedstatedir,;t t
22716s,@localstatedir@,$localstatedir,;t t
22717s,@libdir@,$libdir,;t t
22718s,@includedir@,$includedir,;t t
22719s,@oldincludedir@,$oldincludedir,;t t
22720s,@infodir@,$infodir,;t t
22721s,@mandir@,$mandir,;t t
22722s,@build_alias@,$build_alias,;t t
22723s,@host_alias@,$host_alias,;t t
22724s,@target_alias@,$target_alias,;t t
22725s,@DEFS@,$DEFS,;t t
22726s,@ECHO_C@,$ECHO_C,;t t
22727s,@ECHO_N@,$ECHO_N,;t t
22728s,@ECHO_T@,$ECHO_T,;t t
22729s,@LIBS@,$LIBS,;t t
22730s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22731s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22732s,@MAINT@,$MAINT,;t t
22733s,@CC@,$CC,;t t
22734s,@CFLAGS@,$CFLAGS,;t t
22735s,@LDFLAGS@,$LDFLAGS,;t t
22736s,@CPPFLAGS@,$CPPFLAGS,;t t
22737s,@ac_ct_CC@,$ac_ct_CC,;t t
22738s,@EXEEXT@,$EXEEXT,;t t
22739s,@OBJEXT@,$OBJEXT,;t t
22740s,@CPP@,$CPP,;t t
22741s,@EGREP@,$EGREP,;t t
22742s,@build@,$build,;t t
22743s,@build_cpu@,$build_cpu,;t t
22744s,@build_vendor@,$build_vendor,;t t
22745s,@build_os@,$build_os,;t t
22746s,@host@,$host,;t t
22747s,@host_cpu@,$host_cpu,;t t
22748s,@host_vendor@,$host_vendor,;t t
22749s,@host_os@,$host_os,;t t
22750s,@target@,$target,;t t
22751s,@target_cpu@,$target_cpu,;t t
22752s,@target_vendor@,$target_vendor,;t t
22753s,@target_os@,$target_os,;t t
c21a4eee 22754s,@SET_MAKE@,$SET_MAKE,;t t
bec39cab
AC
22755s,@RANLIB@,$RANLIB,;t t
22756s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
bec39cab
AC
22757s,@ALLOCA@,$ALLOCA,;t t
22758s,@USE_NLS@,$USE_NLS,;t t
22759s,@MSGFMT@,$MSGFMT,;t t
22760s,@GMSGFMT@,$GMSGFMT,;t t
22761s,@XGETTEXT@,$XGETTEXT,;t t
22762s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22763s,@CATALOGS@,$CATALOGS,;t t
22764s,@CATOBJEXT@,$CATOBJEXT,;t t
22765s,@DATADIRNAME@,$DATADIRNAME,;t t
22766s,@GMOFILES@,$GMOFILES,;t t
22767s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22768s,@INTLDEPS@,$INTLDEPS,;t t
22769s,@INTLLIBS@,$INTLLIBS,;t t
22770s,@INTLOBJS@,$INTLOBJS,;t t
22771s,@POFILES@,$POFILES,;t t
22772s,@POSUB@,$POSUB,;t t
22773s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22774s,@GT_NO@,$GT_NO,;t t
22775s,@GT_YES@,$GT_YES,;t t
22776s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22777s,@l@,$l,;t t
22778s,@localedir@,$localedir,;t t
22779s,@PACKAGE@,$PACKAGE,;t t
22780s,@subdirs@,$subdirs,;t t
22781s,@AWK@,$AWK,;t t
22782s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22783s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22784s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22785s,@LN_S@,$LN_S,;t t
22786s,@YACC@,$YACC,;t t
22787s,@AR@,$AR,;t t
22788s,@ac_ct_AR@,$ac_ct_AR,;t t
22789s,@DLLTOOL@,$DLLTOOL,;t t
22790s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22791s,@WINDRES@,$WINDRES,;t t
22792s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22793s,@MIG@,$MIG,;t t
22794s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22795s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22796s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22797s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22798s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22799s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22800s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22801s,@WIN32LIBS@,$WIN32LIBS,;t t
22802s,@LIBGUI@,$LIBGUI,;t t
22803s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22804s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22805s,@TCL_VERSION@,$TCL_VERSION,;t t
22806s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22807s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22808s,@TCL_CC@,$TCL_CC,;t t
22809s,@TCL_DEFS@,$TCL_DEFS,;t t
22810s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22811s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22812s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22813s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22814s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22815s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22816s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22817s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22818s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22819s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22820s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22821s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22822s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22823s,@TK_VERSION@,$TK_VERSION,;t t
22824s,@TK_DEFS@,$TK_DEFS,;t t
22825s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22826s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22827s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22828s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22829s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22830s,@TCLHDIR@,$TCLHDIR,;t t
22831s,@TKHDIR@,$TKHDIR,;t t
22832s,@ITCLHDIR@,$ITCLHDIR,;t t
22833s,@ITKHDIR@,$ITKHDIR,;t t
22834s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22835s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22836s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22837s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22838s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22839s,@ITK_VERSION@,$ITK_VERSION,;t t
22840s,@ITK_DEFS@,$ITK_DEFS,;t t
22841s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22842s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22843s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22844s,@X_CFLAGS@,$X_CFLAGS,;t t
22845s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22846s,@X_LIBS@,$X_LIBS,;t t
22847s,@TCL_DEPS@,$TCL_DEPS,;t t
22848s,@TK_DEPS@,$TK_DEPS,;t t
22849s,@ITCLLIB@,$ITCLLIB,;t t
22850s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22851s,@ITKLIB@,$ITKLIB,;t t
22852s,@ITK_DEPS@,$ITK_DEPS,;t t
22853s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22854s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22855s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22856s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22857s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22858s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22859s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22860s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22861s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22862s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22863s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22864s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22865s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22866s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22867s,@target_subdir@,$target_subdir,;t t
22868s,@frags@,$frags,;t t
22869s,@xm_h@,$xm_h,;t t
22870s,@tm_h@,$tm_h,;t t
22871s,@nm_h@,$nm_h,;t t
22872s,@LIBICONV@,$LIBICONV,;t t
22873s,@LIBOBJS@,$LIBOBJS,;t t
22874s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22875/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22876s,@host_makefile_frag@,,;t t
c906108c 22877/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22878s,@target_makefile_frag@,,;t t
c906108c 22879CEOF
bec39cab
AC
22880
22881_ACEOF
22882
22883 cat >>$CONFIG_STATUS <<\_ACEOF
22884 # Split the substitutions into bite-sized pieces for seds with
22885 # small command number limits, like on Digital OSF/1 and HP-UX.
22886 ac_max_sed_lines=48
22887 ac_sed_frag=1 # Number of current file.
22888 ac_beg=1 # First line for current file.
22889 ac_end=$ac_max_sed_lines # Line after last line for current file.
22890 ac_more_lines=:
22891 ac_sed_cmds=
22892 while $ac_more_lines; do
22893 if test $ac_beg -gt 1; then
22894 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22895 else
22896 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22897 fi
22898 if test ! -s $tmp/subs.frag; then
22899 ac_more_lines=false
c906108c 22900 else
bec39cab
AC
22901 # The purpose of the label and of the branching condition is to
22902 # speed up the sed processing (if there are no `@' at all, there
22903 # is no need to browse any of the substitutions).
22904 # These are the two extra sed commands mentioned above.
22905 (echo ':t
22906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22907 if test -z "$ac_sed_cmds"; then
22908 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22909 else
22910 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22911 fi
22912 ac_sed_frag=`expr $ac_sed_frag + 1`
22913 ac_beg=$ac_end
22914 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22915 fi
bec39cab
AC
22916 done
22917 if test -z "$ac_sed_cmds"; then
22918 ac_sed_cmds=cat
c906108c 22919 fi
bec39cab 22920fi # test -n "$CONFIG_FILES"
c906108c 22921
bec39cab
AC
22922_ACEOF
22923cat >>$CONFIG_STATUS <<\_ACEOF
22924for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22925 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22926 case $ac_file in
22927 - | *:- | *:-:* ) # input from stdin
22928 cat >$tmp/stdin
22929 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22930 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22931 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22933 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22934 esac
22935
bec39cab
AC
22936 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22937 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22938$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22939 X"$ac_file" : 'X\(//\)[^/]' \| \
22940 X"$ac_file" : 'X\(//\)$' \| \
22941 X"$ac_file" : 'X\(/\)' \| \
22942 . : '\(.\)' 2>/dev/null ||
22943echo X"$ac_file" |
22944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22946 /^X\(\/\/\)$/{ s//\1/; q; }
22947 /^X\(\/\).*/{ s//\1/; q; }
22948 s/.*/./; q'`
22949 { if $as_mkdir_p; then
22950 mkdir -p "$ac_dir"
c906108c 22951 else
bec39cab
AC
22952 as_dir="$ac_dir"
22953 as_dirs=
22954 while test ! -d "$as_dir"; do
22955 as_dirs="$as_dir $as_dirs"
22956 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22957$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22958 X"$as_dir" : 'X\(//\)[^/]' \| \
22959 X"$as_dir" : 'X\(//\)$' \| \
22960 X"$as_dir" : 'X\(/\)' \| \
22961 . : '\(.\)' 2>/dev/null ||
22962echo X"$as_dir" |
22963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22965 /^X\(\/\/\)$/{ s//\1/; q; }
22966 /^X\(\/\).*/{ s//\1/; q; }
22967 s/.*/./; q'`
22968 done
22969 test ! -n "$as_dirs" || mkdir $as_dirs
22970 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22971echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22972 { (exit 1); exit 1; }; }; }
c906108c 22973
bec39cab
AC
22974 ac_builddir=.
22975
22976if test "$ac_dir" != .; then
22977 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22978 # A "../" for each directory in $ac_dir_suffix.
22979 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22980else
22981 ac_dir_suffix= ac_top_builddir=
22982fi
22983
22984case $srcdir in
22985 .) # No --srcdir option. We are building in place.
22986 ac_srcdir=.
22987 if test -z "$ac_top_builddir"; then
22988 ac_top_srcdir=.
22989 else
22990 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22991 fi ;;
22992 [\\/]* | ?:[\\/]* ) # Absolute path.
22993 ac_srcdir=$srcdir$ac_dir_suffix;
22994 ac_top_srcdir=$srcdir ;;
c906108c 22995 *) # Relative path.
bec39cab
AC
22996 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22997 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22998esac
22999
23000# Do not use `cd foo && pwd` to compute absolute paths, because
23001# the directories may not exist.
23002case `pwd` in
23003.) ac_abs_builddir="$ac_dir";;
23004*)
23005 case "$ac_dir" in
23006 .) ac_abs_builddir=`pwd`;;
23007 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23008 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23009 esac;;
23010esac
23011case $ac_abs_builddir in
23012.) ac_abs_top_builddir=${ac_top_builddir}.;;
23013*)
23014 case ${ac_top_builddir}. in
23015 .) ac_abs_top_builddir=$ac_abs_builddir;;
23016 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23017 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23018 esac;;
23019esac
23020case $ac_abs_builddir in
23021.) ac_abs_srcdir=$ac_srcdir;;
23022*)
23023 case $ac_srcdir in
23024 .) ac_abs_srcdir=$ac_abs_builddir;;
23025 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23026 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23027 esac;;
23028esac
23029case $ac_abs_builddir in
23030.) ac_abs_top_srcdir=$ac_top_srcdir;;
23031*)
23032 case $ac_top_srcdir in
23033 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23034 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23035 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23036 esac;;
23037esac
c906108c 23038
c906108c 23039
bec39cab
AC
23040 case $INSTALL in
23041 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23042 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
23043 esac
23044
bec39cab
AC
23045 if test x"$ac_file" != x-; then
23046 { echo "$as_me:$LINENO: creating $ac_file" >&5
23047echo "$as_me: creating $ac_file" >&6;}
23048 rm -f "$ac_file"
23049 fi
23050 # Let's still pretend it is `configure' which instantiates (i.e., don't
23051 # use $as_me), people would be surprised to read:
23052 # /* config.h. Generated by config.status. */
23053 if test x"$ac_file" = x-; then
23054 configure_input=
23055 else
23056 configure_input="$ac_file. "
23057 fi
23058 configure_input=$configure_input"Generated from `echo $ac_file_in |
23059 sed 's,.*/,,'` by configure."
23060
23061 # First look for the input files in the build tree, otherwise in the
23062 # src tree.
23063 ac_file_inputs=`IFS=:
23064 for f in $ac_file_in; do
23065 case $f in
23066 -) echo $tmp/stdin ;;
23067 [\\/$]*)
23068 # Absolute (can't be DOS-style, as IFS=:)
23069 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23070echo "$as_me: error: cannot find input file: $f" >&2;}
23071 { (exit 1); exit 1; }; }
23072 echo "$f";;
23073 *) # Relative
23074 if test -f "$f"; then
23075 # Build tree
23076 echo "$f"
23077 elif test -f "$srcdir/$f"; then
23078 # Source tree
23079 echo "$srcdir/$f"
23080 else
23081 # /dev/null tree
23082 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23083echo "$as_me: error: cannot find input file: $f" >&2;}
23084 { (exit 1); exit 1; }; }
23085 fi;;
23086 esac
23087 done` || { (exit 1); exit 1; }
23088_ACEOF
23089cat >>$CONFIG_STATUS <<_ACEOF
23090 sed "$ac_vpsub
23091$extrasub
23092_ACEOF
23093cat >>$CONFIG_STATUS <<\_ACEOF
23094:t
23095/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23096s,@configure_input@,$configure_input,;t t
23097s,@srcdir@,$ac_srcdir,;t t
23098s,@abs_srcdir@,$ac_abs_srcdir,;t t
23099s,@top_srcdir@,$ac_top_srcdir,;t t
23100s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23101s,@builddir@,$ac_builddir,;t t
23102s,@abs_builddir@,$ac_abs_builddir,;t t
23103s,@top_builddir@,$ac_top_builddir,;t t
23104s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23105s,@INSTALL@,$ac_INSTALL,;t t
23106" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23107 rm -f $tmp/stdin
23108 if test x"$ac_file" != x-; then
23109 mv $tmp/out $ac_file
23110 else
23111 cat $tmp/out
23112 rm -f $tmp/out
23113 fi
23114
23115done
23116_ACEOF
23117cat >>$CONFIG_STATUS <<\_ACEOF
23118
23119#
23120# CONFIG_HEADER section.
23121#
c906108c
SS
23122
23123# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23124# NAME is the cpp macro being defined and VALUE is the value it is being given.
23125#
23126# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
23127ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23128ac_dB='[ ].*$,\1#\2'
23129ac_dC=' '
23130ac_dD=',;t'
23131# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23132ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23133ac_uB='$,\1#\2define\3'
c906108c 23134ac_uC=' '
bec39cab
AC
23135ac_uD=',;t'
23136
23137for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 23138 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
23139 case $ac_file in
23140 - | *:- | *:-:* ) # input from stdin
23141 cat >$tmp/stdin
23142 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23143 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23144 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23145 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23146 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
23147 esac
23148
bec39cab
AC
23149 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23150echo "$as_me: creating $ac_file" >&6;}
23151
23152 # First look for the input files in the build tree, otherwise in the
23153 # src tree.
23154 ac_file_inputs=`IFS=:
23155 for f in $ac_file_in; do
23156 case $f in
23157 -) echo $tmp/stdin ;;
23158 [\\/$]*)
23159 # Absolute (can't be DOS-style, as IFS=:)
23160 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23161echo "$as_me: error: cannot find input file: $f" >&2;}
23162 { (exit 1); exit 1; }; }
23163 # Do quote $f, to prevent DOS paths from being IFS'd.
23164 echo "$f";;
23165 *) # Relative
23166 if test -f "$f"; then
23167 # Build tree
23168 echo "$f"
23169 elif test -f "$srcdir/$f"; then
23170 # Source tree
23171 echo "$srcdir/$f"
23172 else
23173 # /dev/null tree
23174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23175echo "$as_me: error: cannot find input file: $f" >&2;}
23176 { (exit 1); exit 1; }; }
23177 fi;;
23178 esac
23179 done` || { (exit 1); exit 1; }
23180 # Remove the trailing spaces.
23181 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23182
23183_ACEOF
23184
23185# Transform confdefs.h into two sed scripts, `conftest.defines' and
23186# `conftest.undefs', that substitutes the proper values into
23187# config.h.in to produce config.h. The first handles `#define'
23188# templates, and the second `#undef' templates.
23189# And first: Protect against being on the right side of a sed subst in
23190# config.status. Protect against being in an unquoted here document
23191# in config.status.
23192rm -f conftest.defines conftest.undefs
23193# Using a here document instead of a string reduces the quoting nightmare.
23194# Putting comments in sed scripts is not portable.
23195#
23196# `end' is used to avoid that the second main sed command (meant for
23197# 0-ary CPP macros) applies to n-ary macro definitions.
23198# See the Autoconf documentation for `clear'.
23199cat >confdef2sed.sed <<\_ACEOF
23200s/[\\&,]/\\&/g
23201s,[\\$`],\\&,g
23202t clear
23203: clear
23204s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23205t end
23206s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23207: end
23208_ACEOF
23209# If some macros were called several times there might be several times
23210# the same #defines, which is useless. Nevertheless, we may not want to
23211# sort them, since we want the *last* AC-DEFINE to be honored.
23212uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23213sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23214rm -f confdef2sed.sed
c906108c
SS
23215
23216# This sed command replaces #undef with comments. This is necessary, for
23217# example, in the case of _POSIX_SOURCE, which is predefined and required
23218# on some systems where configure will not decide to define it.
bec39cab
AC
23219cat >>conftest.undefs <<\_ACEOF
23220s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23221_ACEOF
23222
23223# Break up conftest.defines because some shells have a limit on the size
23224# of here documents, and old seds have small limits too (100 cmds).
23225echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23226echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23227echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23228echo ' :' >>$CONFIG_STATUS
23229rm -f conftest.tail
23230while grep . conftest.defines >/dev/null
23231do
23232 # Write a limited-size here document to $tmp/defines.sed.
23233 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23234 # Speed up: don't consider the non `#define' lines.
23235 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23236 # Work around the forget-to-reset-the-flag bug.
23237 echo 't clr' >>$CONFIG_STATUS
23238 echo ': clr' >>$CONFIG_STATUS
23239 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23240 echo 'CEOF
23241 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23242 rm -f $tmp/in
23243 mv $tmp/out $tmp/in
23244' >>$CONFIG_STATUS
23245 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23246 rm -f conftest.defines
23247 mv conftest.tail conftest.defines
23248done
23249rm -f conftest.defines
23250echo ' fi # grep' >>$CONFIG_STATUS
23251echo >>$CONFIG_STATUS
c906108c 23252
bec39cab
AC
23253# Break up conftest.undefs because some shells have a limit on the size
23254# of here documents, and old seds have small limits too (100 cmds).
23255echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 23256rm -f conftest.tail
bec39cab 23257while grep . conftest.undefs >/dev/null
c906108c 23258do
bec39cab
AC
23259 # Write a limited-size here document to $tmp/undefs.sed.
23260 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23261 # Speed up: don't consider the non `#undef'
23262 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23263 # Work around the forget-to-reset-the-flag bug.
23264 echo 't clr' >>$CONFIG_STATUS
23265 echo ': clr' >>$CONFIG_STATUS
23266 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 23267 echo 'CEOF
bec39cab
AC
23268 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23269 rm -f $tmp/in
23270 mv $tmp/out $tmp/in
23271' >>$CONFIG_STATUS
23272 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23273 rm -f conftest.undefs
23274 mv conftest.tail conftest.undefs
23275done
23276rm -f conftest.undefs
23277
23278cat >>$CONFIG_STATUS <<\_ACEOF
23279 # Let's still pretend it is `configure' which instantiates (i.e., don't
23280 # use $as_me), people would be surprised to read:
23281 # /* config.h. Generated by config.status. */
23282 if test x"$ac_file" = x-; then
23283 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 23284 else
bec39cab 23285 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 23286 fi
bec39cab
AC
23287 cat $tmp/in >>$tmp/config.h
23288 rm -f $tmp/in
23289 if test x"$ac_file" != x-; then
23290 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23291 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23292echo "$as_me: $ac_file is unchanged" >&6;}
23293 else
23294 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23295$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23296 X"$ac_file" : 'X\(//\)[^/]' \| \
23297 X"$ac_file" : 'X\(//\)$' \| \
23298 X"$ac_file" : 'X\(/\)' \| \
23299 . : '\(.\)' 2>/dev/null ||
23300echo X"$ac_file" |
23301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23303 /^X\(\/\/\)$/{ s//\1/; q; }
23304 /^X\(\/\).*/{ s//\1/; q; }
23305 s/.*/./; q'`
23306 { if $as_mkdir_p; then
23307 mkdir -p "$ac_dir"
23308 else
23309 as_dir="$ac_dir"
23310 as_dirs=
23311 while test ! -d "$as_dir"; do
23312 as_dirs="$as_dir $as_dirs"
23313 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23315 X"$as_dir" : 'X\(//\)[^/]' \| \
23316 X"$as_dir" : 'X\(//\)$' \| \
23317 X"$as_dir" : 'X\(/\)' \| \
23318 . : '\(.\)' 2>/dev/null ||
23319echo X"$as_dir" |
23320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23322 /^X\(\/\/\)$/{ s//\1/; q; }
23323 /^X\(\/\).*/{ s//\1/; q; }
23324 s/.*/./; q'`
23325 done
23326 test ! -n "$as_dirs" || mkdir $as_dirs
23327 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23328echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23329 { (exit 1); exit 1; }; }; }
c906108c 23330
bec39cab
AC
23331 rm -f $ac_file
23332 mv $tmp/config.h $ac_file
23333 fi
23334 else
23335 cat $tmp/config.h
23336 rm -f $tmp/config.h
23337 fi
23338done
23339_ACEOF
23340cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23341
bec39cab
AC
23342#
23343# CONFIG_LINKS section.
23344#
c906108c 23345
bec39cab
AC
23346for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23347 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23348 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 23349
bec39cab
AC
23350 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23351echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
23352
23353 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
23354 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23355echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23356 { (exit 1); exit 1; }; }
c906108c
SS
23357 fi
23358 rm -f $ac_dest
23359
23360 # Make relative symlinks.
bec39cab
AC
23361 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23362$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23363 X"$ac_dest" : 'X\(//\)[^/]' \| \
23364 X"$ac_dest" : 'X\(//\)$' \| \
23365 X"$ac_dest" : 'X\(/\)' \| \
23366 . : '\(.\)' 2>/dev/null ||
23367echo X"$ac_dest" |
23368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23370 /^X\(\/\/\)$/{ s//\1/; q; }
23371 /^X\(\/\).*/{ s//\1/; q; }
23372 s/.*/./; q'`
23373 { if $as_mkdir_p; then
23374 mkdir -p "$ac_dest_dir"
c906108c 23375 else
bec39cab
AC
23376 as_dir="$ac_dest_dir"
23377 as_dirs=
23378 while test ! -d "$as_dir"; do
23379 as_dirs="$as_dir $as_dirs"
23380 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23381$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23382 X"$as_dir" : 'X\(//\)[^/]' \| \
23383 X"$as_dir" : 'X\(//\)$' \| \
23384 X"$as_dir" : 'X\(/\)' \| \
23385 . : '\(.\)' 2>/dev/null ||
23386echo X"$as_dir" |
23387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23389 /^X\(\/\/\)$/{ s//\1/; q; }
23390 /^X\(\/\).*/{ s//\1/; q; }
23391 s/.*/./; q'`
23392 done
23393 test ! -n "$as_dirs" || mkdir $as_dirs
23394 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23395echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23396 { (exit 1); exit 1; }; }; }
23397
23398 ac_builddir=.
23399
23400if test "$ac_dest_dir" != .; then
23401 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23402 # A "../" for each directory in $ac_dir_suffix.
23403 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23404else
23405 ac_dir_suffix= ac_top_builddir=
23406fi
23407
23408case $srcdir in
23409 .) # No --srcdir option. We are building in place.
23410 ac_srcdir=.
23411 if test -z "$ac_top_builddir"; then
23412 ac_top_srcdir=.
23413 else
23414 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23415 fi ;;
23416 [\\/]* | ?:[\\/]* ) # Absolute path.
23417 ac_srcdir=$srcdir$ac_dir_suffix;
23418 ac_top_srcdir=$srcdir ;;
23419 *) # Relative path.
23420 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23421 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23422esac
23423
23424# Do not use `cd foo && pwd` to compute absolute paths, because
23425# the directories may not exist.
23426case `pwd` in
23427.) ac_abs_builddir="$ac_dest_dir";;
23428*)
23429 case "$ac_dest_dir" in
23430 .) ac_abs_builddir=`pwd`;;
23431 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23432 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23433 esac;;
23434esac
23435case $ac_abs_builddir in
23436.) ac_abs_top_builddir=${ac_top_builddir}.;;
23437*)
23438 case ${ac_top_builddir}. in
23439 .) ac_abs_top_builddir=$ac_abs_builddir;;
23440 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23441 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23442 esac;;
23443esac
23444case $ac_abs_builddir in
23445.) ac_abs_srcdir=$ac_srcdir;;
23446*)
23447 case $ac_srcdir in
23448 .) ac_abs_srcdir=$ac_abs_builddir;;
23449 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23450 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23451 esac;;
23452esac
23453case $ac_abs_builddir in
23454.) ac_abs_top_srcdir=$ac_top_srcdir;;
23455*)
23456 case $ac_top_srcdir in
23457 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23458 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23459 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23460 esac;;
23461esac
c906108c 23462
bec39cab
AC
23463
23464 case $srcdir in
23465 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23466 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23467 esac
23468
bec39cab
AC
23469 # Try a symlink, then a hard link, then a copy.
23470 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23471 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23472 cp -p $srcdir/$ac_source $ac_dest ||
23473 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23474echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23475 { (exit 1); exit 1; }; }
c906108c 23476done
bec39cab
AC
23477_ACEOF
23478cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23479
bec39cab
AC
23480#
23481# CONFIG_COMMANDS section.
23482#
23483for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23484 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23485 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23486 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23487$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23488 X"$ac_dest" : 'X\(//\)[^/]' \| \
23489 X"$ac_dest" : 'X\(//\)$' \| \
23490 X"$ac_dest" : 'X\(/\)' \| \
23491 . : '\(.\)' 2>/dev/null ||
23492echo X"$ac_dest" |
23493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23495 /^X\(\/\/\)$/{ s//\1/; q; }
23496 /^X\(\/\).*/{ s//\1/; q; }
23497 s/.*/./; q'`
23498 { if $as_mkdir_p; then
23499 mkdir -p "$ac_dir"
23500 else
23501 as_dir="$ac_dir"
23502 as_dirs=
23503 while test ! -d "$as_dir"; do
23504 as_dirs="$as_dir $as_dirs"
23505 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23507 X"$as_dir" : 'X\(//\)[^/]' \| \
23508 X"$as_dir" : 'X\(//\)$' \| \
23509 X"$as_dir" : 'X\(/\)' \| \
23510 . : '\(.\)' 2>/dev/null ||
23511echo X"$as_dir" |
23512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23514 /^X\(\/\/\)$/{ s//\1/; q; }
23515 /^X\(\/\).*/{ s//\1/; q; }
23516 s/.*/./; q'`
23517 done
23518 test ! -n "$as_dirs" || mkdir $as_dirs
23519 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23520echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23521 { (exit 1); exit 1; }; }; }
23522
23523 ac_builddir=.
23524
23525if test "$ac_dir" != .; then
23526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23527 # A "../" for each directory in $ac_dir_suffix.
23528 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23529else
23530 ac_dir_suffix= ac_top_builddir=
23531fi
23532
23533case $srcdir in
23534 .) # No --srcdir option. We are building in place.
23535 ac_srcdir=.
23536 if test -z "$ac_top_builddir"; then
23537 ac_top_srcdir=.
23538 else
23539 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23540 fi ;;
23541 [\\/]* | ?:[\\/]* ) # Absolute path.
23542 ac_srcdir=$srcdir$ac_dir_suffix;
23543 ac_top_srcdir=$srcdir ;;
23544 *) # Relative path.
23545 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23546 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23547esac
23548
23549# Do not use `cd foo && pwd` to compute absolute paths, because
23550# the directories may not exist.
23551case `pwd` in
23552.) ac_abs_builddir="$ac_dir";;
23553*)
23554 case "$ac_dir" in
23555 .) ac_abs_builddir=`pwd`;;
23556 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23557 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23558 esac;;
23559esac
23560case $ac_abs_builddir in
23561.) ac_abs_top_builddir=${ac_top_builddir}.;;
23562*)
23563 case ${ac_top_builddir}. in
23564 .) ac_abs_top_builddir=$ac_abs_builddir;;
23565 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23566 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23567 esac;;
23568esac
23569case $ac_abs_builddir in
23570.) ac_abs_srcdir=$ac_srcdir;;
23571*)
23572 case $ac_srcdir in
23573 .) ac_abs_srcdir=$ac_abs_builddir;;
23574 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23575 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23576 esac;;
23577esac
23578case $ac_abs_builddir in
23579.) ac_abs_top_srcdir=$ac_top_srcdir;;
23580*)
23581 case $ac_top_srcdir in
23582 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23583 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23584 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23585 esac;;
23586esac
c906108c 23587
c906108c 23588
bec39cab
AC
23589 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23590echo "$as_me: executing $ac_dest commands" >&6;}
23591 case $ac_dest in
23592 default )
c906108c 23593
2c0fc042 23594sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23595/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23596/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23597mv -f Makefile.tmp Makefile
23598
2acceee2 23599
c906108c
SS
23600case x$CONFIG_HEADERS in
23601xconfig.h:config.in)
23602echo > stamp-h ;;
23603esac
bec39cab
AC
23604 ;;
23605 esac
23606done
23607_ACEOF
c906108c 23608
bec39cab
AC
23609cat >>$CONFIG_STATUS <<\_ACEOF
23610
23611{ (exit 0); exit 0; }
23612_ACEOF
c906108c 23613chmod +x $CONFIG_STATUS
bec39cab
AC
23614ac_clean_files=$ac_clean_files_save
23615
23616
23617# configure is writing to config.log, and then calls config.status.
23618# config.status does its own redirection, appending to config.log.
23619# Unfortunately, on DOS this fails, as config.log is still kept open
23620# by configure, so config.status won't be able to write to it; its
23621# output is simply discarded. So we exec the FD to /dev/null,
23622# effectively closing config.log, so it can be properly (re)opened and
23623# appended to by config.status. When coming back to configure, we
23624# need to make the FD available again.
23625if test "$no_create" != yes; then
23626 ac_cs_success=:
23627 ac_config_status_args=
23628 test "$silent" = yes &&
23629 ac_config_status_args="$ac_config_status_args --quiet"
23630 exec 5>/dev/null
23631 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23632 exec 5>>config.log
23633 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23634 # would make configure fail if this is the last instruction.
23635 $ac_cs_success || { (exit 1); exit 1; }
23636fi
c906108c 23637
bec39cab
AC
23638#
23639# CONFIG_SUBDIRS section.
23640#
c906108c
SS
23641if test "$no_recursion" != yes; then
23642
23643 # Remove --cache-file and --srcdir arguments so they do not pile up.
23644 ac_sub_configure_args=
23645 ac_prev=
23646 for ac_arg in $ac_configure_args; do
23647 if test -n "$ac_prev"; then
23648 ac_prev=
23649 continue
23650 fi
bec39cab 23651 case $ac_arg in
c906108c
SS
23652 -cache-file | --cache-file | --cache-fil | --cache-fi \
23653 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23654 ac_prev=cache_file ;;
23655 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23656 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23657 | --c=*)
23658 ;;
23659 --config-cache | -C)
c906108c
SS
23660 ;;
23661 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23662 ac_prev=srcdir ;;
23663 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23664 ;;
bec39cab
AC
23665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23666 ac_prev=prefix ;;
23667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23668 ;;
c906108c
SS
23669 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23670 esac
23671 done
23672
bec39cab
AC
23673 # Always prepend --prefix to ensure using the same prefix
23674 # in subdir configurations.
23675 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23676
23677 ac_popdir=`pwd`
23678 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23679
23680 # Do not complain, so a configure script can configure whichever
23681 # parts of a large source tree are present.
bec39cab 23682 test -d $srcdir/$ac_dir || continue
c906108c 23683
bec39cab
AC
23684 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23685echo "$as_me: configuring in $ac_dir" >&6;}
23686 { if $as_mkdir_p; then
23687 mkdir -p "$ac_dir"
23688 else
23689 as_dir="$ac_dir"
23690 as_dirs=
23691 while test ! -d "$as_dir"; do
23692 as_dirs="$as_dir $as_dirs"
23693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23695 X"$as_dir" : 'X\(//\)[^/]' \| \
23696 X"$as_dir" : 'X\(//\)$' \| \
23697 X"$as_dir" : 'X\(/\)' \| \
23698 . : '\(.\)' 2>/dev/null ||
23699echo X"$as_dir" |
23700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23702 /^X\(\/\/\)$/{ s//\1/; q; }
23703 /^X\(\/\).*/{ s//\1/; q; }
23704 s/.*/./; q'`
23705 done
23706 test ! -n "$as_dirs" || mkdir $as_dirs
23707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23708echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23709 { (exit 1); exit 1; }; }; }
c906108c 23710
bec39cab
AC
23711 ac_builddir=.
23712
23713if test "$ac_dir" != .; then
23714 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23715 # A "../" for each directory in $ac_dir_suffix.
23716 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23717else
23718 ac_dir_suffix= ac_top_builddir=
23719fi
23720
23721case $srcdir in
23722 .) # No --srcdir option. We are building in place.
23723 ac_srcdir=.
23724 if test -z "$ac_top_builddir"; then
23725 ac_top_srcdir=.
23726 else
23727 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23728 fi ;;
23729 [\\/]* | ?:[\\/]* ) # Absolute path.
23730 ac_srcdir=$srcdir$ac_dir_suffix;
23731 ac_top_srcdir=$srcdir ;;
23732 *) # Relative path.
23733 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23734 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23735esac
c906108c 23736
bec39cab
AC
23737# Do not use `cd foo && pwd` to compute absolute paths, because
23738# the directories may not exist.
23739case `pwd` in
23740.) ac_abs_builddir="$ac_dir";;
23741*)
23742 case "$ac_dir" in
23743 .) ac_abs_builddir=`pwd`;;
23744 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23745 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23746 esac;;
23747esac
23748case $ac_abs_builddir in
23749.) ac_abs_top_builddir=${ac_top_builddir}.;;
23750*)
23751 case ${ac_top_builddir}. in
23752 .) ac_abs_top_builddir=$ac_abs_builddir;;
23753 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23754 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23755 esac;;
23756esac
23757case $ac_abs_builddir in
23758.) ac_abs_srcdir=$ac_srcdir;;
23759*)
23760 case $ac_srcdir in
23761 .) ac_abs_srcdir=$ac_abs_builddir;;
23762 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23763 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23764 esac;;
23765esac
23766case $ac_abs_builddir in
23767.) ac_abs_top_srcdir=$ac_top_srcdir;;
23768*)
23769 case $ac_top_srcdir in
23770 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23771 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23772 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23773 esac;;
23774esac
c906108c 23775
c906108c 23776
bec39cab 23777 cd $ac_dir
c906108c
SS
23778
23779 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23780 if test -f $ac_srcdir/configure.gnu; then
23781 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23782 elif test -f $ac_srcdir/configure; then
23783 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23784 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23785 ac_sub_configure=$ac_configure
23786 else
bec39cab
AC
23787 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23788echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23789 ac_sub_configure=
23790 fi
23791
23792 # The recursion is here.
23793 if test -n "$ac_sub_configure"; then
c906108c 23794 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23795 case $cache_file in
23796 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23797 *) # Relative path.
bec39cab 23798 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23799 esac
c906108c 23800
bec39cab
AC
23801 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23802echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23803 # The eval makes quoting arguments work.
bec39cab
AC
23804 eval $ac_sub_configure $ac_sub_configure_args \
23805 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23806 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23807echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23808 { (exit 1); exit 1; }; }
c906108c
SS
23809 fi
23810
23811 cd $ac_popdir
23812 done
23813fi
23814
23815
23816exit 0
This page took 2.050215 seconds and 4 git commands to generate.